/* ============================================
   SVT EN Subtitles — Landing Page Design System
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #060a13;
  --bg-secondary: #0d1320;
  --bg-tertiary: #141d30;
  --bg-card: rgba(13, 19, 32, 0.65);
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --accent-glow-strong: rgba(0, 255, 136, 0.3);
  --text-primary: #f0f4f8;
  --text-secondary: #8b9cb8;
  --text-muted: #556580;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 255, 136, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease);
}


/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dim);
}

img {
  max-width: 100%;
  display: block;
}

code {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}


/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* ---------- Layout ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 110px 0;
  position: relative;
}


/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #040810;
  box-shadow: 0 4px 24px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow-strong), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  color: #040810;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateY(-2px);
}


/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal:nth-child(4) {
  transition-delay: 0.24s;
}


/* ---------- Particle Canvas ---------- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
  transition: all 0.35s var(--ease);
}

header.scrolled {
  background: rgba(6, 10, 19, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.logo-icon {
  display: flex;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 255, 136, 0.06);
  color: var(--accent) !important;
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.25s var(--ease);
}

.btn-nav:hover {
  background: var(--accent);
  color: #040810 !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-nav svg {
  transition: fill 0.25s;
}

.btn-nav:hover svg {
  fill: #040810;
}

.btn-nav-coffee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFDD00;
  color: #000 !important;
  border: 1px solid rgba(255, 221, 0, 0.3);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  gap: 6px;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.btn-nav-coffee:hover {
  background: #FFEA4D;
  box-shadow: 0 0 15px rgba(255, 221, 0, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 255, 136, 0.06) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.12);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto 22px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Stats Row */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.stat-item {
  padding: 0 32px;
  text-align: center;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Media */
.hero-media {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

.hero-media-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-media img {
  border-radius: 13px;
}


/* ============================================
   FEATURES SECTION
   ============================================ */
#features {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 136, 0.04), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.06);
}

.feature-icon-wrap {
  margin-bottom: 22px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 255, 136, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  margin-top: 18px;
  background: rgba(0, 255, 136, 0.06);
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}


/* ============================================
   INTERACTIVE DEMO
   ============================================ */
.demo-section {
  background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
}

.demo-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  background: var(--bg-secondary);
}

/* Browser Chrome */
.browser-chrome {
  background: #080c16;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #28c840;
}

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.browser-controls {
  display: flex;
  gap: 8px;
}

.demo-layout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.15);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.demo-layout-btn:hover {
  background: rgba(0, 255, 136, 0.15);
}

/* Video Screen */
.demo-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.demo-video-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0a1628 0%, #0d1e3a 30%, #091528 60%, #060e1e 100%);
  opacity: 1;
}

/* Subtle TV static overlay */
.demo-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Native Swedish subtitle */
.demo-native-sub {
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 18px;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.35s var(--ease);
}

/* Translation Overlay */
.demo-overlay {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  background: rgba(12, 12, 12, 0.97);
  border-radius: 10px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.12);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.demo-overlay-indicator {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}

.demo-overlay-sv {
  color: #999;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.demo-overlay-en {
  color: #fff;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 700;
  transition: all 0.3s;
}

/* Side-by-side mode */
.demo-overlay.side-by-side {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.demo-overlay.side-by-side .demo-overlay-sv {
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0;
  padding-right: 18px;
  margin-bottom: 0;
  flex: 1;
}

.demo-overlay.side-by-side .demo-overlay-en {
  flex: 1;
}

/* Video Controls */
.demo-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.demo-ctrl-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  cursor: default;
  padding: 4px;
}

.demo-time {
  font-size: 0.7rem;
  color: #aaa;
  font-family: var(--font-mono);
}

.demo-progress {
  flex: 1;
}

.demo-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  position: relative;
}

.demo-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, #005b99, #0080d4);
  border-radius: 3px;
  transition: width 1s var(--ease);
}

.demo-progress-handle {
  position: absolute;
  top: -4px;
  left: 44%;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  transition: left 1s var(--ease);
}

.demo-ctrl-right {
  display: flex;
  align-items: center;
}

.demo-en-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.demo-en-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}


/* ============================================
   ARCHITECTURE / HOW IT WORKS
   ============================================ */
.architecture-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.arch-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}

.arch-node {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
}

.arch-node:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.arch-node-accent {
  border-color: rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.03);
}

.arch-node-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.arch-node-content h4 {
  margin-bottom: 6px;
}

.arch-node-content p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.arch-node-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
  position: relative;
}

.arch-connector-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-glow), var(--border));
}

.arch-connector-arrow {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  color: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Tech Stack Pills */
.tech-stack {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: border-color 0.3s;
}

.tech-pill:hover {
  border-color: var(--border-hover);
}

.tech-pill strong {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-pill span {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
}


/* ============================================
   INSTALLATION STEPS
   ============================================ */
#installation {
  background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(0, 255, 136, 0.02), transparent);
}

.steps-timeline {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical line */
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-glow), transparent);
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-primary);
  border: 2px solid rgba(0, 255, 136, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  z-index: 1;
  transition: all 0.3s;
}

.step-card:hover .step-number {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.step-content h3 {
  margin-bottom: 6px;
  margin-top: 2px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.step-content a {
  font-weight: 600;
}


/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.open {
  border-color: rgba(0, 255, 136, 0.15);
  background: rgba(0, 255, 136, 0.02);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  display: flex;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-answer a {
  font-weight: 600;
}


/* ============================================
   PRIVACY SECTION
   ============================================ */
.privacy-section {
  background: var(--bg-primary);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.3s;
}

.privacy-card:hover {
  border-color: var(--border-hover);
}

.privacy-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.privacy-card h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.privacy-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.privacy-footer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.privacy-footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.privacy-footer a {
  font-weight: 600;
}

.privacy-updated {
  margin-top: 6px;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding-bottom: 80px;
}

.cta-block {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #070a12 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
}

.cta-glow {
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.08), transparent 60%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-block p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-nav-coffee {
  background: #ffdd00;
  color: #000;
}


/* ============================================
   CONTACT & SUPPORT SECTION
   ============================================ */
.donate-section,
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}


/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: #040710;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-logo svg {
  width: 20px;
  height: 20px;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-center {
  flex: 1;
  text-align: center;
}

.attribution {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.attribution a {
  color: var(--text-secondary);
  font-weight: 500;
}

.attribution a:hover {
  color: var(--accent);
}

.footer-right a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--accent);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-flow {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .arch-connector {
    width: auto;
    height: 40px;
    flex-direction: column;
  }

  .arch-connector-line {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .arch-connector-arrow {
    font-size: 0.8rem;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 10, 19, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    gap: 24px;
    transition: right 0.35s var(--ease);
    border-left: 1px solid var(--border);
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-item {
    padding: 0 16px;
  }

  .stat-divider {
    height: 30px;
  }

  .footer-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-center {
    order: 3;
  }

  .demo-native-sub {
    white-space: normal;
    width: 80%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    padding: 0 16px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    min-width: 45%;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .cta-block {
    padding: 50px 24px;
  }

  .cta-block h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   CONTACT & SUPPORT SECTION
   ============================================ */
.donate-section,
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.contact-card,
.coffee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.coffee-card {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.support-header {
  margin-bottom: 24px;
}

.support-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.support-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFDD00;
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 221, 0, 0.2);
  margin-top: 20px;
}

.btn-coffee:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.3);
  background: #FFEA4D;
}