/* ============================================================
   VEKTRAX — Cinematic Dark Theme (multi-page app)
   ============================================================ */

:root, [data-theme="dark"] {
  --bg-0: #05070d; --bg-1: #0a0e18; --bg-2: #0f1524; --bg-3: #151d30;
  --surface-glass: rgba(18, 26, 44, 0.55);
  --surface-line: rgba(120, 160, 230, 0.10);
  --surface-line-strong: rgba(120, 170, 255, 0.22);
  --text-hi: #eef3ff; --text-mid: #a9b6d4; --text-low: #6b7794;
  --accent-cyan: #22d3ee; --accent-blue: #3b82f6; --accent-violet: #8b5cf6; --accent-teal: #2dd4bf;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --grad-primary: linear-gradient(120deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
  --grad-primary-soft: linear-gradient(120deg, rgba(34,211,238,.16), rgba(139,92,246,.16));
  --glow-cyan: 0 0 42px rgba(34, 211, 238, 0.35);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --text-hero: clamp(2.7rem, 6.2vw, 5.4rem);
  --text-3xl: clamp(2rem, 4.4vw, 3.3rem);
  --text-2xl: clamp(1.55rem, 3vw, 2.3rem);
  --text-xl: 1.35rem; --text-lg: 1.12rem; --text-base: 1rem; --text-sm: 0.9rem; --text-xs: 0.78rem;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms var(--ease-out); --t-med: 320ms var(--ease-out);
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --bg-0: #f6f8fd; --bg-1: #eef2fa; --bg-2: #ffffff; --bg-3: #f2f5fc;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-line: rgba(30, 60, 120, 0.12);
  --surface-line-strong: rgba(40, 90, 200, 0.28);
  --text-hi: #0b1730; --text-mid: #3c4a68; --text-low: #6b7794;
  --accent-cyan: #0891b2; --accent-blue: #2563eb; --accent-violet: #7c3aed;
  --grad-primary: linear-gradient(120deg, #0891b2 0%, #2563eb 45%, #7c3aed 100%);
  --grad-primary-soft: linear-gradient(120deg, rgba(8,145,178,.12), rgba(124,58,237,.12));
  --glow-cyan: 0 0 30px rgba(8, 145, 178, 0.20);
}
[data-theme="light"] .btn-primary, [data-theme="light"] .track-icon, [data-theme="light"] .tcard-avatar { color: #ffffff; }
[data-theme="light"] .hero-grid { opacity: .5; }
[data-theme="light"] #particles { opacity: .5; }
[data-theme="light"] .marquee-track span { color: #97a4be; }

/* Arabic / RTL fonts */
[dir="rtl"] { font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "Noto Sans Arabic", "Space Grotesk", sans-serif; }
[dir="rtl"] .nav-drop { left: auto; right: 0; }
[dir="rtl"] .card-link svg, [dir="rtl"] .btn svg { transform: scaleX(-1); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; transition: background-color .4s ease; }
body, .nav, .card, .footer, .form-card, .track-box, .stat, .step, .tcard, .price-card, .post-card, .faq-item, .info-item, .table-card, .auth-card, .track-result { transition: background-color .4s ease, border-color .4s ease, color .3s ease; }
body { font-family: var(--font-body); background: var(--bg-0); color: var(--text-mid); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(34,211,238,.3); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #1c2842; border-radius: 20px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1360px; }
.container-narrow { max-width: 860px; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 10vw, 140px); }
.section-pad-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-1 { background: var(--bg-1); }
.bg-line-top { border-top: 1px solid var(--surface-line); }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text-hi); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
p { color: var(--text-mid); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-cyan); padding: 7px 14px; border: 1px solid var(--surface-line-strong); border-radius: 100px; background: rgba(34,211,238,.05); }
.eyebrow::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.grad-text { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: var(--text-3xl); margin: 18px 0 16px; }
.section-head p { font-size: var(--text-lg); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--text-lg); color: var(--text-mid); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: var(--text-base); transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 10px 18px; font-size: var(--text-sm); }
.btn-lg { padding: 16px 32px; font-size: var(--text-lg); }
.btn-primary { background: var(--grad-primary); color: #04060d; box-shadow: 0 8px 30px rgba(59,130,246,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(59,130,246,.5); }
.btn-ghost { border: 1px solid var(--surface-line-strong); color: var(--text-hi); background: rgba(255,255,255,.02); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-cyan); background: rgba(34,211,238,.06); }
.btn-block { width: 100%; }

