/* ============================================
   Baton — Landing page styles
   Refined: Geist typography + Baton periwinkle
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* ——— Palette: Baton periwinkle blue + violet + cyan ——— */
  --primary: #6c8aff;
  --primary-bright: #8da6ff;
  --primary-dim: #4a6aef;
  --primary-glow: rgba(108, 138, 255, 0.25);
  --primary-subtle: rgba(108, 138, 255, 0.08);

  --accent-cyan: #5de4c7;
  --accent-violet: #a78bfa;

  /* Neutrals — near-black */
  --foreground: #e8eaed;
  --foreground-dim: #8b8f96;
  --foreground-quiet: #5a5e66;
  --background: #08090a;
  --background-darker: #050506;
  --surface: #111214;
  --surface-light: #1a1b1f;
  --surface-lighter: #222328;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.04);
  --muted: rgba(255, 255, 255, 0.04);

  /* Semantic signal colors */
  --signal-green: #7fc78d;
  --signal-amber: #f5b942;

  /* Legacy aliases */
  --gold: var(--primary);
  --cream: var(--foreground);
  --cream-dim: var(--foreground-dim);
  --warm-brown: var(--surface);
  --warm-border: var(--border);

  /* ——— Typography ——— */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
  --font-serif: var(--font-display);

  /* ——— Spacing ——— */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* ——— Layout ——— */
  --container-max: 1200px;
  --container-narrow: 1024px;
  --container-padding: 1.5rem;

  /* ——— Radius ——— */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* ——— Motion ——— */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Reset + base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
  position: relative;
}

/* Subtle noise for depth — matches the original atmosphere, no brand shift */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.8;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--foreground);
}

h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  background: var(--surface-lighter);
  border-radius: var(--radius-sm);
  color: var(--primary-bright);
  letter-spacing: -0.01em;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  z-index: 1000;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.gold {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent-violet) 50%,
    var(--accent-cyan) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  transition:
    transform 0.35s var(--ease-out-quart),
    background 0.4s var(--ease-out-quart),
    border-color 0.4s var(--ease-out-quart);
}

.nav.scrolled {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.nav.nav-hidden {
  transform: translateY(-110%);
}

.nav-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 1.1rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--foreground-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}

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

.nav-links a:last-child {
  color: var(--primary-bright);
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(108, 138, 255, 0.3);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav-links a:last-child:hover {
  background: rgba(108, 138, 255, 0.1);
  border-color: rgba(108, 138, 255, 0.5);
  color: #fff;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease,
    color 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 30px -10px var(--primary-glow),
    0 0 0 1px var(--primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    160px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.25),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--primary-bright);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 16px 40px -10px var(--primary-glow),
    0 0 0 1px var(--primary-bright);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--foreground);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--surface-lighter);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  height: auto;
}

.btn-large svg {
  pointer-events: none;
  flex-shrink: 0;
}

.btn-downloading {
  opacity: 0.8;
  pointer-events: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem var(--container-padding) 0;
  isolation: isolate;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--background) 0%, var(--background) 100%);
}

.hero-speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-speed-lines .speed-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 138, 255, 0.15), transparent);
  animation: speed-line 2s ease-in-out infinite;
}

