/* ApiTrinity — Corporate Navy Marketing Template
   Mirrors the app's design system exactly */

:root {
  --bg: #f0f2f6;
  --surface: #f8f9fb;
  --surface-hover: #e8eaf0;
  --text: #1a2233;
  --text-secondary: #5a6578;
  --text-muted: #9aa3b2;
  --accent: #2c4a7c;
  --accent-hover: #1e3660;
  --accent-light: #dfe5f0;
  --sage: #4a7a8c;
  --sage-light: #e2edf0;
  --sage-hover: #3a6575;
  --success: #3a7a5a;
  --success-light: #e2f0e8;
  --warning: #b8860b;
  --warning-light: #f5ecd8;
  --danger: #a05050;
  --danger-light: #f0e2e2;
  --info: #3d6a9e;
  --info-light: #dfe9f4;
  --border: #d4d8e2;
  --border-hover: #b8bfcc;
  --white: #ffffff;
  --shadow-sm: 0 1px 4px rgba(26, 34, 51, 0.05);
  --shadow: 0 2px 8px rgba(26, 34, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 34, 51, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 34, 51, 0.10);
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 100px;
}

[data-theme="dark"] {
  --bg: #1a1c22;
  --surface: #24262e;
  --surface-hover: #2e3038;
  --text: #e2dee8;
  --text-secondary: #9a96a4;
  --text-muted: #5c5868;
  --accent: #8aacda;
  --accent-hover: #a0c0ea;
  --accent-light: #283040;
  --sage: #7aaa82;
  --sage-light: #253028;
  --sage-hover: #8aba92;
  --success: #6aaa7a;
  --success-light: #1e2e22;
  --warning: #d4a84a;
  --warning-light: #302a18;
  --danger: #c87070;
  --danger-light: #301c1c;
  --info: #6a9ac4;
  --info-light: #1c2636;
  --border: #363840;
  --border-hover: #484a54;
  --white: #24262e;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.20);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

[data-theme="dark"] body::before {
  opacity: 0.04;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 900px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 242, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

[data-theme="dark"] .nav {
  background: rgba(26, 28, 34, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__signin {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__signin:hover {
  color: var(--accent);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--sage {
  background: var(--sage);
  color: #fff;
}

.btn--sage:hover {
  background: var(--sage-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Browser mockup */
.browser-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.browser-mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.browser-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-mockup__dot--red { background: #e55; }
.browser-mockup__dot--yellow { background: #fb4; }
.browser-mockup__dot--green { background: #5b5; }

.browser-mockup__url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.browser-mockup__content {
  padding: 0;
  min-height: 280px;
}

/* Docs mockup inside browser */
.docs-mock {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  min-height: 280px;
  font-size: 0.7rem;
}

.docs-mock__sidebar {
  background: var(--surface);
  padding: 16px;
  border-right: 1px solid var(--border);
}

.docs-mock__sidebar-item {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.docs-mock__sidebar-item--active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.docs-mock__sidebar-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-mock__main {
  padding: 20px;
}

.docs-mock__main h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 8px;
}

.docs-mock__main p {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.docs-mock__method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  margin-right: 6px;
}

.docs-mock__method--get { background: #49cc90; }
.docs-mock__method--post { background: #61affe; }
.docs-mock__method--delete { background: #f93e3e; }

.docs-mock__endpoint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.docs-mock__code-panel {
  background: #1e1e2e;
  padding: 16px;
  color: #cdd6f4;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.6;
  border-left: 1px solid var(--border);
}

.docs-mock__code-panel .kw { color: #cba6f7; }
.docs-mock__code-panel .str { color: #a6e3a1; }
.docs-mock__code-panel .fn { color: #89b4fa; }
.docs-mock__code-panel .cm { color: #6c7086; }

/* ── Logos / Social Proof ── */
.logos {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos__title {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logos__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logos__item {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.02em;
}

/* ── Features ── */
.features {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header__overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 2px;
  border-top: 2px dashed var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Playground ── */
.playground {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.playground__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.playground__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.playground__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.playground__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playground__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.playground__feature svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.code-panel {
  background: #1e1e2e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-panel__tabs {
  display: flex;
  background: #181825;
  padding: 0 16px;
  gap: 0;
}

.code-panel__tab {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #6c7086;
  border-bottom: 2px solid transparent;
}

.code-panel__tab--active {
  color: #cdd6f4;
  border-bottom-color: var(--accent);
}

.code-panel__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #cdd6f4;
  overflow-x: auto;
}

.code-panel__body .kw { color: #cba6f7; }
.code-panel__body .str { color: #a6e3a1; }
.code-panel__body .fn { color: #89b4fa; }
.code-panel__body .cm { color: #6c7086; }
.code-panel__body .num { color: #fab387; }

/* ── Pricing ── */
.pricing {
  padding: 100px 0;
}

.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.pricing__toggle-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing__toggle-label--active {
  color: var(--accent);
  font-weight: 600;
}

.pricing__switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.pricing__switch--active {
  background: var(--accent);
}

.pricing__switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.pricing__switch--active::after {
  transform: translateX(22px);
}

.pricing__save {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  background: var(--success-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card--popular {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  position: relative;
  transform: scale(1.04);
}

.pricing-card--popular:hover {
  transform: scale(1.04) translateY(-2px);
}

.pricing-card--popular .pricing-card__desc,
.pricing-card--popular .pricing-card__feature {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card--popular .pricing-card__price-period {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-card--popular .btn--primary {
  background: #fff;
  color: var(--accent);
}

.pricing-card--popular .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.pricing-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  align-self: flex-start;
}

.pricing-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card__price {
  margin-bottom: 24px;
}

.pricing-card__price-amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-card__price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-card--popular .pricing-card__divider {
  background: rgba(255, 255, 255, 0.2);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card__feature svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.pricing-card--popular .pricing-card__feature svg {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Testimonials ── */
.testimonials {
  padding: 100px 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--warning);
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

[data-theme="dark"] .cta-banner {
  background: #283040;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn--primary {
  background: #fff;
  color: var(--accent);
  font-size: 1.05rem;
  padding: 14px 36px;
}

.cta-banner .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ── Footer ── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__social:hover {
  color: var(--accent);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

/* ── Compare (Why pay 10x more?) ── */
.compare {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.compare__table-wrap {
  max-width: 900px;
  margin: 48px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare__table th,
.compare__table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare__table tr:last-child td {
  border-bottom: none;
}

.compare__table thead th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.compare__table thead th:first-child {
  text-align: left;
}

.compare__table tbody td {
  text-align: center;
  color: var(--text-secondary);
}

.compare__table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.compare__us {
  background: var(--accent-light);
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.compare__price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.compare__price--strike {
  color: var(--text-muted);
  text-decoration: line-through;
}

.compare__footnote {
  max-width: 900px;
  margin: 16px auto 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Roadmap Preview ── */
.roadmap-preview {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.roadmap-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.roadmap-preview__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.roadmap-preview__card {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.roadmap-preview__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.roadmap-preview__card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.roadmap-preview__card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.roadmap-preview__cta {
  text-align: center;
  margin-top: 40px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card--popular {
    transform: scale(1);
  }
  .pricing-card--popular:hover {
    transform: translateY(-2px);
  }
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav__links--open {
    display: flex;
  }
  .nav__hamburger {
    display: flex;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 60px 0;
  }
  .docs-mock {
    grid-template-columns: 1fr;
  }
  .docs-mock__sidebar,
  .docs-mock__code-panel {
    display: none;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps::before {
    display: none;
  }
  .playground__inner {
    grid-template-columns: 1fr;
  }
  .pricing__grid {
    grid-template-columns: 1fr;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .roadmap-preview__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .compare__table th,
  .compare__table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
