/* ============================================
   Baton — Design System
   Inspired by snabb.no / basecoat
   ============================================ */

/* Typography — system font stacks */

/* CSS Variables */
:root {
  /* Colors — deep space palette */
  --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;
  --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);
  --muted: rgba(255, 255, 255, 0.04);

  /* Legacy aliases (used in other pages' inline styles) */
  --gold: var(--primary);
  --cream: var(--foreground);
  --cream-dim: var(--foreground-dim);
  --warm-brown: var(--surface);
  --warm-border: var(--border);

  /* Typography */
  --font-display:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, 'DejaVu Sans Mono', 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;

  /* Animation */
  --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);
}

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

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

/* 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;
}

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

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

/* Utility Classes */
.container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.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;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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);
}

/* ============================================
   Navigation — Frosted glass
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  transition: all 0.4s var(--ease-out-quart);
}

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

.nav-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 1.25rem 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;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.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);
}

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

.nav-links a:last-child {
  color: var(--primary);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(108, 138, 255, 0.3);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 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: var(--primary-bright);
}

/* ============================================
   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: all 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.btn-primary:hover {
  background: var(--primary-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 138, 255, 0.3);
}

.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 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  height: 2.5rem;
  height: auto;
}

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

/* ============================================
   Hero Section — snabb.no inspired
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem var(--container-padding) 5rem;
}

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

/* Decorative speed lines */
.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;
}

/* Gradient orbs */
.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;
}

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

.page-breadcrumbs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
}

.page-breadcrumbs ol {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0.65rem 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.85rem;
}

.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(--foreground);
}

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

.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.25rem;
}

.agent-intro-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

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

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

.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);
}

/* Hero Text */
.hero-headline {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.6s ease-out 0.1s forwards;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--foreground-dim);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fade-up 0.6s ease-out 0.3s forwards;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: fade-up 0.6s ease-out 0.4s forwards;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* Hero Screenshot */
.hero-screenshot {
  max-width: 1100px;
  margin: var(--space-2xl) auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: translateY(60px) perspective(1200px) rotateX(3deg);
  animation: screenshotReveal 1.2s var(--ease-out-expo) 0.9s forwards;
}

.hero-screenshot::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: none;
  pointer-events: none;
  z-index: 1;
}

.hero-screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}

@keyframes screenshotReveal {
  to {
    opacity: 1;
    transform: translateY(0) perspective(1200px) rotateX(0);
  }
}

/* Shared screenshot image class */
.sc-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

/* Screenshot lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 2rem;
}

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

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox-overlay.visible img {
  transform: scale(1);
}

/* ============================================
   Workflow Section — core value props
   ============================================ */
.workflow {
  padding: 5rem 0 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.workflow-block {
  background: var(--surface);
  padding: var(--space-xl);
}

.workflow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  margin-bottom: var(--space-md);
}

.workflow-icon svg {
  color: var(--primary);
}

.workflow-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.workflow-description {
  color: var(--foreground-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Section Header (shared)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--foreground);
  letter-spacing: -0.025em;
}

.section-subtitle {
  color: var(--foreground-dim);
  font-size: 1.05rem;
  margin-top: var(--space-sm);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Feature Articles — Alternating 2-col layout
   ============================================ */
.features-section {
  padding: 5rem 0 7rem;
}

.feature-article {
  margin-bottom: 5rem;
}

.feature-article:last-child {
  margin-bottom: 0;
}

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

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

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

.feature-article-text .feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.feature-article-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.feature-article-text p {
  font-size: 1.1rem;
  color: var(--foreground-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-article-text .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-article-text .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  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;
}

.feature-article-visual {
  display: flex;
  justify-content: center;
}

/* Screenshot in feature visual */
.feature-article-visual .feature-screenshot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow:
    0 0 60px rgba(108, 138, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.3);
  max-height: 500px;
}

.feature-article-visual .feature-screenshot .sc-screenshot-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Small feature cards with left border (like snabb.no B2B / local expertise) */
.feature-small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 5rem;
  margin-top: 5rem;
}

@media (min-width: 769px) {
  .feature-small-grid.feature-small-grid-dense {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 4rem;
  }
}

.feature-small-card {
  position: relative;
  padding-left: 2rem;
}

.feature-small-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(108, 138, 255, 0.5),
    rgba(108, 138, 255, 0.15),
    transparent
  );
}

.feature-small-card .feature-small-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

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

.feature-small-card .feature-small-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

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

/* ============================================
   Feature Thumbnail Grid — Tier 2 compact cards
   ============================================ */
.feature-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 5rem;
}

.feature-thumb-card {
  background: var(--surface);
  padding: var(--space-md);
  transition: background 0.3s ease;
}

.feature-thumb-card:hover {
  background: var(--surface-light);
}

.feature-thumb-screenshot {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-sm);
}

.feature-thumb-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-thumb-card p {
  color: var(--foreground-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Agents Section — Logo wall
   ============================================ */
.agents {
  padding: 5rem 0 7rem;
}

.agents-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.agent-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--space-lg) var(--space-sm);
  background: var(--surface);
  transition: all 0.3s var(--ease-out-quart);
  text-align: center;
}

.agent-badge:hover {
  background: var(--surface-light);
}

.agent-icon {
  font-size: 1.5rem;
  color: var(--primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--foreground);
  font-family: var(--font-sans);
}

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

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

.agent-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-lg);
}

.agent-feature-card {
  background: var(--surface);
  padding: var(--space-lg);
  transition: background 0.3s ease;
}

.agent-feature-card:hover {
  background: var(--surface-light);
}

