@import url('../fonts/fonts.css');
:root {
  --bg-deep: #020203;
  --bg-base: #060a14;
  --bg-elevated: #0c1222;
  --bg-card: rgba(12, 20, 40, 0.65);
  --bg-card-hover: rgba(18, 30, 56, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.04);

  --gold: #e8a920;
  --gold-light: #fcd34d;
  --gold-glow: rgba(232, 169, 32, 0.25);

  --accent: #06d6a0;
  --accent-light: #34d399;
  --accent-glow: rgba(6, 214, 160, 0.18);

  --purple: #71717A;
  --purple-glow: rgba(113, 113, 122, 0.1);

  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(148, 163, 184, 0.08);
  --border-hover: rgba(148, 163, 184, 0.18);
  --border-accent: rgba(6, 214, 180, 0.25);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-glow-gold: 0 0 40px rgba(232, 169, 32, 0.15);
  --shadow-glow-accent: 0 0 40px rgba(6, 214, 160, 0.12);

  --transition-fast: 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== LIGHT THEME ===== */
.light-theme {
  --bg-deep: #f8fafc;
  --bg-base: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.03);

  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-glow: rgba(217, 119, 6, 0.15);

  --accent: #059669;
  --accent-light: #10b981;
  --accent-glow: rgba(5, 150, 105, 0.12);

  --purple: #71717A;
  --purple-glow: rgba(113, 113, 122, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --border-accent: rgba(5, 150, 105, 0.25);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-glow-gold: 0 0 40px rgba(217, 119, 6, 0.1);
  --shadow-glow-accent: 0 0 40px rgba(5, 150, 105, 0.08);
}

.light-theme .bgmesh {
  background:
    radial-gradient(1200px 800px at 85% -15%, rgba(217, 119, 6, 0.04), transparent 50%),
    radial-gradient(900px 600px at 5% 25%, rgba(5, 150, 105, 0.03), transparent 50%),
    linear-gradient(175deg, var(--bg-deep), var(--bg-base), var(--bg-elevated));
}
.light-theme .bgmesh::after { opacity: 0.015; }
.light-theme header.scrolled { background: rgba(248, 250, 252, 0.92); border-bottom-color: var(--border); }
.light-theme .navlinks a:hover { color: var(--text-primary); }
.light-theme .card { background: linear-gradient(170deg, rgba(255,255,255,0.8), rgba(241,245,249,0.7)); }
.light-theme .card:hover { background: linear-gradient(170deg, rgba(255,255,255,0.95), rgba(241,245,249,0.9)); }
.light-theme .stat, .light-theme .step { background: var(--bg-card); }
.light-theme .btn-primary { color: #fff; }
.light-theme .btn-ghost { background: rgba(0,0,0,0.03); border-color: rgba(15,23,42,0.1); }
.light-theme .badge-sm.green { background: rgba(5,150,105,0.08); color: var(--accent); border-color: rgba(5,150,105,0.2); }
.light-theme .live-clock { background: rgba(5,150,105,0.06); border-color: rgba(5,150,105,0.15); }
.light-theme .idx-card, .light-theme .dash-card, .light-theme .scan-card,
.light-theme .crypto-card, .light-theme .news-card, .light-theme .side-card,
.light-theme .chart-panel, .light-theme .strat-config, .light-theme .strat-results {
  background: var(--bg-card); border-color: var(--border);
}
.light-theme .filter-btn { background: var(--bg-card); border-color: var(--border); }
.light-theme .filter-btn.active { background: rgba(5,150,105,0.08); border-color: var(--accent); color: var(--accent); }
.light-theme .mt-row:hover, .light-theme .nm-item:hover, .light-theme .data-table tr:hover td { background: rgba(0,0,0,0.02); }
.light-theme .skeleton { background: linear-gradient(90deg, #f1f5f9 25%, rgba(15,23,42,0.04) 50%, #f1f5f9 75%); background-size: 200% 100%; }
.light-theme .ai-analysis-card { background: linear-gradient(135deg, rgba(113,113,122,0.04), rgba(5,150,105,0.03)); border-color: rgba(113,113,122,0.12); }
.light-theme .summary-badge.bullish { background: rgba(5,150,105,0.08); border-color: rgba(5,150,105,0.2); }
.light-theme .summary-badge.bearish { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
.light-theme footer { border-top-color: var(--border); }
.light-theme .back-to-top { background: var(--bg-card); border-color: var(--border); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.25); }
* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.15) transparent; }

body {
  font-family: 'Vazirmatn', 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Vazirmatn', sans-serif;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BACKGROUND ===== */
.bgmesh {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 800px at 85% -15%, rgba(232, 169, 32, 0.06), transparent 50%),
    radial-gradient(900px 600px at 5% 25%, rgba(6, 214, 160, 0.04), transparent 50%),
    linear-gradient(175deg, var(--bg-deep), var(--bg-base), var(--bg-elevated));
}
.bgmesh::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}
/* ===== BACKGROUND WHALE (anim) ===== */
.whale-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.whale {
  /* left:0 is explicit on purpose. The document is dir="rtl", so an absolutely
     positioned element with no inline offset resolves its static position from
     the right edge - the whale then began its sweep off-screen right and spent
     most of the cycle invisible. Anchoring to the left makes the -22vw -> 122vw
     traverse deterministic regardless of text direction. */
  position: absolute; top: 46%; left: 0;
  width: clamp(260px, 30vw, 460px); height: auto;
  /* Opacity is set against --bg-deep (#020203), which is near-black. The old
     0.1 composited to roughly #050c12 - present in the DOM but invisible on
     screen. 0.30 lands where 0.1 would on a mid-grey page. */
  opacity: 0.30;
  filter: drop-shadow(0 0 30px rgba(74, 159, 216, .18));
  will-change: transform;
  /* GSAP drives this when available; the CSS swim is the fallback
     and would otherwise fight GSAP for the transform property. */
}
.whale.whale-css-fallback { animation: whaleSwim 150s linear infinite; }
/* A dark whale on a light background needs the opposite correction. */
.light-theme .whale { opacity: 0.14; filter: none; }

/* Tail and flipper articulate slightly so it reads as swimming rather than
   sliding sideways. Origins sit at the peduncle and the flipper root. */
.whale-tail {
  transform-origin: 104px 100px;
  animation: whaleTail 4.5s ease-in-out infinite alternate;
}
@keyframes whaleTail {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}
.whale-flipper {
  transform-origin: 428px 136px;
  animation: whaleFlipper 6s ease-in-out infinite alternate;
}
@keyframes whaleFlipper {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(8deg); }
}
@keyframes whaleSwim {
  0%   { transform: translateX(-22vw)   translateY(0px); }
  20%  { transform: translateX(8vw)     translateY(-10px); }
  40%  { transform: translateX(38vw)    translateY(0px); }
  60%  { transform: translateX(68vw)    translateY(8px); }
  80%  { transform: translateX(95vw)    translateY(0px); }
  100% { transform: translateX(122vw)   translateY(0px); }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the whale, drop the movement - it is the drifting that triggers
     motion sensitivity, not the image. */
  .whale, .whale-tail, .whale-flipper { animation: none; }
  .whale { transform: translateX(14vw); }
}


