/* ═══════════════════════════════════════════
   FARM BRAIN — Smart Agriculture Systems
   Enhanced Design System & Stylesheet
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --color-bg:        #050b08;
  --color-surface:   #0a1410;
  --color-surface-2: #0e1b15;
  --color-card:      #111f17;
  --color-card-2:    #15291e;
  --color-border:    rgba(255,255,255,0.06);
  --color-border-hi: rgba(34,197,94,0.2);
  --color-text:      #d8e6df;
  --color-muted:     #788c83;
  --color-heading:   #f4faf7;
  --color-heading-soft: #cad8d1;

  --color-primary:      #22c55e;
  --color-primary-hi:   #16a34a;
  --color-primary-soft: rgba(34,197,94,0.12);
  --color-secondary:    #10b981;
  --color-accent:       #86efac;
  --color-blue:         #3b82f6;
  --color-cyan:         #06b6d4;
  --color-amber:        #f59e0b;
  --color-purple:       #8b5cf6;
  --color-pink:         #ec4899;

  --gradient-brand:  linear-gradient(135deg, #22c55e 0%, #86efac 50%, #10b981 100%);
  --gradient-brand-2:linear-gradient(135deg, #86efac 0%, #22c55e 100%);
  --gradient-hero:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,197,94,0.10) 0%, transparent 60%);
  --gradient-card:   linear-gradient(160deg, rgba(34,197,94,0.06) 0%, transparent 40%);
  --gradient-glass:  linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Sora', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25);
  --shadow-card-hi: 0 1px 3px rgba(0,0,0,0.3), 0 24px 64px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px rgba(34,197,94,0.18);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: auto;
}

/* Fallback for browser-native anchor jumps (JS handles the primary path
   by scrolling to the section's heading, not its box). */
section[id], header[id] { scroll-margin-top: 24px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, select { font: inherit; }
ul { list-style: none; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   AMBIENT BACKGROUND
   ═══════════════════════════════════════════ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: blobFloat 22s ease-in-out infinite;
}

.mesh-blob-1 {
  top: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.35), transparent 70%);
  animation-delay: 0s;
}

.mesh-blob-2 {
  top: 30%;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16,185,129,0.22), transparent 70%);
  animation-delay: -7s;
}

.mesh-blob-3 {
  bottom: -300px;
  left: 30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, -60px) scale(1.1); }
  66%      { transform: translate(-60px, 80px) scale(0.95); }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS & CURSOR
   ═══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(34,197,94,0.6);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  mix-blend-mode: screen;
}

@media (hover: hover) and (min-width: 1024px) {
  .cursor-glow.active { opacity: 1; }
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

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

.text-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 2px;
}

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

.section-desc {
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: #060e0a;
  box-shadow: 0 2px 12px rgba(34,197,94,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background: var(--color-primary-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.45);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

.magnetic { will-change: transform; }

/* ═══════════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(5,11,8,0.7);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon { color: var(--color-primary); display: flex; }
.logo-highlight { color: var(--color-primary); }
.logo-text { color: var(--color-heading); }

/* Image-based logo mark — circular framed brand stamp */
.logo-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5efe2;
  border: 1.5px solid rgba(34,197,94,0.45);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08), 0 4px 14px rgba(0,0,0,0.35);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.logo-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.logo:hover .logo-icon-img {
  transform: rotate(-4deg) scale(1.04);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15), 0 6px 20px rgba(34,197,94,0.25);
}
.footer-brand .logo-icon-img {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--color-heading); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-links a.nav-cta::after,
.nav-links a.nav-cta.is-active::after { display: none; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--color-border);
  margin: 0 4px;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 18px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--color-primary) !important;
  color: #060e0a !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  transition: all 0.25s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-primary-hi) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

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

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 70%);
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw;
  max-width: 1400px;
  pointer-events: none;
  animation: orbitRotate 80s linear infinite;
}

.orbit-svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(134,239,172,0.6);
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 0.8; transform: translateY(-40px) scale(1); }
  100% { opacity: 0; transform: translateY(-180px) scale(0.3); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.18);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse 2s infinite;
}

