/* =========================================================
   Rex Fuels — landing page (light, high-readability theme)
   ========================================================= */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
:root {
  /* surfaces */
  --paper: #fffdf9;
  --cream: #f7f1e8;
  --cream-2: #efe6d8;
  --white: #ffffff;
  /* ink — all body text clears 4.5:1 on cream */
  --ink: #1b0f0f;
  --ink-2: #3f3230;
  --ink-3: #6b5b57;
  --line: rgba(27, 15, 15, 0.1);
  --line-2: rgba(27, 15, 15, 0.16);
  /* brand */
  --wine: #500303;
  --wine-2: #7c2529;
  --wine-3: #8f2426;
  --amber: #e39a2d;
  --amber-2: #f2c071;
  --grad-ink: linear-gradient(100deg, #8f2426 0%, #b83a22 45%, #c27414 100%);
  --grad-gold: linear-gradient(100deg, #ffe3ad 0%, #f2c071 50%, #f0a64a 100%);
  /* status (light surfaces) */
  --up: #1f7a4d;
  --down: #b3372d;
  --up-bg: rgba(31, 122, 77, 0.1);
  --down-bg: rgba(179, 55, 45, 0.1);
  /* validated chart pair */
  --c1: #8f2426;
  --c2: #b27a22;
  /* on wine sections */
  --on-wine: #ffffff;
  --on-wine-2: rgba(255, 255, 255, 0.86);
  --on-wine-3: rgba(255, 255, 255, 0.7);
  --line-wine: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 6px rgba(80, 3, 3, 0.05), 0 10px 24px -12px rgba(80, 3, 3, 0.18);
  --shadow-lg: 0 4px 12px rgba(80, 3, 3, 0.05), 0 40px 80px -40px rgba(80, 3, 3, 0.35);
  --f-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 5vw, 48px);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
::selection { background: var(--wine-3); color: #fff; }
:focus-visible { outline: 2px solid var(--wine-3); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Scroll progress & cursor glow ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-gold); box-shadow: 0 0 12px rgba(242, 192, 113, 0.6); }
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 154, 45, 0.12), transparent 62%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s;
}
.cursor-glow.on { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s;
}
.btn .ic { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover .ic { transform: translate(2px, -2px); }
.btn:hover .ic-down { transform: translateY(3px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { color: #fff; background: linear-gradient(135deg, #9b2b2d, #500303); box-shadow: 0 14px 30px -14px rgba(143, 36, 38, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg); animation: sheen 4.5s ease-in-out infinite;
}
.btn-primary:hover { background: linear-gradient(135deg, #b0362f, #6a0a0a); box-shadow: 0 20px 40px -16px rgba(143, 36, 38, 0.9); transform: translateY(-2px); }

.btn-ghost { color: var(--ink); background: var(--white); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--wine-3); color: var(--wine-3); }

.btn-light { color: var(--wine); background: #fff; }
.btn-light:hover { background: var(--cream); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(92, 14, 18, 0.96);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px -22px rgba(40, 0, 0, 0.7);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline: auto; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav a { position: relative; font-size: 14.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px; color: rgba(255, 255, 255, 0.88); transition: color 0.3s, background 0.3s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav a.active { color: var(--wine); background: #fff; font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav + .header-cta { margin-left: 0; }
.link-login { font-size: 15px; font-weight: 600; color: #fff; transition: color 0.3s; }
.link-login:hover { color: var(--amber-2); }

.store-links { display: flex; align-items: center; gap: 8px; }
.store-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.24); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.store-btn .ic { width: 15px; height: 15px; }
.store-btn:hover { color: var(--amber-2); background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
.mobile-nav-stores { margin-top: 14px; }

.mobile-nav > a.mobile-nav-video { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0 2px 14px; font: 600 16px/1.2 var(--f-body); color: #fff; }
.mobile-nav-video .ic { width: 18px; height: 18px; }
.mobile-nav-qrs { display: flex; gap: 14px; margin-top: 16px; }
.mobile-nav-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); }
.mobile-nav-qr img { width: 64px; height: 64px; border-radius: 8px; background: #fff; padding: 4px; }
.mobile-nav-qr span { font-size: 12.5px; font-weight: 600; color: var(--on-wine-2); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1); padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn.open span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn.open span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute; inset: var(--header-h) 0 auto 0;
  display: grid; padding: 8px var(--gutter) 28px;
  background: #5a0d11; border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 40px -30px rgba(40, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav > a { padding: 14px 2px; font: 500 22px/1.2 var(--f-display); color: #fff; border-bottom: 1px solid var(--line-wine); }
.mobile-nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ---------- Shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 600 12.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine-3); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font: 600 clamp(34px, 4.4vw, 60px)/1.05 var(--f-display); letter-spacing: -0.03em; margin: 0; color: var(--ink); text-wrap: balance; }
.h2 em { font-style: normal; color: var(--wine-3); }
.grad { font-style: normal; color: transparent; background: var(--grad-ink); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; animation: shimmer 8s linear infinite; }
.h2 em.grad { color: transparent; }
.lead { font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.7; color: var(--ink-2); margin: 0; max-width: 520px; }

.delta { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font: 600 13px/1.2 var(--f-body); white-space: nowrap; }
.delta.up { color: var(--up); background: var(--up-bg); }
.delta.down { color: var(--down); background: var(--down-bg); }
.delta.flat { color: var(--ink-2); background: rgba(27, 15, 15, 0.06); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(88px, 10vw, 140px); background: var(--paper); }
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }
.stack { border-radius: 40px 40px 0 0; margin-top: -40px; box-shadow: 0 -24px 50px -40px rgba(80, 3, 3, 0.35); }
.section-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.hero-inner > *, .app-grid > *, .about-grid > *, .contact-grid > *, .section-head > *, .explorer-body > * { min-width: 0; }

/* wine brand sections (app, contact) */
.section-dark, .contact { color: var(--on-wine); }
.section-dark { background: radial-gradient(900px 600px at 85% 0%, rgba(242, 192, 113, 0.16), transparent 60%), linear-gradient(165deg, #7a1b20 0%, #5e0f13 60%, #520709 100%); }
.site-header .btn-primary, .hero .btn-primary, .mobile-nav .btn-primary, .app-actions .btn-primary { background: #fff; color: var(--wine); box-shadow: 0 16px 36px -16px rgba(20, 0, 0, 0.6); }
.site-header .btn-primary:hover, .hero .btn-primary:hover, .mobile-nav .btn-primary:hover, .app-actions .btn-primary:hover { background: #fff4e3; color: var(--wine); }
.site-header .btn-primary::after, .hero .btn-primary::after, .mobile-nav .btn-primary::after, .app-actions .btn-primary::after { background: linear-gradient(100deg, transparent, rgba(242, 192, 113, 0.45), transparent); }
.hero .btn-ghost, .mobile-nav .btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.hero .btn-ghost:hover, .mobile-nav .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.section-dark .eyebrow, .contact .eyebrow { color: var(--amber-2); }
.section-dark .h2, .contact .h2 { color: #fff; }
.section-dark .h2 em.grad, .contact .h2 em.grad { background-image: var(--grad-gold); }
.section-dark .lead, .contact .lead { color: var(--on-wine-2); }
/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 48px) 110px;
  color: #fff;
  background: radial-gradient(1100px 700px at 75% 15%, #9a2a2f 0%, transparent 60%), linear-gradient(165deg, #7a1b20 0%, #5e0f13 55%, #500303 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; will-change: transform; }
.aurora {
  position: absolute; inset: -35%; opacity: 0.9; filter: blur(90px);
  background: conic-gradient(from 0deg at 62% 42%, rgba(242, 192, 113, 0.28), rgba(154, 42, 47, 0) 22%, rgba(214, 84, 62, 0.32) 48%, rgba(154, 42, 47, 0) 72%, rgba(242, 192, 113, 0.28));
  animation: aurora-spin 34s linear infinite;
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 620px; height: 620px; top: -220px; right: -140px; background: radial-gradient(circle, rgba(255, 170, 120, 0.22), transparent 68%); }
.orb-b { width: 560px; height: 560px; bottom: -240px; left: -160px; background: radial-gradient(circle, rgba(242, 192, 113, 0.22), transparent 68%); animation-duration: 23s; }
.orb-c { width: 380px; height: 380px; top: 38%; left: 42%; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%); animation-duration: 28s; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 200px; overflow: hidden; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; display: block; animation: wave-flow linear infinite; }
.wave-1 { height: 190px; animation-duration: 26s; }
.wave-2 { height: 140px; animation-duration: 18s; animation-direction: reverse; }
.wave-3 { height: 86px; animation-duration: 13s; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; flex: none; animation: ping 1.8s infinite; }
.hero-title { font: 700 clamp(44px, 4.8vw, 80px)/1 var(--f-display); letter-spacing: -0.035em; margin: 0 0 26px; color: #fff; text-shadow: 0 10px 40px rgba(40, 0, 0, 0.25); }
.hero .grad { background-image: var(--grad-gold); text-shadow: none; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%); animation: line-up 1.1s var(--ease) 1s forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 1.12s; }
.hero-sub { max-width: 560px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: rgba(255, 255, 255, 0.9); margin: 0 0 34px; }
.rotator { display: inline-block; color: var(--amber-2); font-weight: 700; white-space: nowrap; }
.rot-word { position: relative; display: inline-block; transition: transform 0.42s var(--ease), opacity 0.42s; }
.rot-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 3px; border-radius: 3px; background: var(--grad-gold); opacity: 0.7; }
.rot-word.out { opacity: 0; transform: translateY(-0.55em); }
.rot-word.enter { transition: none; opacity: 0; transform: translateY(0.55em); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-proof { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 20px 44px; border-top: 1px solid rgba(255, 255, 255, 0.2); max-width: 560px; }
.hero-proof strong { display: block; font: 700 34px/1.1 var(--f-body); letter-spacing: -0.02em; color: var(--amber-2); }
.hero-proof span { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
/* Terminal */
.hero-visual { position: relative; }
.js .hero-copy { animation: fade-up 1s var(--ease) 0.85s both; }
.js .hero-visual { animation: fade-up 1.2s var(--ease) 1.1s both; }
.terminal { position: relative; border-radius: 24px; padding: 18px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 50px 100px -40px rgba(30, 0, 0, 0.75), 0 0 0 8px rgba(255, 255, 255, 0.06); will-change: transform; }
.terminal::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(143, 36, 38, 0.85) 76%, rgba(227, 154, 45, 0.9) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite;
}
.term-head { display: flex; align-items: center; gap: 14px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e5ddd2; }
.term-dots i:first-child { background: #d0523e; }
.term-dots i:nth-child(2) { background: var(--amber); }
.term-title { font: 600 11.5px var(--f-mono); letter-spacing: 0.12em; color: var(--ink-3); }
.term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px var(--f-mono); letter-spacing: 0.1em; color: var(--up); }
.term-live b { width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; animation: ping 1.8s infinite; }
.term-time { color: var(--ink-3); font-weight: 500; letter-spacing: 0.06em; margin-left: 6px; }
.term-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 6px; }
.term-tabs button { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 6px 13px; border-radius: 999px; font: 600 12.5px var(--f-body); transition: all 0.3s var(--ease); }
.term-tabs button:hover { color: var(--wine-3); border-color: var(--wine-3); }
.term-tabs button[aria-selected="true"] { color: #fff; background: var(--wine); border-color: var(--wine); }
.term-quote { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 10px 4px 4px; }
.term-price small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.term-price-row { display: flex; align-items: center; gap: 12px; }
.term-price strong { font: 700 clamp(30px, 3.1vw, 42px)/1 var(--f-body); letter-spacing: -0.02em; color: var(--ink); transition: color 0.6s; }
.term-price strong.flash-up { color: var(--up); transition: none; }
.term-price strong.flash-down { color: var(--down); transition: none; }
.term-stats { display: flex; gap: 22px; margin: 0; }
.term-stats div { min-width: 0; }
.term-stats dt { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.term-stats dd { margin: 2px 0 0; font: 700 14.5px var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.term-stats dd.up { color: var(--up); }
.term-stats dd.down { color: var(--down); }
.term-chart { position: relative; height: 230px; margin: 8px -4px 0; cursor: crosshair; touch-action: pan-y; }
.term-chart svg, .fc-chart svg, .imp-chart svg { position: absolute; inset: 0; display: block; overflow: visible; }
.term-foot { padding: 12px 4px 0; border-top: 1px solid var(--line); font: 500 11.5px var(--f-mono); color: var(--ink-3); }
/* chart primitives (light) */
.ch-grid line { stroke: rgba(27, 15, 15, 0.08); stroke-width: 1; shape-rendering: crispEdges; }
.ch-grid text, .ch-axis text { fill: var(--ink-3); font: 500 11px var(--f-mono); }
.hc-last { stroke: rgba(143, 36, 38, 0.45); stroke-width: 1; stroke-dasharray: 2 4; }
.hc-dot { fill: var(--wine-3); stroke: #fff; stroke-width: 2; }
.hc-halo { fill: var(--wine-3); opacity: 0.3; transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }
.hc-tag rect { fill: var(--wine); }
.hc-tag text { fill: #fff; font: 600 11px var(--f-body); }
.ch-cross { stroke: rgba(27, 15, 15, 0.35); stroke-width: 1; opacity: 0; transition: opacity 0.2s; }
.ch-crossdot { fill: var(--wine-3); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity 0.2s; }
.hovering .ch-cross, .hovering .ch-crossdot { opacity: 1; }
/* Floating cards */
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -22px rgba(80, 3, 3, 0.4); animation: float 6s ease-in-out infinite; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--ink); flex: none; }
.fc-icon .ic { width: 18px; height: 18px; }
.fc-icon-cream { background: var(--wine); color: #fff; }
.fc-body { display: grid; line-height: 1.3; min-width: 0; }
.fc-body small { font: 600 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fc-body b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.fc-body em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--up); }
.fc-body .swap, .swap-num { animation: swap-in 0.5s var(--ease); }
.alert-card { top: -58px; right: -26px; }
.report-card { bottom: 70px; left: -48px; animation-delay: -2s; }
.fx-card { bottom: -28px; right: 36px; animation-delay: -4s; }
.fc-progress { display: block; width: 130px; height: 4px; border-radius: 4px; background: var(--cream-2); margin-top: 7px; overflow: hidden; }
.fc-progress i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad-ink); transform-origin: left; animation: progress 3.2s var(--ease) infinite; }
.fx-switch { position: relative; width: 58px; height: 30px; border-radius: 999px; background: var(--cream-2); display: flex; align-items: center; justify-content: space-around; font: 700 12px var(--f-body); flex: none; }
.fx-switch i { font-style: normal; position: relative; z-index: 1; color: var(--ink-3); transition: color 0.4s; }
.fx-switch b { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--wine); transition: transform 0.5s var(--ease); }
.fx-card.usd .fx-switch b { transform: translateX(28px); }
.fx-card:not(.usd) .fx-switch i:first-child, .fx-card.usd .fx-switch i:last-child { color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, 0.45); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--amber-2); animation: scroll-cue 2s var(--ease) infinite; }

/* =========================================================
   TICKER
   ========================================================= */
.ticker { position: relative; z-index: 2; display: flex; background: var(--wine); color: #fff; padding-bottom: 40px; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; height: 54px; font: 700 11.5px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-2); border-right: 1px solid var(--line-wine); }
.ticker-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
.tick { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; white-space: nowrap; font: 500 12.5px var(--f-mono); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.8); border-right: 1px solid var(--line-wine); }
.tick b { color: #fff; font-weight: 700; font-size: 13.5px; }
.tick i { font-style: normal; font-weight: 700; }
.tick .up { color: #8ff0bd; }
.tick .down { color: #ffc2b5; }

/* =========================================================
   WATCH (looping video section)
   ========================================================= */
.watch-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.watch-head .eyebrow { justify-content: center; }
.watch-frame { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.watch-video { width: 100%; height: 100%; display: block; object-fit: contain; }

/* =========================================================
   MARKETS EXPLORER
   ========================================================= */
.explorer { border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.explorer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--cream-2); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color 0.4s; white-space: nowrap; }
.seg button[aria-selected="true"] { color: #fff; }
.seg-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--wine); box-shadow: 0 6px 16px -6px rgba(80, 3, 3, 0.6); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.seg-sm button { padding: 7px 14px; font-size: 13.5px; }

.explorer-tools { display: flex; gap: 8px; }
.cur-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 42px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.cur-opt { position: relative; z-index: 1; padding: 0 12px; font: 600 13.5px var(--f-body); color: var(--ink-3); transition: color 0.4s; }
.cur-switch[aria-checked="false"] .cur-opt:first-child, .cur-switch[aria-checked="true"] .cur-opt:last-child { color: #fff; }
.cur-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--wine-3); transition: transform 0.45s var(--ease); }
.cur-switch[aria-checked="true"] .cur-knob { transform: translateX(100%); }
.view-toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: all 0.3s; }
.view-toggle .ic { width: 16px; height: 16px; }
.view-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.explorer-body { display: grid; grid-template-columns: 290px 1fr; }
.explorer-side { display: flex; flex-direction: column; gap: 22px; padding: 28px 26px; color: #fff; background: radial-gradient(400px 300px at 0% 0%, rgba(242, 192, 113, 0.22), transparent 60%), linear-gradient(180deg, #7c2529, #500303); }
.stat { padding-bottom: 20px; border-bottom: 1px solid var(--line-wine); }
.stat small { display: block; font: 700 11px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-wine-3); }
.stat strong { display: block; margin: 6px 0 2px; font: 700 32px/1.1 var(--f-body); letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--on-wine-2); }
.side-features { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 12px; }
.side-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--on-wine-2); }
.side-features .ic { width: 16px; height: 16px; color: var(--amber-2); }

.explorer-main { padding: 22px 26px 18px; min-width: 0; }
.explorer-subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: all 0.3s var(--ease); }
.chip:hover { border-color: var(--wine-3); color: var(--wine-3); }
.chip[aria-pressed="true"] { background: var(--wine-3); border-color: var(--wine-3); color: #fff; }
.ex-caption { font: 500 12.5px var(--f-mono); color: var(--ink-3); }
.ladder { position: relative; padding-bottom: 34px; }
.ladder-rows { position: relative; }
.ladder-row, .ladder-overlay { display: grid; grid-template-columns: 120px 1fr 132px; gap: 18px; padding-inline: 12px; }
.ladder-row { position: relative; align-items: center; height: 58px; border-radius: 14px; transition: background 0.25s; }
.ladder-row:hover { background: rgba(143, 36, 38, 0.06); }
.ladder-row.enter { animation: row-in 0.7s var(--ease) both; }
.ladder-name { font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.2; min-width: 0; }
.ladder-name small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.ladder-track { position: relative; height: 100%; }
.ladder-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.ladder-bar { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 4px; background: rgba(143, 36, 38, 0.22); transition: left 0.9s var(--ease), width 0.9s var(--ease); }
.ladder-dot { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 3px #fff; transition: left 0.9s var(--ease), transform 0.3s var(--ease); }
.ladder-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--c1); opacity: 0; transform: scale(0.6); transition: all 0.35s var(--ease); }
.ladder-row:hover .ladder-dot { transform: scale(1.15); }
.ladder-row:hover .ladder-dot::after { opacity: 0.5; transform: scale(1); }
.ladder-badge { position: absolute; top: 50%; transform: translate(-50%, -27px); padding: 2px 7px; border-radius: 6px; font: 700 10px var(--f-mono); letter-spacing: 0.06em; background: var(--ink); color: #fff; white-space: nowrap; transition: left 0.9s var(--ease); pointer-events: none; }
.ladder-val { text-align: right; line-height: 1.25; }
.ladder-val b { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder-val small { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ladder-overlay { position: absolute; inset: 0; pointer-events: none; }
.ov-track { grid-column: 2; position: relative; }
.ladder-avg { position: absolute; top: 4px; bottom: 30px; width: 0; border-left: 1px solid var(--ink-3); opacity: 0.55; transition: left 0.9s var(--ease); }
.ladder-avg span { position: absolute; top: -4px; left: 6px; font: 700 10px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ladder-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; border-top: 1px solid var(--line); }
.ladder-axis span { position: absolute; top: 8px; transform: translateX(-50%); font: 500 11px var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.ladder-axis span::before { content: ""; position: absolute; left: 50%; top: -8px; height: 5px; border-left: 1px solid var(--line-2); }

.ex-table { padding: 4px 0 8px; overflow-x: auto; }
.ex-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ex-table th, .ex-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.ex-table th { font: 700 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ex-table td:not(:first-child), .ex-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.footnote { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }

/* =========================================================
   INSIGHTS BENTO
   ========================================================= */
.insights-glow { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(700px 500px at 0% 100%, rgba(242, 192, 113, 0.14), transparent 60%); }
.bento { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 26px; border-radius: 24px; color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(30, 0, 0, 0.55); transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 154, 45, 0.1), transparent 45%); }
.card:hover { border-color: rgba(143, 36, 38, 0.25); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card h3 { font: 600 clamp(20px, 1.9vw, 25px)/1.22 var(--f-display); letter-spacing: -0.01em; margin: 14px 0 8px; color: var(--ink); }
.card p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font: 700 11px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(143, 36, 38, 0.08); color: var(--wine-3); }
.tag .ic { width: 13px; height: 13px; }
.tag-light { background: rgba(178, 122, 34, 0.12); color: #7a5214; }
.card-note { margin-top: 10px !important; font-size: 13px !important; color: var(--ink-3) !important; }

.card-forecast { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.card-analysis { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card-trends, .card-reports, .card-alerts { grid-column: span 2; }
.card-articles { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; background: linear-gradient(120deg, #fff 40%, #fbf1e4); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.card-top h3 { margin-bottom: 0; }
.fc-summary { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 22px 0 14px; }
.fc-summary small { display: block; font-size: 13px; color: var(--ink-3); }
.fc-summary strong { font: 700 clamp(32px, 3.3vw, 46px)/1.05 var(--f-body); letter-spacing: -0.02em; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-light { margin: 14px 0 4px; }
.key { display: inline-block; flex: none; }
.key-line { width: 18px; height: 3px; border-radius: 2px; background: var(--c1); }
.key-dash { width: 18px; height: 3px; background: repeating-linear-gradient(90deg, var(--c2) 0 5px, transparent 5px 8px); }
.key-band { width: 14px; height: 10px; border-radius: 3px; background: rgba(178, 122, 34, 0.28); }
.key-sq { width: 12px; height: 12px; border-radius: 3px; }

.fc-chart { position: relative; flex: 1; min-height: 290px; margin-top: 10px; cursor: crosshair; touch-action: pan-y; border-radius: 12px; }
.fc-actual { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fc-actual-area { fill: rgba(143, 36, 38, 0.06); }
.fc-line { fill: none; stroke: var(--c2); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; stroke-linejoin: round; }
.fc-band { fill: rgba(178, 122, 34, 0.2); }
.fc-zone { fill: rgba(178, 122, 34, 0.05); }
.fc-today { stroke: rgba(27, 15, 15, 0.35); stroke-width: 1; }
.fc-today-label { fill: var(--ink-2); font: 700 10px var(--f-mono); letter-spacing: 0.1em; }
.fc-end { fill: var(--c2); stroke: #fff; stroke-width: 2; }
.fc-end-label { fill: var(--ink); font: 700 12.5px var(--f-body); }
.fc-anchor { fill: var(--c1); stroke: #fff; stroke-width: 2; }

.imp-chart { position: relative; flex: 1; min-height: 240px; margin-top: 8px; }
.imp-grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.imp-grid text { fill: var(--ink-3); font: 500 11px var(--f-mono); }
.imp-axis text { fill: var(--ink-2); font: 600 12.5px var(--f-body); }
.imp-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease), opacity 0.25s; }
.imp-chart.in .imp-bar { transform: scaleY(1); }
.imp-chart.dim .imp-group:not(.hot) .imp-bar { opacity: 0.35; }
.imp-chg { font: 700 12.5px var(--f-body); fill: var(--ink); opacity: 0; transition: opacity 0.6s 0.9s; }
.imp-chg-arrow.up { fill: var(--up); }
.imp-chg-arrow.down { fill: var(--down); }
.imp-chart.in .imp-chg { opacity: 1; }
.imp-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line); }
.imp-total small { display: block; font-size: 13px; color: var(--ink-3); }
.imp-total strong { font: 700 22px/1.2 var(--f-body); color: var(--ink); }
.delta-light { padding: 4px 10px; border-radius: 999px; font: 600 13px var(--f-body); white-space: nowrap; }
.delta-light.up { color: var(--up); background: var(--up-bg); }

.trend-list { margin-top: 10px; }
.trend-row { display: grid; grid-template-columns: 1fr 72px auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.trend-row b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.trend-row small { font-size: 12.5px; color: var(--ink-3); }
.trend-row svg { display: block; width: 72px; height: 28px; overflow: visible; }
.spark { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease); }
.card.in .spark { stroke-dashoffset: 0; }
.spark-dot { fill: var(--wine-3); }
.trend-row .delta { font-size: 12.5px; padding: 3px 8px; }

.files { display: grid; gap: 10px; margin-top: 20px; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.file-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--wine-3); flex: none; box-shadow: var(--shadow-sm); }
.file-ic .ic { width: 17px; height: 17px; }
.file-body { flex: 1; min-width: 0; }
.file-body b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-bar { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: var(--cream-2); overflow: hidden; }
.file-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-ink); transform-origin: left; transform: scaleX(0); }
.card.in .file-bar i { animation: progress 3.6s var(--ease) infinite; }
.card.in .file:nth-child(2) .file-bar i { animation-delay: 1.2s; }
.file-dl { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #fff; flex: none; }
.file-dl .ic { width: 15px; height: 15px; }

.notif-stack { position: relative; height: 96px; margin-top: 22px; }
.notif { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 14px 30px -18px rgba(80, 3, 3, 0.45); transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
.notif .n-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--wine); color: #fff; flex: none; }
.notif .n-ic .ic { width: 16px; height: 16px; }
.notif b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif span { font-size: 12px; color: var(--ink-3); }
.notif > div { min-width: 0; flex: 1; }
.notif time { font: 600 10.5px var(--f-mono); color: var(--ink-3); align-self: flex-start; }
.notif > * { transition: opacity 0.45s; }
.notif:not([data-pos="0"]) > * { opacity: 0; }
.notif[data-pos="0"] { transform: translateY(0) scale(1); opacity: 1; z-index: 3; }
.notif[data-pos="1"] { transform: translateY(14px) scale(0.94); opacity: 0.9; z-index: 2; background: #fbf6ef; }
.notif[data-pos="2"] { transform: translateY(27px) scale(0.88); opacity: 0.7; z-index: 1; background: #f5ede2; }
.notif[data-pos="3"] { transform: translateY(36px) scale(0.82); opacity: 0; z-index: 0; }
.notif[data-pos="enter"] { transform: translateY(-40px) scale(1.02); opacity: 0; z-index: 4; transition: none; }

.articles-copy h3 { font-size: clamp(22px, 2.3vw, 32px); margin-bottom: 24px; text-wrap: balance; }
.articles-deck { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-article { padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.6s var(--ease); }
.mini-article:nth-child(2) { transform: translateY(-14px); }
.card-articles:hover .mini-article:nth-child(1) { transform: translateY(-8px) rotate(-2deg); }
.card-articles:hover .mini-article:nth-child(2) { transform: translateY(-22px); }
.card-articles:hover .mini-article:nth-child(3) { transform: translateY(-8px) rotate(2deg); }
.ma-img { height: 86px; border-radius: 10px; margin-bottom: 10px; position: relative; overflow: hidden; }
.ma-img-1 { background: linear-gradient(135deg, #9b2b2d, #500303); }
.ma-img-2 { background: linear-gradient(135deg, #f2c071, #c9611f); }
.ma-img-3 { background: linear-gradient(135deg, #e9dccb, #b98a6a); }
.ma-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-100%); animation: skeleton 2.8s ease-in-out infinite; }
.mini-article i { display: block; height: 7px; border-radius: 4px; background: var(--cream-2); margin-top: 7px; }
.mini-article i.short, .ps-article i.short { width: 55%; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; --p: 0; }
.process-line { position: absolute; left: 34px; right: 34px; top: 34px; height: 2px; background: var(--line-2); border-radius: 2px; }
.process-line span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--wine-3), var(--c2)); transform-origin: left; transform: scaleX(var(--p)); }
.step { position: relative; }
.step-icon { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 26px; background: #fff; color: var(--wine-3); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: background 0.5s var(--ease), color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s; }
.step-icon .ic { width: 26px; height: 26px; }
.step.active .step-icon { background: var(--wine); color: #fff; transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(80, 3, 3, 0.7); }
.step-num { font: 700 12.5px var(--f-mono); letter-spacing: 0.12em; color: var(--wine-3); }
.step h3 { font: 600 24px/1.2 var(--f-display); margin: 6px 0 10px; color: var(--ink); }
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* =========================================================
   APP (wine brand section)
   ========================================================= */
.app-section { overflow: hidden; background: radial-gradient(800px 600px at 80% 40%, rgba(242, 192, 113, 0.2), transparent 60%), linear-gradient(150deg, #8a2a2e 0%, #5e0a0b 55%, #470304 100%); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.app-copy .lead { margin-top: 22px; }
.feature-list { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; gap: 18px; }
.feature-list li { display: flex; align-items: flex-start; gap: 16px; }
.feature-list b { display: block; font-size: 17px; font-weight: 700; color: #fff; }
.feature-list li > span:last-child { font-size: 15.5px; color: var(--on-wine-2); }
.fl-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.14); color: var(--amber-2); border: 1px solid var(--line-wine); }
.app-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.platforms { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px var(--f-mono); color: var(--on-wine-2); }
.platforms .ic { width: 16px; height: 16px; }
.phone-stage { position: relative; display: grid; place-items: center; min-height: 660px; perspective: 1400px; }
.phone-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); transform: translate(-50%, -50%); pointer-events: none; }
.ring-1 { width: 480px; height: 480px; animation: ring-pulse 5s ease-in-out infinite; }
.ring-2 { width: 640px; height: 640px; border-color: rgba(255, 255, 255, 0.1); animation: ring-pulse 5s ease-in-out -2.5s infinite; }
.phone { position: relative; width: 300px; height: 620px; padding: 11px; border-radius: 48px; background: linear-gradient(145deg, #3a2e2f, #0d0909 60%); box-shadow: 0 0 0 1.5px #4a3a3b, 0 60px 120px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg); transition: transform 0.9s var(--ease); transform-style: preserve-3d; }
.phone-stage:hover .phone { transition-duration: 0.3s; }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; color: #111; display: flex; flex-direction: column; font-family: var(--f-body); }
.notch { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0d0909; z-index: 5; }
.ps-top { background: var(--wine); color: #fff; padding: 44px 12px 12px; border-radius: 0 0 16px 16px; }
.ps-head { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; padding: 0 2px; }
.ps-head span:last-child { font-weight: 500; opacity: 0.9; }
.ps-card { margin-top: 10px; background: var(--wine-2); border-radius: 14px; padding: 10px; overflow: hidden; }
.ps-slides { display: flex; transition: transform 0.8s var(--ease); }
.ps-slide { flex: 0 0 100%; }
.ps-slide-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
.ps-slide-head i { font-style: normal; font-weight: 400; font-size: 9.5px; background: var(--wine); padding: 3px 9px; border-radius: 3px; }
.ps-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 8px; padding: 5px 8px; margin-bottom: 5px; font-size: 10.5px; line-height: 1.3; }
.ps-row span:last-child { text-align: right; font-size: 9.5px; }
.ps-row em { font-style: normal; font-size: 9px; opacity: 0.8; }
.ps-row b { font-weight: 600; }
.ps-dots { display: flex; justify-content: center; gap: 4px; margin-top: 7px; }
.ps-dots span { width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); transition: background 0.4s; }
.ps-dots span.on { background: #fff; }
.ps-marquee { margin-top: 8px; background: var(--wine); color: #fff; font-size: 10px; padding: 5px 0; overflow: hidden; white-space: nowrap; }
.ps-marquee span { display: inline-block; padding-left: 100%; animation: ps-marquee 16s linear infinite; }
.ps-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 9px 10px 0; padding: 3px; border-radius: 7px; background: var(--wine); color: #fff; font-size: 10.5px; text-align: center; }
.ps-tabs span { padding: 5px 0; border-radius: 5px; }
.ps-tabs span.on { background: var(--wine-2); }
.ps-premium { position: relative; margin: 8px 10px 0; height: 92px; border-radius: 10px; overflow: hidden; border: 6px solid var(--wine-2); }
.ps-premium img { width: 100%; height: 100%; object-fit: cover; }
.ps-premium span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 10px; letter-spacing: 0.18em; }
.ps-premium .ic { width: 12px; height: 12px; }
.ps-article { display: flex; gap: 8px; margin: 8px 10px 0; padding: 7px; border-radius: 8px; background: var(--wine); }
.ps-art-img { width: 40%; height: 46px; border-radius: 4px; background: linear-gradient(135deg, #e39a2d, #7c2529); flex: none; }
.ps-article > div:last-child { flex: 1; }
.ps-article i { display: block; background: rgba(255, 255, 255, 0.3); height: 5px; border-radius: 4px; margin-top: 5px; }
.ps-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 10px 6px 18px; background: var(--wine); border-radius: 16px 16px 0 0; color: #c2c6cc; }
.ps-nav span { width: 38px; height: 26px; border-radius: 999px; display: grid; place-items: center; }
.ps-nav span.on { background: #fff; color: var(--wine); }
.ps-nav .ic { width: 15px; height: 15px; }

.chip-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; color: var(--ink); background: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55); animation: float 7s ease-in-out infinite; }
.chip-float .ic { width: 16px; height: 16px; color: var(--wine-3); }
.chip-1 { top: 16%; left: 2%; }
.chip-2 { top: 44%; right: 0; animation-delay: -2.4s; }
.chip-3 { bottom: 14%; left: 6%; animation-delay: -4.6s; }

/* =========================================================
   DOWNLOAD (QR codes)
   ========================================================= */
.download-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 72px); align-items: center; }
.download-copy .lead { margin-top: 16px; max-width: 460px; }
.download-qrs { display: flex; gap: 20px; }
.download-qr-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.download-qr-card:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.55); }
.download-qr-card img { width: 140px; height: 140px; border-radius: 10px; display: block; }
.download-qr-card span { display: inline-flex; align-items: center; gap: 7px; font: 700 14px var(--f-body); color: var(--ink); }
.download-qr-card .ic { width: 16px; height: 16px; color: var(--wine-3); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-year { font: 700 clamp(96px, 15vw, 210px)/0.85 var(--f-display); letter-spacing: -0.06em; color: transparent; background: linear-gradient(180deg, var(--wine-3) 25%, rgba(143, 36, 38, 0.2) 100%); -webkit-background-clip: text; background-clip: text; }
.about-quote { font: 500 clamp(21px, 2.1vw, 29px)/1.35 var(--f-display); letter-spacing: -0.01em; color: var(--ink); margin: 30px 0 18px; text-wrap: balance; }
.about-text { color: var(--ink-2); max-width: 560px; margin: 0; font-size: 16.5px; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--wine-3), rgba(143, 36, 38, 0.15)); }
.timeline li { position: relative; padding: 0 0 36px 46px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 2px solid var(--wine-3); transition: background 0.6s 0.3s, box-shadow 0.6s 0.3s; }
.timeline li.in::before { background: var(--wine-3); box-shadow: 0 0 0 6px rgba(143, 36, 38, 0.12); }
.timeline small { font: 700 12.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine-3); }
.timeline h3 { font: 600 22px/1.25 var(--f-display); margin: 4px 0 6px; color: var(--ink); }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.pillar { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-num { display: block; font: 700 44px/1 var(--f-body); letter-spacing: -0.03em; color: var(--wine-3); margin-bottom: 14px; }
.pillar b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* =========================================================
   CONTACT (wine brand section)
   ========================================================= */
.contact { overflow: hidden; background: linear-gradient(150deg, #8a2a2e 0%, #5e0a0b 55%, #470304 100%); }
.contact-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 500px at 5% 0%, rgba(242, 192, 113, 0.25), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(208, 82, 62, 0.25), transparent 60%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .lead { margin-top: 22px; }
.eyebrow-cream { color: var(--amber-2); }
.contact-cards { display: grid; gap: 12px; margin-top: 36px; max-width: 460px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-wine); color: #fff; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.contact-card:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(242, 192, 113, 0.7); transform: translateX(6px); }
.cc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--wine); flex: none; }
.contact-card small { display: block; font: 700 10.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-wine-3); }
.contact-card b { font-weight: 700; font-size: 16px; word-break: break-all; }
.cc-arrow { margin-left: auto; color: var(--amber-2); transition: transform 0.35s var(--ease); }
.contact-card:hover .cc-arrow { transform: translate(3px, -3px); }
.form { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.6); }
.form-head h3 { font: 600 26px/1.2 var(--f-display); margin: 0 0 4px; }
.form-head p { margin: 0 0 24px; color: var(--ink-3); font-size: 14.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.field { position: relative; }
.field input, .field select { width: 100%; height: 58px; padding: 22px 16px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); outline: none; font-size: 15.5px; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; -webkit-appearance: none; appearance: none; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 26px, calc(100% - 15px) 26px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover { border-color: rgba(143, 36, 38, 0.4); }
.field input:focus, .field select:focus { border-color: var(--wine-3); background: #fff; box-shadow: 0 0 0 4px rgba(143, 36, 38, 0.12); }
.field label { position: absolute; left: 17px; top: 19px; font-size: 15.5px; color: var(--ink-3); pointer-events: none; transition: all 0.25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field-select label { top: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--wine-3); }
.field input.invalid { border-color: var(--down); background: #fff6f4; }
.form-status { min-height: 22px; margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }
.form-status.ok { color: var(--up); font-weight: 600; }
.form-status.err { color: var(--down); }
.form-status a { text-decoration: underline; font-weight: 600; }
/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; padding-block: 72px 28px; background: linear-gradient(180deg, #470304, #3a0405); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 68px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--on-wine-3); max-width: 280px; font-size: 15px; }
.footer h4 { font: 700 11.5px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-2); margin: 6px 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--on-wine-2); font-size: 15.5px; transition: color 0.3s; }
.footer ul a:hover { color: var(--amber-2); }
.footer-word { margin: 56px 0 18px; text-align: center; white-space: nowrap; font: 700 clamp(56px, 15.5vw, 220px)/0.8 var(--f-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22); background: linear-gradient(180deg, rgba(242, 192, 113, 0.22), transparent 75%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-wine); font-size: 14px; color: var(--on-wine-3); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--on-wine-2); }
.to-top .ic { width: 15px; height: 15px; transform: rotate(-45deg); }
.to-top:hover { color: var(--amber-2); }
/* =========================================================
   TOOLTIP
   ========================================================= */
.tip { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; background: #1f1212; color: #fff; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; }
.tip.show { opacity: 1; transform: none; }
.tip .t-title { font: 700 10.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; }
.tip .t-row { display: flex; align-items: center; gap: 8px; }
.tip .t-row b { margin-left: auto; padding-left: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .t-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.tip .t-note { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47, 163, 107, 0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.12); } }
@keyframes grid-move { to { background-position: 0 64px, 0 0; } }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes spin-border { to { --angle: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes halo { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes progress { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes skeleton { 0%, 30% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ring-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.55; } }
@keyframes ps-marquee { to { transform: translateX(-100%); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1140px) {
  .nav a { padding: 8px 12px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-forecast { grid-column: span 2; grid-row: auto; }
  .card-analysis, .card-trends, .card-reports, .card-alerts { grid-column: span 1; grid-row: auto; }
  .card-articles { grid-column: span 2; }
}
@media (max-width: 980px) {
  .nav, .link-login, .store-links { display: none; }
  .menu-btn { display: block; }
  .nav + .header-cta { margin-left: auto; }
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 44px) 100px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; margin: 10px auto 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .explorer-body { grid-template-columns: 1fr; }
  .explorer-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px; }
  .stat { border-bottom: 0; padding-bottom: 0; }
  .side-features { display: none; }
  .process { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .process-line { display: none; }
  .app-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: 640px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand img { height: 46px; }
  .header-cta .btn-sm { display: none; }
  .stack { border-radius: 28px 28px 0 0; margin-top: -28px; }
  .ticker { padding-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 18px; }
  .hero-proof { gap: 16px 22px; }
  .hero-proof strong { font-size: 26px; }
  .hero-proof span { font-size: 12.5px; }
  .terminal { padding: 14px; border-radius: 20px; }
  .term-title { display: none; }
  .term-stats { width: 100%; justify-content: space-between; gap: 10px; }
  .term-chart { height: 200px; }
  .term-foot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .alert-card { top: -36px; right: -4px; }
  .report-card { display: none; }
  .fx-card { right: 12px; bottom: -26px; }
  .float-card { padding: 9px 12px 9px 9px; }
  .fc-icon { width: 32px; height: 32px; }
  .fc-body b { font-size: 13px; max-width: 160px; }
  .explorer { border-radius: 22px; }
  .explorer-bar { padding: 12px; }
  .seg { width: 100%; }
  .seg button { padding: 10px 6px; font-size: 13.5px; }
  .explorer-tools { width: 100%; }
  .cur-switch { flex: 1; }
  .explorer-side { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
  .stat small { font-size: 10px; letter-spacing: 0.08em; }
  .stat strong { font-size: 18px; }
  .stat span { font-size: 12px; line-height: 1.35; display: block; }
  .explorer-main { padding: 16px 12px 14px; }
  .ladder-row, .ladder-overlay { grid-template-columns: 80px 1fr 94px; gap: 10px; padding-inline: 6px; }
  .ladder-name { font-size: 14.5px; }
  .ladder-name small { font-size: 11.5px; }
  .ladder-val b { font-size: 14.5px; }
  .ladder-val small { font-size: 11.5px; }
  .bento { grid-template-columns: 1fr; }
  .card-forecast, .card-analysis, .card-trends, .card-reports, .card-alerts, .card-articles { grid-column: auto; }
  .card { padding: 20px; border-radius: 20px; }
  .card-articles { grid-template-columns: 1fr; gap: 28px; }
  .fc-chart { min-height: 240px; }
  .seg-sm { width: 100%; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 30px; }
  .step::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: var(--line-2); }
  .step:last-child::before { display: none; }
  .step-icon { grid-row: span 3; width: 56px; height: 56px; border-radius: 16px; margin: 0; }
  .step-icon .ic { width: 22px; height: 22px; }
  .step h3 { font-size: 21px; margin: 2px 0 6px; }
  .phone-stage { min-height: 560px; }
  .phone { width: 262px; height: 540px; border-radius: 42px; transform: rotateY(-8deg) rotateX(4deg); }
  .phone-screen { border-radius: 33px; }
  .ps-premium { height: 70px; }
  .ring-1 { width: 360px; height: 360px; }
  .ring-2 { width: 480px; height: 480px; }
  .chip-float { font-size: 12.5px; padding: 8px 11px; }
  .chip-1 { top: 8%; left: 0; }
  .chip-2 { top: 46%; right: 0; }
  .chip-3 { bottom: 6%; left: 0; }
  .pillars { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { gap: 32px 20px; }
  .download-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .download-copy .eyebrow { justify-content: center; }
  .download-qrs { justify-content: center; }
}
@media (max-width: 420px) {
  .term-stats dt { font-size: 11px; }
  .term-stats dd { font-size: 13.5px; }
  .ladder-row, .ladder-overlay { grid-template-columns: 72px 1fr 86px; gap: 8px; }
  .chip-2 { display: none; }
  .mobile-nav-cta { grid-template-columns: 1fr; }
  .download-qrs { gap: 12px; }
  .download-qr-card { padding: 14px; gap: 10px; }
  .download-qr-card img { width: 104px; height: 104px; }
  .download-qr-card span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-title .line > span { transform: none; }
  .imp-bar { transform: none; }
  .spark { stroke-dashoffset: 0; }
}
/* =========================================================
   MOTION LAYER — loader, heading wipes, tilt, timeline draw
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, #8a2328, #500303 70%);
  animation: loader-out 0.55s var(--ease) 0.95s forwards;
}
.loader-inner { display: grid; justify-items: center; gap: 20px; }
.loader img { width: 96px; height: auto; animation: loader-logo 0.9s var(--ease) both; }
.loader-bar { display: block; width: 150px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--grad-gold); transform-origin: left; animation: loader-fill 0.85s var(--ease) both; }
/* heading wipe-up */
.js .reveal > .h2 { clip-path: inset(0 0 100% 0); transform: translateY(36px); transition: clip-path 1.15s var(--ease) 0.08s, transform 1.15s var(--ease) 0.08s, opacity 0.9s var(--ease); }
.js .reveal.in > .h2 { clip-path: inset(-15% -5% -25% -5%); transform: none; }
/* eyebrow line grows */
.js .reveal .eyebrow::before, .js .eyebrow.reveal::before { width: 0; transition: width 0.9s var(--ease) 0.35s; }
.js .reveal.in .eyebrow::before, .js .eyebrow.reveal.in::before { width: 28px; }
/* timeline draws as it enters */
.js .timeline::before { transform-origin: top; transform: scaleY(0); transition: transform 1.8s var(--ease) 0.2s; }
.js .timeline.in::before { transform: scaleY(1); }
/* gentle depth on hover (set by JS) */
.tilt { transform-style: preserve-3d; }
.step-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 1.5px solid rgba(143, 36, 38, 0.35); opacity: 0; transform: scale(0.85); }
.step.active .step-icon::after { animation: step-pulse 2.4s var(--ease) infinite; }
/* stat numbers glow once on update */
.swap-num { text-shadow: 0 0 18px rgba(242, 192, 113, 0.35); }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes loader-logo { from { opacity: 0; transform: scale(0.82) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes loader-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aurora-spin { to { transform: rotate(360deg); } }
@keyframes wave-flow { to { transform: translateX(-50%); } }
@keyframes step-pulse { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 720px) {
  .waves { height: 130px; }
  .wave-1 { height: 120px; }
  .wave-2 { height: 90px; }
  .wave-3 { height: 56px; }
  .aurora { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .js .reveal > .h2 { clip-path: none; transform: none; }
  .js .timeline::before { transform: none; }
  .js .reveal .eyebrow::before, .js .eyebrow.reveal::before { width: 28px; }
}
