:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #1c1c1e;
  --surface-raised: #242426;
  --surface-soft: #2d2d30;
  --border: rgba(255, 255, 255, .09);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --faint: #6f6f78;
  --accent: #52dca3;
  --accent-strong: #33c78c;
  --secondary: #5cabff;
  --warning: #ff9f3d;
  --down: #ff7a78;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(82, 220, 163, .12), transparent 28rem),
    linear-gradient(180deg, #1b1b1d 0, #060606 33rem, #000 100%);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 40px) 48px;
}

.top-bar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar {
  padding: 14px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark,
.run-button,
.tab-icon,
.icon-badge {
  display: inline-grid;
  place-items: center;
  color: #06140f;
  background: var(--accent);
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 7vw, 74px);
  align-items: start;
  padding: 24px 0 42px;
}

.eyebrow {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
}

.hero-actions,
.section-title,
.card-row,
.metric-grid {
  display: flex;
  gap: 12px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  font-weight: 760;
}

.button.primary {
  color: #06140f;
  border-color: transparent;
  background: var(--accent);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.phone-frame {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 46px;
  background: #050505;
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  min-height: 690px;
  border-radius: 34px;
  background: #000;
}

.phone-status,
.app-header,
.sample-banner,
.section-title,
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  padding: 20px 30px 12px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 780;
}

.dynamic-island {
  width: 126px;
  height: 36px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.status-icons {
  color: #fff;
  letter-spacing: 2px;
}

.app-header {
  padding: 16px 28px 12px;
}

.app-title {
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 3.25rem);
  line-height: 1;
  font-weight: 820;
}

.run-button {
  width: 50px;
  height: 50px;
  border: 10px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

.sample-banner {
  gap: 12px;
  padding: 13px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 650;
}

.sample-banner a {
  font-weight: 800;
}

.phone-content {
  display: grid;
  gap: 14px;
  padding: 22px 18px 86px;
}

.card,
.content-card,
.stat-card,
.chart-card,
.faq-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.card {
  padding: 18px;
}

.readiness-kicker {
  color: var(--muted);
  font-weight: 650;
}

.readiness-kicker strong,
.accent {
  color: var(--accent);
}

.readiness-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 4px;
  color: var(--accent);
  font-size: 1.78rem;
  line-height: 1;
  font-weight: 850;
}

.check {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #06140f;
  background: var(--accent);
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--warning);
  background: rgba(255, 159, 61, .2);
  font-weight: 780;
}

.divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, .09);
}

.insight-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.section-title {
  margin-top: 6px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.5rem;
}

.trend {
  color: var(--down);
  background: rgba(255, 122, 120, .16);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}

.segmented span {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  text-align: center;
  font-weight: 650;
}

.segmented .selected {
  background: #68686f;
}

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

.stat-card {
  min-width: 0;
  padding: 12px 10px;
}

.stat-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.stat-value {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  line-height: 1.03;
  font-weight: 800;
  white-space: nowrap;
}

.stat-card:nth-child(3) .stat-value {
  color: var(--secondary);
}

.chart-card {
  height: 138px;
  padding: 16px 20px;
  background:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px) 0 20px / 100% 42px,
    var(--surface);
}

.chart-bar {
  width: 10px;
  height: 92px;
  margin: 18px auto 0;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.tab-bar {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(42, 42, 44, .9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
}

.tab {
  display: grid;
  gap: 3px;
  justify-items: center;
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}

.tab.active {
  color: var(--accent);
}

.tab-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.tab:not(.active) .tab-icon {
  color: var(--text);
  background: transparent;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 44px;
}

.feature-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.feature-card p,
.content-card p,
.faq-card p {
  color: var(--muted);
}

.content-card h2 + h2 {
  margin-top: 24px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.content-card,
.faq-card {
  padding: clamp(18px, 4vw, 28px);
}

.content-card + .content-card,
.faq-card + .faq-card {
  margin-top: 12px;
}

.updated {
  color: var(--muted);
  font-weight: 650;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(28, 28, 30, .82);
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-weight: 650;
}

ul {
  padding-left: 1.15rem;
}

li {
  margin: .36rem 0;
  color: var(--muted);
}

code {
  padding: .12em .35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
}

.footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: .9rem;
}

@media (max-width: 860px) {
  .hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 430px);
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding-inline: 14px;
  }

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

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .phone-frame {
    padding: 8px;
    border-radius: 34px;
  }

  .phone-screen {
    min-height: 680px;
    border-radius: 28px;
  }

  .app-header,
  .sample-banner {
    padding-inline: 20px;
  }

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

  .metric-grid {
    gap: 7px;
  }

  .stat-card {
    padding: 10px 8px;
  }

  .stat-value {
    font-size: clamp(.98rem, 5vw, 1.25rem);
  }

  .tab-bar {
    right: 16px;
    left: 16px;
  }
}