.badge-divider {
  width: 1px;
  height: 12px;
  background: rgba(34,197,94,0.3);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
  cursor: pointer;
  transition: color 0.2s;
}

.badge-link:hover { color: var(--color-heading); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.6); }
}

.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  line-height: 1.02;
}

.hero-line {
  display: block;
  color: var(--color-heading);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 42px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  transition: all 0.25s;
}

.chip:hover {
  color: var(--color-text);
  border-color: var(--color-border-hi);
  background: rgba(34,197,94,0.04);
}

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

/* ── Hero floating glass UI cards ── */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-card {
  position: absolute;
  background: rgba(15,28,21,0.6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-glass);
  font-family: var(--font-mono);
  animation: floatY 6s ease-in-out infinite;
}

.float-card-1 {
  top: 22%;
  left: 4%;
  width: 200px;
  animation-delay: 0s;
}

.float-card-2 {
  top: 30%;
  right: 4%;
  width: 220px;
  animation-delay: -2s;
}

.float-card-3 {
  bottom: 14%;
  right: 8%;
  width: 240px;
  animation-delay: -4s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.float-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.float-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
  animation: pulse 2s infinite;
}

.float-card-dot-blue { background: var(--color-blue); box-shadow: 0 0 6px var(--color-blue); }
.float-card-dot-purple { background: var(--color-purple); box-shadow: 0 0 6px var(--color-purple); }

.float-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.float-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
}

.float-metric-label {
  color: var(--color-muted);
  font-weight: 500;
}

.float-metric-value {
  color: var(--color-heading);
  font-weight: 600;
}

.float-metric-value small {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.7rem;
  margin-left: 2px;
}

.float-chart {
  height: 50px;
  margin-bottom: 8px;
}

.float-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.5s var(--ease-out) forwards;
  animation-delay: 0.5s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.float-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
}

