/* ═══════════════════════════════════════════════
   TERMINAL CHAT — Landing
   Monochrome workspace. True black + squircle.
   Matched to the Terminal Chat app design system.
   ═══════════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ── Surfaces (solid tokens — no background opacity) ── */
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #1a1a1a;
  --bg-elevated: #242424;
  --bg-deep: #050505;

  /* ── Borders (opacity allowed — edges, not fills) ── */
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.26);

  /* ── Text ── */
  --text: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --ink-2: #8a8a8a; /* monochrome headline sheen */

  /* ── "Accent" = monochrome ink (white is the brand) ── */
  --accent: #f0f0f0;
  --accent-hover: #ffffff;
  --accent-on: #0a0a0a;
  --accent-soft: #1c1c1c; /* solid neutral tint */
  --accent-soft-strong: #242424;

  /* ── Lighting (opacity allowed — scrim/glow) ── */
  --accent-glow: rgba(255, 255, 255, 0.05);
  --accent-glow-strong: rgba(255, 255, 255, 0.09);
  --orb: rgba(255, 255, 255, 0.05);

  /* ── Code syntax (kept subtle; code is conventionally tinted) ── */
  --code-string: #c9b18a;
  --code-num: #a8a3c4;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 40px 120px -16px rgba(0, 0, 0, 0.7);

  /* ── Radius (squircle is applied progressively below) ── */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --squircle-mult: 0.72;

  /* ── Type — system stack (mirrors the app) ── */
  --font-display: ui-sans-serif, -apple-system, system-ui, "Segoe UI",
    Helvetica, "Apple Color Emoji", Arial, sans-serif;
  --font-body: var(--font-display);
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco,
    "Cascadia Code", "Liberation Mono", monospace;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-card: #fafafa;
  --bg-elevated: #f0f0f0;
  --bg-deep: #f1f1f1;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.22);

  --text: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #737373;
  --ink-2: #6b6b6b;

  --accent: #0a0a0a;
  --accent-hover: #000000;
  --accent-on: #ffffff;
  --accent-soft: #efefef;
  --accent-soft-strong: #e8e8e8;

  --accent-glow: rgba(0, 0, 0, 0.04);
  --accent-glow-strong: rgba(0, 0, 0, 0.06);
  --orb: rgba(0, 0, 0, 0.04);

  --code-string: #b45309;
  --code-num: #6366f1;

  --shadow-sm: 0 1px 2px rgba(15, 23, 30, 0.05);
  --shadow-md: 0 8px 32px rgba(15, 23, 30, 0.07);
  --shadow-lg: 0 24px 80px rgba(15, 23, 30, 0.1);
  --shadow-xl: 0 40px 120px -16px rgba(15, 23, 30, 0.18);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.006em;
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: 6px;
}

/* ── Squircle signature (progressive enhancement) ──────
   Rectangular surfaces get Apple-style smooth corners
   where supported; everywhere else they fall back to the
   border-radius each component already declares. */
@supports (corner-shape: squircle) {
  .btn,
  .theme-toggle,
  .tile,
  .case-group,
  .step,
  .price-card,
  .faq-item,
  .mockup-window,
  .mockup-floating,
  .mockup-input,
  .hero-screenshot-inner,
  .cta-box,
  .security-box,
  .model-chip,
  .memory-row,
  .wf-step,
  .tool-call,
  .tile-code,
  .tile-doc,
  .tile-browser,
  .tile-palette,
  .price-card .btn,
  .step-num {
    corner-shape: squircle;
  }
}

/* ── Background grid ───────────────────────────── */
.dot-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--text-muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.035;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 62%);
}

[data-theme="light"] .dot-grid { opacity: 0.05; }

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

.container--wide {
  max-width: 1320px;
}

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

