:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --paper: rgba(255, 255, 255, 0.8);
  --paper-strong: rgba(255, 255, 255, 0.96);
  --ink: #162238;
  --muted: #627187;
  --line: rgba(22, 34, 56, 0.1);
  --line-strong: rgba(22, 34, 56, 0.16);
  --navy: #17395f;
  --blue: #2b67c9;
  --sky: #66b3ff;
  --teal: #1aa18a;
  --coral: #ff7f63;
  --sun: #ffb657;
  --blue-soft: rgba(43, 103, 201, 0.12);
  --teal-soft: rgba(26, 161, 138, 0.12);
  --coral-soft: rgba(255, 127, 99, 0.14);
  --shadow: 0 26px 70px rgba(23, 42, 68, 0.11);
  --shadow-soft: 0 16px 32px rgba(23, 42, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(102, 179, 255, 0.16), transparent 24%),
    radial-gradient(circle at 90% 14%, rgba(255, 127, 99, 0.16), transparent 22%),
    radial-gradient(circle at 80% 76%, rgba(26, 161, 138, 0.15), transparent 24%),
    linear-gradient(180deg, #f7f3ed 0%, #f2eee8 45%, #f7f3ed 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.site-shell::before {
  top: 110px;
  right: -110px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(102, 179, 255, 0.16), transparent 68%);
}

.site-shell::after {
  left: -120px;
  top: 560px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 127, 99, 0.14), transparent 68%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--coral));
  box-shadow: 0 16px 36px rgba(43, 103, 201, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark::before {
  top: 12px;
  width: 24px;
  height: 6px;
}

.brand-mark::after {
  top: 24px;
  width: 16px;
  height: 6px;
}

.brand-copy strong,
h1,
h2,
h3,
.stat-value,
.metric-value,
.hero-phone-time {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.brand-copy strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
  transition: color 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button-alt:hover {
  transform: translateY(-1px);
}

.button-alt {
  background: rgba(255, 255, 255, 0.64);
}

.button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  box-shadow: 0 16px 36px rgba(43, 103, 201, 0.22);
}

.page-hero {
  padding: 28px 0 18px;
}

.hero-grid,
.page-grid,
.cta-grid,
.auth-layout {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: start;
}

.page-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.cta-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.auth-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 34, 56, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--coral));
  box-shadow: 0 0 0 5px rgba(43, 103, 201, 0.1);
}

.display {
  margin: 18px 0 14px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.93;
  letter-spacing: -0.07em;
  max-width: 800px;
}

.lead {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.72;
}

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

.panel,
.stat-card,
.tile,
.sidebar-card,
.hero-card,
.story-card,
.auth-card,
.cta-panel,
.info-card,
.hero-artboard {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.hero-artboard {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-radius: 36px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(102, 179, 255, 0.14), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 127, 99, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 253, 0.95));
}

.hero-illustration {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 360px;
  max-width: 54%;
}

.float-note {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(23, 42, 68, 0.08);
}

.float-note.top {
  left: 18px;
  top: 18px;
}

.float-note.bottom {
  right: 16px;
  bottom: 18px;
}

.float-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  box-shadow: 0 0 0 6px rgba(26, 161, 138, 0.12);
}

.float-copy strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.float-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.phone-stack {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  min-height: 520px;
}

.phone-shell {
  position: absolute;
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(180deg, #14253d, #1d3658);
  box-shadow: 0 30px 80px rgba(22, 34, 56, 0.22);
}

.phone-shell.main {
  right: 0;
  top: 0;
  width: min(100%, 380px);
}

.phone-shell.side {
  left: 0;
  bottom: 0;
  width: min(100%, 276px);
  transform: rotate(-7deg);
}

.phone-screen {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #fbfdff, #eef4fb);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}

.hero-phone-time {
  font-size: 16px;
  letter-spacing: -0.04em;
}

.phone-icons {
  color: #8290a3;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-body {
  padding: 0 18px 20px;
}

.phone-title {
  margin: 12px 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.phone-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.chip-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(22, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--coral));
}

.hero-card,
.story-card,
.auth-card,
.info-card {
  border-radius: 26px;
}

.hero-card {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
}

.hero-card strong,
.story-card strong,
.tile h3,
.sidebar-card h3,
.auth-title {
  display: block;
  letter-spacing: -0.04em;
}

.hero-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.hero-card p,
.story-card p,
.tile p,
.sidebar-card p,
.auth-note,
.section-note,
.muted-text {
  color: var(--muted);
  line-height: 1.65;
}

.hero-meta-row,
.tiny-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta-row {
  margin-top: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.mini-feed {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.mini-item + .mini-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mini-item b {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.mini-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-stats,
.cards-3,
.cards-4,
.faq-grid {
  display: grid;
  gap: 14px;
}

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

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.tile,
.sidebar-card,
.story-card,
.info-card {
  padding: 20px;
  border-radius: 24px;
}

.stat-value,
.metric-value {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.06em;
}

.stat-copy,
.metric-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.06em;
}

.section-note {
  max-width: 520px;
  margin: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kicker.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.kicker.coral {
  background: var(--coral-soft);
  color: #d85d42;
}

.kicker.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.tile h3,
.sidebar-card h3 {
  margin: 16px 0 10px;
  font-size: 26px;
}

.tile ul,
.sidebar-card ul,
.story-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tile li,
.sidebar-card li,
.story-card li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
}

.tile li::before,
.sidebar-card li::before,
.story-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--coral));
}

.source-list {
  display: grid;
  gap: 14px;
}

.source-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.source-row strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.source-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.story-card h3 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.story-card .tiny-meta {
  margin-top: 18px;
}

.quote-box {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #f6fbff;
  box-shadow: var(--shadow);
}

.quote-box blockquote {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.quote-box p {
  margin: 14px 0 0;
  color: rgba(246, 251, 255, 0.78);
}

.auth-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.95));
}

.auth-title {
  margin: 10px 0 8px;
  font-size: 32px;
}

.auth-note {
  margin: 0;
  font-size: 15px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(22, 34, 56, 0.06);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
}

.auth-pane {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.auth-pane.active {
  display: block;
}

.field {
  display: block;
}

.field + .field {
  margin-top: 12px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 34, 56, 0.12);
  background: rgba(250, 252, 255, 0.98);
  outline: none;
}

.field textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(43, 103, 201, 0.42);
  box-shadow: 0 0 0 4px rgba(43, 103, 201, 0.12);
}

.inline-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.inline-actions .button,
.inline-actions .button-alt {
  flex: 1;
}

.toast {
  min-height: 20px;
  margin-top: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.95));
}

.sidebar-card h3 {
  margin-top: 0;
}

.cta-panel {
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, var(--navy), var(--blue));
  color: #f8fbff;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.06em;
}

.cta-panel p {
  margin: 0;
  max-width: 680px;
  color: rgba(248, 251, 255, 0.8);
  line-height: 1.7;
}

.cta-panel .button {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .page-grid,
  .cta-grid,
  .auth-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-artboard {
    min-height: 700px;
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1220px);
  }

  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
  }

  .hero-stats,
  .cards-4,
  .cards-3,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-artboard {
    min-height: 860px;
  }

  .hero-illustration {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 52px auto 0;
  }

  .phone-stack {
    min-height: 560px;
  }

  .phone-shell.main {
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .phone-shell.side {
    left: 0;
    transform: rotate(-4deg);
  }

  .float-note {
    transform: scale(0.94);
  }

  .source-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: start;
  }
}
