/* ==========================================================================
   NiveshAI — Premium Fintech Design System
   Palette: Navy #0F172A | Blue #2563EB | Emerald #10B981 | Gold #F59E0B
   Font: Poppins
   ========================================================================== */

:root {
  --navy: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  --blue: #2563EB;
  --blue-600: #3B82F6;
  --blue-400: #60A5FA;
  --emerald: #10B981;
  --emerald-400: #34D399;
  --gold: #F59E0B;
  --gold-400: #FBBF24;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #111827;
  --muted: #64748B;
  --border: #E2E8F0;
  --red: #EF4444;
  --green: #059669;

  --grad-primary: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --grad-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --grad-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --grad-hero: linear-gradient(160deg, #0F172A 0%, #1E3A8A 55%, #1E293B 100%);
  --grad-cta: linear-gradient(120deg, #0F172A 0%, #1D4ED8 100%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .14);
  --shadow-blue: 0 10px 32px rgba(37, 99, 235, .28);
  --shadow-emerald: 0 10px 32px rgba(16, 185, 129, .28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --font: 'Poppins', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

::selection { background: rgba(37, 99, 235, .85); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ---------- Utilities ---------- */
.container { width: min(1240px, 92%); margin-inline: auto; }

.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37, 99, 235, .10); color: var(--blue);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, .18);
}
.eyebrow--emerald { background: rgba(16, 185, 129, .10); color: var(--emerald); border-color: rgba(16,185,129,.25); }
.eyebrow--gold { background: rgba(245, 158, 11, .10); color: #B45309; border-color: rgba(245,158,11,.25); }
.eyebrow--light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.25); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.15; margin-top: 18px; letter-spacing: -.02em;
}
.section-title .grad {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; font-weight: 400; }

.grad-text {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text--emerald { background: var(--grad-emerald); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 15px 28px; border-radius: var(--radius-full);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(37,99,235,.4); }

.btn-emerald { background: var(--grad-emerald); color: #fff; box-shadow: var(--shadow-emerald); }
.btn-emerald:hover { box-shadow: 0 16px 40px rgba(16,185,129,.4); }

.btn-gold { background: var(--grad-gold); color: #fff; box-shadow: 0 10px 32px rgba(245,158,11,.3); }

.btn-outline { background: transparent; color: var(--blue); border: 2px solid rgba(37,99,235,.35); }
.btn-outline:hover { background: rgba(37,99,235,.06); border-color: var(--blue); }

.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn-white:hover { box-shadow: var(--shadow-lg); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

.btn-lg { padding: 18px 36px; font-size: 1.02rem; }
.btn-sm { padding: 11px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Cards / Glass */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-full);
}
.badge-up { background: rgba(16,185,129,.12); color: var(--green); }
.badge-down { background: rgba(239,68,68,.12); color: var(--red); }
.badge-blue { background: rgba(37,99,235,.12); color: var(--blue); }

.pill {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-full);
  background: #EEF2FF; color: var(--blue); font-size: .82rem; font-weight: 500;
}

/* ---------- Loading screen ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--navy); transition: opacity .6s var(--ease), visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { width: 150px; margin: 0 auto 22px; animation: pulse-logo 1.6s ease infinite; }
@keyframes pulse-logo { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .85; } }
.loader-bar { width: 200px; height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; margin-inline: auto; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--grad-primary); border-radius: 4px; animation: loadslide 1.2s var(--ease) infinite; }
@keyframes loadslide { 0% { transform: translateX(-120%);} 100% { transform: translateX(520%);} }
.loader-text { color: rgba(255,255,255,.6); margin-top: 16px; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all .35s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md); padding: 10px 0;
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav-logo { flex: none; line-height: 0; }
.nav-logo img { height: 52px; width: auto; transition: height .3s; }
.header.scrolled .nav-logo img { height: 46px; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; min-width: 0; }
.nav-links a {
  font-size: .87rem; font-weight: 500; color: rgba(255,255,255,.85); position: relative; padding: 6px 0;
  white-space: nowrap; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad-primary); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; margin-left: 8px; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 10px; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.hamburger svg { width: 24px; height: 24px; }

/* Light-on-dark header states (above dark hero/page hero) */
.nav-actions .btn-login { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.nav-actions .btn-login:hover { background: rgba(255,255,255,.18); color: #fff; border-color: #fff; }

/* Dark-on-light header states (scrolled over white background) */
.header.scrolled .nav-links a { color: var(--navy-700); }
.header.scrolled .nav-links a:hover, .header.scrolled .nav-links a.active { color: var(--blue); }
.header.scrolled .nav-actions .btn-login { background: transparent; color: var(--blue); border: 2px solid rgba(37,99,235,.35); }
.header.scrolled .nav-actions .btn-login:hover { background: rgba(37,99,235,.06); color: var(--blue); border-color: var(--blue); }
.header.scrolled .hamburger { background: rgba(37,99,235,.08); color: var(--navy); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--navy);
  transform: translateY(-100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; padding: 24px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu img { height: 48px; width: auto; }
.mobile-close { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.mobile-close svg { width: 18px; height: 18px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }
.mobile-menu nav a { color: #E2E8F0; font-size: 1.1rem; font-weight: 600; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav a span { color: rgba(255,255,255,.35); }
.mobile-menu .mobile-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.mobile-menu .mobile-cta .btn { width: 100%; padding: 15px 20px; font-size: .95rem; }
.mobile-menu .mobile-cta .btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-hero); color: #fff; padding: 160px 0 90px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 12% 15%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(700px 500px at 88% 80%, rgba(16,185,129,.25), transparent 60%),
    radial-gradient(500px 380px at 75% 10%, rgba(245,158,11,.15), transparent 55%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-full); padding: 8px 18px; font-size: .8rem; font-weight: 500;
  color: #E2E8F0; backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-400); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 700; line-height: 1.08; margin: 22px 0 20px; letter-spacing: -.025em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #60A5FA 0%, #34D399 60%, #FBBF24 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #CBD5E1; font-size: 1.06rem; max-width: 540px; margin-bottom: 34px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.55rem; font-weight: 700; }
.hero-stat .num span { color: var(--emerald-400); }
.hero-stat .lbl { font-size: .8rem; color: #94A3B8; margin-top: 2px; }

/* Hero dashboard */
.hero-dash { position: relative; }
.dash {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 22px; box-shadow: 0 40px 90px rgba(0,0,0,.4);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-title { font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; color: #A5F3C8; font-weight: 600; }
.dash-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-400); animation: blink 1.4s infinite; }
.dash-chips { display: flex; gap: 8px; }
.chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 6px 12px; font-size: .74rem; color: #E2E8F0; font-weight: 500; }
.chip.live { background: rgba(16,185,129,.2); border-color: rgba(16,185,129,.4); color: #A7F3D0; }

.indices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.index-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px; text-align: center;
}
.index-box .name { font-size: .7rem; color: #94A3B8; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.index-box .val { font-size: 1.02rem; font-weight: 700; margin-top: 4px; }
.index-box .chg { font-size: .72rem; font-weight: 600; }
.chg.up { color: #6EE7B7; } .chg.down { color: #FCA5A5; }

.dash-chart { margin: 18px 0; position: relative; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.area-fill { animation: fadein 1.6s var(--ease) .4s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.line-anim { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawline 2.2s var(--ease) .3s forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }

.dash-ai {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, rgba(37,99,235,.22), rgba(16,185,129,.18));
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 13px 16px;
}
.ai-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--grad-primary); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 18px rgba(37,99,235,.5);
}
.ai-msg { flex: 1; font-size: .8rem; color: #E2E8F0; line-height: 1.5; }
.ai-msg b { color: #fff; }
.ai-conf { text-align: center; flex: none; }
.ai-conf .pct { font-size: 1rem; font-weight: 700; color: #6EE7B7; }
.ai-conf .lbl { font-size: .62rem; color: #94A3B8; }

.dash-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: .74rem; color: #94A3B8; }
.dash-foot b { color: #E2E8F0; }

/* Floating cards */
.float-card {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.95); color: var(--text); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 16px; font-size: .8rem; font-weight: 600;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-card .sub { font-size: .68rem; color: var(--muted); font-weight: 400; }
.float-1 { top: -26px; left: -30px; }
.float-2 { bottom: 40px; right: -40px; animation-delay: 1.2s; }
.float-3 { bottom: -24px; left: 60px; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Scroll cue */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; color: rgba(255,255,255,.5); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: rgba(255,255,255,.6); border-radius: 3px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Ticker ---------- */
.ticker-wrap { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 14px 0; position: relative; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #CBD5E1; font-weight: 500; }
.ticker-item .t-name { color: #fff; font-weight: 600; }
.ticker-item .t-val { color: #94A3B8; }
.ticker-item .t-chg { font-weight: 700; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Markets section ---------- */
.markets { background: var(--bg); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.market-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.market-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.market-panel-head h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.market-panel-head .tag { font-size: .68rem; font-weight: 600; color: var(--green); background: rgba(16,185,129,.1); padding: 4px 10px; border-radius: 999px; }
.market-panel-body { padding: 20px 22px; }

.index-large { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.index-card { background: #F8FAFC; border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.index-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.index-card .name { font-size: .78rem; color: var(--muted); font-weight: 500; }
.index-card .value { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.index-card .change { font-size: .78rem; font-weight: 600; }
.index-card .spark { margin-top: 12px; }
.index-card .spark svg { width: 100%; height: 40px; }

.mini-chart { display: flex; flex-direction: column; }

/* Stock lists */
.stock-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.stock-row:last-child { border-bottom: none; padding-bottom: 0; }
.stock-sym { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .72rem; color: #fff; flex: none; }
.stock-name { flex: 1; min-width: 0; }
.stock-name .sym { font-weight: 600; font-size: .9rem; }
.stock-name .co { font-size: .72rem; color: var(--muted); }
.stock-quote { text-align: right; }
.stock-quote .price { font-weight: 600; font-size: .9rem; }
.stock-quote .chg { font-size: .74rem; font-weight: 600; }
.stock-bar { width: 5px; height: 40px; border-radius: 4px; flex: none; }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.heat-cell { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: #fff; transition: transform .25s var(--ease); }
.heat-cell:hover { transform: scale(1.12); }

/* Sector bars */
.sector { margin-bottom: 16px; }
.sector-top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 6px; }
.sector-top b { font-weight: 600; }
.sector-bar { height: 8px; background: #EEF2F7; border-radius: 6px; overflow: hidden; }
.sector-bar span { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.2s var(--ease); }

/* ---------- Features ---------- */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(37,99,235,.1); color: var(--blue); transition: transform .35s var(--ease);
}
.feature-card:hover .feature-ic { transform: rotate(-6deg) scale(1.08); }
.feature-ic svg { width: 26px; height: 26px; }
.feature-ic.em { background: rgba(16,185,129,.1); color: var(--emerald); }
.feature-ic.go { background: rgba(245,158,11,.12); color: #B45309; }
.feature-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: .85rem; color: var(--muted); }

/* ---------- AI features ---------- */
.ai-section { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ai-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 500px at 85% 20%, rgba(37,99,235,.28), transparent 60%), radial-gradient(600px 400px at 10% 90%, rgba(16,185,129,.2), transparent 60%); pointer-events: none; }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.ai-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(10px); transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.ai-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.09); border-color: rgba(96,165,250,.4); }
.ai-card .ai-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(37,99,235,.35), rgba(16,185,129,.3)); }
.ai-card .ai-ic svg { width: 24px; height: 24px; color: #BFDBFE; }
.ai-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.ai-card p { font-size: .82rem; color: #94A3B8; }
.ai-card .score { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ai-card .score .bar { flex: 1; height: 6px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.ai-card .score .bar span { display: block; height: 100%; background: var(--grad-emerald); border-radius: 4px; }

/* ---------- Products / special strip ---------- */
.tools-strip { background: var(--bg); }
.tool-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 12px 22px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, color .3s;
}
.tool-chip svg { width: 18px; height: 18px; color: var(--blue); }
.tool-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); color: var(--blue); }

/* ---------- Screenshots ---------- */
.screens { background: linear-gradient(180deg, var(--white) 0%, #EFF6FF 100%); overflow: hidden; }
.mocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.phone-wrap { text-align: center; }
.phone-label { margin-top: 18px; font-weight: 600; font-size: .9rem; }
.phone-label span { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.phone {
  width: 220px; height: 460px; margin: 0 auto; position: relative;
  background: #0F172A; border-radius: 40px; padding: 12px;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(15,23,42,.35);
  transition: transform .5s var(--ease);
}
.phone:hover { transform: translateY(-14px) rotate(-1deg); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0F172A; border-radius: 0 0 12px 12px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.mock-app { padding: 28px 14px 14px; height: 100%; display: flex; flex-direction: column; gap: 10px; background: #F8FAFC; }
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-top .dot-group { display: flex; gap: 4px; }
.mock-top .dot-group i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: block; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-emerald); }
.mock-welcome .hi { font-size: .68rem; color: var(--muted); }
.mock-welcome .nm { font-size: .92rem; font-weight: 700; }
.mock-net { display: flex; justify-content: space-between; align-items: center; background: var(--grad-primary); color: #fff; border-radius: 14px; padding: 12px; }
.mock-net .lbl { font-size: .6rem; opacity: .8; }
.mock-net .amt { font-size: 1.05rem; font-weight: 700; }
.mock-net .rt { font-size: .62rem; background: rgba(255,255,255,.2); padding: 3px 8px; border-radius: 999px; }
.mock-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.mock-card .t { font-size: .62rem; color: var(--muted); font-weight: 600; }
.mock-card .v { font-size: 1rem; font-weight: 700; }
.mock-chart { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.mock-chart svg { width: 100%; height: 90px; }
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.mock-row .s { width: 24px; height: 24px; border-radius: 8px; font-size: .55rem; font-weight: 700; color: #fff; display: grid; place-items: center; }
.mock-row .d { flex: 1; }
.mock-row .d .n { font-size: .7rem; font-weight: 600; }
.mock-row .d .p { font-size: .6rem; color: var(--muted); }
.mock-row .c { font-size: .66rem; font-weight: 700; }
.mock-row .c.up { color: var(--green); } .mock-row .c.dn { color: var(--red); }
.mock-btns { display: flex; gap: 8px; margin-top: auto; }
.mock-btns span { flex: 1; border-radius: 999px; text-align: center; font-size: .62rem; font-weight: 700; padding: 8px 0; }
.mock-btns .buy { background: var(--grad-emerald); color: #fff; }
.mock-btns .sell { background: #FEE2E2; color: var(--red); }
.mock-switch { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px; }
.mock-switch .icon { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-gold); display: grid; place-items: center; font-size: .7rem; }
.mock-switch .moon { font-size: .72rem; font-weight: 600; flex: 1; }
.mock-switch .tgl { width: 34px; height: 20px; background: var(--blue); border-radius: 999px; position: relative; }
.mock-switch .tgl::after { content: ''; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; }

/* ---------- App download ---------- */
.app-download { padding: 96px 0; }
.download-banner {
  position: relative; border-radius: 32px; overflow: hidden; color: #fff;
  background: var(--grad-cta); padding: 72px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.download-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 320px at 80% 10%, rgba(16,185,129,.3), transparent 60%), radial-gradient(400px 300px at 5% 90%, rgba(245,158,11,.22), transparent 55%); pointer-events: none; }
.download-banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.download-banner p { color: #CBD5E1; max-width: 480px; margin-bottom: 30px; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.store-btn { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 12px 20px; transition: all .3s var(--ease); }
.store-btn:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn .l1 { font-size: .6rem; color: #CBD5E1; text-transform: uppercase; letter-spacing: .08em; display: block; }
.store-btn .l2 { font-size: .9rem; font-weight: 700; display: block; }
.store-btn .soon { font-size: .55rem; background: var(--grad-gold); border-radius: 6px; padding: 1px 6px; color: #fff; }
.store-btn.disabled { opacity: .6; cursor: default; }
.download-feats { display: flex; flex-wrap: wrap; gap: 16px; }
.download-feats span { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: #E2E8F0; }
.download-feats svg { width: 18px; height: 18px; color: var(--emerald-400); }
.qr-box { position: relative; z-index: 2; text-align: center; }
.qr-card { display: inline-block; background: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.qr-card svg { width: 150px; height: 150px; }
.qr-card .cap { font-size: .78rem; font-weight: 600; color: var(--navy); margin-top: 12px; }
.qr-card .sub { font-size: .68rem; color: var(--muted); }
.qr-ring { animation: floaty 5s ease-in-out infinite; }

/* ---------- Web login ---------- */
.web-login { background: var(--bg); }
.web-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.web-login-visual { position: relative; }
.browser {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 12px; background: #F1F5F9; padding: 12px 16px; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar .dots i:nth-child(1) { background: #F87171; } .browser-bar .dots i:nth-child(2) { background: #FBBF24; } .browser-bar .dots i:nth-child(3) { background: #34D399; }
.browser-url { flex: 1; background: #fff; border-radius: 8px; padding: 5px 14px; font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.browser-body { padding: 26px; }
.login-mock { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.login-chart { background: #F8FAFC; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.login-chart h4 { font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.login-side { display: flex; flex-direction: column; gap: 12px; }
.login-widget { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.login-widget .w-top { display: flex; justify-content: space-between; font-size: .74rem; margin-bottom: 8px; }
.login-widget .w-top b { font-weight: 600; }
.login-widget .w-bar { height: 8px; background: #EEF2F7; border-radius: 6px; overflow: hidden; }
.login-widget .w-bar span { display: block; height: 100%; border-radius: 6px; }
.login-device { position: absolute; right: -24px; bottom: -30px; z-index: 3; }
.login-device .phone { width: 150px; height: 300px; }

/* ---------- Why choose us ---------- */
.why-us { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.why-us::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 400px at 90% 15%, rgba(16,185,129,.18), transparent 60%), radial-gradient(500px 400px at 8% 85%, rgba(37,99,235,.25), transparent 60%); pointer-events: none; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.why-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), background .3s; text-align: center; }
.why-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.09); }
.why-card .why-ic { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(37,99,235,.4), rgba(16,185,129,.35)); }
.why-card .why-ic svg { width: 28px; height: 28px; color: #BFDBFE; }
.why-card h3 { font-size: .98rem; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: .8rem; color: #94A3B8; }
.why-count { text-align: center; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.why-count .c-num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.why-count .c-num em { font-style: normal; color: var(--emerald-400); }
.why-count .c-lbl { font-size: .82rem; color: #94A3B8; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; position: relative; overflow: hidden; }
.testi-card::after { content: '"'; position: absolute; top: 8px; right: 22px; font-size: 6rem; font-weight: 700; color: #EEF2FF; line-height: 1; font-family: Georgia, serif; }
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars svg { width: 18px; height: 18px; fill: var(--gold); color: var(--gold); }
.testi-text { font-size: .92rem; color: var(--navy-700); margin-bottom: 22px; position: relative; z-index: 1; }
.testi-user { display: flex; align-items: center; gap: 14px; }
.testi-ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .95rem; }
.testi-user .nm { font-weight: 600; font-size: .92rem; }
.testi-user .rl { font-size: .76rem; color: var(--muted); }
.testi-card .win { margin-left: auto; text-align: right; }
.testi-card .win .amt { font-size: .8rem; font-weight: 700; color: var(--green); }
.testi-card .win .lbl { font-size: .64rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 26px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.popular { border: 2px solid var(--blue); box-shadow: var(--shadow-blue); }
.price-card.popular::before { content: 'MOST POPULAR'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-primary); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .1em; padding: 6px 16px; border-radius: 999px; }
.price-card .plan { font-size: .86rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price-card .amount { font-size: 2.5rem; font-weight: 700; margin: 12px 0 4px; }
.price-card .amount small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.price-card .per { font-size: .78rem; color: var(--muted); margin-bottom: 22px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card ul li { display: flex; gap: 10px; font-size: .84rem; color: var(--navy-700); align-items: flex-start; }
.price-card ul li svg { width: 18px; height: 18px; color: var(--emerald); flex: none; margin-top: 2px; }
.price-card ul li.no { color: #CBD5E1; }
.price-card ul li.no svg { color: #CBD5E1; }

.compare-table { margin-top: 64px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: #F8FAFC; }
.compare-table td.yes svg { width: 18px; height: 18px; color: var(--emerald); }
.compare-table td.no svg { width: 18px; height: 18px; color: #CBD5E1; }
.compare-table td.soon { color: var(--muted); font-size: .76rem; }

/* ---------- Blog ---------- */
.blog { background: var(--bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-thumb { height: 190px; position: relative; display: grid; place-items: center; overflow: hidden; }
.blog-thumb svg { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.blog-thumb .cat { position: absolute; top: 14px; left: 14px; z-index: 2; }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 16px; font-size: .74rem; color: var(--muted); margin-bottom: 10px; }
.blog-body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.blog-body h3 a:hover { color: var(--blue); }
.blog-body p { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; color: var(--blue); }
.read-more svg { width: 16px; height: 16px; transition: transform .25s; }
.read-more:hover svg { transform: translateX(4px); }
.blog-cta { text-align: center; margin-top: 48px; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s; }
.faq-item.open { box-shadow: var(--shadow-md); background: #fff; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 20px 24px; font-size: .95rem; font-weight: 600; color: var(--text); }
.faq-q .icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(37,99,235,.1); color: var(--blue); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background .3s, color .3s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--grad-primary); color: #fff; }
.faq-q .icon svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 24px 22px; font-size: .88rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 96px 0; background: var(--bg); }
.cta-inner { position: relative; border-radius: 32px; background: var(--grad-cta); color: #fff; padding: 80px 48px; text-align: center; overflow: hidden; }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 15% 20%, rgba(37,99,235,.5), transparent 60%), radial-gradient(400px 260px at 85% 85%, rgba(16,185,129,.35), transparent 55%), radial-gradient(300px 200px at 50% 0%, rgba(245,158,11,.2), transparent 50%); pointer-events: none; }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; position: relative; }
.cta-inner p { color: #CBD5E1; max-width: 560px; margin: 0 auto 34px; font-size: 1.05rem; position: relative; }
.cta-inner .cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; position: relative; }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden; }
.contact-info-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 300px at 90% 10%, rgba(37,99,235,.4), transparent 60%); pointer-events: none; }
.contact-info-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.contact-info-card > p { color: #94A3B8; font-size: .88rem; margin-bottom: 30px; }
.info-list { display: flex; flex-direction: column; gap: 22px; position: relative; }
.info-item { display: flex; gap: 16px; }
.info-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.info-ic svg { width: 20px; height: 20px; color: #93C5FD; }
.info-item h4 { font-size: .92rem; font-weight: 600; }
.info-item p, .info-item a { font-size: .82rem; color: #CBD5E1; line-height: 1.5; }
.info-item a:hover { color: #fff; }

.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 500; color: var(--navy-700); }
.field label span { color: var(--red); }
.field input, .field textarea, .field select {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; font-size: .9rem;
  background: var(--bg); color: var(--text); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .76rem; color: var(--muted); margin-top: 12px; }
.form-success { display: none; margin-top: 14px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--green); padding: 12px 16px; border-radius: 12px; font-size: .86rem; font-weight: 500; }
.form-success.show { display: block; }

.map-box { margin-top: 64px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.map-box iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #CBD5E1; padding-top: 80px; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--emerald), var(--gold)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-logo img { width: 200px; margin-bottom: 18px; }
.footer-desc { font-size: .86rem; line-height: 1.7; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; }
.social-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; transition: all .3s var(--ease); }
.social-ic svg { width: 18px; height: 18px; }
.social-ic:hover { background: var(--grad-primary); color: #fff; transform: translateY(-4px); }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .86rem; color: #94A3B8; transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--blue-400); transform: translateX(4px); }
.footer-links a svg { width: 14px; height: 14px; color: var(--emerald-400); }

.newsletter-box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; }
.newsletter-box p { font-size: .82rem; margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; font-size: .84rem; color: #fff; }
.newsletter-form input::placeholder { color: #64748B; }
.newsletter-form input:focus { outline: none; border-color: var(--blue); }
.newsletter-form button { width: 48px; height: 48px; border-radius: 10px; background: var(--grad-primary); color: #fff; display: grid; place-items: center; flex: none; }
.newsletter-form button svg { width: 20px; height: 20px; }
.newsletter-ok { display: none; margin-top: 10px; font-size: .78rem; color: #6EE7B7; }
.newsletter-ok.show { display: block; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: #64748B; }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #E2E8F0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"] { transform: scale(.9); }

/* ---------- Back to top ---------- */
#toTop { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-blue); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease); }
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop svg { width: 20px; height: 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--grad-hero); color: #fff; padding: 180px 0 90px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 400px at 15% 20%, rgba(37,99,235,.35), transparent 60%), radial-gradient(500px 360px at 85% 80%, rgba(16,185,129,.25), transparent 55%); pointer-events: none; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 700; position: relative; }
.page-hero p { color: #CBD5E1; max-width: 620px; margin: 18px auto 0; font-size: 1.05rem; position: relative; }
.breadcrumb { margin-top: 22px; font-size: .8rem; color: #94A3B8; position: relative; }
.breadcrumb a { color: var(--blue-400); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Blog page ---------- */
.blog-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.blog-filter button { padding: 10px 22px; border-radius: var(--radius-full); border: 1px solid var(--border); background: #fff; font-size: .84rem; font-weight: 500; color: var(--navy-700); transition: all .3s; }
.blog-filter button.active, .blog-filter button:hover { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ---------- Contact page hero map ---------- */
.contact-page-map { padding: 0 0 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav-actions .btn-nav-cta { display: none; }
}

@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .why-count { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-dash { max-width: 560px; margin: 0 auto; }
  .float-2 { right: -10px; }
  .mocks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-actions .btn-login { display: none; }
  .nav-actions .btn-nav-cta { display: none; }
  .hamburger { display: grid; }
}

@media (max-width: 900px) {
  .market-grid { grid-template-columns: 1fr; }
  .web-login-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .download-banner { grid-template-columns: 1fr; padding: 48px 28px; text-align: center; }
  .download-banner p { margin-inline: auto; }
  .download-feats { justify-content: center; }
  .store-btns { justify-content: center; }
}

@media (max-width: 700px) {
  .header { padding: 12px 0; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .index-large { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .mocks { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-stats { gap: 24px; }
  .float-1 { left: -6px; }
  .float-2 { right: -6px; }
  .float-3 { left: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .compare-table { overflow-x: auto; }
  .compare-table table { min-width: 640px; }
  .qr-card svg { width: 120px; height: 120px; }
  .why-count { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .why-count .c-num { font-size: 1.9rem; }
}

@media (max-width: 460px) {
  .features-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .btn { padding: 13px 22px; font-size: .88rem; }
  .nav-logo img { height: 44px; }
  .index-large { grid-template-columns: 1fr 1fr; }
  .download-banner { padding: 40px 20px; }
}