/* ===== HEADER / NAV ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: var(--transition-smooth);
}
header.scrolled {
  background: rgba(2, 2, 3, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1200px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.3px;
}
.logo {
  width: 48px; height: 48px; display: grid; place-items: center;
  filter: drop-shadow(0 4px 16px rgba(232, 169, 32, 0.35));
  transition: var(--transition-spring); border-radius: var(--radius-sm); overflow: hidden;
}
.logo:hover { transform: scale(1.08) rotate(-2deg); filter: drop-shadow(0 6px 24px rgba(232, 169, 32, 0.5)); }
.logo img { width: 48px; height: 48px; display: block; border-radius: var(--radius-sm); object-fit: cover; }

.navlinks { display: flex; gap: 32px; font-size: 0.94rem; color: var(--text-secondary); }
.navlinks a {
  transition: var(--transition-fast); position: relative; padding: 4px 0;
}
.navlinks a::after {
  content: ""; position: absolute; bottom: -2px; right: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); border-radius: 2px;
}
.navlinks a:hover { color: var(--text-primary); }
.navlinks a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0f1a; box-shadow: 0 6px 24px var(--gold-glow);
  transition: var(--transition-smooth); position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%); transition: 0.5s;
}
.nav-cta:hover::before { transform: translateX(100%); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--gold-glow); }

.burger {
  display: none; font-size: 1.5rem; color: var(--text-primary);
  background: none; border: none; padding: 8px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.theme-toggle:hover { background: var(--bg-card-hover); color: var(--gold); border-color: var(--border-hover); transform: scale(1.1); }
.theme-toggle:active { transform: scale(0.95); }
.theme-toggle .icon-moon { display: none; }
.light-theme .theme-toggle .icon-sun { display: none; }
.light-theme .theme-toggle .icon-moon { display: block; }

/* ===== HERO ===== */
.hero {
  min-height: 100dvh; display: flex; align-items: center;
  position: relative; padding-top: 90px; justify-content: flex-start;
}
.hero-inner { max-width: 780px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--radius-pill);
  background: var(--bg-glass); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--accent-light);
  margin-bottom: 32px; backdrop-filter: blur(12px);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 900;
  line-height: 1.25; letter-spacing: -0.6px; margin-bottom: 28px;
}
.hero h1 .grad {
  color: var(--gold);
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary);
  max-width: 620px; margin-bottom: 42px; line-height: 2;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; border: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden; cursor: pointer;
  letter-spacing: -0.2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0f1a; box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%); transition: 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 40px rgba(232, 169, 32, 0.4); }