/* Badges / chips */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--text-mid); padding: 7px 14px; border-radius: 100px; background: rgba(255,255,255,.03); border: 1px solid var(--surface-line); }
.chip svg { width: 15px; height: 15px; color: var(--accent-cyan); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: var(--text-xs); font-weight: 600; }
.badge-ok { background: rgba(52,211,153,.12); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.badge-warn { background: rgba(251,191,36,.12); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }
.badge-info { background: rgba(59,130,246,.12); color: var(--accent-blue); border: 1px solid rgba(59,130,246,.3); }

/* ============================================================ NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background var(--t-med), border-color var(--t-med); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,7,13,.75); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--surface-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text-hi); }
.logo svg { width: 34px; height: 34px; }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: .16em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 100px; font-size: var(--text-sm); color: var(--text-mid); transition: color var(--t-fast), background var(--t-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--text-hi); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: var(--text-sm); }
.nav-toggle { display: none; color: var(--text-hi); width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--surface-line); }
/* dropdown */
.nav-item { position: relative; }
.nav-drop { position: absolute; top: 100%; left: 0; min-width: 240px; padding: 10px; background: rgba(10,14,24,.97); backdrop-filter: blur(18px); border: 1px solid var(--surface-line); border-radius: var(--r-md); box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); }
.nav-item:hover .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--r-sm); }
.nav-drop a strong { color: var(--text-hi); font-size: var(--text-sm); font-weight: 600; }
.nav-drop a span { font-size: var(--text-xs); color: var(--text-low); }
.nav-drop a:hover { background: rgba(255,255,255,.05); }

/* ============================================================ PAGE HERO (inner pages) */
.page-hero { position: relative; padding: 150px 0 80px; overflow: hidden; text-align: center; border-bottom: 1px solid var(--surface-line); }
.page-hero .hero-grid, .hero .hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .3; pointer-events: none; background-image: linear-gradient(var(--surface-line) 1px, transparent 1px), linear-gradient(90deg, var(--surface-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.page-hero .glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; width: 500px; height: 500px; }
.page-hero .glow.a { background: radial-gradient(circle, rgba(34,211,238,.3), transparent 70%); top: -30%; left: -5%; }
.page-hero .glow.b { background: radial-gradient(circle, rgba(139,92,246,.28), transparent 70%); top: -20%; right: -5%; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--text-3xl); margin: 20px 0 18px; }
.page-hero p { font-size: var(--text-lg); max-width: 640px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: var(--text-sm); color: var(--text-low); margin-top: 24px; }
.breadcrumb a:hover { color: var(--accent-cyan); }

/* ============================================================ HOME HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero-glow.a { width: 620px; height: 620px; background: radial-gradient(circle, rgba(34,211,238,.28), transparent 70%); top: -12%; left: -8%; }
.hero-glow.b { width: 560px; height: 560px; background: radial-gradient(circle, rgba(139,92,246,.26), transparent 70%); bottom: -14%; right: -6%; }
.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; padding-block: 120px 80px; }
.hero h1 { font-size: var(--text-hero); font-weight: 600; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--text-mid); max-width: 640px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

/* Track widget */
.track-box { max-width: 720px; margin: 0 auto; padding: 12px; background: var(--surface-glass); backdrop-filter: blur(20px); border: 1px solid var(--surface-line-strong); border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.track-row { display: flex; gap: 10px; align-items: stretch; }
.track-icon { display: grid; place-items: center; width: 56px; border-radius: var(--r-md); background: var(--grad-primary); color: #04060d; flex-shrink: 0; }
.track-icon svg { width: 24px; height: 24px; }
.track-input { flex: 1; background: rgba(0,0,0,.3); border: 1px solid var(--surface-line); border-radius: var(--r-md); padding: 14px 20px; color: var(--text-hi); font-size: var(--text-base); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.track-input::placeholder { color: var(--text-low); }
.track-input:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.track-box .btn-primary { border-radius: var(--r-md); white-space: nowrap; }
.track-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* Trust marquee */
.trust { border-top: 1px solid var(--surface-line); border-bottom: 1px solid var(--surface-line); background: var(--bg-1); padding-block: 32px; overflow: hidden; }
.trust-label { text-align: center; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--text-low); margin-bottom: 22px; }
.marquee { display: flex; 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: 64px; padding-right: 64px; animation: marquee 32s linear infinite; white-space: nowrap; }
.marquee-track span { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--text-low); letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ CARDS / GRIDS */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; padding: 30px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--surface-line); transition: border-color var(--t-fast), box-shadow var(--t-fast); transform-style: preserve-3d; }
.card::before { content:""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-primary); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--t-med); pointer-events: none; }
.tilt:hover::before { opacity: .6; }
.tilt:hover { box-shadow: 0 26px 60px rgba(0,0,0,.55); }
.card-inner { transform: translateZ(30px); transform-style: preserve-3d; }
a.card:hover { border-color: var(--surface-line-strong); }
.feature-icon { width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 20px; background: var(--grad-primary-soft); border: 1px solid var(--surface-line-strong); color: var(--accent-cyan); }
.feature-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--text-xl); margin-bottom: 10px; }
.card p { font-size: var(--text-base); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent-cyan); font-weight: 600; font-size: var(--text-sm); }
.card-link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
a.card:hover .card-link svg { transform: translateX(4px); }

