/* ============================================
   ARDOATEK — Design System
   "Terroir" — Tema claro, cálido, vitivinícola
   Laboratorio y asesoramiento enológico
   ============================================ */

/* --- Google Fonts (loaded via HTML <link>) --- */

/* ========================
   1. CUSTOM PROPERTIES
   ======================== */
:root {
  /* Backgrounds — cálidos, crema, tierra */
  --bg: #FAF8F5;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-warm: #F3EDE6;
  --bg-section-alt: #F0EBE3;
  --bg-hero: #2C1810;

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  /* Text */
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --text-dim: #8C8C8C;
  --text-on-dark: #F0EDE8;

  /* Accents — vino, tierra, oliva */
  --burgundy: #7B1E32;
  --burgundy-light: #9A2842;
  --teal: #3A6B5E;
  --teal-light: #4A8B7A;
  --gold: #B8943E;
  --olive: #5A6B3C;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--burgundy), var(--teal));
  --gradient-text: linear-gradient(135deg, var(--burgundy), var(--gold));

  /* Glass — para navbar sobre hero oscuro */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 16px;

  /* Radius */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container: min(1200px, 90vw);
  --card-pad: clamp(24px, 3vw, 40px);

  /* Gaps */
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 64px;
}

/* ========================
   2. RESET + BASE
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #C4B5A5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--burgundy); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ========================
   3. TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.01em;
}

h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; font-weight: 600; }

.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.serif-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ========================
   4. LAYOUT
   ======================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
}

.section { padding: var(--section-pad) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }

.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: 48px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

/* ========================
   5. NAVBAR (flotante pill glassmorphism)
   ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar.scrolled .navbar__logo img { height: 44px; }

.navbar__logo img { height: 56px; transition: height 0.3s; border-radius: 4px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: color 0.3s;
}

.navbar__links a:hover { color: #fff; }

/* When scrolled: dark text */
.navbar.scrolled .navbar__links a { color: var(--text-muted); }
.navbar.scrolled .navbar__links a:hover { color: var(--text); }
.navbar.scrolled .navbar__burger span { background: var(--text); }

/* Internal pages: navbar starts dark (no hero behind) */
.navbar--light .navbar__links a { color: var(--text-muted); }
.navbar--light .navbar__links a:hover { color: var(--text); }
.navbar--light .navbar__burger span { background: var(--text); }
.navbar--light { background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,0.06); }

/* CTA adapts too */
.navbar__cta { transition: all 0.3s; }

.navbar__links > a::after,
.navbar__dropdown-trigger::after {
  /* only direct children get underline, not dropdown items */
}

.navbar__links > a {
  position: relative;
  display: inline-block;
}

.navbar__links > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar__links a:hover { color: var(--burgundy); }
.navbar__links a:hover::after { transform: scaleX(1); }

/* Dropdown */
.navbar__dropdown { position: relative; }

.navbar__dropdown-trigger {
  cursor: pointer;
}

.navbar__dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s;
}

/* Invisible bridge to prevent hover gap */
.navbar__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

.navbar__dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.navbar__dropdown:hover .navbar__dropdown-panel,
.navbar__dropdown.active .navbar__dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.navbar__dropdown:hover .navbar__dropdown-trigger::after {
  transform: rotate(180deg);
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.navbar__dropdown-item:hover { background: var(--bg-warm); }

.navbar__dropdown-item svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--burgundy);
}