.float-meta-up {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.float-meta-label {
  color: var(--color-muted);
  font-size: 0.7rem;
}

.float-ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.ai-pulse-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  left: -4px;
  top: -4px;
  animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.float-ai-text {
  font-size: 0.74rem;
  color: var(--color-muted);
  line-height: 1.5;
  font-family: var(--font-body);
}

.float-ai-text strong { color: var(--color-text); font-weight: 600; }

/* ── Scroll indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-muted);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 1; height: 44px; }
  50%  { opacity: 0.3; height: 22px; }
  100% { opacity: 1; height: 44px; }
}

/* ═══════════════════════════════════════════
   PARTNERS / MARQUEE
   ═══════════════════════════════════════════ */
.partners {
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(10,20,16,0.4);
  overflow: hidden;
  position: relative;
}

.partners-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(216,230,223,0.5);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.marquee-item:hover { color: var(--color-heading); }

.marquee-item svg { color: var(--color-primary); opacity: 0.8; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features {
  padding: 140px 0;
  position: relative;
}

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

.feature-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
  transform-style: preserve-3d;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(34,197,94,0.2);
  box-shadow: var(--shadow-card-hi);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover .feature-glow { opacity: 1; }

.feature-card-highlight {
  background: linear-gradient(160deg, rgba(34,197,94,0.07) 0%, var(--color-card) 60%);
  border-color: rgba(34,197,94,0.18);
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--color-primary);
  color: #060e0a;
  font-family: var(--font-mono);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  color: var(--accent, var(--color-primary));
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
}

.feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.feature-list li {
  font-size: 0.82rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.feature-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  transition: gap 0.3s var(--ease-out);
}

.feature-link:hover { gap: 10px; }

/* ═══════════════════════════════════════════
   DASHBOARD MOCKUP
   ═══════════════════════════════════════════ */
.dashboard {
  padding: 140px 0;
  position: relative;
}

.dashboard-mockup {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  perspective: 2000px;
}

.dashboard-frame {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 60px 140px rgba(0,0,0,0.55),
    0 0 0 1px rgba(34,197,94,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transform: perspective(1800px) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

.dashboard-mockup:hover .dashboard-frame {
  transform: perspective(1800px) rotateX(0deg);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--color-border);
}

.dashboard-traffic {
  display: flex;
  gap: 6px;
}

.dashboard-traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.dashboard-traffic span:nth-child(1) { background: #ff5f57; }
.dashboard-traffic span:nth-child(2) { background: #febc2e; }
.dashboard-traffic span:nth-child(3) { background: #28c840; }

.dashboard-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
  animation: pulse 2s infinite;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.dashboard-sidebar {
  padding: 20px 12px;
  background: rgba(255,255,255,0.01);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-item:hover { background: rgba(255,255,255,0.04); color: var(--color-text); }

.sidebar-item.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}

.sidebar-item svg { flex-shrink: 0; }

.sidebar-divider {
  height: 1px;
  background: var(--color-border);
  margin: 12px 8px;
}

.sidebar-item-zone {
  font-size: 0.76rem;
}

.zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.zone-dot-green { background: var(--color-primary); }
.zone-dot-blue  { background: var(--color-blue); }
.zone-dot-amber { background: var(--color-amber); }

.dashboard-main {
  padding: 24px 28px 28px;
  background: var(--color-surface-2);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.dashboard-subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.dashboard-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 3px;
}

.dash-tab {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-muted);
  border-radius: 5px;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.dash-tab.active {
  background: var(--color-primary);
  color: #060e0a;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-tile {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.metric-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.metric-tile-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-tile-trend {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.trend-up   { background: rgba(34,197,94,0.15); color: var(--color-primary); }
.trend-down { background: rgba(59,130,246,0.15); color: var(--color-blue); }

.metric-tile-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.1;
}

.metric-tile-value small {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-left: 2px;
}

.metric-spark {
  height: 28px;
  margin-top: 8px;
}

.metric-spark svg {
  width: 100%;
  height: 100%;
}

.dashboard-chart-panel {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 20px;
}

.chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.chart-panel-header h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.chart-panel-header p {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.chart-legend {
  display: flex;
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.chart-canvas {
  height: 200px;
}

.chart-canvas svg {
  width: 100%;
  height: 100%;
}

.dash-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 3s var(--ease-out) forwards;
}

.dash-line-1 { animation-delay: 0.3s; }
.dash-line-2 { animation-delay: 0.6s; }
.dash-line-3 { animation-delay: 0.9s; }

.dashboard-sensors {
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.sensors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sensors-header h4 { font-size: 0.92rem; }

.sensors-count {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.sensors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sensor-row {
  display: grid;
  grid-template-columns: 12px 80px 1fr 80px 100px;
  gap: 12px;
  align-items: center;
  font-size: 0.78rem;
  padding: 4px 0;
}

.sensor-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sensor-ok   { background: var(--color-primary); box-shadow: 0 0 6px var(--color-primary); }
.sensor-warn { background: var(--color-amber); box-shadow: 0 0 6px var(--color-amber); }

.sensor-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-heading);
}

.sensor-zone {
  color: var(--color-muted);
}

.sensor-value {
  font-family: var(--font-mono);
  color: var(--color-text);
  text-align: right;
  font-weight: 500;
}

.sensor-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.sensor-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s var(--ease-out);
}

/* Floating dashboard badges */
.dashboard-badge {
  position: absolute;
  background: rgba(15,28,21,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card-hi);
  animation: floatY 5s ease-in-out infinite;
  z-index: 2;
}

.dashboard-badge strong {
  display: block;
  color: var(--color-heading);
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-badge span {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.dashboard-badge svg { color: var(--color-amber); flex-shrink: 0; }

.dashboard-badge-1 {
  top: 18%;
  left: -32px;
  animation-delay: 0s;
}

.dashboard-badge-2 {
  bottom: 18%;
  right: -24px;
  animation-delay: -2s;
}

.badge-pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  flex-shrink: 0;
  position: relative;
}

.badge-pulse::before {
  content: '↑';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   SOLUTIONS TABS
   ═══════════════════════════════════════════ */
.solutions {
  padding: 140px 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(10,20,16,0.4) 50%, transparent 100%);
}

.solutions-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.sol-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
}

.sol-tab:hover {
  color: var(--color-text);
  border-color: var(--color-border-hi);
  background: rgba(34,197,94,0.04);
}

.sol-tab.active {
  background: var(--color-primary);
  color: #060e0a;
  border-color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}

.sol-content {
  display: none;
  animation: fadeUp 0.5s var(--ease-out);
}

.sol-content.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sol-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.sol-text p {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.sol-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.sol-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-text);
}

.sol-feature svg {
  color: var(--color-primary);
  flex-shrink: 0;
  background: var(--color-primary-soft);
  border-radius: 50%;
  padding: 4px;
}

.sol-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  background: rgba(34,197,94,0.04);
  border: 1px solid var(--color-border-hi);
  border-radius: var(--radius-md);
}

.sol-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sol-stats strong {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.sol-stats span {
  font-size: 0.74rem;
  color: var(--color-muted);
}

.sol-visual {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(34,197,94,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.04) 0%, transparent 50%);
}

.sol-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Aquaponics animations */
.aqua-fish-1 { animation: fishSwim1 8s linear infinite; }
.aqua-fish-2 { animation: fishSwim2 10s linear infinite; animation-delay: -3s; }
.aqua-fish-3 { animation: fishSwim3 7s linear infinite; animation-delay: -1s; }

@keyframes fishSwim1 {
  0%   { transform: translate(110px, 290px); }
  50%  { transform: translate(290px, 320px); }
  100% { transform: translate(110px, 290px); }
}
@keyframes fishSwim2 {
  0%   { transform: translate(290px, 330px) scaleX(-1); }
  50%  { transform: translate(110px, 300px) scaleX(-1); }
  100% { transform: translate(290px, 330px) scaleX(-1); }
}
@keyframes fishSwim3 {
  0%   { transform: translate(150px, 320px); }
  50%  { transform: translate(280px, 290px); }
  100% { transform: translate(150px, 320px); }
}

.bubble { animation: bubbleRise 3s ease-in infinite; }
.bubble-1 { animation-delay: 0s; }
.bubble-2 { animation-delay: 1s; }
.bubble-3 { animation-delay: 2s; }

@keyframes bubbleRise {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: translateY(-100px); opacity: 0; }
}

.sensor-node circle:last-child { animation: ringPulse 2s ease-out infinite; }
.sensor-node-2 circle:last-child { animation-delay: -1s; }

/* Hydroponics drops */
.drop { animation: dropMove 3s linear infinite; }
.drop-1 { animation-delay: 0s; }
.drop-2 { animation-delay: 1s; }
.drop-3 { animation-delay: 2s; }

@keyframes dropMove {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

/* Precision sensor markers pulse */
.sensor-marker circle:last-child { animation: ringPulse 2s ease-out infinite; }
.sensor-marker-2 circle:last-child { animation-delay: -0.5s; }
.sensor-marker-3 circle:last-child { animation-delay: -1s; }
.sensor-marker-4 circle:last-child { animation-delay: -1.5s; }

.drone {
  transform: translate(200px, 200px);
  animation: droneFly 12s ease-in-out infinite;
}

@keyframes droneFly {
  0%   { transform: translate(80px, 100px); }
  25%  { transform: translate(280px, 140px); }
  50%  { transform: translate(320px, 240px); }
  75%  { transform: translate(140px, 280px); }
  100% { transform: translate(80px, 100px); }
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  padding: 140px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(34,197,94,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.08) 0%, transparent 50%),
    linear-gradient(rgba(34,197,94,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.03) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

.about-image-placeholder {
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  animation: floatY 6s ease-in-out infinite;
}

.about-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary);
  animation: pulse 2s infinite;
}

.about-dot-1 { top: 18%; left: 14%; }
.about-dot-2 { top: 30%; right: 18%; animation-delay: -0.7s; }
.about-dot-3 { bottom: 22%; left: 22%; animation-delay: -1.4s; }

.about-float-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-hi);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.float-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.float-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 500;
}