.btn-primary:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

.btn-ghost {
  background: var(--bg-glass); color: var(--text-primary);
  border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--accent); transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-accent);
}
.btn-ghost:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

/* ===== SECTIONS ===== */
section { position: relative; padding: clamp(3rem, 8vw, 6rem) 0; }

.eyebrow {
  color: var(--accent); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 1.5px; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px;
}
.s-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 900;
  margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.2;
}
.s-title .highlight {
  background: linear-gradient(120deg, var(--gold), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s-sub { color: var(--text-secondary); max-width: 600px; margin-bottom: 48px; font-size: 1.02rem; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(24px); transition: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reveal.show { opacity: 1; transform: none; }
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }
.reveal:nth-child(6) { transition-delay: 400ms; }

/* ===== CARDS ===== */
.grid { display: grid; gap: 24px; }
.grid.cols3 { grid-template-columns: 1fr 1fr; }
.grid.cols3 > :last-child { grid-column: 1 / -1; }

.card {
  position: relative; padding: 32px 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(16, 26, 50, 0.55), rgba(8, 14, 28, 0.55));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: 0; transform: scaleX(0.3); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.card:hover::before { transform: scaleX(1); opacity: 0.7; }
.card:active { transform: translateY(-2px) scale(0.99); transition-duration: 0.1s; }

.card .ic {
  width: 62px; height: 62px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 22px;
  transform: translateZ(40px); position: relative;
  border: 1px solid var(--border); transition: var(--transition-spring);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card .ic svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.card .ic.gold { background: linear-gradient(135deg, rgba(232, 169, 32, 0.12), rgba(232, 169, 32, 0.03)); border-color: rgba(232, 169, 32, 0.18); }
.card .ic.gold svg { stroke: var(--gold); }
.card .ic.cyan { background: linear-gradient(135deg, rgba(6, 214, 160, 0.12), rgba(6, 214, 160, 0.03)); border-color: rgba(6, 214, 160, 0.18); }
.card .ic.cyan svg { stroke: var(--accent); }
.card .ic.purple { background: linear-gradient(135deg, rgba(113, 113, 122, 0.12), rgba(113, 113, 122, 0.03)); border-color: rgba(113, 113, 122, 0.18); }
.card .ic.purple svg { stroke: var(--text-secondary); }

.card:hover .ic { transform: translateZ(40px) scale(1.08) rotate(-3deg); }

.card h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 12px; transform: translateZ(28px); }
.card p { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.85; transform: translateZ(18px); }
.card .tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 0.8rem; color: var(--accent-light);
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(6, 214, 160, 0.06); border: 1px solid rgba(6, 214, 160, 0.15);
  transform: translateZ(18px);
}
.card .glow {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  opacity: 0; transition: 0.3s; pointer-events: none;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 169, 32, 0.08), transparent 40%);
}
.card:hover .glow { opacity: 1; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.stat {
  text-align: center; padding: 30px 16px;
  border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.stat:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.stat:active { transform: translateY(-2px) scale(0.99); transition-duration: 0.1s; }
.stat .num {
  font-size: 2.2rem; font-weight: 900; font-family: 'Outfit', sans-serif;
  background: linear-gradient(120deg, var(--gold), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.2;
}
.stat .lbl { color: var(--text-secondary); font-size: 0.88rem; margin-top: 8px; }

.step {
  position: relative; padding: 28px 22px;
  border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.step:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.step:active { transform: translateY(-2px) scale(0.99); transition-duration: 0.1s; }
.step .n {
  font-size: 2rem; font-weight: 900; font-family: 'Outfit', sans-serif;
  background: linear-gradient(120deg, var(--gold), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px; line-height: 1.2;
}
.stat:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.stat .num {
  font-size: 2.5rem; font-weight: 900; font-family: 'Outfit', sans-serif;
  background: linear-gradient(120deg, var(--gold), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--text-secondary); font-size: 0.92rem; margin-top: 8px; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; padding: 32px 24px;
  border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.step:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.step .n {
  font-size: 2.2rem; font-weight: 900; font-family: 'Outfit', sans-serif;
  background: linear-gradient(120deg, var(--gold), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.step h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* ===== CONTACT ===== */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.contact-card {
  padding: 44px 38px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-card);
}
.crow {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 14px; border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s;
}
.crow:last-child { border-bottom: none; }
.crow:hover { background: rgba(6, 214, 160, 0.04); transform: translateX(-4px); }
.crow:active { transform: translateX(-2px) scale(0.99); transition-duration: 0.1s; }
.crow .ci {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; border: 1px solid var(--border);
  transition: var(--transition-spring); flex-shrink: 0;
}
.crow .ci svg { width: 22px; height: 22px; }
.crow .ci.gold { background: linear-gradient(135deg, rgba(232, 169, 32, 0.1), rgba(232, 169, 32, 0.03)); border-color: rgba(232, 169, 32, 0.15); }
.crow .ci.gold svg { stroke: var(--gold); }
.crow .ci.cyan { background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(6, 214, 160, 0.03)); border-color: rgba(6, 214, 160, 0.15); }
.crow .ci.cyan svg { stroke: var(--accent); }
.crow .ci.purple { background: linear-gradient(135deg, rgba(113, 113, 122, 0.1), rgba(113, 113, 122, 0.03)); border-color: rgba(113, 113, 122, 0.15); }
.crow .ci.purple svg { stroke: var(--text-secondary); }
.crow:hover .ci { transform: scale(1.08); }
.crow .ct .k { font-size: 0.83rem; color: var(--text-secondary); }
.crow .ct .v { font-weight: 700; }

/* ===== WHATSAPP FAB ===== */
.wa-fab {
  position: fixed; bottom: 28px; left: 28px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366, #128c52);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
  color: #fff;
}
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }
.wa-fab:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5); }
.wa-fab:active { transform: scale(0.95); transition-duration: 0.1s; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse { 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 100px; left: 28px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(12px); color: var(--accent);
  font-size: 1.2rem; border: none; cursor: pointer;
  opacity: 0; pointer-events: none; transition: var(--transition-smooth);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: rgba(6, 214, 180, 0.1); transform: translateY(-3px); border-color: rgba(6, 214, 160, 0.25); }

/* ===== FOOTER ===== */
footer {
  padding: 44px 0; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: 0.88rem;
}
.footer-links { display: flex; justify-content: center; gap: 28px; margin-top: 14px; }
.footer-links a { color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  .grid.cols3 { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .navlinks {
    display: none; position: fixed; top: 0; right: 0; bottom: 0;
    width: 260px; z-index: 200; flex-direction: column;
    background: rgba(6, 10, 20, 0.98); backdrop-filter: blur(24px);
    padding: 80px 20px 20px; gap: 0;
    border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .navlinks.nav-open { display: flex !important; transform: translateX(0); }
  .navlinks a { padding: 14px 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); width: 100%; min-height: 48px; display: flex; align-items: center; }
  .navlinks a:last-child { border-bottom: none; }
  .burger { display: block; z-index: 201; position: relative; background: none; border: none; padding: 10px; font-size: 1.5rem; }
  .burger.active { color: var(--gold); }
  .nav-cta { display: none; }
  .grid.cols3, .stats, .steps { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 30px; }
  .hero p.lead { font-size: 0.9rem; line-height: 1.8; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; min-height: 48px; }
  .card { padding: 20px 16px; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: 0.85rem; }
  .card .ic { width: 50px; height: 50px; }
  .card .ic svg { width: 24px; height: 24px; }
  .contact-card { padding: 20px 16px; }
  .s-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .s-sub { font-size: 0.88rem; margin-bottom: 32px; }
  .stat .num { font-size: 1.8rem; }
  .stat .lbl { font-size: 0.78rem; }
  .stat { padding: 24px 12px; }
  .step { padding: 24px 16px; }
  .step .n { font-size: 1.6rem; }
  .step h4 { font-size: 0.9rem; }
  .step p { font-size: 0.82rem; }
  .container { padding: 0 16px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .wa-fab { width: 48px; height: 48px; bottom: 16px; left: 16px; }
  .wa-fab svg { width: 24px; height: 24px; }
  .back-to-top { width: 38px; height: 38px; bottom: 72px; left: 16px; }
  .eyebrow { font-size: 0.78rem; }
  .tag { font-size: 0.72rem; padding: 4px 10px; }
  .btn { padding: 12px 24px; font-size: 0.88rem; min-height: 44px; }
  .nav-cta { padding: 8px 16px; font-size: 0.78rem; }
  .brand { font-size: 1.1rem; }
  .logo img { width: 38px; height: 38px; }
  footer { padding: 28px 0; font-size: 0.78rem; }
  .crow { padding: 12px 10px; }
  .crow .ci { width: 40px; height: 40px; }
  .crow .ci svg { width: 18px; height: 18px; }
  .contact-wrap { gap: 24px; }
}

/* ===== MOBILE TOUCH ===== */
@media (hover: none) and (pointer: coarse) {
  .card:hover, .stat:hover, .step:hover { transform: none; }
  .card:active, .stat:active, .step:active { transform: scale(0.98); }
  .btn:active { transform: scale(0.97); }
  .nav-cta:active { transform: scale(0.97); }
  a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ===== 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; }
}