.navbar__dropdown-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.navbar__dropdown-item span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.navbar__cta {
  padding: 8px 20px !important;
  font-size: 13px !important;
}

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Dark navbar variant (for hero sections) */
.navbar--on-hero { --glass-bg: rgba(255,255,255,0.1); --glass-border: rgba(255,255,255,0.1); }
.navbar--on-hero .navbar__links a { color: rgba(255,255,255,0.7); }
.navbar--on-hero .navbar__links a:hover { color: #fff; }
.navbar--on-hero .navbar__burger span { background: #fff; }

.navbar__burger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.navbar__burger.active span:nth-child(2) { opacity: 0; }
.navbar__burger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* Mobile menu */
.navbar__mobile {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.navbar__mobile.active {
  opacity: 1;
  visibility: visible;
}

.navbar__mobile a {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s;
}

.navbar__mobile a:hover { color: var(--text); }

/* ========================
   6. HERO
   ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(0.4);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(44, 24, 16, 0.85) 30%, rgba(44, 24, 16, 0.4) 80%);
  z-index: 1;
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--burgundy);
  opacity: 0.2;
  top: 20%;
  right: 15%;
  animation: floatOrb1 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  opacity: 0.1;
  bottom: 10%;
  left: 30%;
  animation: floatOrb2 25s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 20px); }
  66% { transform: translate(20px, -30px); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-20px, 30px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.hero--centered .hero__content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero--centered .hero__subtitle { margin: 0 auto; max-width: 700px; }
.hero--centered .hero__actions { justify-content: center; }
.hero--centered .hero__overlay {
  background: rgba(44, 24, 16, 0.6);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(184, 148, 62, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 28px;
}

.hero__title {
  margin-bottom: 24px;
  color: #fff;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator__dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
  0% { cy: 10; opacity: 1; }
  100% { cy: 28; opacity: 0; }
}

/* ========================
   7. BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--burgundy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--burgundy-light);
  box-shadow: 0 4px 20px rgba(139, 26, 43, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--link {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  position: relative;
}

.btn--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.btn--link:hover { color: var(--text); }
.btn--link:hover::after { transform: scaleX(1); }

/* ========================
   8. CARDS
   ======================== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.card:hover .card__icon { color: var(--burgundy); }

.card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gradient line on hover */
.card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-accent);
  transition: width 0.6s ease;
}

.card:hover .card__line { width: 100%; }

/* Glass card variant */
.card--glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  position: relative;
}

.card--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.card--glass:hover::before { opacity: 1; }

/* ========================
   9. STATS BAR
   ======================== */
.stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats__item {
  flex: 1;
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stats__item:last-child { border-right: none; }

.stats__number {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}

.stats__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ========================
   10. MARQUEE
   ======================== */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}

.marquee__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  padding: 0 32px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================
   11. TIMELINE
   ======================== */
.timeline {
  display: flex;
  position: relative;
  margin-top: 64px;
  padding-top: 24px;
}

.timeline__line {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--gradient-accent);
  z-index: 0;
}

.timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.timeline__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.timeline__step:hover .timeline__dot {
  border-color: var(--burgundy);
  color: var(--burgundy-light);
}

.timeline__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline__step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================
   12. TERMINAL (panel de resultados)
   ======================== */
.terminal {
  background: #1C1C28;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal__header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
}

.terminal__body {
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 2.2;
}

.terminal__line {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.4s ease;
}

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

.terminal__key { color: var(--text-muted); }
.terminal__key { color: rgba(255,255,255,0.5); }
.terminal__value { color: #5EEAD4; }

.terminal__status .terminal__value { color: #28c840; }

/* ========================
   13. FOOTER
   ======================== */
.footer {
  background: #2C1810;
  padding: 80px 0 32px;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}

.footer__logo { height: 48px; opacity: 0.9; border-radius: 4px; }

.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  line-height: 1.6;
}

.footer__heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  transition: color 0.3s;
}

a.footer__link:hover { color: #fff; }

.footer__bar {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer__bar a {
  color: rgba(255,255,255,0.3);
  margin-left: 24px;
  transition: color 0.3s;
}

.footer__bar a:hover { color: #fff; }

/* ========================
   14. CONTACT FORM
   ======================== */
.contact-form { max-width: 480px; }

.form__group {
  position: relative;
  margin-bottom: 28px;
}

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.3s;
  outline: none;
}

.form__input:focus { border-bottom-color: var(--burgundy); }

.form__label {
  position: absolute;
  top: 14px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: -16px;
  font-size: 11px;
  color: var(--burgundy);
}

.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A9A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form__select option { background: #fff; color: var(--text); }

.form__textarea { resize: vertical; min-height: 100px; }

.form__error {
  font-size: 12px;
  color: #ff5f57;
  margin-top: 6px;
  display: none;
}

.form__group.error .form__error { display: block; }
.form__group.error .form__input { border-bottom-color: #ff5f57; }

.form__success {
  text-align: center;
  padding: 48px 24px;
  color: var(--teal);
  font-size: 18px;
}

/* ========================
   15. CTA SECTION
   ======================== */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--bg-warm);
}

/* ========================
   16. SECTION WITH IMAGE BG
   ======================== */
.section--image-bg {
  position: relative;
}

.section--image-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-section-alt);
  z-index: 0;
}

/* Image band — full-width photo strip */
.image-band {
  width: 100%;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250,248,245,0) 0%, var(--bg) 100%);
}

/* Photo grid — 3 images side by side */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 48px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-grid img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 200px; }
  .image-band { height: 240px; }
}

/* Card with image */
.card--with-image .card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* ========================
   VIDEO SECTION
   ======================== */