/* Split rows */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.rev .split-media { order: -1; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--surface-line-strong); box-shadow: 0 30px 70px rgba(0,0,0,.5); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(5,7,13,.5)); }
.split-copy h2 { font-size: var(--text-2xl); margin: 16px 0 16px; }
.split-copy p { font-size: var(--text-lg); margin-bottom: 24px; }
.check-list { display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-mid); }
.check-list svg { width: 22px; height: 22px; color: var(--accent-cyan); flex-shrink: 0; margin-top: 2px; }

/* Stats */
.stat { text-align: center; padding: 38px 22px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--surface-line); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 600; line-height: 1; }
.stat-label { margin-top: 12px; font-size: var(--text-sm); color: var(--text-mid); }

/* Steps */
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--surface-line); }
.step-num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent-cyan); letter-spacing: .12em; }
.step h3 { font-size: var(--text-lg); margin: 12px 0 10px; }
.step p { font-size: var(--text-sm); }

/* Testimonials */
.tcard { padding: 30px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--surface-line); }
.tcard-stars { color: var(--warn); margin-bottom: 14px; letter-spacing: 2px; }
.tcard p { font-size: var(--text-base); color: var(--text-mid); font-style: italic; }
.tcard-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); color: #04060d; font-weight: 700; font-family: var(--font-display); }
.tcard-author strong { display: block; color: var(--text-hi); font-size: var(--text-sm); }
.tcard-author span { font-size: var(--text-xs); color: var(--text-low); }

/* ============================================================ CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 92px) 32px; border-radius: var(--r-xl); background: linear-gradient(150deg, #0c1424, #0a0f1c); border: 1px solid var(--surface-line-strong); }
.cta::before { content:""; position:absolute; width: 700px; height: 700px; border-radius:50%; filter: blur(100px); background: radial-gradient(circle, rgba(59,130,246,.28), transparent 70%); top: -60%; left: 50%; transform: translateX(-50%); pointer-events:none; }
.cta h2 { position: relative; font-size: var(--text-3xl); margin-bottom: 16px; }
.cta p { position: relative; font-size: var(--text-lg); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ FORMS */
.form-card { padding: 34px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--surface-line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--text-sm); color: var(--text-mid); margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--err); }
.input, .textarea, .select { width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--surface-line); border-radius: var(--r-md); padding: 13px 16px; color: var(--text-hi); font-size: var(--text-base); font-family: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input::placeholder, .textarea::placeholder { color: var(--text-low); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { position: relative; }
.input-group .toggle-pw { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-low); }
.form-note { font-size: var(--text-sm); color: var(--text-low); }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--accent-cyan); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: var(--text-sm); margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert-ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: var(--ok); }
.alert-err { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: var(--err); }
.alert-warn { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: var(--warn); }

/* ============================================================ AUTH PAGES */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 100px 24px 60px; position: relative; overflow: hidden; }
.auth-card { position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 40px; background: var(--surface-glass); backdrop-filter: blur(20px); border: 1px solid var(--surface-line-strong); border-radius: var(--r-lg); box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: var(--text-2xl); margin: 16px 0 8px; }
.auth-head p { font-size: var(--text-sm); }
.auth-foot { text-align: center; margin-top: 22px; font-size: var(--text-sm); }
.auth-foot a { color: var(--accent-cyan); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-low); font-size: var(--text-xs); }
.auth-divider::before, .auth-divider::after { content:""; flex:1; height:1px; background: var(--surface-line); }

