:root {
  --bg: #f7f8fe;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --line: #e7ebf5;
  --text: #111827;
  --muted: #6b7280;
  --primary: #635bff;
  --primary-soft: #eef0ff;
  --accent: #22c55e;
  --shadow: 0 20px 60px rgba(99, 91, 255, 0.08);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(99, 91, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f7f8fe 46%, #f9fbff 100%);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 254, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 235, 245, 0.85);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  margin-left: auto;
}

.nav-links a,
.nav-link-secondary {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-link-secondary:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(99, 91, 255, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

.hero {
  padding: 56px 0 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.tag,
.plan-badge,
.cta-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.cta-card h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p,
.section-heading p,
.feature-card p,
.metric-card em,
.trust-card p,
.quote-meta span,
.plan-card p,
.cta-card p,
.analytics-top p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 17px;
}

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

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

.hero-stats div,
.metric-card,
.feature-card,
.analytics-panel,
.panel-card,
.plan-card,
.trust-card,
.quote-card,
.cta-card,
.dashboard-shell,
.source-card,
.chart-card,
.progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-shell {
  padding: 22px;
}

.dashboard-head,
.analytics-top,
.panel-head,
.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.head-title span,
.chart-card-head span,
.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.head-title strong,
.chart-card-head strong,
.panel-head strong,
.analytics-top h3 {
  display: block;
  margin: 4px 0 0;
  font-size: 22px;
}

.head-actions,
.analytics-actions {
  display: flex;
  gap: 10px;
}

.head-actions button,
.analytics-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.summary-grid article span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong,
.summary-grid article strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.3;
}

.metric-card em,
.summary-grid article em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  margin-top: 18px;
}

.chart-card,
.source-card,
.progress-card {
  padding: 20px;
}

.line-chart,
.area-chart {
  position: relative;
  height: 250px;
  margin-top: 18px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(231, 235, 245, 0.8) 1px, transparent 1px),
    linear-gradient(rgba(231, 235, 245, 0.8) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcff, #f5f7fe);
  background-size: 48px 48px, 48px 48px, auto;
  overflow: hidden;
}

.line {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 999px;
}

.line-a {
  bottom: 70px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  transform: skewY(-11deg);
  box-shadow: 0 -50px 0 -1px rgba(99, 102, 241, 0.28);
}

.line-b {
  bottom: 54px;
  background: linear-gradient(90deg, #22c55e, #60a5fa);
  transform: skewY(-6deg);
}

.chart-labels,
.month-row {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.source-list,
.progress-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.source-list div,
.progress-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 12px;
}

.source-list label,
.progress-list label {
  font-size: 14px;
  font-weight: 700;
}

.source-list b,
.progress-list i {
  display: block;
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.source-list.circle b {
  background: linear-gradient(90deg, #6366f1, #22c55e);
}

.progress-list i {
  background: linear-gradient(90deg, #818cf8, #6366f1);
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.feature-card,
.plan-card {
  padding: 26px;
}

.feature-card h3,
.plan-card h3,
.trust-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.analytics-panel {
  padding: 26px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.summary-grid article {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  margin-top: 18px;
}

.panel-card {
  padding: 20px;
}

.goals-panel {
  grid-column: span 2;
}

.panel-tabs {
  display: flex;
  gap: 8px;
}

.panel-tabs span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.panel-tabs .active {
  color: var(--primary);
  background: var(--primary-soft);
}

.area-fill {
  position: absolute;
  inset: auto 24px 36px 24px;
  height: 120px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(99, 91, 255, 0.25), rgba(99, 91, 255, 0.02));
  clip-path: polygon(0 100%, 0 70%, 16% 52%, 34% 62%, 52% 36%, 69% 48%, 84% 18%, 100% 0, 100% 100%);
}

.area-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 150px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  clip-path: polygon(0 100%, 16% 52%, 34% 62%, 52% 36%, 69% 48%, 84% 18%, 100% 0, 100% 8%, 84% 26%, 69% 56%, 52% 44%, 34% 70%, 16% 60%, 0 100%);
}

.plan-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.plan-card.featured {
  position: relative;
  border-color: rgba(99, 91, 255, 0.24);
  box-shadow: 0 24px 70px rgba(99, 91, 255, 0.12);
}

.plan-badge {
  margin-bottom: 16px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.trust-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-card,
.quote-card {
  padding: 24px;
}

.quote-card {
  background: linear-gradient(180deg, #ffffff, #f7f8fe);
}

.quote-card blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.quote-meta {
  margin-top: 18px;
}

.quote-meta strong {
  display: block;
  margin-bottom: 8px;
}

.cta-card {
  padding: 38px;
  text-align: center;
}

.cta-card p {
  max-width: 760px;
  margin: 18px auto 0;
}

.cta-note {
  margin-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-layout,
  .metric-grid,
  .summary-grid,
  .feature-grid,
  .plan-grid,
  .trust-grid,
  .analytics-grid,
  .chart-layout,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .goals-panel {
    grid-column: auto;
  }

  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero {
    padding: 34px 0 22px;
  }

  .section {
    padding: 70px 0;
  }

  .hero-layout,
  .metric-grid,
  .summary-grid,
  .feature-grid,
  .plan-grid,
  .trust-grid,
  .analytics-grid,
  .chart-layout,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brand {
    max-width: calc(100% - 60px);
    font-size: 18px;
  }

  .hero-copy h1,
  .section-heading h2,
  .cta-card h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-copy p,
  .section-heading p,
  .feature-card p,
  .plan-card p,
  .trust-card p,
  .quote-card blockquote,
  .cta-card p,
  .analytics-top p {
    font-size: 15px;
  }

  .dashboard-shell,
  .analytics-panel,
  .feature-card,
  .plan-card,
  .trust-card,
  .quote-card,
  .cta-card,
  .panel-card,
  .chart-card,
  .source-card,
  .progress-card {
    padding: 18px;
  }

  .dashboard-head,
  .analytics-top,
  .panel-head,
  .chart-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .head-actions,
  .analytics-actions {
    width: 100%;
  }

  .head-actions button,
  .analytics-actions button {
    flex: 1;
  }

  .line-chart,
  .area-chart {
    height: 210px;
  }

  .month-row,
  .chart-labels {
    gap: 8px;
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .source-list div,
  .progress-list div {
    grid-template-columns: 1fr auto;
  }
}