/* ── Animations ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50%      { transform: translate(-50%, -3%) scale(1.06); }
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes type-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.logo-icon { color: var(--text); transition: transform var(--transition); }
.logo:hover .logo-icon { transform: translateX(2px); }

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.btn-nav {
  background: var(--accent);
  color: var(--accent-on);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all var(--transition);
}

@supports (corner-shape: squircle) {
  .btn-nav { corner-shape: squircle; }
}

.btn-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 14px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
}
.mobile-menu.open { display: flex; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px var(--accent-glow-strong);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

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

.btn-lg {
  padding: 13px 26px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.btn-block { width: 100%; }

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════
   HERO — Asymmetric
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  background: radial-gradient(circle, var(--orb) 0%, transparent 65%);
}

.hero-orb--1 {
  width: 760px;
  height: 760px;
  top: -26%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  animation: orb-drift 18s ease-in-out infinite;
}

.hero-orb--2 {
  width: 440px;
  height: 440px;
  top: 16%;
  right: -12%;
  opacity: 0.6;
  filter: blur(100px);
}

.hero-orb--3 {
  width: 360px;
  height: 360px;
  top: 20%;
  left: -10%;
  opacity: 0.5;
  filter: blur(100px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  padding-bottom: 48px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  animation: fadeInUp 0.6s var(--ease-out) both;
  transition: all var(--transition);
}

.hero-badge:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-badge-arrow {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.hero-badge:hover .hero-badge-arrow {
  transform: translateX(2px);
  color: var(--text);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  color: var(--text);
  animation: fadeInUp 0.6s var(--ease-out) 0.08s both;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(170deg, var(--text) 28%, var(--ink-2) 128%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 32px;
  font-weight: 400;
  animation: fadeInUp 0.6s var(--ease-out) 0.16s both;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.6s var(--ease-out) 0.24s both;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: fadeInUp 0.6s var(--ease-out) 0.32s both;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-check { color: var(--text); }

/* ── Hero mockup (right side) ─────────────────── */
.hero-mockup {
  position: relative;
  animation: fadeInUp 0.9s var(--ease-out) 0.4s both;
}

.mockup-window {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 80px -24px var(--accent-glow-strong);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.mockup-dots { display: inline-flex; gap: 6px; }
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.mockup-dot--r { background: #ff5f56; }
.mockup-dot--y { background: #ffbd2e; }
.mockup-dot--g { background: #27c93f; }

.mockup-tabs {
  display: inline-flex;
  margin-left: 16px;
  font-size: 0.74rem;
  color: var(--text-muted);
  gap: 14px;
}

.mockup-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
}

.mockup-tab.active {
  background: var(--bg-elevated);
  color: var(--text);
}

.mockup-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  display: inline-block;
}

.mockup-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 1px;
}

.msg-avatar--user {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.msg-avatar--ai {
  background: var(--accent);
  color: var(--accent-on);
}

.msg-body { flex: 1; min-width: 0; }
.msg-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.msg-text {
  color: var(--text);
  line-height: 1.55;
  font-size: 0.86rem;
}

.tool-call {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-call-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-call-head-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.tool-call-line { color: var(--text); }
.tool-call-line .k { color: var(--text); font-weight: 600; }
.tool-call-line .s { color: var(--code-string); }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.mockup-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mockup-input-text {
  flex: 1;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.mockup-input-text::after {
  content: "│";
  color: var(--text);
  margin-left: 1px;
  animation: type-cursor 1s steps(2) infinite;
  font-weight: 300;
}

.mockup-input-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-secondary);
}

.mockup-floating {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-floating--top {
  top: -22px;
  right: -16px;
  z-index: 2;
}

.mockup-floating--bottom {
  bottom: -22px;
  left: -16px;
  z-index: 2;
}

.mockup-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
}

.mockup-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.mockup-floating--bottom svg { stroke: var(--text); }

/* ── Hero screenshot (full-width below) ───────── */
.hero-screenshot {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 0 24px;
  animation: fadeInUp 0.9s var(--ease-out) 0.5s both;
}

.hero-screenshot-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl), 0 0 160px -40px var(--accent-glow-strong);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-img--light { display: none; }
.hero-img--dark  { display: block; }
[data-theme="light"] .hero-img--light { display: block; }
[data-theme="light"] .hero-img--dark  { display: none; }

.hero-screenshot-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   PROVIDER MARQUEE
   ═══════════════════════════════════════════════ */
.providers {
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.providers-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 600;
}

.providers-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.providers-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 72px;
  animation: scroll-marquee 40s linear infinite;
  padding: 8px 32px;
}

