/* ============================================================
   cdx.my — shared design system
   Tokens · base · nav · buttons · cards · effects · sections
   ============================================================ */

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

:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --bg-footer: #05080f;
  --surface: rgba(15, 23, 42, 0.55);
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --cyan: #06b6d4;
  --cyan-soft: #22d3ee;
  --green: #10b981;
  --green-soft: #34d399;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.2);
  --radius: 20px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

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

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #28344a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #344361; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Film-grain overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 300;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1320px; margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }

/* ============ TYPOGRAPHY HELPERS ============ */

.grad {
  background: linear-gradient(110deg, var(--blue-soft), var(--cyan-soft) 50%, var(--blue-soft));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 7s ease-in-out infinite alternate;
}
.grad-warm {
  background: linear-gradient(110deg, var(--cyan-soft), var(--green-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes grad-shift { from { background-position: 0% center; } to { background-position: 100% center; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--text); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============ BACKDROPS ============ */

.grid-bg {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}

.aurora {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  filter: blur(48px);
  background:
    radial-gradient(38% 48% at 22% 28%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(32% 44% at 78% 18%, rgba(139, 92, 246, 0.13), transparent 62%),
    radial-gradient(44% 52% at 58% 82%, rgba(6, 182, 212, 0.11), transparent 62%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  animation: orb-float 11s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -38px) scale(1.06); }
  66% { transform: translate(-22px, 22px) scale(0.94); }
}

.glow-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.4), transparent);
}

/* ============ NAV ============ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 110;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 40px; transition: filter 0.3s; }
.nav-logo:hover img { filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.55)); }

.nav-links { display: none; align-items: center; gap: 30px; }
@media (min-width: 1024px) { .nav-links { display: flex; } #menu-btn { display: none !important; } }

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; font-weight: 600; }

.lang-dropdown { position: relative; border-left: 1px solid rgba(148, 163, 184, 0.15); padding-left: 16px; }
.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: #cbd5e1;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.lang-toggle:hover { background: rgba(148, 163, 184, 0.14); color: #fff; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: #101827;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  min-width: 76px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}
.lang-item {
  display: block; width: 100%;
  padding: 9px 14px;
  background: transparent; border: none;
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.lang-item:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }

#menu-btn {
  background: none; border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  display: flex; align-items: center; justify-content: center;
}

#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
#mobile-menu.open { max-height: 460px; opacity: 1; }
.mobile-inner { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  color: #cbd5e1;
  padding: 13px 12px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.mobile-link:hover { background: rgba(148, 163, 184, 0.07); color: #fff; }
.mobile-link.active { color: var(--blue-soft); font-weight: 600; }
.lang-mb { display: flex; gap: 6px; padding: 12px 4px 4px; border-top: 1px solid rgba(148, 163, 184, 0.08); margin-top: 6px; }
.lang-mb button {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  padding: 9px 4px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--faint);
  font-family: var(--font-body);
  transition: all 0.15s;
}

/* ============ BUTTONS ============ */

.btn-p {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  min-height: 48px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  will-change: transform;
}
.btn-p::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-p:hover::before { left: 130%; }
.btn-p:active { transform: translateY(0) scale(0.98); }

.btn-s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  min-height: 48px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s;
  will-change: transform;
}
.btn-s:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}
.btn-s:active { transform: translateY(0) scale(0.98); }

.btn-sm { padding: 10px 20px; font-size: 14px; min-height: 40px; }

/* ============ CARDS & SPOTLIGHT ============ */

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px rgba(0, 0, 0, 0.42); }

.card-glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* Mouse-tracked inner glow (vars set by js) */
.spot { overflow: hidden; }
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }
/* Mouse-tracked gradient border */
.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.65), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

.card-featured {
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.06) 55%, rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(59, 130, 246, 0.38);
  box-shadow: 0 0 44px rgba(59, 130, 246, 0.1);
}

/* ============ SMALL COMPONENTS ============ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-soft); flex-shrink: 0; }
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green-soft);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.tag-green { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.28); }

.icon-box {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.card:hover .icon-box { transform: scale(1.08) rotate(-3deg); }

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  font-family: var(--font-head);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 7px var(--bg), 0 0 24px rgba(59, 130, 246, 0.35);
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: #cbd5e1; font-size: 14px;
  padding: 5px 0;
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px; min-width: 18px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2334d399'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

.price-big {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-soft), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
}
.tool-chip:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(59, 130, 246, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  overflow: hidden;
}
.hero-sub { min-height: 0; padding: 150px 0 70px; display: block; text-align: center; }

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(620px circle at var(--hx, 50%) var(--hy, 32%), rgba(59, 130, 246, 0.07), transparent 60%);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.1rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.07;
  margin-bottom: 26px;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 2;
  transition: color 0.25s;
}
.scroll-cue:hover { color: var(--blue-soft); }
.scroll-cue svg { animation: cue-bounce 2s ease-in-out infinite; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-height: 720px) { .scroll-cue { display: none; } }

/* ============ TERMINAL ============ */

