:root {
  --bg-0: #0F0F12;
  --bg-1: #16161A;
  --bg-2: #1D1D22;
  --bg-3: #25252C;
  --hair: rgba(255,255,255,0.06);
  --hair-2: rgba(255,255,255,0.10);
  --text: #F1F1F4;
  --text-2: rgba(241,241,244,0.78);
  --text-3: rgba(241,241,244,0.55);
  --text-4: rgba(241,241,244,0.35);
  --accent: #7C5CFF;
  --accent-2: #B7A6FF;
  --rec: #DC2626;
  --success: #22C55E;
  --danger: #DC3545;
  --warning: #F59E0B;
  --max: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #0a0a0c;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Site-wide grid — exact match to Claude Design canvas:
   120px tiles, single L-shaped stroke per tile (top edge + left edge),
   so the whole page looks like it lives on the design canvas. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M120 0H0v120' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-position: 0 0;
}
/* Make sure all content sits above the fixed grid */
main { position: relative; z-index: 1; }

/* Hero gets an additional soft purple radial glow. */
.hero-bg {
  position: relative;
  isolation: isolate;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 1100px 600px at 50% -10%, rgba(124,92,255,0.22), transparent 60%);
}

/* Real brand SVG logos for the "Works in" strip */
.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}
.brand-row svg { display: block; flex-shrink: 0; opacity: 0.95; }
.brand-all { color: var(--text-3); }
.brand-all-tile {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(124,92,255,0.10);
  border: 1px dashed rgba(124,92,255,0.45);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
a { color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

.section { max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.section-narrow { max-width: 920px; margin: 0 auto; padding: 80px 24px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(124,92,255,0.10);
  border: 1px solid rgba(124,92,255,0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2A2A32 0%, #1A1A1F 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 0 rgba(0,0,0,0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, transform 60ms ease, border-color 120ms ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(124,92,255,0.6);
  box-shadow: 0 4px 14px rgba(124,92,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { background: #6E50EF; }
.btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--hair-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-secondary:hover { background: var(--bg-3); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }

.card {
  background: var(--bg-1);
  border: 1px solid var(--hair);
  border-radius: 14px;
}

@keyframes lt-cursor { 50% { opacity: 0; } }
@keyframes lt-pulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
@keyframes lt-bar { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }
@keyframes lt-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lt-spin { to { transform: rotate(360deg); } }

/* Mac chrome */
.macchrome {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-0);
  border: 1px solid var(--hair);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 6px 20px rgba(0,0,0,0.4);
}
.hero-mac { height: 460px; }
.hero-mac .hero-mac-body { height: calc(100% - 38px); }
@media (max-width: 800px) {
  .hero-mac { height: auto; }
  .hero-mac .hero-mac-body { height: 360px; padding: 16px 18px !important; font-size: 12px !important; }
}
@media (max-width: 480px) {
  .hero-mac .hero-mac-body { height: 320px; padding: 14px 14px !important; font-size: 11px !important; }
}
.macchrome-bar {
  height: 38px;
  background: rgba(20,20,24,0.9);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; padding: 0 14px;
  font-size: 13px; color: var(--text-3);
  position: relative;
}
.macchrome-dots { display: flex; gap: 8px; }
.macchrome-dots span { width: 12px; height: 12px; border-radius: 50%; }
.macchrome-dots span:nth-child(1) { background: #FF5F57; }
.macchrome-dots span:nth-child(2) { background: #FEBC2E; }
.macchrome-dots span:nth-child(3) { background: #28C840; }
.macchrome-title {
  position: absolute; left: 80px; right: 80px;
  text-align: center; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Pill (auto-cycle) */
.pill {
  width: 220px; height: 44px;
  border-radius: 999px;
  background: rgba(20,20,24,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px 0 10px;
  transition: border 200ms ease, box-shadow 200ms ease;
}
.pill[data-state="recording"] { border: 1px solid rgba(220,38,38,0.55); box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 24px rgba(220,38,38,0.35); }
.pill[data-state="processing"] { border: 1px solid rgba(124,92,255,0.45); box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 14px rgba(124,92,255,0.20); }
.pill[data-state="done"] { border: 1px solid rgba(34,197,94,0.55); box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 18px rgba(34,197,94,0.30); }

/* Logo B wordmark */
.logo-b { display: inline-flex; align-items: baseline; gap: 4px; }
.logo-b .word { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.035em; color: var(--text); line-height: 1; }
.logo-b .caret {
  display: inline-block; width: 3px; margin-left: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124,92,255,0.7), 0 0 2px rgba(255,255,255,0.4);
  animation: lt-cursor 1s steps(2) infinite;
  transform: translateY(2px);
}

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .nav-links { display: none !important; }
  .nav-bar { grid-template-columns: 1fr auto !important; padding: 0 16px !important; }

  .section { padding: 60px 18px; }
  .section-narrow { padding: 56px 18px; }

  /* Mac chrome scales down on mobile */
  .macchrome { height: auto !important; }
  .macchrome-bar { height: 32px; padding: 0 10px; font-size: 11px; }
  .macchrome-dots span { width: 10px; height: 10px; }
  .macchrome-title { left: 56px; right: 56px; font-size: 11px; }

  /* Pill — keep within bounds, center safely */
  .pill {
    width: min(86%, 240px);
    max-width: calc(100% - 24px);
  }

  /* Hero CTA buttons stack full-width on phones */
  .btn-lg { width: 100%; justify-content: center; }
  .hero-bg .btn-lg { max-width: 360px; }

  /* Comparison table — horizontal scroll on phones */
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp-wrap table { min-width: 640px; }

  /* Brand row spacing on small screens */
  .brand-row + .brand-row { margin-left: 0; }

  /* Footer grid stacks on phones */
  footer .grid-2 { grid-template-columns: 1fr !important; gap: 26px !important; }
  footer .grid-2 + div { flex-direction: column !important; gap: 8px; align-items: flex-start !important; }

  /* Final CTA padding tighter on phones */
  #cta > div { padding: 48px 20px !important; }
}

@media (max-width: 480px) {
  .macchrome-title { display: none; }
  .section { padding: 48px 16px; }
  .section-narrow { padding: 44px 16px; }
}
