/* ========================================================================
   GreenLight — Official Website Design System
   ======================================================================== */

/* — CSS Custom Properties — */
:root {
  /* Colors: Dark base + Traffic Light accent */
  --bg-primary: #050508;
  --bg-secondary: #0A0A12;
  --bg-card: #111119;
  --bg-card-hover: #16161F;
  --bg-surface: #1A1A24;

  --green: #22C55E;
  --green-glow: rgba(34, 197, 94, 0.4);
  --green-soft: rgba(34, 197, 94, 0.1);
  --yellow: #EAB308;
  --yellow-glow: rgba(234, 179, 8, 0.4);
  --yellow-soft: rgba(234, 179, 8, 0.1);
  --red: #EF4444;
  --red-glow: rgba(239, 68, 68, 0.4);
  --red-soft: rgba(239, 68, 68, 0.1);

  --text-primary: #F1F1F4;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-inverse: #050508;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-glow-green: 0 0 40px rgba(34, 197, 94, 0.15), 0 0 80px rgba(34, 197, 94, 0.05);
  --shadow-glow-green-strong: 0 0 20px rgba(34, 197, 94, 0.3), 0 0 60px rgba(34, 197, 94, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.2);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* — Utility — */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* — Animations (Keyframes) — */
@keyframes breathe {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4), 0 0 80px rgba(34, 197, 94, 0.1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Scroll-driven reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   NAVBAR
   ======================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-xl);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
}

.nav-logo-icon .traffic-light {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--green);
  color: var(--text-inverse) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background: #1DB954;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-green);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Green orbital glow */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(234, 179, 8, 0.04) 0%, transparent 70%);
  animation: breathe 8s ease-in-out 2s infinite;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--green);
  font-weight: 500;
  animation: fadeInUp 0.8s ease;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green), #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--green);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  background: #1DB954;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green-strong);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 20px;
  height: 20px;
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin-top: var(--space-8);
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow-green);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red {
  background: var(--red);
}

.mockup-dot.yellow {
  background: var(--yellow);
}

.mockup-dot.green {
  background: var(--green);
}

.mockup-content {
  padding: var(--space-6);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--green);
}

.mockup-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: breathe 2s ease-in-out infinite;
}

.mockup-stats {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.mockup-divider {
  height: 1px;
  background: var(--border);
}

.mockup-section-title {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mockup-app-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.mockup-app-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.mockup-app-icon.blocked {
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.mockup-app-icon.cleared {
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.mockup-app-info {
  flex: 1;
  min-width: 0;
}

.mockup-app-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.mockup-app-path {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  flex-shrink: 0;
}

.mockup-btn.fix {
  background: var(--green);
  color: var(--text-inverse);
}

.mockup-btn.cleared-badge {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Hero glow circle */
.hero-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================================================
   SECTION COMMON
   ======================================================================== */
section {
  padding: var(--space-24) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-16);
}

/* ========================================================================
   PROBLEM SECTION
   ======================================================================== */
.problem {
  position: relative;
  background: var(--bg-secondary);
}

.problem-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.problem-step {
  position: relative;
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.problem-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.problem-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}

.problem-step:nth-child(1) .problem-step-number {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.problem-step:nth-child(2) .problem-step-number {
  background: var(--yellow-soft);
  color: var(--yellow);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.problem-step:nth-child(3) .problem-step-number {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.problem-step h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.problem-step p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.problem-code {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  overflow-x: auto;
}

/* Arrow connectors between steps */
.problem-arrow {
  display: none;
  /* Shown in grid gaps on desktop via pseudo-elements */
}

/* ========================================================================
   SOLUTION SECTION
   ======================================================================== */
.solution {
  position: relative;
}

.solution-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.solution-step {
  position: relative;
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.solution-step:hover {
  border-color: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.05);
}

.solution-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.solution-step h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.solution-step p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.solution-step .step-tag {
  display: inline-flex;
  margin-top: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ========================================================================
   FEATURES SECTION (BENTO GRID)
   ======================================================================== */
.features {
  background: var(--bg-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-5);
}

.bento-card {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-icon.green {
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.bento-icon.yellow {
  background: var(--yellow-soft);
  border: 1px solid rgba(234, 179, 8, 0.15);
  color: var(--yellow);
}

.bento-icon.red {
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.bento-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.bento-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ========================================================================
   COMPARISON SECTION
   ======================================================================== */
.comparison {
  position: relative;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.comparison-table thead th:last-child {
  color: var(--green);
}

.comparison-table tbody td {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.check {
  color: var(--green);
  font-weight: 700;
}

.cross {
  color: var(--text-muted);
}

.greenlight-col {
  position: relative;
  background: rgba(34, 197, 94, 0.03);
}

/* ========================================================================
   OPEN SOURCE SECTION
   ======================================================================== */
.opensource {
  background: var(--bg-secondary);
  text-align: center;
}

.os-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}

.os-card {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.os-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.os-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.os-card-icon svg {
  width: 24px;
  height: 24px;
}

.os-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.os-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.os-techstack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.tech-tag {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ========================================================================
   FAQ SECTION
   ======================================================================== */
.faq {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

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

.faq-item summary span {
  flex: 1;
}

.faq-item summary svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

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

.faq-item[open] summary {
  color: var(--green);
}

.faq-item p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.faq-item code {
  background: rgba(34, 197, 94, 0.08);
  color: var(--green);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ========================================================================
   DOWNLOAD / FINAL CTA SECTION
   ======================================================================== */
.download {
  position: relative;
  text-align: center;
  padding: var(--space-32) 0;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.download-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  animation: breathe 6s ease-in-out infinite;
}

.download .container {
  position: relative;
  z-index: 1;
}

.download-traffic-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.traffic-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all var(--transition-slow);
}

.traffic-dot.red {
  background: var(--red);
  opacity: 0.25;
}

.traffic-dot.yellow {
  background: var(--yellow);
  opacity: 0.25;
}

.traffic-dot.green {
  background: var(--green);
  animation: breathe 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.download-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.download-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.download-meta svg {
  width: 16px;
  height: 16px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0;
  background: var(--bg-primary);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-base);
}

.footer-logo svg {
  width: 24px;
  height: 24px;
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

/* Tablet */
@media (max-width: 1024px) {

  .problem-steps,
  .solution-flow,
  .os-cards {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .comparison-table {
    font-size: var(--text-sm);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  section {
    padding: var(--space-16) 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-8);
    gap: var(--space-6);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: var(--text-lg);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero .container {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .download-meta {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Small mobile */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: var(--text-2xl);
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}