.term {
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(59, 130, 246, 0.07);
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(148, 163, 184, 0.04);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.td-r { background: #f87171; } .td-y { background: #fbbf24; } .td-g { background: #34d399; }
.term-title { margin-left: 10px; color: var(--faint); font-size: 12px; font-family: var(--font-mono); }
.term-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2.1;
  min-height: 196px;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.t-p { color: var(--cyan-soft); }
.t-a { color: var(--violet-soft); }
.t-ok { color: var(--green-soft); }
.t-w { color: #fbbf24; }
.t-dim { color: var(--faint); }
.caret {
  display: inline-block;
  width: 9px; height: 17px;
  background: var(--cyan-soft);
  vertical-align: -3px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ============ MARQUEE ============ */

.marquee-section { padding: 34px 0; border-top: 1px solid rgba(148, 163, 184, 0.07); border-bottom: 1px solid rgba(148, 163, 184, 0.07); }
.marquee-label {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
  padding-right: 14px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-direction: reverse; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ============ STATS BAND ============ */

.stats-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 768px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.55), transparent);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.3); }
.stat-num {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  font-family: var(--font-head);
  margin-bottom: 6px;
  background: linear-gradient(120deg, var(--blue-soft), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ============ BENTO (why) ============ */

.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .bento-term { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; }
  .bento .bento-term { grid-column: 1; grid-row: 1 / 3; }
}
.bento-card h3 { font-size: 1.22rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.bento-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.bento-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.09);
  line-height: 1;
  pointer-events: none;
}
.bento-term { display: flex; flex-direction: column; justify-content: stretch; padding: 0; }
.bento-term .term { height: 100%; border: none; border-radius: inherit; box-shadow: none; background: transparent; display: flex; flex-direction: column; }
.bento-term .term-body { flex: 1; }

/* ============ STEPS / TIMELINE ============ */

.steps {
  position: relative;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before {
    content: '';
    position: absolute;
    top: 56px; left: 7%; right: 7%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan), var(--green));
    opacity: 0.4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .steps.drawn::before { transform: scaleX(1); }
}
.step-week {
  margin-top: 18px;
  font-size: 12px;
  color: var(--blue-soft);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============ FAQ ============ */

.faq-item { border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.faq-btn {
  width: 100%;
  text-align: left;
  background: none; border: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s;
}
.faq-btn:hover { color: var(--blue-soft); }
.faq-icon { flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); color: var(--faint); }
.faq-icon.rotated { transform: rotate(45deg); color: var(--blue-soft); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer > div { overflow: hidden; }
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer p { color: var(--muted); font-size: 15px; line-height: 1.75; padding: 0 4px 22px; }

/* ============ CTA BANNER ============ */

.cta-banner {
  position: relative;
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(59, 130, 246, 0.2), transparent 70%),
    linear-gradient(140deg, rgba(59, 130, 246, 0.14), rgba(6, 182, 212, 0.06) 60%, rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 10%, rgba(96, 165, 250, 0.75) 18%, rgba(34, 211, 238, 0.75) 26%, transparent 36%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cta-spin 6s linear infinite;
  pointer-events: none;
}
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes cta-spin { to { --cta-angle: 360deg; } }
.cta-banner h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: -0.02em; }
.cta-banner > .cta-inner { position: relative; z-index: 1; }

/* ============ FORMS ============ */

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 13.5px; font-weight: 600; color: #cbd5e1; }
.req { color: #f87171; margin-left: 3px; }
.form-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 11px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  background: rgba(7, 11, 20, 0.85);
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}
select.form-input option { background: #0c1322; color: var(--text); }
textarea.form-input { min-height: 130px; resize: vertical; }
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.28);
}
.form-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.42); }
.form-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; animation: success-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes success-pop { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
.success-ring {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-soft);
}

.qs-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.14), rgba(6, 182, 212, 0.05) 60%, rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.contact-detail { display: flex; align-items: center; gap: 14px; padding: 11px 0; }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============ FOOTER ============ */

footer {
  position: relative;
  background: var(--bg-footer);
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 52px;
}
.footer-head { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
footer a { transition: color 0.2s; }
footer a:hover { color: var(--blue-soft); }
.footer-link { color: var(--faint); font-size: 14px; text-decoration: none; }
.footer-meta {
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  padding-top: 28px;
  display: flex; flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.footer-meta p { color: #334155; font-size: 12px; }
.footer-social {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s;
}
.footer-social:hover { color: #fff !important; background: rgba(59, 130, 246, 0.15); border-color: rgba(96, 165, 250, 0.35); transform: translateY(-2px); }
.footer-watermark {
  position: absolute;
  bottom: -38px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 220px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ============ SERVICE ROWS (services page) ============ */

.svc-row { position: relative; }
.svc-num-bg {
  position: absolute;
  top: 14px; right: 24px;
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.07);
  line-height: 1;
  pointer-events: none;
}

/* ============ MOTION SAFETY ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none !important; transform: none !important; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .scroll-cue svg { animation: none; }
}