.hero-speed-lines .speed-line:nth-child(1) {
  top: 25%;
}
.hero-speed-lines .speed-line:nth-child(2) {
  top: 50%;
  animation-delay: 0.3s;
  opacity: 0.5;
}
.hero-speed-lines .speed-line:nth-child(3) {
  top: 75%;
  animation-delay: 0.5s;
  opacity: 0.7;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-orb-1 {
  top: -160px;
  right: -160px;
  width: 384px;
  height: 384px;
  background: rgba(108, 138, 255, 0.05);
}

.hero-orb-2 {
  bottom: -80px;
  left: -80px;
  width: 256px;
  height: 256px;
  background: rgba(167, 139, 250, 0.03);
  animation-delay: 0.5s;
}

@keyframes speed-line {
  0% {
    opacity: 0;
    transform: translateX(-100%) scaleX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100%) scaleX(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-inner {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 5rem 0 2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 auto 1.5rem;
  max-width: 18ch;
  text-align: center;
  animation: fade-in-up 0.9s 0.05s var(--ease-out-expo) both;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--foreground-dim);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  animation: fade-in-up 1s 0.2s var(--ease-out-expo) both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Hero CTA
   ============================================ */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fade-in-up 1s 0.35s var(--ease-out-expo) both;
}

.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-cta-alt {
  font-size: 0.85rem;
  color: var(--foreground-quiet);
}

.hero-cta-alt .all-platforms-toggle {
  color: var(--foreground-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-cta-alt .all-platforms-toggle:hover {
  color: var(--primary-bright);
  border-bottom-color: var(--primary);
}

.all-platforms-toggle .toggle-arrow,
.ap-extras-toggle .toggle-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-quart);
}

.all-platforms-toggle.open .toggle-arrow,
.ap-extras-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.mobile-desktop-note {
  font-size: 0.9rem;
  color: var(--foreground-dim);
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.download-early-warning {
  font-size: 0.82rem;
  color: var(--signal-amber);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
}

/* ============================================
   Remind form
   ============================================ */
.remind-form {
  width: 100%;
  max-width: 26rem;
  margin: 0.75rem auto 0;
  padding: 1rem;
  background: rgba(17, 18, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
}

.remind-label {
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.remind-label-main {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.012em;
}

.remind-label-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--foreground-quiet);
  margin-top: 2px;
}

.remind-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.remind-email {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.remind-email:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.remind-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.remind-btn {
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.remind-btn:hover {
  background: var(--primary-bright);
}

.remind-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.remind-status {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.remind-status.success {
  background: rgba(127, 199, 141, 0.1);
  color: var(--signal-green);
  border: 1px solid rgba(127, 199, 141, 0.25);
}

.remind-status.error {
  background: rgba(245, 185, 66, 0.1);
  color: var(--signal-amber);
  border: 1px solid rgba(245, 185, 66, 0.25);
}

/* ============================================
   All-platforms panel
   ============================================ */
.all-platforms-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out-quart);
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.all-platforms-panel.open {
  margin-top: 1rem;
}

.all-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(17, 18, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.ap-platform {
  text-align: left;
}

.ap-platform-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.ap-platform-name svg {
  color: var(--foreground-dim);
}

.ap-beta-tag {
  font-size: 0.62rem;
  padding: 2px 6px;
  background: var(--primary-subtle);
  color: var(--primary-bright);
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.3rem;
}

.ap-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.ap-download-link:hover {
  background: var(--primary-subtle);
  color: var(--primary-bright);
  border-color: var(--primary);
}

.ap-extras {
  margin-top: 0.9rem;
  padding: 0 1.2rem 1.2rem;
}

.ap-extras-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  color: var(--foreground-dim);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.ap-extras-toggle:hover {
  color: var(--primary-bright);
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.ap-extras-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quart);
}

.ap-extras-panel.open {
  margin-top: 0.8rem;
}

.ap-extras-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.ap-extras-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.ap-extras-text {
  font-size: 0.82rem;
  color: var(--foreground-dim);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.ap-extras-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--background-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--foreground-dim);
  overflow-x: auto;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.ap-extras-checksum-link {
  color: var(--primary-bright);
  font-weight: 500;
  border-bottom: 1px solid var(--primary-subtle);
}

.ap-extras-checksum-link:hover {
  color: #fff;
  border-bottom-color: var(--primary);
}

/* ============================================
   Section header
   ============================================ */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--foreground-dim);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* ============================================
   Feature articles
   ============================================ */
.features-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

.features-section + .features-section {
  padding-top: 0;
}

.feature-article {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.feature-article + .feature-article {
  border-top: 1px solid var(--border-soft);
  padding-top: 4rem;
}

.feature-article-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

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

.feature-article-grid.reverse .feature-article-text {
  order: 2;
}

.feature-article-grid.reverse .feature-article-visual {
  order: 1;
}

.feature-article-text {
  position: relative;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--primary-subtle);
  border: 1px solid rgba(108, 138, 255, 0.22);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary-bright);
  letter-spacing: -0.005em;
  margin-bottom: 1.4rem;
}

.feature-tag svg {
  color: var(--primary);
}

.feature-article h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.1rem;
}

.feature-article p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--foreground-dim);
  max-width: 32rem;
}

