:root {
  --accent: #6d28ff;
  --accent-dark: #4c16d7;
  --ink: #070817;
  --muted: #5c6275;
  --line: #e8e9f2;
  --panel: #ffffff;
  --soft: #f7f8fc;
  --cyan: #00a7c8;
  --green: #0f9f6e;
  --shadow: 0 24px 70px rgba(25, 23, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(109, 40, 255, 0.08), rgba(255, 255, 255, 0) 430px),
    var(--soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0a0b18, var(--accent));
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-nav {
  gap: 28px;
  color: #282c43;
  font-size: 14px;
  font-weight: 620;
}

.site-nav a,
.sign-in {
  transition: color 160ms ease;
}

.site-nav a:hover,
.sign-in:hover {
  color: var(--accent);
}

.header-actions {
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
  font-weight: 680;
}

.public-language {
  width: min(184px, 100%);
}

.header-actions .sign-in,
.header-actions .button,
.public-language .language-selector-trigger {
  min-height: 44px;
}

.header-actions .sign-in {
  display: inline-flex;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 32px rgba(109, 40, 255, 0.28);
  font-weight: 760;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(109, 40, 255, 0.34);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  box-shadow: 0 12px 26px rgba(24, 29, 54, 0.08);
}

.hero,
.preview-section,
.features,
.pricing-note,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.hero {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 760px) 1fr;
  align-items: center;
  gap: 36px;
  padding-top: 66px;
  padding-bottom: 46px;
}

.hero-copy {
  max-width: 830px;
}

.eyebrow,
.preview-label,
.feature-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 890px;
  margin: 18px 0 18px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-signal {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(109, 40, 255, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  color: #2e3150;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(31, 28, 57, 0.08);
  font-size: 14px;
  font-weight: 720;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.14);
}

.preview-section,
.features {
  padding-top: 26px;
  padding-bottom: 54px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(220px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2,
.pricing-note h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(109, 40, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 28px 18px;
  background: #060813;
}

.preview-logo {
  width: 56px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  place-items: center;
  background: rgba(109, 40, 255, 0.22);
  font-size: 12px;
  font-weight: 820;
}

.preview-nav {
  width: 44px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.preview-nav.active {
  width: 54px;
  background: var(--accent);
}

.preview-nav.short {
  width: 30px;
}

.preview-main {
  min-width: 0;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(109, 40, 255, 0.08), rgba(0, 167, 200, 0.06)),
    #ffffff;
}

.preview-topbar,
.panel-header,
.pricing-note,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.preview-topbar h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.preview-pill {
  border: 1px solid rgba(15, 159, 110, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: #0b7654;
  background: rgba(15, 159, 110, 0.1);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.metric-card,
.chart-panel,
.insight-panel,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(35, 31, 64, 0.08);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small,
.insight-panel p,
.feature-card p,
.site-footer span {
  color: var(--muted);
}

.metric-card span,
.metric-card small {
  display: block;
  font-size: 13px;
  font-weight: 680;
}

.metric-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 34px;
  line-height: 1;
}

.preview-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.chart-panel,
.insight-panel {
  min-height: 300px;
  padding: 22px;
}

.panel-header {
  color: #11142a;
  font-size: 14px;
  font-weight: 760;
}

.panel-header span:last-child {
  color: var(--muted);
}

.chart-lines {
  position: relative;
  min-height: 220px;
  margin-top: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(232, 233, 242, 0.9) 24% 25%, transparent 25% 49%, rgba(232, 233, 242, 0.9) 49% 50%, transparent 50% 74%, rgba(232, 233, 242, 0.9) 74% 75%, transparent 75%),
    linear-gradient(90deg, rgba(109, 40, 255, 0.08), rgba(0, 167, 200, 0.08));
}

.line {
  position: absolute;
  inset-inline: 26px;
  height: 4px;
  border-radius: 99px;
  transform-origin: left center;
}

[dir="rtl"] .line {
  transform-origin: right center;
}

.line-one {
  top: 50px;
  background: linear-gradient(90deg, var(--accent), #9b5cff);
  transform: rotate(-7deg);
}

.line-two {
  top: 116px;
  background: linear-gradient(90deg, var(--green), #39c992);
  transform: rotate(3deg);
}

.line-three {
  top: 170px;
  background: linear-gradient(90deg, var(--cyan), #4db7ff);
  transform: rotate(-2deg);
}

.insight-panel {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(109, 40, 255, 0.95), rgba(7, 8, 23, 0.96)),
    #090b18;
}

.insight-panel .preview-label,
.insight-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.insight-panel h4 {
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.feature-card p {
  margin: 0;
  line-height: 1.6;
}

.pricing-note {
  margin-top: 10px;
  margin-bottom: 36px;
  border: 1px solid rgba(109, 40, 255, 0.14);
  border-radius: 8px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(32, 27, 62, 0.08);
}

.pricing-note h2 {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 42px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 34px;
  color: #101326;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .section-heading,
  .preview-workspace,
  .pricing-note {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-signal {
    justify-self: start;
  }

  .metric-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 76px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .preview-section,
  .features,
  .pricing-note,
  .site-footer {
    padding-inline: 18px;
  }

  .site-nav {
    gap: 16px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(132px, 1fr) auto auto;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .public-language {
    width: 100%;
  }

  .hero h1 {
    font-size: 46px;
  }

  .button {
    width: 100%;
  }

  .header-actions .button {
    width: auto;
    padding-inline: 14px;
  }

  .preview-main {
    padding: 20px;
  }

  .preview-topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-topbar > div,
  .panel-header > * {
    min-width: 0;
  }

  .preview-topbar h3 {
    overflow-wrap: anywhere;
  }

  .panel-header {
    flex-wrap: wrap;
  }
}