/* Video background section */
.video-bg-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.video-bg-section__video {
  position: absolute;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
}

.video-bg-section__video iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-bg-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 5, 0.55);
  z-index: 1;
}

.video-bg-section__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .video-bg-section { min-height: 400px; }
  .video-bg-section__video { inset: -100px; }
}

.video-section { background: var(--bg-hero); padding: var(--section-pad) 0; }
.video-section .section-label { color: var(--gold); }
.video-section .section-title { color: #fff; }
.video-section .section-desc { color: rgba(255,255,255,0.6); }

.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

.video-card__caption {
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
}

.video-card__caption h4 {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.video-card__caption p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.section--image-bg > .container { position: relative; z-index: 1; }

.section--image-bg .grid-3 > div {
  text-align: center;
  padding: 32px;
}

.section--image-bg h3 {
  font-size: 20px;
  margin: 16px 0 12px;
}

.section--image-bg p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section--image-bg .icon-feature {
  width: 48px;
  height: 48px;
  color: var(--burgundy);
  margin: 0 auto;
}

/* ========================
   17. REVEAL ANIMATIONS
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s 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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========================
   18. GRADIENT LINE
   ======================== */
.gradient-line {
  height: 1px;
  background: var(--gradient-accent);
  background-size: 200% 100%;
  animation: shimmer 4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================
   19. CURSOR GLOW
   ======================== */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 30, 50, 0.04) 0%, transparent 70%);
  z-index: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

/* ========================
   20. PROGRESS BAR
   ======================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-accent);
  z-index: 9999;
  width: 0;
  pointer-events: none;
}

/* ========================
   21. RESPONSIVE
   ======================== */
@media (max-width: 1200px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  .split {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .grid-2, .grid-3, .grid-services { grid-template-columns: 1fr; }

  .stats {
    flex-direction: column;
    border: none;
    gap: 0;
  }

  .stats__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .stats__item:last-child { border-bottom: none; }

  .timeline {
    flex-direction: column;
    gap: 32px;
    padding-left: 40px;
  }

  .timeline__line {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 1px;
    height: 100%;
  }

  .timeline__step {
    text-align: left;
    padding: 0;
  }

  .timeline__dot {
    position: absolute;
    left: -64px;
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

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

  .hero__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .footer__bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer__bar a { margin-left: 0; margin-right: 16px; }

  .navbar__dropdown-panel { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .hero__subtitle { font-size: 16px; }
  .section-desc { font-size: 16px; }
  .hero__badge { font-size: 11px; }
}

/* ========================
   22. REDUCED MOTION
   ======================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .terminal__line { opacity: 1; transform: none; }
}

/* ========================
   23. UTILITIES
   ======================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }
.hidden-mobile { display: block; }
.hidden-desktop { display: none; }

@media (max-width: 768px) {
  .hidden-mobile { display: none; }
  .hidden-desktop { display: block; }
}

/* ========================
   24. COOKIE BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding: 20px 0;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--burgundy);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-size: 13px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  border: none;
  font-family: inherit;
}

.cookie-banner__btn--accept {
  background: var(--burgundy);
  color: var(--text);
}

.cookie-banner__btn--accept:hover {
  background: var(--burgundy-light);
}

.cookie-banner__btn--reject {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.cookie-banner__btn--reject:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; }
}

/* ========================
   25. LEGAL PAGES
   ======================== */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--section-pad);
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.legal-page .legal-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 22px;
  margin: 40px 0 16px;
  color: var(--text);
}

.legal-page h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.legal-page p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 760px;
}

.legal-page ul, .legal-page ol {
  color: var(--text-muted);
  margin: 12px 0 20px 24px;
  line-height: 1.8;
}

.legal-page li { margin-bottom: 6px; list-style: disc; }
.legal-page ol li { list-style: decimal; }

.legal-page a { color: var(--teal); text-decoration: underline; }

.legal-page .legal-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-page .legal-table th,
.legal-page .legal-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
}

.legal-page .legal-table th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 500;
}

.legal-page .legal-table td { color: var(--text-muted); }

/* ========================
   26. INTERNAL PAGES
   ======================== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gradient-accent);
}

.page-content { padding: var(--section-pad) 0; }

/* Service detail pages */
.service-hero {
  padding: 140px 0 80px;
  position: relative;
}

.service-hero__badge {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 20px;
}

.service-includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.service-includes__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-includes__item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--teal);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .service-includes { grid-template-columns: 1fr; }
}

/* Who is it for */
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.audience-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}