.feature-article-visual {
  position: relative;
}

.feature-screenshot {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border) inset;
  transition: transform 0.4s var(--ease-out-quart);
}

.feature-screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(108, 138, 255, 0.05), transparent 50%);
  z-index: 1;
}

.feature-screenshot:hover {
  transform: translateY(-4px);
}

.sc-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* Demo video (YouTube facade) */
.hero-screenshot {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--border) inset;
  aspect-ratio: 16 / 9;
}

/* ============================================
   Agents showcase
   ============================================ */
.agents {
  padding: var(--space-2xl) 0;
  position: relative;
  background: radial-gradient(ellipse 700px 400px at 50% 0%, rgba(108, 138, 255, 0.05), transparent 70%);
  z-index: 2;
}

.agent-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.agent-feature-card {
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease-out-quart);
}

.agent-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-feature-card:hover {
  border-color: rgba(108, 138, 255, 0.28);
  transform: translateY(-3px);
}

.agent-feature-card:hover::before {
  opacity: 1;
}

.agent-feature-card > svg {
  color: var(--primary-bright);
  margin-bottom: 1rem;
}

.agent-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.55rem;
  letter-spacing: -0.018em;
}

.agent-feature-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--foreground-dim);
}

.agents-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 44rem;
  margin: 0 auto;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.agent-badge:hover {
  border-color: rgba(108, 138, 255, 0.35);
  background: var(--surface-light);
  transform: translateY(-1px);
}

.agent-badge-custom {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--foreground-dim);
}

.agent-badge-custom:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
  border-style: dashed;
}

.agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agent-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: -0.005em;
}

/* ============================================
   Social proof / testimonials
   ============================================ */
.social-proof {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  padding: 2.2rem 2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: 1.3rem;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.55;
}

.testimonial-card--editorial {
  background: linear-gradient(180deg, rgba(108, 138, 255, 0.05), var(--surface));
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground-dim);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  font-weight: 400;
  letter-spacing: -0.005em;
  padding-top: 1.2rem;
}

.testimonial-author {
  font-style: normal;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-style: normal;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--foreground-quiet);
}

/* ============================================
   Feature thumb grid (tier 2)
   ============================================ */
.feature-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-narrow);
  margin: 0 auto 3rem;
}

.feature-thumb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out-quart);
  display: flex;
  flex-direction: column;
}

.feature-thumb-card:hover {
  border-color: rgba(108, 138, 255, 0.28);
  transform: translateY(-3px);
}

.feature-thumb-screenshot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background-darker);
}

.feature-thumb-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  cursor: zoom-in;
}

.feature-thumb-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.2rem 1.25rem 0.4rem;
  letter-spacing: -0.015em;
}

.feature-thumb-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--foreground-dim);
  padding: 0 1.25rem 1.25rem;
  margin: 0;
}

/* ============================================
   Small feature grid
   ============================================ */
.feature-small-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.feature-small-card {
  padding: 1.4rem 1.4rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius);
  transition:
    transform 0.25s var(--ease-out-quart),
    border-left-color 0.25s,
    background 0.25s;
}

.feature-small-card:hover {
  transform: translateY(-2px);
  background: var(--surface-light);
  border-left-color: var(--primary-bright);
}

.feature-small-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.feature-small-header svg {
  color: var(--primary-bright);
  flex-shrink: 0;
}

.feature-small-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.012em;
}

.feature-small-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--foreground-dim);
}

.feature-small-card code {
  font-size: 0.78em;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 0;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary-bright);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quart);
}

.faq-answer p {
  padding-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground-dim);
  max-width: 40rem;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  z-index: 2;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  background: var(--primary-subtle);
  border: 1px solid rgba(108, 138, 255, 0.3);
  border-radius: 50%;
  color: var(--primary-bright);
  box-shadow: 0 0 40px -10px var(--primary-glow);
}