.about-float-card-2 {
  position: absolute;
  top: 30px;
  left: -28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.about-float-card-2 strong {
  display: block;
  font-size: 0.82rem;
  color: var(--color-heading);
  font-weight: 600;
}

.about-float-card-2 span {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }

.about-content > p {
  color: var(--color-muted);
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
}

.highlight svg { color: var(--color-primary); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════ */
.stats {
  padding: 80px 0;
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  text-align: left;
  padding: 24px 8px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.stat-bar {
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 1.4s var(--ease-out);
}

.stat-card.visible .stat-bar-fill {
  width: var(--bar);
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-it-works {
  padding: 140px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  position: relative;
  z-index: 2;
  transition: all 0.4s var(--ease-out);
}

.step-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(34,197,94,0.15);
  opacity: 0;
  transition: opacity 0.4s;
}

.step:hover .step-icon {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.step:hover .step-icon::after { opacity: 1; }

.step-line {
  position: absolute;
  top: 50px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-border) 0%, var(--color-border-hi) 50%, var(--color-border) 100%);
  z-index: 1;
}

.step:last-child .step-line { display: none; }

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════ */
.pricing {
  padding: 140px 0;
  position: relative;
}

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

.price-card {
  position: relative;
  padding: 36px 32px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
}

.price-card:hover {
  border-color: rgba(34,197,94,0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hi);
}

.price-card-popular {
  background: linear-gradient(160deg, rgba(34,197,94,0.08) 0%, var(--color-card) 60%);
  border-color: rgba(34,197,94,0.25);
  transform: scale(1.02);
  box-shadow: 0 0 48px rgba(34,197,94,0.1);
}

.price-card-popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.price-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #060e0a;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.price-card-head {
  margin-bottom: 24px;
}

.price-card-head h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.price-card-head p {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.price-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  min-height: 86px;
}

.price-value-text {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

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

.price-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.price-feature-muted { color: var(--color-muted) !important; }
.price-feature-muted svg { color: var(--color-muted) !important; opacity: 0.5; }

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 14px 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.015);
}