.providers-marquee:hover .providers-track {
  animation-play-state: paused;
}

.provider-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
  user-select: none;
}

[data-theme="dark"] .provider-logo {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .provider-logo {
  filter: brightness(0);
}

.provider-logo:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   SECTIONS — Shared
   ═══════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-header {
  margin-bottom: 64px;
  max-width: 760px;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(170deg, var(--text) 24%, var(--ink-2) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  font-weight: 400;
  line-height: 1.6;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════
   BENTO FEATURE GRID
   ═══════════════════════════════════════════════ */
.features {
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-soft) 0%, transparent 48%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}

.tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tile-eyebrow svg { color: var(--text-secondary); }

.tile-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.2;
  color: var(--text);
}

.tile-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 360px;
}

/* Bento layout — desktop */
.tile--models    { grid-column: span 4; grid-row: span 2; padding: 36px; }
.tile--sandbox   { grid-column: span 2; grid-row: span 2; }
.tile--docs      { grid-column: span 3; }
.tile--browser   { grid-column: span 3; }
.tile--memory    { grid-column: span 2; }
.tile--workflows { grid-column: span 2; }
.tile--palette   { grid-column: span 2; }

/* ── Tile: Models picker ──────────────────────── */
.tile--models {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.tile-models-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.model-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}

.model-chip:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.model-chip-logo {
  height: 14px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
}

[data-theme="dark"] .model-chip-logo { filter: brightness(0) invert(1); }
[data-theme="light"] .model-chip-logo { filter: brightness(0); }

.model-chip--more {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
  justify-content: center;
}

/* ── Tile: Sandbox code ───────────────────────── */
.tile--sandbox { background: var(--bg-card); }

.tile-code {
  margin-top: auto;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tile-code .k { color: var(--text); font-weight: 600; }
.tile-code .s { color: var(--code-string); }
.tile-code .c { color: var(--text-muted); }
.tile-code .n { color: var(--code-num); }

.tile-code-output {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  color: var(--text);
}

/* ── Tile: Docs preview ───────────────────────── */
.tile--docs {
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card) 60%, var(--accent-soft) 100%);
}

.tile-doc {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-line {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
}

.doc-line--title {
  height: 9px;
  width: 60%;
  background: var(--text-secondary);
  margin-bottom: 4px;
}

.doc-line--90 { width: 90%; }
.doc-line--70 { width: 70%; }
.doc-line--50 { width: 50%; }

.doc-line--accent { background: var(--text); width: 30%; }

/* ── Tile: Browser control ────────────────────── */
.tile--browser {
  background: var(--bg-card);
  position: relative;
}

.tile-browser {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tile-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tile-browser-bar-dots {
  display: inline-flex;
  gap: 4px;
}

.tile-browser-bar-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-elevated);
}

.tile-browser-action {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.tile-browser-action-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-on);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile-browser-action-text {
  color: var(--text);
}

.tile-browser-action-text .em {
  color: var(--text);
  font-weight: 600;
}

/* ── Tile: Memory ─────────────────────────────── */
.tile--memory { background: var(--bg-card); }

.tile-memory {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memory-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.78rem;
  color: var(--text);
}

.memory-row svg {
  color: var(--text);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Tile: Workflows ──────────────────────────── */
.tile--workflows { background: var(--bg-card); }

.tile-workflow {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.78rem;
  color: var(--text);
}

.wf-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 5px;
}