/* ============================================================ TRACK RESULTS */
.track-result { margin-top: 26px; padding: 30px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--surface-line); text-align: left; }
.track-result-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--surface-line); margin-bottom: 24px; }
.track-result-head h3 { font-size: var(--text-xl); }
.track-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; margin-bottom: 28px; }
.track-meta .m-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); }
.track-meta .m-value { color: var(--text-hi); font-weight: 600; margin-top: 4px; }
/* timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content:""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--surface-line-strong); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content:""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--text-low); }
.tl-item.done::before { background: var(--accent-cyan); border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.tl-item.current::before { background: var(--accent-violet); border-color: var(--accent-violet); box-shadow: 0 0 20px rgba(139,92,246,.6); }
.tl-item .tl-title { color: var(--text-hi); font-weight: 600; }
.tl-item .tl-time { font-size: var(--text-xs); color: var(--text-low); font-family: var(--font-mono); margin: 2px 0 4px; }
.tl-item .tl-loc { font-size: var(--text-sm); }

/* progress bar */
.track-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.track-progress .seg { flex: 1; height: 6px; border-radius: 100px; background: var(--surface-line); }
.track-progress .seg.done { background: var(--grad-primary); }

/* ============================================================ DASHBOARD (portal/admin) */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-side { background: var(--bg-1); border-right: 1px solid var(--surface-line); padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side .logo { margin-bottom: 32px; padding: 0 6px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); font-size: var(--text-sm); color: var(--text-mid); transition: color var(--t-fast), background var(--t-fast); }
.dash-nav a svg { width: 19px; height: 19px; }
.dash-nav a:hover { background: rgba(255,255,255,.04); color: var(--text-hi); }
.dash-nav a.active { background: var(--grad-primary-soft); color: var(--text-hi); border: 1px solid var(--surface-line-strong); }
.dash-main { padding: 32px; overflow-x: hidden; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dash-topbar h1 { font-size: var(--text-2xl); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 30px; }
.kpi { padding: 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--surface-line); }
.kpi .k-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); }
.kpi .k-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--text-hi); margin-top: 8px; }
.kpi .k-icon { float: right; width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-primary-soft); color: var(--accent-cyan); }
.kpi .k-icon svg { width: 20px; height: 20px; }

/* Table */
.table-card { background: var(--bg-2); border: 1px solid var(--surface-line); border-radius: var(--r-lg); overflow: hidden; }
.table-card .table-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--surface-line); }
.table-card h3 { font-size: var(--text-lg); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-low); padding: 14px 24px; border-bottom: 1px solid var(--surface-line); font-weight: 600; }
table.data td { padding: 15px 24px; font-size: var(--text-sm); color: var(--text-mid); border-bottom: 1px solid var(--surface-line); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
table.data .mono { font-family: var(--font-mono); color: var(--text-hi); }

/* ============================================================ BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); border: 1px solid var(--surface-line); transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.post-card:hover { transform: translateY(-4px); border-color: var(--surface-line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.post-cover { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--bg-3); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-cat { position: absolute; top: 14px; left: 14px; }
.post-body { padding: 22px; }
.post-meta { display: flex; gap: 14px; font-size: var(--text-xs); color: var(--text-low); margin-bottom: 12px; font-family: var(--font-mono); }
.post-body h3 { font-size: var(--text-lg); margin-bottom: 12px; line-height: 1.3; }
.post-body h3 a:hover { color: var(--accent-cyan); }
/* article */
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 34px; border: 1px solid var(--surface-line); }
.article-body { font-size: var(--text-lg); line-height: 1.8; }
.article-body h2 { font-size: var(--text-2xl); margin: 40px 0 16px; }
.article-body h3 { font-size: var(--text-xl); margin: 30px 0 14px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { border-left: 3px solid var(--accent-cyan); padding: 4px 0 4px 22px; margin: 24px 0; color: var(--text-hi); font-style: italic; }

/* ============================================================ PRICING */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card { padding: 36px 30px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--surface-line); position: relative; }
.price-card.featured { border-color: var(--surface-line-strong); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.price-card.featured::before { content:""; position:absolute; inset:0; border-radius: inherit; padding:1px; background: var(--grad-primary); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-name { font-family: var(--font-display); font-size: var(--text-xl); color: var(--text-hi); }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--text-hi); margin: 14px 0 4px; }
.price-amount small { font-size: 1rem; color: var(--text-low); font-family: var(--font-body); }
.price-desc { font-size: var(--text-sm); margin-bottom: 24px; }
.price-features { display: grid; gap: 12px; margin-bottom: 28px; }
.price-features li { display: flex; gap: 10px; font-size: var(--text-sm); }
.price-features svg { width: 18px; height: 18px; color: var(--accent-cyan); flex-shrink: 0; }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--surface-line); font-size: var(--text-sm); }
.compare th { color: var(--text-hi); font-family: var(--font-display); }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text-mid); }
.compare svg { width: 18px; height: 18px; color: var(--accent-cyan); }

