/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: #020817; }
body {
  font-family: 'Inter', sans-serif;
  background: #020817;
  color: #e2e8f0;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; }

/* ─── Custom scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #020817; }
::-webkit-scrollbar-thumb { background: #20D89A44; border-radius: 99px; }

/* ─── Noise overlay (subtle texture) ────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ─── Mesh gradient background ──────────────────────── */
.mesh-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, #20D89A18 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, #0ea5e915 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, #7c3aed0a 0%, transparent 70%);
}

/* ─── Glass card ────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.35s ease;
}
.glass:hover {
  background: rgba(32,216,154,0.05);
  border-color: rgba(32,216,154,0.2);
  box-shadow: 0 0 40px rgba(32,216,154,0.08), 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

/* ─── Mint accent ───────────────────────────────────── */
.text-mint { color: #20D89A; }
.border-mint { border-color: #20D89A; }
.bg-mint { background-color: #20D89A; }

/* ─── Glow button ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #20D89A, #17C489);
  color: #020817;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(32,216,154,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(32,216,154,0.4), 0 8px 24px rgba(32,216,154,0.25);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #20D89A;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(32,216,154,0.4);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(32,216,154,0.08);
  border-color: #20D89A;
}

/* ─── Nav link ──────────────────────────────────────── */
.nav-link {
  position: relative; color: #94a3b8; font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: #20D89A; transition: width 0.3s ease;
}
.nav-link:hover { color: #e2e8f0; }
.nav-link:hover::after { width: 100%; }

/* ─── Lang toggle ───────────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 4px 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.lang-toggle:hover { border-color: rgba(32,216,154,0.4); }
.lang-toggle .lang-opt {
  padding: 2px 8px; border-radius: 4px;
  color: #64748b; transition: all 0.2s;
}
.lang-toggle .lang-opt.active {
  background: #20D89A; color: #020817;
}

/* ─── Animated border for hero mockup ───────────────── */
.mockup-border {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.mockup-border::before {
  content: '';
  position: absolute; inset: 0; border-radius: 16px; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(32,216,154,0.3), rgba(14,165,233,0.15), rgba(124,58,237,0.1));
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ─── Tech badge ────────────────────────────────────── */
.tech-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; font-weight: 500;
  color: #94a3b8; white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.tech-badge:hover { border-color: rgba(32,216,154,0.3); color: #cbd5e1; }
.tech-badge.highlight { color: #20D89A; border-color: rgba(32,216,154,0.25); background: rgba(32,216,154,0.05); }

/* ─── Feature icon wrap ─────────────────────────────── */
.icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32,216,154,0.08);
  border: 1px solid rgba(32,216,154,0.2);
  margin-bottom: 1rem;
}

/* ─── Input field ───────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  border-color: rgba(32,216,154,0.5);
  box-shadow: 0 0 0 3px rgba(32,216,154,0.08);
}
.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: #64748b; margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ─── Section divider ───────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 99px;
  background: rgba(32,216,154,0.08);
  border: 1px solid rgba(32,216,154,0.2);
  font-size: 0.75rem; font-weight: 700;
  color: #20D89A; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1rem;
}

/* ─── Scan line animation (hero mockup) ─────────────── */
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #20D89A88, transparent);
  animation: scan 3s linear infinite;
  pointer-events: none;
}

/* ─── Stagger animation helpers ─────────────────────── */
.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.25s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.4s; opacity: 0; }
.anim-delay-4 { animation-delay: 0.55s; opacity: 0; }
.anim-delay-5 { animation-delay: 0.7s; opacity: 0; }

@media (max-width: 640px) {
  .hero-title { font-size: 2.25rem !important; line-height: 1.15 !important; }
}