@import url('https://cdn.jsdelivr.net/fontsource/fonts/commit-mono@latest/index.css');

@font-face {
  font-family: "Plantin MT Pro";
  src: url("/fonts/PlantinNowVariable-Upright.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plantin MT Pro";
  src: url("/fonts/PlantinNowVariable-Italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Departure Mono";
  src: url("/fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════
   DESIGN SYSTEM & TOKENS — HeyHi Onboarding Redesign
   ═══════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Backgrounds */
  --bg-base: #1a1a1a;
  --bg-surface: #242424;
  --bg-surface-alt: #2a2a2a;
  --bg-elevated: #303030;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-active: rgba(217, 119, 76, 0.10);
  --bg-input: rgba(0, 0, 0, 0.25);
  --bg-overlay: rgba(0, 0, 0, 0.70);
  --bg-nav: rgba(26, 26, 26, 0.75);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(217, 119, 76, 0.5);

  /* Text */
  --text-primary: #ececec;
  --text-secondary: #a0a0a0;
  --text-tertiary: #787878;
  --text-muted: #555555;
  --text-inverse: #1a1a1a;

  /* Accent — warm coral */
  --accent-primary: #d9774c;
  --accent-primary-hover: #e08a64;
  --accent-primary-muted: rgba(217, 119, 76, 0.14);
  --accent-success: #4abe8a;
  --accent-success-muted: rgba(74, 190, 138, 0.12);
  --accent-warning: #e5a84b;
  --accent-warning-muted: rgba(229, 168, 75, 0.12);
  --accent-error: #e05c5c;
  --accent-error-muted: rgba(224, 92, 92, 0.10);
  --accent-info: #5b9bd5;
  --accent-info-muted: rgba(91, 155, 213, 0.12);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #d9774c 0%, #c4613a 100%);
  --gradient-success: linear-gradient(135deg, #4abe8a 0%, #36996d 100%);
  --gradient-surface: linear-gradient(180deg, #242424 0%, #1a1a1a 100%);
  --gradient-glow: radial-gradient(circle, rgba(217, 119, 76, 0.08) 0%, transparent 70%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(217, 119, 76, 0.15);
  --shadow-glow-sm: 0 0 12px rgba(217, 119, 76, 0.08);
  
  /* Code blocks */
  --bg-code: rgba(0, 0, 0, 0.4);
  --bg-code-inline: rgba(217, 119, 76, 0.10);
  --text-code-inline: #e8a87c;
  --text-code: #d4d4d4;
  
  /* Social Proofs Opacity */
  --logo-opacity: 0.5;
}

[data-theme="light"] {
  color-scheme: light;

  /* Backgrounds — cream */
  --bg-base: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F5F4F0;
  --bg-elevated: #FFFFFF;
  --bg-hover: rgba(0, 0, 0, 0.03);
  --bg-active: rgba(196, 97, 58, 0.08);
  --bg-input: #FFFFFF;
  --bg-overlay: rgba(0, 0, 0, 0.40);
  --bg-nav: rgba(250, 249, 245, 0.8);

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-focus: rgba(196, 97, 58, 0.45);

  /* Text */
  --text-primary: #2D2B27;
  --text-secondary: #6B6560;
  --text-tertiary: #8E887F;
  --text-muted: #B5AFA6;
  --text-inverse: #FFFFFF;

  /* Accent — terracotta */
  --accent-primary: #C4613A;
  --accent-primary-hover: #B5522E;
  --accent-primary-muted: rgba(196, 97, 58, 0.10);
  --accent-success: #2E8B57;
  --accent-success-muted: rgba(46, 139, 87, 0.10);
  --accent-warning: #C4892A;
  --accent-warning-muted: rgba(196, 137, 42, 0.10);
  --accent-error: #C44040;
  --accent-error-muted: rgba(196, 64, 64, 0.08);
  --accent-info: #4178BE;
  --accent-info-muted: rgba(65, 120, 190, 0.10);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #C4613A 0%, #A8502F 100%);
  --gradient-success: linear-gradient(135deg, #2E8B57 0%, #267349 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #FAF9F5 100%);
  --gradient-glow: radial-gradient(circle, rgba(196, 97, 58, 0.06) 0%, transparent 70%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(196, 97, 58, 0.08);
  --shadow-glow-sm: 0 0 12px rgba(196, 97, 58, 0.06);

  /* Code blocks */
  --bg-code: #F5F2EB;
  --bg-code-inline: rgba(196, 97, 58, 0.08);
  --text-code-inline: #A85232;
  --text-code: #3C3C3C;

  /* Social Proofs Opacity */
  --logo-opacity: 0.7;
}

:root {
  /* Radius Scale */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Fonts */
  --font-heading: 'Plantin MT Pro', Georgia, serif;
  --font-body: 'Plantin MT Pro', Georgia, serif;
  --font-mono: 'Commit Mono', 'SFMono-Regular', ui-monospace, Menlo, Monaco, Consolas, monospace;
  --font-accent-mono: 'Departure Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;
}

/* ═══════════════════════════════════════════════
   BASE & RESET STYLES
   ═══════════════════════════════════════════════ */

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Layout Containers */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   THEME TRANSITIONS
   ═══════════════════════════════════════════════ */

html.theme-transitioning,
html.theme-transitioning * {
  transition: background-color var(--duration-slow) var(--ease-out),
              color var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out) !important;
}

/* Ambient glow background decoration */
.ambient-glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 800px;
  background: var(--gradient-glow);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px var(--accent-primary-muted);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 76, 0.4);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(196, 97, 58, 0.4);
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

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

.btn-glow {
  position: relative;
  z-index: 1;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  opacity: 0.2;
  filter: blur(12px);
  z-index: -1;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-glow:hover::after {
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 68px;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-slow) var(--ease-out);
}

.navbar.scrolled {
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.logo-cursor {
  color: var(--accent-primary);
  animation: blink 1.2s step-end infinite;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links .active-link {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Slider */
.theme-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn {
  background: transparent;
  border: 1px solid var(--border-default);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.theme-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
  border-color: var(--border-strong);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-btn .sun-icon {
  display: none;
}

.theme-btn .moon-icon {
  display: block;
}

[data-theme="light"] .theme-btn .sun-icon {
  display: block;
}

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

.nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */

.hero-section {
  padding-top: 170px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-xs);
}

.hero-badge .badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.hero-title .highlight {
  color: var(--accent-primary);
  display: inline;
}

.hero-title .highlight .italic {
  font-style: italic;
  font-weight: 500;
}

/* Crisp Focus Lens Reveal Animations */
@keyframes badge-focus-reveal {
  0% {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-focus-reveal {
  0% {
    filter: blur(20px);
    opacity: 0;
    letter-spacing: 4px;
    transform: scale(0.97);
  }
  40% {
    filter: blur(8px);
    opacity: 0.5;
  }
  100% {
    filter: blur(0);
    opacity: 1;
    letter-spacing: -1.5px;
    transform: scale(1);
  }
}

@keyframes subtitle-focus-reveal {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-focus {
  opacity: 0;
}

.delay-1.animate-focus {
  animation: badge-focus-reveal 0.8s var(--ease-out) forwards;
  animation-delay: 100ms;
}

.delay-2.animate-focus {
  animation: title-focus-reveal 1.4s var(--ease-out) forwards;
  animation-delay: 250ms;
}

.delay-3.animate-focus {
  animation: subtitle-focus-reveal 1.2s var(--ease-out) forwards;
  animation-delay: 450ms;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

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

/* Showcase Mockup Frame */
.hero-showcase {
  max-width: 1060px;
  margin: 40px auto 0;
  padding: 0 16px;
  position: relative;
}

.showcase-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  z-index: 5;
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.showcase-header {
  height: 42px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}
.dot.red { background: var(--accent-error); }
.dot.yellow { background: var(--accent-warning); }
.dot.green { background: var(--accent-success); }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.showcase-img-container {
  width: 100%;
  aspect-ratio: 16 / 15;
  background: var(--bg-base);
  overflow: hidden;
  display: flex;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════
   SOCIAL PROOFS SECTION
   ═══════════════════════════════════════════════ */

.social-proofs {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
}

.social-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.social-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  opacity: var(--logo-opacity);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.logo-item svg {
  height: 24px;
  width: auto;
  fill: currentColor;
}

.logo-item span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════
   USE CASES SECTION
   ═══════════════════════════════════════════════ */

.use-cases-section {
  position: relative;
}

.use-cases-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.use-case-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.use-case-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.use-case-tab.active {
  background: var(--accent-primary-muted);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.use-case-content-wrapper {
  min-height: 420px;
}

.use-case-card {
  display: none;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.use-case-card.active {
  display: grid;
  animation: fade-in-slide var(--duration-slow) var(--ease-out) forwards;
}

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

.use-case-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.use-case-badge {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  text-transform: uppercase;
}

.use-case-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.use-case-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.use-case-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.use-case-features svg {
  color: var(--accent-success);
  flex-shrink: 0;
}

.use-case-visual {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-code);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.visual-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS (PIPELINE FLOW)
   ═══════════════════════════════════════════════ */

.pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pipeline-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: 32px 40px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.pipeline-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  text-align: center;
  position: relative;
  z-index: 10;
  transition: transform var(--duration-normal) var(--ease-out);
}

.stage-chip {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.stage-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: color var(--duration-normal) var(--ease-out);
}

.pipeline-stage.active .stage-chip {
  background: var(--accent-primary-muted);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-glow-sm);
  transform: scale(1.1);
}

.pipeline-stage.active .stage-label {
  color: var(--accent-primary);
}

.pipeline-stage.complete .stage-chip {
  background: var(--accent-success-muted);
  border-color: var(--accent-success);
  color: var(--accent-success);
}

.pipeline-stage.complete .stage-label {
  color: var(--accent-success);
}

.pipeline-arrow {
  color: var(--border-strong);
  transition: color var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  margin: 0 10px;
}

.pipeline-arrow.active {
  color: var(--accent-primary);
}

.pipeline-arrow.complete {
  color: var(--accent-success);
}

.pipeline-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.detail-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.action-item svg {
  margin-top: 3px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   BENTO GRID SECTION
   ═══════════════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.bento-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow-sm), var(--shadow-md);
  transform: translateY(-2px);
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.card-icon-wrapper {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-primary);
  transition: color var(--duration-normal) var(--ease-out);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.bento-double {
  grid-column: span 2;
}

.bento-long {
  grid-column: span 3;
}

.bento-long-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.bento-visual {
  margin-top: 20px;
  width: 100%;
}

/* Loop visual details */
.ci-visual {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.ci-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.ci-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
}

.ci-item.success { border-color: rgba(74, 190, 138, 0.3); }
.ci-item.success .ci-status-dot { background: var(--accent-success); }
.ci-item.success .ci-badge { background: var(--accent-success-muted); color: var(--accent-success); }

.ci-item.healing { border-color: rgba(217, 119, 76, 0.3); }
.ci-item.healing .ci-status-dot { background: var(--accent-primary); animation: blink 1.2s step-end infinite; }
.ci-item.healing .ci-badge { background: var(--accent-primary-muted); color: var(--accent-primary); }

.ci-arrow {
  color: var(--text-tertiary);
}

.command-block {
  background: var(--bg-code);
  border: 1px solid var(--border-default);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-code);
}

.cmd-env {
  color: var(--accent-info);
}

.cmd-cli {
  color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════
   COMPARISON SECTION
   ═══════════════════════════════════════════════ */

.comparison-wrapper {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comp-table th, .comp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-default);
}

.comp-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

.comp-table td {
  font-size: 0.95rem;
}

.comp-feature {
  font-weight: 600;
  color: var(--text-primary);
}

.comp-portal {
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(217, 119, 76, 0.02);
}

[data-theme="light"] .comp-portal {
  background: rgba(196, 97, 58, 0.01);
}

.comp-terminal {
  color: var(--text-secondary);
}

.comp-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-icon svg.check {
  color: var(--accent-success);
}

.comp-icon svg.x {
  color: var(--accent-error);
}

/* ═══════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.pricing-card.popular {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow-sm);
}

.pricing-card.popular:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  min-height: 48px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features svg {
  color: var(--accent-success);
  margin-top: 3px;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
}

/* ═══════════════════════════════════════════════
   CTA BLOCK & FOOTER
   ═══════════════════════════════════════════════ */

.cta-section {
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
}

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

.cta-card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Footer styling */
.footer-section {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-default);
  padding: 60px 0 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-default);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS & EFFECTS
   ═══════════════════════════════════════════════ */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 76, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(217, 119, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 76, 0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE LAYOUTS
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-long {
    grid-column: span 2;
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .pricing-card.popular {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 60px 20px;
  }
  .navbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .nav-links {
    display: none; /* simple responsive navigation simplification */
  }
  .hero-section {
    padding-top: 140px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .showcase-frame {
    border-radius: var(--radius-md);
  }
  .use-cases-tabs {
    gap: 8px;
  }
  .use-case-card {
    padding: 24px;
  }
  .use-case-card.active {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-double, .bento-long {
    grid-column: span 1;
  }
  .bento-long-content {
    grid-template-columns: 1fr;
  }
  .pipeline-track {
    padding: 20px;
  }
  .pipeline-stage {
    min-width: 80px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    grid-column: span 1;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cta-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-default);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px;
  animation: cookie-slide-up 0.4s ease-out;
}

@keyframes cookie-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-text p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-banner-link {
  font-family: var(--font-accent-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cookie-banner-link:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