.pricing-note svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq {
  padding: 140px 0;
  position: relative;
}

.faq-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 100px;
}

.faq-side .section-title { text-align: left; margin-bottom: 20px; }
.faq-side .section-label { text-align: left; }

.faq-side p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

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

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
  border-color: rgba(34,197,94,0.18);
}

.faq-item[open] {
  background: linear-gradient(160deg, rgba(34,197,94,0.04) 0%, var(--color-card) 50%);
  border-color: rgba(34,197,94,0.2);
}

.faq-item summary {
  position: relative;
  padding: 22px 56px 22px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta {
  padding: 80px 0 120px;
}

.cta-card {
  position: relative;
  padding: 72px 64px;
  border-radius: var(--radius-2xl);
  background: var(--color-card);
  border: 1px solid var(--color-border-hi);
  overflow: hidden;
  box-shadow: var(--shadow-card-hi);
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(34,197,94,0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(134,239,172,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(16,185,129,0.1) 0%, transparent 60%);
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.18);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.cta-card h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.cta-card > .cta-content > p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-form {
  max-width: 600px;
  margin: 0 auto 24px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder { color: var(--color-muted); }

.cta-form select { color: var(--color-muted); cursor: pointer; }
.cta-form select:valid { color: var(--color-text); }

.cta-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  border-color: var(--color-primary);
  background: rgba(34,197,94,0.05);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.form-row-full { display: block; }

.form-row-actions {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.form-status {
  flex: 1;
  min-height: 22px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-muted);
  transition: color 0.25s;
}
.form-status[data-state="success"] { color: #4ade80; }
.form-status[data-state="error"]   { color: #f87171; }

.btn-submit {
  flex-shrink: 0;
  min-width: 180px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit .btn-spinner {
  display: none;
  animation: btnSpin 0.7s linear infinite;
}

.btn-submit.is-loading .btn-icon { display: none; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading { opacity: 0.85; cursor: progress; }

.btn-submit.is-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: transparent;
}
.btn-submit:disabled { cursor: not-allowed; }

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.cta-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

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

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 80px 0 32px;
  background: rgba(10,20,16,0.6);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: 0;
}

.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-heading);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 12px;
  transition: color 0.25s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--color-muted);
  transition: color 0.25s;
}

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

/* ═══════════════════════════════════════════
   MOBILE NAV OVERLAY
   ═══════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card-popular { transform: none; }
  .price-card-popular:hover { transform: translateY(-4px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .step-line { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .float-card-1, .float-card-2, .float-card-3 { display: none; }
  .dashboard-badge-1, .dashboard-badge-2 { display: none; }
  .faq-container { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
  .sol-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--color-surface-2);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 40px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--color-border);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1.05rem;
    color: var(--color-text);
    padding: 8px 0;
  }

  .nav-links a::after { display: none; }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0 4px;
    background: var(--color-border);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .hamburger { display: flex; }

  .hero { padding: 120px 0 80px; }

  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-image-wrapper { aspect-ratio: 1; }
  .about-float-card { right: 12px; bottom: -16px; }
  .about-float-card-2 { left: 12px; }

  .dashboard-mockup { transform: none; }
  .dashboard-frame { transform: none; }
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .sidebar-item { white-space: nowrap; flex-shrink: 0; }
  .sidebar-divider { display: none; }
  .sidebar-item-zone { display: none; }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
  .chart-panel-header { flex-direction: column; gap: 12px; }
  .chart-canvas { height: 160px; }
  .sensor-row { grid-template-columns: 12px 1fr 80px; gap: 8px; font-size: 0.74rem; }
  .sensor-zone, .sensor-bar { display: none; }
  .dashboard-main { padding: 18px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card { padding: 16px 8px; }

  .steps-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .cta-card { padding: 48px 24px; }
  .form-row { flex-direction: column; }
  .form-row-actions { align-items: stretch; }
  .form-status { text-align: center; }
  .btn-submit { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .hero-title { font-size: clamp(2.2rem, 8.5vw, 3.6rem); }

  .solutions-tabs { gap: 6px; }
  .sol-tab { padding: 10px 16px; font-size: 0.85rem; }

  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .cta-meta { gap: 16px; }
  .sol-stats { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .marquee-track { gap: 40px; }
  .marquee-item { font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════
   SELECTION & SCROLLBAR
   ═══════════════════════════════════════════ */
::selection {
  background: rgba(34,197,94,0.3);
  color: var(--color-heading);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-card);
  border-radius: 5px;
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,0.3); }