/* ── Tile: Palette ────────────────────────────── */
.tile--palette {
  background: var(--bg-card);
}

.tile-palette {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.palette-input {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-input::after {
  content: "│";
  color: var(--text);
  animation: type-cursor 1s steps(2) infinite;
}

.palette-item {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-item.active {
  background: var(--accent-soft);
  color: var(--text);
}

.palette-item-key {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.case-group:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.case-group h3 svg {
  flex-shrink: 0;
  color: var(--text);
  padding: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
}

.case-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-group li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}

.case-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════ */
.how-it-works {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.step {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   SECURITY
   ═══════════════════════════════════════════════ */
.security-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.security-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 50%, var(--accent-soft) 0%, transparent 58%);
  pointer-events: none;
}

.security-content { position: relative; }

.security-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  line-height: 1.15;
  color: var(--text);
}

.security-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

.security-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.sec-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.sec-point svg {
  color: var(--text);
  flex-shrink: 0;
  padding: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
}

.security-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-shield-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.security-shield svg {
  position: relative;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */
.pricing {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, transparent 32%),
    var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-strong), 0 24px 60px -24px var(--accent-glow-strong);
}

.price-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-on);
  font-size: 0.7rem;
  font-weight: 650;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.price-tier {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-bottom: 6px;
  line-height: 1;
  color: var(--text);
}

.price-unit {
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--text-muted);
  margin-left: 2px;
}

.price-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.55;
  min-height: 38px;
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 22px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
}

.price-features li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 7.5px;
  width: 6px;
  height: 3px;
  border-left: 1.4px solid var(--text);
  border-bottom: 1.4px solid var(--text);
  transform: rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: color var(--transition);
  letter-spacing: -0.015em;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  margin-top: -3px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
  border-color: var(--text);
}

.faq-item summary:hover { color: var(--text); }

.faq-answer { padding: 0 24px 22px; }

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════ */
.final-cta { padding: 80px 0 120px; }

.cta-box {
  position: relative;
  text-align: center;
  padding: 88px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-glow-strong) 0%, transparent 58%),
    radial-gradient(circle at 0% 100%, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--text-muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.035;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

.cta-box .section-tag {
  position: relative;
  margin-bottom: 16px;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  position: relative;
  line-height: 1.15;
  color: var(--text);
}

.cta-box h2 em {
  font-style: normal;
  background: linear-gradient(170deg, var(--text) 24%, var(--ink-2) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn { position: relative; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
  overflow: hidden;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  background: linear-gradient(180deg, var(--text-secondary) 0%, transparent 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.14;
  margin-bottom: -10px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 56px;
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27c93f;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-mockup { max-width: 520px; margin: 0 auto; }
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
  .tile--models    { grid-column: span 4; grid-row: span 2; }
  .tile--sandbox   { grid-column: span 2; grid-row: span 2; }
  .tile--docs      { grid-column: span 2; }
  .tile--browser   { grid-column: span 2; }
  .tile--memory    { grid-column: span 2; }
  .tile--workflows { grid-column: span 2; }
  .tile--palette   { grid-column: span 4; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .security-box { grid-template-columns: 1fr; padding: 48px 32px; gap: 32px; }
  .security-shield { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .mobile-menu-btn { display: flex; }

  section { padding: 80px 0; }

  .hero { padding: 110px 0 0; }

  .hero-screenshot { margin-top: 44px; }

  .hero-orb--1 { width: 440px; height: 440px; }
  .hero-orb--2 { width: 280px; height: 280px; }
  .hero-orb--3 { width: 220px; height: 220px; }

  .mockup-floating { display: none; }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .tile { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 240px; }

  .cases-grid,
  .steps { grid-template-columns: 1fr; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cta-box { padding: 56px 24px; }

  .section-header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-orb--1 { width: 320px; height: 320px; }
  .hero-orb--2 { width: 200px; height: 200px; }
  .hero-orb--3 { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