.cta-icon svg {
  transform: rotate(-20deg);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.cta-subtext {
  font-size: 1rem;
  color: var(--foreground-dim);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.cta-buy-link {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--foreground-dim);
}

.cta-buy-link a {
  color: var(--primary-bright);
  border-bottom: 1px solid var(--primary-subtle);
  padding-bottom: 1px;
  font-weight: 500;
  transition: border-color 0.2s;
}

.cta-buy-link a:hover {
  border-bottom-color: var(--primary);
  color: #fff;
}

.cta-manual-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--foreground-quiet);
}

.cta-manual-link .all-platforms-toggle {
  color: var(--foreground-dim);
  border-bottom: 1px dotted var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.cta-manual-link .all-platforms-toggle:hover {
  color: var(--primary-bright);
  border-bottom-color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1.6rem;
}

.footer-links a {
  color: var(--foreground-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-bright);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--foreground-quiet);
  margin-top: 0.8rem;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lightbox-overlay.visible {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

/* ============================================
   Breadcrumbs (agent pages)
   ============================================ */
.page-breadcrumbs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.page-breadcrumbs ol {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground-dim);
  font-size: 0.82rem;
  letter-spacing: -0.005em;
}

.page-breadcrumbs li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.28);
}

.page-breadcrumbs a {
  color: var(--foreground-dim);
  transition: color 0.2s ease;
}

.page-breadcrumbs a:hover {
  color: var(--primary-bright);
}

.page-breadcrumbs [aria-current='page'] {
  color: var(--foreground);
}

/* ============================================
   Agent-page intro card + feature list
   ============================================ */
.agent-intro {
  margin: 0 auto var(--space-xl);
  max-width: 920px;
}

.agent-intro-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.84), rgba(17, 18, 20, 0.68));
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.35rem;
}

.agent-intro-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.agent-intro-card p {
  color: var(--foreground-dim);
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.agent-intro-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.agent-intro-list li {
  color: var(--foreground-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.agent-intro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.agent-intro-list strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Checklist inside feature articles (agent pages) */
.feature-article-text .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-article-text .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foreground-dim);
  font-size: 0.95rem;
}

.feature-article-text .feature-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Featured agent badge ★ marker */
.agent-badge-featured .agent-name::after {
  content: '★';
  font-size: 0.55rem;
  color: var(--primary);
  margin-left: 4px;
  vertical-align: super;
}

/* Testimonial source label (Product Hunt row) */
.testimonial-source-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground-dim);
  letter-spacing: -0.005em;
}

/* Dense variant of small feature grid (landing lower section) */
@media (min-width: 769px) {
  .feature-small-grid.feature-small-grid-dense {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .feature-article-grid,
  .feature-article-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-article-grid.reverse .feature-article-text {
    order: 1;
  }
  .feature-article-grid.reverse .feature-article-visual {
    order: 2;
  }
  .agent-features-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding: 3.5rem 0 2rem;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0.9rem var(--container-padding);
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a:first-child,
  .nav-links a:nth-child(2) {
    display: none;
  }
  .hero-inner {
    padding: 3rem 0 2rem;
  }
  .hero-headline {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
  .hero-subheadline br {
    display: none;
  }
  .hero-subheadline {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  .feature-article {
    padding: 2rem 0 3rem;
  }
  .feature-article + .feature-article {
    padding-top: 3rem;
  }
  .feature-article h3 {
    font-size: 1.65rem;
  }
  .cta-content {
    padding: 3rem 1.5rem;
  }
  .testimonial-card {
    padding: 1.8rem 1.5rem;
  }
  .testimonial-card::before {
    left: 1rem;
    font-size: 3.4rem;
  }
  .feature-thumb-grid {
    grid-template-columns: 1fr;
  }
  .features-section {
    padding: 3rem 0;
  }
}

/* Ensure fade-in-view stays visible (JS no longer animates these) */
.fade-in-view {
  opacity: 1;
}

.stagger-children {
  opacity: 1;
}