.agent-feature-card svg {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.agent-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

/* ============================================
   Social Proof / Testimonials
   ============================================ */
.social-proof {
  padding: 5rem 0 7rem;
}

.testimonials {
  max-width: 680px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--foreground);
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

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

.testimonials .testimonial-card + .testimonial-card {
  margin-top: 1.5rem;
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.testimonial-source-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground-dim);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  padding: 5rem 0 7rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

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

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.3s var(--ease-out-quart);
  flex-shrink: 0;
  font-style: normal;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-bottom: var(--space-md);
  color: var(--foreground-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  text-align: center;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-2xl);
  background: var(--primary-subtle);
  margin-bottom: 2rem;
}

.cta-icon svg {
  color: var(--primary);
}

.cta-headline {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  margin-bottom: var(--space-md);
  color: var(--foreground);
  letter-spacing: -0.025em;
}

.cta-subtext {
  color: var(--foreground-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-cta-alt,
.cta-manual-link {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
}

.hero-cta-alt a,
.cta-manual-link a {
  color: var(--foreground-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hero-cta-alt a:hover,
.cta-manual-link a:hover {
  color: var(--primary);
}

.cta-buy-link {
  margin-top: var(--space-md);
}

.cta-buy-link a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.cta-buy-link a:hover {
  border-color: rgba(108, 138, 255, 0.4);
  color: var(--primary);
  background: var(--primary-subtle);
}

/* All Platforms Expandable Panel */
.all-platforms-toggle {
  cursor: pointer;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 0.75em;
}

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

.all-platforms-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.all-platforms-panel.open {
  opacity: 1;
}

.all-platforms-grid {
  display: flex;
  gap: 2px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: var(--space-md);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ap-platform {
  flex: 1;
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ap-platform-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
}

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

.ap-beta-tag {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--foreground-dim);
  background: var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
}

.ap-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ap-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-decoration: none;
  border-radius: 6px;
  color: var(--foreground-dim);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ap-download-link:hover {
  border-color: rgba(108, 138, 255, 0.3);
  color: var(--primary);
  background: var(--primary-subtle);
}

.download-early-warning {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #d4a053;
  margin: 8px 0 0;
}

.download-early-warning.visible {
  display: inline-flex;
}

.download-early-warning svg {
  flex-shrink: 0;
}

/* Setup & Verification Extras */
.ap-extras {
  text-align: center;
  margin-top: 8px;
}

.ap-extras-toggle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--foreground-dim);
  opacity: 0.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.ap-extras-toggle:hover {
  opacity: 0.8;
  color: var(--foreground);
}

.ap-extras-toggle.open {
  opacity: 0.7;
}

.ap-extras-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.ap-extras-panel.open {
  opacity: 1;
}

.ap-extras-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.ap-extras-col {
  background: var(--surface);
  padding: 14px 16px;
}

.ap-extras-heading {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

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

.ap-extras-text code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--surface-light);
  padding: 1px 5px;
  border-radius: 3px;
}

.ap-extras-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--foreground-dim);
  background: var(--background);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  line-height: 1.6;
}

.ap-extras-checksum-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  text-decoration: none;
}

.ap-extras-checksum-link:hover {
  text-decoration: underline;
}

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

.btn-downloading .download-label::after {
  content: ' ...';
}

.mobile-desktop-note {
  color: var(--foreground-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: var(--space-xs);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 540px) {
  .all-platforms-grid {
    flex-direction: column;
  }
  .ap-extras-columns {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--muted);
  padding: 2.5rem 0;
}

.footer-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-brand .logo-icon-svg {
  width: 20px;
  height: 20px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.footer-copyright {
  color: var(--foreground-dim);
  font-size: 0.7rem;
  margin-top: 0.5rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@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;
  }
}

/* Scroll reveal */
.fade-in-view {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

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

/* Stagger animation delays for children */
.stagger-children > *:nth-child(1) {
  transition-delay: 0s;
}
.stagger-children > *:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger-children > *:nth-child(3) {
  transition-delay: 0.15s;
}
.stagger-children > *:nth-child(4) {
  transition-delay: 0.2s;
}
.stagger-children > *:nth-child(5) {
  transition-delay: 0.25s;
}
.stagger-children > *:nth-child(6) {
  transition-delay: 0.3s;
}
.stagger-children > *:nth-child(7) {
  transition-delay: 0.35s;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .nav {
    background: rgba(8, 9, 10, 0.76);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition:
      transform 0.3s var(--ease-out-quart),
      background 0.4s var(--ease-out-quart);
  }

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

  .nav-inner {
    padding: 0.8rem var(--container-padding);
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .nav-logo {
    gap: 0.45rem;
  }

  .nav-logo .logo-icon-svg {
    width: 20px;
    height: 20px;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .nav-links a:last-child {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 5.1rem;
  }

  .hero-inner {
    padding: 2rem 0;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

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

  .feature-article-grid.reverse .feature-article-text,
  .feature-article-grid.reverse .feature-article-visual {
    order: unset;
  }

  .feature-small-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-thumb-grid {
    grid-template-columns: 1fr;
  }

  .agents-showcase {
    grid-template-columns: repeat(3, 1fr);
  }

  .agents-showcase .agent-badge:last-child {
    grid-column: span 2;
  }

  .agent-features-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0.7rem var(--container-padding);
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a:last-child {
    padding: 0.38rem 0.65rem;
    font-size: 0.76rem;
  }

  .agents-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-badge:last-child {
    grid-column: span 2;
  }

  .footer-links {
    gap: var(--space-sm);
  }
}
