/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0A0A0C;
  --bg-card: #111114;
  --bg-elevated: #18181C;
  --border: rgba(255,255,255,0.06);
  --text: #F0F0F2;
  --text-dim: rgba(255,255,255,0.45);
  --text-muted: rgba(255,255,255,0.25);
  --teal: #00DED6;
  --teal-glow: rgba(0,222,214,0.15);
  --coral: #F24D5A;
  --coral-glow: rgba(242,77,90,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ─── Layout ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ─── Typography ─── */
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.price-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-was {
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-now {
  color: var(--text);
  font-weight: 700;
}

.section-kicker-center {
  text-align: center;
  margin-bottom: 8px;
}

.section-title-center {
  text-align: center;
}

.hotkey-highlight-output { color: var(--teal); }
.hotkey-highlight-input { color: var(--coral); }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,12,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-image {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links .btn-primary { color: #062B2A; }
.nav-links .btn-primary:hover { color: #062B2A; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #00DED6 0%, #00B8B2 100%);
  color: #062B2A;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--teal-glow); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero {
  padding-top: 144px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  display: block;
  margin: 0 auto 28px;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 80px var(--teal-glow);
}

.hero .label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 22px;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--teal), #4DFFF7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg { width: 14px; height: 14px; opacity: 0.5; }

/* ─── Toast Demo ─── */
.demo-section { padding: 40px 0 96px; }

/* ─── iMac Mockup ─── */
.imac-mockup {
  max-width: 680px;
  margin: 0 auto;
}

.imac-screen {
  background: #1a1a1e;
  border-radius: 12px 12px 0 0;
  border: 2px solid #2a2a2e;
  border-bottom: none;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.imac-desktop {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.imac-menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.imac-menubar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.imac-menubar-icon {
  display: flex;
  align-items: center;
}

.imac-menubar-icon--accent {
  color: var(--teal);
}

.imac-wallpaper {
  flex: 1;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,80,120,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(40,0,80,0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d12 0%, #141420 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  position: relative;
}

.imac-chin {
  height: 20px;
  background: linear-gradient(180deg, #2a2a2e 0%, #222226 100%);
  border-left: 2px solid #2a2a2e;
  border-right: 2px solid #2a2a2e;
  border-radius: 0 0 2px 2px;
}

.imac-stand-neck {
  width: 80px;
  height: 40px;
  margin: 0 auto;
  background: linear-gradient(180deg, #28282c 0%, #202024 100%);
  border-left: 2px solid #2a2a2e;
  border-right: 2px solid #2a2a2e;
}

.imac-stand-base {
  width: 160px;
  height: 8px;
  margin: 0 auto;
  background: linear-gradient(180deg, #28282c 0%, #1e1e22 100%);
  border-radius: 0 0 6px 6px;
  border: 2px solid #2a2a2e;
  border-top: none;
}

/* Toast inside mockup */
.toast-mock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: default;
  max-width: 280px;
  width: 100%;
  animation: toastPulse 4s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-mock.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.5s var(--ease-in-out);
}

.toast-icon.output { background: var(--teal-glow); color: var(--teal); }
.toast-icon.input { background: var(--coral-glow); color: var(--coral); }
.toast-icon svg { width: 16px; height: 16px; }

.toast-text h4 {
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.4s;
}

.toast-text p {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 1px;
  transition: all 0.4s;
}

.toast-label {
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes toastPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 4px 24px rgba(0,222,214,0.1); }
}

/* ─── Demo Keys ─── */
.demo-keys {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.demo-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 3px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: -apple-system, system-ui, monospace;
  color: var(--text-dim);
  transition: all 0.12s ease;
}

.demo-key.pressed {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.demo-key.pressed.teal {
  background: var(--teal-glow);
  border-color: rgba(0,222,214,0.3);
  color: var(--teal);
}

.demo-key.pressed.coral {
  background: var(--coral-glow);
  border-color: rgba(242,77,90,0.3);
  color: var(--coral);
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.feature-card:hover::before { opacity: 0.6; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.08);
}

.feature-card:hover .feature-icon.teal {
  box-shadow: 0 6px 24px rgba(0,222,214,0.25);
}

.feature-card:hover .feature-icon.coral {
  box-shadow: 0 6px 24px rgba(242,77,90,0.25);
}

.feature-icon.teal { background: var(--teal-glow); }
.feature-icon.coral { background: var(--coral-glow); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.teal svg { stroke: var(--teal); }
.feature-icon.coral svg { stroke: var(--coral); }
.feature-icon.teal svg .fi-fill { fill: var(--teal); opacity: 0.25; }
.feature-icon.coral svg .fi-fill { fill: var(--coral); opacity: 0.25; }

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* ─── Hotkey Showcase ─── */
.hotkey-section {
  position: relative;
}

.hotkey-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--coral-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hotkey-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hotkey-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.key-combo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  cursor: default;
}

.key-combo:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.key-combo.is-pressed {
  transform: scale(0.97);
}

.key-combo .keys {
  display: flex;
  gap: 6px;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: -apple-system, system-ui, monospace;
  color: var(--text);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
  transition: all 0.2s;
}

.key--compact {
  min-width: auto;
  padding: 0 8px;
  font-size: 0.75rem;
}

.key-combo:hover .key {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

.key-combo .combo-label {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.key-combo .combo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.key-combo .combo-dot.teal { background: var(--teal); box-shadow: 0 0 12px var(--teal-glow); }
.key-combo .combo-dot.coral { background: var(--coral); box-shadow: 0 0 12px var(--coral-glow); }
.combo-dot-muted { background: var(--text-muted); }

.hotkey-text .label { margin-bottom: 16px; display: inline-block; }
.hotkey-text h2 { margin-bottom: 16px; }
.hotkey-text p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }

/* ─── Comparison ─── */
.comparison-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.comparison-section .label { margin-bottom: 16px; display: inline-block; }
.comparison-section h2 { margin-bottom: 12px; }
.comparison-section .section-subtitle { color: var(--text-dim); font-size: 1rem; }

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.comparison-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th:nth-child(3) { color: var(--teal); }

.comparison-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.comparison-table tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}

.comparison-table tbody td:nth-child(3) {
  color: var(--text);
}

.check { color: var(--teal); font-weight: 700; }
.cross { color: var(--text-muted); }

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 36px; }

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-kicker {
  margin-bottom: 16px;
  display: inline-block;
}

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

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

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

footer a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--teal); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links a:not(.btn-primary) { display: none; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  .hotkey-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hotkey-text { order: -1; }

  /* Comparison table → stacked cards on mobile */
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
  }

  .comparison-table thead { display: none; }

  .comparison-table tbody tr {
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .comparison-table tbody td {
    padding: 6px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
  }

  .comparison-table tbody td:first-child {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }

  .comparison-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
  }

  .imac-mockup { max-width: 100%; }
  .imac-menubar { font-size: 8px; padding: 3px 8px; }
  .imac-menubar-left { gap: 8px; }
  .imac-wallpaper .toast-mock { max-width: 220px; padding: 8px 10px; gap: 8px; }
  .toast-icon { width: 26px; height: 26px; }
  .toast-icon svg { width: 13px; height: 13px; }
  .toast-text h4 { font-size: 0.65rem; }
  .toast-text p { font-size: 0.5rem; }

  footer .container { flex-direction: column; gap: 16px; text-align: center; }

  .hero {
    padding-top: 132px;
  }
}

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-up,
  .fade-up.visible,
  .feature-card,
  .feature-icon,
  .btn-primary,
  .btn-secondary,
  .key-combo,
  .key,
  .demo-key,
  .toast-mock,
  .toast-icon,
  .toast-text h4,
  .toast-text p {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ── FAQ Section ──────────────────────────────────── */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-radius: 12px;
  background: var(--surface, #1a1a1a);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.75;
}