/* ============================================================ FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--surface-line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; background: var(--bg-2); }
.faq-q { width: 100%; text-align: left; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text-hi); font-weight: 600; font-size: var(--text-base); }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--t-fast); color: var(--accent-cyan); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.faq-a-inner { padding: 0 22px 20px; font-size: var(--text-sm); color: var(--text-mid); }

/* ============================================================ CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--surface-line); }
.info-item .info-icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-primary-soft); color: var(--accent-cyan); flex-shrink: 0; }
.info-item .info-icon svg { width: 22px; height: 22px; }
.info-item strong { color: var(--text-hi); display: block; margin-bottom: 4px; }
.info-item span, .info-item a { font-size: var(--text-sm); color: var(--text-mid); }
#map { height: 320px; border-radius: var(--r-md); overflow: hidden; margin-top: 24px; border: 1px solid var(--surface-line); z-index: 1; }

/* ============================================================ FOOTER */
.footer { background: var(--bg-0); border-top: 1px solid var(--surface-line); padding-block: 60px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: var(--text-sm); max-width: 300px; }
.footer-contact { margin-top: 18px; display: grid; gap: 8px; font-size: var(--text-sm); }
.footer-contact a { display: flex; gap: 8px; align-items: center; }
.footer-contact svg { width: 15px; height: 15px; color: var(--accent-cyan); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--surface-line); color: var(--text-mid); transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.footer-social a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--text-low); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--text-mid); padding: 6px 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--surface-line); font-size: var(--text-sm); color: var(--text-low); flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--accent-cyan); }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .grid-3, .grid-4, .blog-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; left: -280px; z-index: 200; transition: left var(--t-med); width: 260px; }
  .dash-side.open { left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-desktop, .nav-cta .btn-primary.nav-hide { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .blog-grid, .price-grid, .field-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .track-row { flex-wrap: wrap; }
  .track-icon { display: none; }
  .track-box .btn-primary { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .dash-main { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================ THEME/LANG CONTROLS + INTERACTIONS */
.icon-btn { width: 40px; height: 40px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--surface-line-strong); color: var(--text-hi); background: rgba(255,255,255,.03); transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--accent-cyan); background: rgba(34,211,238,.06); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-switch .icon-btn { width: auto; padding: 0 12px; }
.lang-code { font-size: var(--text-xs); font-weight: 600; font-family: var(--font-mono); }
.lang-drop { min-width: 180px; right: 0; left: auto; }
.lang-drop a.active-lang { background: var(--grad-primary-soft); }
/* theme icon swap */
.ico-sun { display: none; } .ico-moon { display: block; }
[data-theme="light"] .ico-sun { display: block; } [data-theme="light"] .ico-moon { display: none; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad-primary); box-shadow: 0 0 12px rgba(34,211,238,.6); transition: width .1s linear; }

/* Magnetic button wrapper */
.magnetic { will-change: transform; }

/* Cursor glow (desktop) */
.cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(34,211,238,.06), transparent 65%); opacity: 0; transition: opacity .3s; mix-blend-mode: screen; }
[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(37,99,235,.05), transparent 65%); mix-blend-mode: multiply; }

/* Reveal variants for richer motion */
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-scale.in { opacity: 1; transform: none; }

/* Button shine on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content:""; position:absolute; top:0; left:-120%; width:60%; height:100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease-out); }
.btn-primary:hover::after { left: 130%; }

/* Card sheen following pointer */
.tilt { --mx: 50%; --my: 50%; }
.tilt::after { content:""; position:absolute; inset:0; border-radius: inherit; background: radial-gradient(circle at var(--mx) var(--my), rgba(120,180,255,.10), transparent 45%); opacity: 0; transition: opacity var(--t-med); pointer-events: none; }
.tilt:hover::after { opacity: 1; }

@media (max-width: 860px) {

  .mobile-controls { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--surface-line); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  .cursor-glow, .scroll-progress { display: none; }
}

/* ===== Mobile: keep theme + language controls visible & tidy ===== */
@media (max-width: 860px) {
  .nav-cta { gap: 6px; }
  #themeToggle, .lang-switch .icon-btn { width: 38px; height: 38px; padding: 0; }
  .lang-switch .lang-code { display: none; } /* icon only on small screens to save space */
  .nav-inner { gap: 8px; }
  /* language dropdown opens flush to the right edge on mobile */
  .lang-drop { right: 0; left: auto; min-width: 160px; }
}
@media (max-width: 400px) {
  .logo-word { font-size: 1.05rem; letter-spacing: .12em; }
  .nav-cta { gap: 4px; }
}

/* Dropdown open via JS class (works on touch, all devices) */
.nav-item.open > .nav-drop { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