/* ═══════════════════════════════════════════
   COOKIE CONSENT
   ═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  width: min(420px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 12px 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(15,28,21,0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(34,197,94,0.22);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}

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

.cookie-banner-icon {
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner-body {
  grid-column: 2;
  grid-row: 1;
}

.cookie-banner-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.cookie-banner-body p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0;
}

.cookie-banner-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 4px;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.cookie-btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--color-text);
  border-color: var(--color-border);
}

.cookie-btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-heading);
  border-color: rgba(255,255,255,0.12);
}

.cookie-btn-primary {
  background: var(--color-primary);
  color: #060e0a;
  box-shadow: 0 2px 10px rgba(34,197,94,0.28);
}

.cookie-btn-primary:hover {
  background: var(--color-primary-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
}

/* ── Cookie modal ── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.cookie-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 32px 24px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-hi);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease-spring);
}

.cookie-modal.is-open .cookie-modal-card {
  transform: translateY(0) scale(1);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--color-border);
}

.cookie-modal-close:hover {
  color: var(--color-heading);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.cookie-modal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.cookie-modal-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.cookie-cats {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  transition: border-color 0.25s;
}

.cookie-cat:hover { border-color: rgba(255,255,255,0.1); }

.cookie-cat-text {
  flex: 1;
  min-width: 0;
}

.cookie-cat-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-heading);
  margin-bottom: 2px;
  font-weight: 600;
}

.cookie-cat-text span {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ── Toggle switch ── */
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  transition: all 0.25s var(--ease-out);
}

.cookie-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-muted);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-spring), background 0.2s;
}

.cookie-switch input:checked + .cookie-switch-track {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

.cookie-switch input:checked + .cookie-switch-track::after {
  transform: translateX(16px);
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

.cookie-switch.is-locked { cursor: not-allowed; opacity: 0.7; }
.cookie-switch.is-locked input { cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.cookie-modal-foot {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

.cookie-modal-foot a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-modal-foot a:hover { color: var(--color-accent); }

@media (max-width: 540px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .cookie-btn { flex: 1; min-width: 0; }
  .cookie-modal-card { padding: 24px 20px 20px; }
  .cookie-modal-actions { flex-direction: column-reverse; }
  .cookie-modal-actions .cookie-btn { width: 100%; }
}

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