/* Cinematic Recorder — landing page. Brand colours match the app (lib/core/theme/app_theme.dart). */

@font-face { font-family: "Kalpurush"; src: url("../fonts/Kalpurush.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --cyan: #2ec5ff;
  --blue: #3d5bff;
  --violet: #7b3bff;
  --pink: #ff3fd8;
  --orange: #ff8a3d;
  --brand: linear-gradient(120deg, var(--cyan), var(--blue) 30%, var(--violet) 55%, var(--pink) 80%, var(--orange));

  --bg: #060a24;
  --bg-2: #0b1033;
  --card: rgba(22, 28, 74, .55);
  --card-solid: #12183f;
  --line: rgba(255, 255, 255, .09);
  --text: #eef0ff;
  --muted: #a5abd6;
  --dim: #6f76a8;

  --radius: 22px;
  --wrap: 1440px;
  --font: "Poppins", "Kalpurush", system-ui, sans-serif;
}

:root:not([data-theme="dark"]) { color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="bn"] body { font-family: "Kalpurush", "Poppins", system-ui, sans-serif; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* One language at a time: every text has a .bn and an .en twin. */
html[data-lang="bn"] .en, html[data-lang="en"] .bn { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Animated backdrop ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: var(--violet); top: -25vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: var(--cyan); top: 10vmax; right: -25vmax; animation-duration: 32s; opacity: .22; }
.aurora span:nth-child(3) { background: var(--pink); bottom: -30vmax; left: 20vmax; animation-duration: 38s; opacity: .2; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(.95); }
}
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Cursor glow that follows the mouse (desktop only). */
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(123, 59, 255, .22), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand); z-index: 100; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; padding: 16px 0; }
.nav.scrolled { background: rgba(6, 10, 36, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); padding: 10px 0; }
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 24px rgba(123,59,255,.55); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: .9rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.lang-toggle button { padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: all .25s; }
.lang-toggle button.on { background: var(--brand); color: #fff; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 14px; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--brand); background-size: 200% auto; color: #fff; box-shadow: 0 10px 30px -8px rgba(123, 59, 255, .7); overflow: hidden; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 63, 216, .65); background-position: right center; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: sweep 3.6s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { left: -120%; } 100% { left: 160%; } }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .82rem; color: var(--muted);
}
.badge b { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.1; font-weight: 700; margin: 22px 0 18px; letter-spacing: -.02em; }
html[data-lang="bn"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.typed { color: var(--text); font-weight: 600; border-inline-end: 2px solid var(--pink); padding-inline-end: 3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--muted); }
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust i { width: 18px; height: 18px; border-radius: 50%; background: rgba(46, 197, 255, .15); color: var(--cyan); display: grid; place-items: center; font-style: normal; font-size: .7rem; }

/* The "cinematic" demo: a fake screen whose camera zooms to the clicked button. */
.stage { position: relative; perspective: 1400px; }
.device {
  position: relative; border-radius: 26px; padding: 12px; background: linear-gradient(160deg, #1c2360, #0c1135);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(123,59,255,.25), 0 0 80px -10px rgba(123,59,255,.45);
  transform: rotateY(-12deg) rotateX(6deg); transition: transform .6s cubic-bezier(.2,.8,.2,1);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.device-bar .rec { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; color: #ff6b8a; font-family: "Poppins", sans-serif; }
.device-bar .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b6b; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0a0f2e; }
.cam { position: absolute; inset: 0; transform-origin: 72% 68%; animation: camera 8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes camera {
  0%, 22% { transform: scale(1); }
  38%, 62% { transform: scale(1.85); }
  78%, 100% { transform: scale(1); }
}
.app-ui { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; }
.app-side { background: rgba(255,255,255,.03); border-inline-end: 1px solid rgba(255,255,255,.06); padding: 10% 8%; display: flex; flex-direction: column; gap: 9%; }
.app-side b { height: 7%; border-radius: 4px; background: rgba(255,255,255,.08); }
.app-side b:first-child { background: var(--brand); opacity: .8; }
.app-main { padding: 6%; display: flex; flex-direction: column; gap: 6%; }
.app-row { display: flex; gap: 5%; }
.app-card { flex: 1; aspect-ratio: 1.6; border-radius: 8px; background: rgba(255,255,255,.05); position: relative; overflow: hidden; }
.app-card::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 18%; height: 30%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: .55; }
.app-card:nth-child(2)::after { background: linear-gradient(90deg, var(--pink), var(--orange)); height: 45%; }
.app-card:nth-child(3)::after { background: linear-gradient(90deg, var(--violet), var(--pink)); height: 22%; }
.app-chart { flex: 1; border-radius: 8px; background: rgba(255,255,255,.04); display: flex; align-items: flex-end; gap: 4%; padding: 5% 6%; }
.app-chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan), var(--blue)); animation: bar 2.4s ease-in-out infinite alternate; }
.app-chart i:nth-child(odd) { animation-delay: .4s; }
@keyframes bar { from { height: 30%; } to { height: 90%; } }
.app-btn {
  position: absolute; left: 63%; top: 62%; width: 18%; height: 11%; border-radius: 8px;
  background: var(--brand); display: grid; place-items: center; color: #fff; font-size: clamp(6px, 1vw, 11px); font-weight: 700; font-family: "Poppins", sans-serif;
  animation: focusBtn 8s infinite;
}
@keyframes focusBtn {
  0%, 30% { box-shadow: 0 0 0 0 rgba(255,63,216,0); }
  36%, 60% { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 30px 6px rgba(255,63,216,.8); }
  70%, 100% { box-shadow: 0 0 0 0 rgba(255,63,216,0); }
}
.spot { position: absolute; inset: 0; background: radial-gradient(circle at 72% 68%, transparent 12%, rgba(4, 6, 24, .72) 26%); opacity: 0; animation: spot 8s infinite; }
@keyframes spot { 0%, 28% { opacity: 0; } 38%, 60% { opacity: 1; } 72%, 100% { opacity: 0; } }
.cursor { position: absolute; width: 7%; aspect-ratio: 1; left: 20%; top: 25%; animation: cursorMove 8s cubic-bezier(.65, 0, .35, 1) infinite; z-index: 3; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.cursor svg { width: 100%; height: 100%; }
@keyframes cursorMove {
  0% { left: 20%; top: 25%; }
  25% { left: 70%; top: 65%; }
  60% { left: 70%; top: 65%; }
  85%, 100% { left: 20%; top: 25%; }
}
.ripple { position: absolute; left: 72%; top: 68%; width: 12%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--pink); transform: translate(-50%, -50%) scale(0); opacity: 0; animation: ripple 8s infinite; z-index: 2; }
@keyframes ripple { 0%, 27% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 29% { opacity: 1; } 40% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } 100% { opacity: 0; } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: .78rem; font-weight: 600;
  background: rgba(15, 20, 56, .88); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); box-shadow: 0 14px 34px -10px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite; white-space: nowrap;
}
.chip i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; background: var(--brand); }
.chip-1 { top: -18px; left: -24px; }
.chip-2 { bottom: 40px; right: -28px; animation-delay: -2s; }
.chip-3 { bottom: -22px; left: 18%; animation-delay: -4s; }

/* ---------- Marquee ---------- */
/* The feature strip is a sticky footer: always pinned to the bottom of the screen. */
.marquee {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  border-block: 1px solid var(--line); overflow: hidden;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 10, 36, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
/* On wide screens the hero fills the first screen, so the strip lands there naturally. */
body:has(.marquee) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
body:has(.marquee) .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1025px) {
  .hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding-block: 110px 40px; }
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.marquee-track > span::before { content: "✦"; color: var(--pink); }
@keyframes scroll { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: rgba(123, 59, 255, .14); color: #c7b3ff; border: 1px solid rgba(123,59,255,.3); margin-bottom: 16px; }
html[data-lang="bn"] .eyebrow { letter-spacing: .02em; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
html[data-lang="bn"] .sec-head h2 { line-height: 1.35; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Reveal on scroll */
/* Content is visible at rest; only blocks still below the fold on load (.pre) wait to animate in. */
.reveal { transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.pre { opacity: 0; transform: translateY(40px); }
.reveal.zoom.pre { transform: scale(.92); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -30px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.stat b { display: block; font-size: 2.3rem; font-weight: 700; line-height: 1.1; font-family: "Poppins", sans-serif; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Description (about) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; margin-bottom: 18px; }
.about p { color: var(--muted); margin-bottom: 14px; }
.about ul { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.about li { display: flex; gap: 12px; align-items: flex-start; }
.about li i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; font-style: normal; font-size: .8rem; margin-top: 2px; }
.flow { position: relative; padding: 30px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.flow-step { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); position: relative; }
.flow-step + .flow-step { margin-top: 34px; }
.flow-step + .flow-step::before { content: ""; position: absolute; left: 38px; top: -35px; width: 2px; height: 34px; background: linear-gradient(var(--violet), var(--pink)); }
[dir="rtl"] .flow-step + .flow-step::before { left: auto; right: 38px; }
.flow-step .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.flow-step b { display: block; }
.flow-step small { color: var(--muted); }
.flow-dot { position: absolute; left: 33px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px var(--pink); animation: travel 4.5s ease-in-out infinite; z-index: 2; }
[dir="rtl"] .flow-dot { left: auto; right: 33px; }
@keyframes travel { 0% { top: 50px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 60px); opacity: 0; } }

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat {
  --mx: 50%; --my: 50%;
  position: relative; grid-column: span 2; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s, border-color .35s; isolation: isolate; backdrop-filter: blur(12px);
}
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(123,59,255,.25), transparent 45%); opacity: 0; transition: opacity .35s; }
.feat:hover { transform: translateY(-6px); border-color: rgba(123,59,255,.45); }
.feat:hover::before { opacity: 1; }
.feat.wide { grid-column: span 3; }
.feat.xl { grid-column: span 4; }
.feat .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; box-shadow: 0 10px 26px -8px currentColor; }
.feat h4 { font-size: 1.15rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .94rem; }
.tag { display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(46,197,255,.12); color: var(--cyan); }
.tag.soon { background: rgba(255,138,61,.12); color: var(--orange); }
.tag.only { background: rgba(32,211,154,.14); color: #20d39a; }
.g1 { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: rgba(46,197,255,.6); }
.g2 { background: linear-gradient(135deg, var(--violet), var(--pink)); color: rgba(255,63,216,.6); }
.g3 { background: linear-gradient(135deg, var(--pink), var(--orange)); color: rgba(255,138,61,.6); }
.g4 { background: linear-gradient(135deg, var(--blue), var(--violet)); color: rgba(123,59,255,.6); }
.g5 { background: linear-gradient(135deg, var(--orange), #ffc23d); color: rgba(255,194,61,.6); }
.g6 { background: linear-gradient(135deg, #20d39a, var(--cyan)); color: rgba(32,211,154,.6); }
.feat-demo { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.feat-demo span { font-size: .78rem; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.ai-chat { margin-top: 18px; display: grid; gap: 8px; }
.ai-chat .msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .86rem; transition: all .5s; }
.feat.pre .ai-chat .msg { opacity: 0; transform: translateY(10px); }
.ai-chat .me { justify-self: end; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.ai-chat .bot { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-end-start-radius: 4px; }
.feat.in .ai-chat .msg:nth-child(2) { transition-delay: .5s; }
.feat.in .ai-chat .msg:nth-child(3) { transition-delay: 1s; }

/* ---------- Why use ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; transition: transform .35s; backdrop-filter: blur(12px); }
.why-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.why-card .big { font-size: 2.6rem; line-height: 1; margin-bottom: 14px; display: inline-block; animation: bob 3s ease-in-out infinite; }
.why-card:nth-child(2) .big { animation-delay: -.6s; }
.why-card:nth-child(3) .big { animation-delay: -1.2s; }
.why-card:nth-child(4) .big { animation-delay: -1.8s; }
.why-card:nth-child(5) .big { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-8px) scale(1.05); } }
.why-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .94rem; }

/* ---------- How to use ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps-line { position: absolute; top: 38px; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.steps-line::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
[dir="rtl"] .steps-line::after { transform-origin: 100% 50%; }
.step { text-align: center; position: relative; }
.step .num { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; font-size: 1.8rem; background: var(--card-solid); border: 1px solid var(--line); position: relative; z-index: 1; transition: transform .4s; }
.step:hover .num { transform: rotate(-8deg) scale(1.08); }
.step .num small { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); font-size: .75rem; font-weight: 700; display: grid; place-items: center; font-family: "Poppins", sans-serif; }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Comparison ---------- */
.compare { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(12px); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: rgba(255,255,255,.03); }
.compare th.us, .compare td.us { text-align: center; background: rgba(123,59,255,.12); }
.compare thead th.us { color: #fff; background: linear-gradient(180deg, rgba(123,59,255,.45), rgba(123,59,255,.12)); }
.compare td.other { text-align: center; color: var(--dim); }
.compare th.other { text-align: center; }
.yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(32, 211, 154, .16); color: #20d39a; font-weight: 700; }
.no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 90, 120, .12); color: #ff6b8a; font-weight: 700; }
.part { font-size: .8rem; color: var(--orange); }
.compare tbody tr { transition: background .25s; }
.compare tbody tr:hover { background: rgba(255,255,255,.03); }

/* ---------- Pricing ---------- */
.bill { display: flex; justify-content: center; margin-bottom: 40px; }
.bill-toggle { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; padding: 5px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line); gap: 2px; }
.bill-toggle button { position: relative; z-index: 1; padding: 10px 16px; border-radius: 13px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.bill-toggle button.on { color: #fff; background: var(--brand); box-shadow: 0 8px 22px -8px rgba(123,59,255,.8); }
.bill-toggle button em { font-style: normal; font-size: .68rem; margin-inline-start: 4px; padding: 2px 6px; border-radius: 6px; background: rgba(32,211,154,.18); color: #20d39a; }
.bill-toggle button.on em { background: rgba(255,255,255,.25); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; backdrop-filter: blur(12px); transition: transform .35s; }
.plan:hover { transform: translateY(-6px); }
.plan.hot { border: 0; background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, var(--brand) border-box; border: 2px solid transparent; box-shadow: 0 30px 80px -30px rgba(123, 59, 255, .8); transform: scale(1.03); }
.plan.hot:hover { transform: scale(1.03) translateY(-6px); }
.plan .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; background: var(--brand); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.plan h4 { font-size: 1.2rem; }
.plan .sub { color: var(--muted); font-size: .88rem; margin-top: 4px; min-height: 2.6em; }
.price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 6px; font-family: "Poppins", "Kalpurush", sans-serif; }
.price b { font-size: 2.9rem; font-weight: 700; line-height: 1; }
.price .cur { font-size: 1.4rem; font-weight: 600; }
.price .per { color: var(--muted); font-size: .9rem; }
.price-note { font-size: .82rem; color: #20d39a; min-height: 1.5em; }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 22px 0 28px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .92rem; }
.plan li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(32,211,154,.16); color: #20d39a; font-size: .7rem; display: grid; place-items: center; margin-top: 2px; }
.plan li.off { color: var(--dim); }
.plan li.off::before { content: "–"; background: rgba(255,255,255,.06); color: var(--dim); }
.plan .btn { width: 100%; }
.price-flip { display: inline-block; animation: flip .45s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { from { opacity: 0; transform: translateY(-14px) rotateX(60deg); } to { opacity: 1; transform: none; } }
.pricing-foot { text-align: center; color: var(--dim); font-size: .85rem; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.qa { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, background .3s; backdrop-filter: blur(12px); }
.qa.open { border-color: rgba(123,59,255,.5); background: rgba(123,59,255,.08); }
.qa button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 22px; text-align: start; font-weight: 600; font-size: 1rem; }
.qa button .pm { margin-inline-start: auto; flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: transform .35s, background .35s; font-size: 1.1rem; }
.qa.open button .pm { transform: rotate(45deg); background: var(--brand); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta-box { position: relative; text-align: center; padding: 70px 30px; border-radius: 36px; overflow: hidden; background: var(--brand); background-size: 200% 200%; animation: grad 10s ease infinite; }
@keyframes grad { 50% { background-position: 100% 100%; } }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 40%), radial-gradient(circle at 80% 90%, rgba(0,0,0,.25), transparent 50%); }
.cta-box > * { position: relative; }
.cta-box img { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 20px; box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: float 5s ease-in-out infinite; }
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2; }
.cta-box p { opacity: .9; margin: 12px auto 28px; max-width: 560px; }
.cta-box .btn { background: #fff; color: var(--bg); }
.cta-box .btn:hover { transform: translateY(-2px) scale(1.03); }
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 110px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.foot p { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.foot h5 { font-size: .85rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.foot a { display: block; color: var(--muted); font-size: .92rem; padding: 4px 0; transition: color .2s; }
.foot a:hover { color: var(--text); }
.copy { text-align: center; color: var(--dim); font-size: .82rem; margin-top: 44px; }

.to-top { position: fixed; bottom: 22px; right: 22px; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(123,59,255,.8); opacity: 0; transform: translateY(20px); transition: all .35s; z-index: 40; }
.to-top.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .stage { width: 100%; max-width: 600px; margin: 20px auto 0; }
  .device { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat, .feat.wide, .feat.xl { grid-column: span 1; }
  .feat.xl { grid-column: span 2; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.hot { transform: none; }
  .plan.hot:hover { transform: translateY(-6px); }
}
@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; padding: 12px; border-radius: 20px; background: rgba(11, 16, 51, .97); border: 1px solid var(--line); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .menu-btn { display: block; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps-line { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: span 2; }
  .compare th, .compare td { padding: 12px 10px; font-size: .85rem; }
  .chip-1 { left: -6px; }
  .chip-2 { right: -6px; }
}
@media (max-width: 560px) {
  section { padding: 80px 0; }
  .bento, .why { grid-template-columns: 1fr; }
  .feat.xl { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .chip { font-size: .7rem; padding: 7px 10px; }
  .chip i { width: 22px; height: 22px; }
  .chip-3 { display: none; }
  .logo span { display: none; }
  .bill-toggle button { padding: 8px 10px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal.pre, .feat.pre .ai-chat .msg { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

/* =====================================================================
 * Inner pages: features, blog, legal (built by _src/build.py)
 * ===================================================================== */
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.08); }
.page-hero { padding: 150px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; max-width: 860px; margin: 0 auto; }
html[data-lang="bn"] .page-hero h1 { line-height: 1.35; letter-spacing: 0; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 16px auto 0; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: .85rem; color: var(--dim); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* Feature detail rows: text on one side, a live mini demo on the other. */
.fnav { position: sticky; top: 70px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 14px; scrollbar-width: none; }
.fnav::-webkit-scrollbar { display: none; }
.fnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: .85rem; background: rgba(15,20,56,.85); border: 1px solid var(--line); color: var(--muted); backdrop-filter: blur(10px); transition: all .25s; }
.fnav a:hover, .fnav a.on { color: #fff; background: var(--brand); border-color: transparent; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.frow:last-child { border-bottom: 0; }
.frow:nth-child(even) .fvis { order: -1; }
.frow .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.frow h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin-bottom: 14px; text-wrap: balance; }
html[data-lang="bn"] .frow h2 { line-height: 1.35; }
.frow p { color: var(--muted); margin-bottom: 14px; }
.frow ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.frow li { display: flex; gap: 10px; }
.frow li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(32,211,154,.16); color: #20d39a; font-size: .72rem; display: grid; place-items: center; margin-top: 3px; }
.fvis { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; backdrop-filter: blur(12px); max-width: 100%; }
.fvis::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(123,59,255,.18), transparent 30%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fvis > * { position: relative; }

/* demo: zoom */
.d-zoom { width: 78%; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #0a0f2e; border: 1px solid rgba(255,255,255,.1); position: relative; }
.d-zoom .z { position: absolute; inset: 0; transform-origin: 70% 60%; animation: camera 6s cubic-bezier(.65,0,.35,1) infinite; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; padding: 10%; }
.d-zoom .z i { border-radius: 6px; background: rgba(255,255,255,.07); }
.d-zoom .z i:nth-child(5) { background: var(--brand); box-shadow: 0 0 20px rgba(255,63,216,.6); }
/* demo: cursor trail */
.d-cursor { width: 80%; height: 70%; position: relative; }
.d-cursor .dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,63,216,.5) 60%, transparent 70%); offset-path: path("M10 120 C 80 10, 160 200, 240 60 S 330 140, 300 40"); animation: path 4s ease-in-out infinite alternate; }
.d-cursor .dot:nth-child(2) { animation-delay: .08s; opacity: .55; transform: scale(.8); }
.d-cursor .dot:nth-child(3) { animation-delay: .16s; opacity: .35; transform: scale(.6); }
.d-cursor .dot:nth-child(4) { animation-delay: .24s; opacity: .2; transform: scale(.45); }
@keyframes path { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* demo: audio waveform */
.d-wave { display: flex; align-items: center; gap: 5px; height: 45%; }
.d-wave i { width: 7px; border-radius: 6px; background: linear-gradient(var(--cyan), var(--violet)); animation: wave 1.1s ease-in-out infinite alternate; }
.d-wave i:nth-child(3n) { animation-delay: -.3s; background: linear-gradient(var(--pink), var(--orange)); }
.d-wave i:nth-child(3n+1) { animation-delay: -.6s; }
.d-wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { from { height: 12%; } to { height: 100%; } }
/* demo: camera bubble */
.d-bubble { width: 78%; aspect-ratio: 16/10; border-radius: 14px; background: #0a0f2e; border: 1px solid rgba(255,255,255,.1); position: relative; }
.d-bubble b { position: absolute; width: 28%; aspect-ratio: 1; border-radius: 50%; right: 6%; bottom: 8%; background: radial-gradient(circle at 50% 38%, #ffd2b8 0 16%, transparent 17%), radial-gradient(ellipse at 50% 90%, var(--violet) 0 38%, transparent 39%), linear-gradient(160deg, #3a2a7a, #1a1440); border: 3px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 3px var(--pink), 0 10px 30px rgba(0,0,0,.5); animation: bubble 5s ease-in-out infinite; }
@keyframes bubble { 0%, 100% { right: 6%; bottom: 8%; } 50% { right: 64%; bottom: 52%; } }
/* demo: AI chat */
.d-chat { width: 80%; display: grid; gap: 10px; }
.d-chat .msg { padding: 10px 14px; border-radius: 14px; font-size: .85rem; max-width: 85%; animation: pop 6s infinite both; }
.d-chat .me { justify-self: end; background: var(--brand); color: #fff; }
.d-chat .bot { background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.d-chat .msg:nth-child(2) { animation-delay: .8s; }
.d-chat .msg:nth-child(3) { animation-delay: 1.6s; }
.d-chat .msg:nth-child(4) { animation-delay: 2.4s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* demo: captions */
.d-cap { width: 80%; aspect-ratio: 16/10; border-radius: 14px; background: linear-gradient(160deg, #182060, #0a0f2e); border: 1px solid rgba(255,255,255,.1); position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; }
.d-cap span { padding: 6px 14px; border-radius: 8px; background: rgba(0,0,0,.6); font-weight: 600; font-size: .9rem; overflow: hidden; white-space: nowrap; border-inline-end: 2px solid var(--pink); width: 0; animation: typecap 5s steps(26) infinite; max-width: 90%; }
@keyframes typecap { 0% { width: 0; } 50%, 85% { width: 15.5em; } 100% { width: 0; } }
/* demo: aspect ratios */
.d-ratio { width: 46%; aspect-ratio: 16/9; border-radius: 12px; border: 3px solid transparent; background: linear-gradient(#0a0f2e, #0a0f2e) padding-box, var(--brand) border-box; animation: ratio 7.5s cubic-bezier(.65,0,.35,1) infinite; display: grid; place-items: center; font-weight: 700; font-family: "Poppins", sans-serif; }
.d-ratio::after { content: "16:9"; animation: ratioTxt 7.5s infinite; }
@keyframes ratio { 0%, 25% { aspect-ratio: 16/9; width: 62%; } 33%, 58% { aspect-ratio: 9/16; width: 26%; } 66%, 92% { aspect-ratio: 4/5; width: 40%; } 100% { aspect-ratio: 16/9; width: 62%; } }
@keyframes ratioTxt { 0%, 30% { content: "16:9"; } 31%, 63% { content: "9:16"; } 64%, 96% { content: "4:5"; } 97%, 100% { content: "16:9"; } }
/* demo: blur */
.d-blur { width: 78%; display: grid; gap: 12px; }
.d-blur div { padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-family: "Poppins", monospace; font-size: .88rem; display: flex; justify-content: space-between; gap: 10px; }
.d-blur em { font-style: normal; animation: blurr 4s ease-in-out infinite; }
@keyframes blurr { 0%, 30% { filter: none; } 45%, 85% { filter: blur(6px); } 100% { filter: none; } }
/* demo: templates */
.d-tpl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 80%; }
.d-tpl i { aspect-ratio: 3/4; border-radius: 12px; animation: tpl 4.5s ease-in-out infinite; }
.d-tpl i:nth-child(1) { background: linear-gradient(160deg, var(--cyan), var(--blue)); }
.d-tpl i:nth-child(2) { background: linear-gradient(160deg, var(--violet), var(--pink)); animation-delay: -1.5s; }
.d-tpl i:nth-child(3) { background: linear-gradient(160deg, var(--pink), var(--orange)); animation-delay: -3s; }
@keyframes tpl { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(-3deg); box-shadow: 0 20px 40px -10px rgba(255,63,216,.6); } 60% { transform: none; } }
/* demo: providers (BYOK) */
.d-keys { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 84%; }
.d-keys span { padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; font-family: "Poppins", sans-serif; animation: keyon 6s infinite; }
.d-keys span:nth-child(2) { animation-delay: 1.5s; }
.d-keys span:nth-child(3) { animation-delay: 3s; }
.d-keys span:nth-child(4) { animation-delay: 4.5s; }
@keyframes keyon { 0%, 20%, 100% { border-color: var(--line); box-shadow: none; } 5%, 15% { border-color: #20d39a; box-shadow: 0 0 20px rgba(32,211,154,.45); } }
/* demo: languages */
.d-lang { display: grid; gap: 10px; text-align: center; }
.d-lang span { font-size: 1.6rem; font-weight: 700; animation: langfade 8s infinite both; grid-area: 1 / 1; opacity: 0; }
.d-lang span:nth-child(2) { animation-delay: 2s; }
.d-lang span:nth-child(3) { animation-delay: 4s; }
.d-lang span:nth-child(4) { animation-delay: 6s; }
@keyframes langfade { 0% { opacity: 0; transform: translateY(14px); } 6%, 22% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: translateY(-14px); } }

/* demo: drawing on screen */
.d-draw { width: 80%; aspect-ratio: 16/10; border-radius: 14px; background: #0a0f2e; border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; padding: 5%; }
.d-draw svg { width: 100%; height: 100%; overflow: visible; }
.d-draw rect { fill: rgba(255,255,255,.07); }
.d-draw .o, .d-draw .a { fill: none; stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: drawin 5s ease-in-out infinite; }
.d-draw .a { stroke: var(--cyan); stroke-dasharray: 80; stroke-dashoffset: 80; animation: drawarrow 5s ease-in-out infinite 1s; }
.d-draw .h { fill: var(--cyan); opacity: 0; animation: drawtip 5s ease-in-out infinite 1s; }
@keyframes drawin { 0% { stroke-dashoffset: 170; } 26%, 82% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 170; } }
@keyframes drawarrow { 0% { stroke-dashoffset: 80; } 20%, 76% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 80; } }
@keyframes drawtip { 0%, 24% { opacity: 0; } 32%, 82% { opacity: 1; } 96%, 100% { opacity: 0; } }
/* demo: ready check */
.d-check { width: 82%; display: grid; gap: 9px; }
.d-check div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.d-check b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(32,211,154,.18); color: #20d39a; font-size: .66rem; font-weight: 700; display: grid; place-items: center; opacity: 0; animation: checkon 5s ease-in-out infinite; }
.d-check b::before { content: "✓"; }
.d-check div:nth-child(2) b { animation-delay: .3s; }
.d-check div:nth-child(3) b { animation-delay: .6s; }
.d-check div:nth-child(4) b { animation-delay: .9s; }
.d-check div:nth-child(5) b { animation-delay: 1.2s; }
@keyframes checkon { 0%, 6% { opacity: 0; transform: scale(.4); } 16%, 88% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: scale(.4); } }
/* demo: privacy shield */
.d-shield { width: 84%; display: grid; gap: 14px; justify-items: center; text-align: center; }
.d-shield i { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font-size: 1.7rem; font-style: normal; background: linear-gradient(135deg, var(--blue), var(--violet)); animation: shieldpulse 2.8s ease-out infinite; }
.d-shield em { font-style: normal; font-size: .84rem; padding: 6px 14px; border-radius: 999px; background: rgba(255,77,109,.14); color: #ff8fa3; border: 1px solid rgba(255,77,109,.3); }
.d-shield .apps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.d-shield .apps span { font-size: .78rem; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--dim); text-decoration: line-through; }
@keyframes shieldpulse { 0% { box-shadow: 0 0 0 0 rgba(123,59,255,.5); } 100% { box-shadow: 0 0 0 28px rgba(123,59,255,0); } }
/* demo: clean mode */
.d-clean { width: 78%; aspect-ratio: 16/10; border-radius: 14px; background: #0a0f2e; border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden; }
.d-clean u { position: absolute; inset: 14% 10%; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.d-clean i { position: absolute; top: 6%; left: 8%; right: 8%; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid var(--line); font-size: .76rem; font-style: normal; animation: notifaway 4.5s ease-in-out infinite; }
.d-clean b { position: absolute; right: 6%; bottom: 7%; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-family: "Poppins", sans-serif; background: rgba(255,77,109,.18); color: #ff8fa3; border: 1px solid rgba(255,77,109,.35); }
@keyframes notifaway { 0%, 25% { transform: translateY(0); opacity: 1; } 48%, 100% { transform: translateY(-180%); opacity: 0; } }
/* demo: click & typing sounds */
.d-sfx { width: 82%; display: grid; gap: 24px; justify-items: center; }
.d-sfx .ring { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.d-sfx .ring::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 18px rgba(255,63,216,.8); }
.d-sfx .ring s { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--pink); opacity: 0; animation: ripple 2.2s ease-out infinite; }
.d-sfx .ring s:nth-child(2) { animation-delay: 1.1s; }
.d-sfx .kb { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 68%; }
.d-sfx .kb i { aspect-ratio: 1; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid var(--line); animation: keytap 3.4s ease-in-out infinite; }
.d-sfx .kb i:nth-child(2) { animation-delay: .25s; }
.d-sfx .kb i:nth-child(3) { animation-delay: 1.5s; }
.d-sfx .kb i:nth-child(4) { animation-delay: .8s; }
.d-sfx .kb i:nth-child(5) { animation-delay: 2.1s; }
.d-sfx .kb i:nth-child(6) { animation-delay: 1.1s; }
.d-sfx .kb i:nth-child(7) { animation-delay: 2.6s; }
.d-sfx .kb i:nth-child(8) { animation-delay: .5s; }
.d-sfx .kb i:nth-child(9) { animation-delay: 1.9s; }
.d-sfx .kb i:nth-child(10) { animation-delay: 2.9s; }
@keyframes ripple { 0% { transform: scale(.28); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes keytap { 0%, 100% { background: rgba(255,255,255,.07); transform: none; } 7% { background: var(--cyan); transform: translateY(2px); } 16% { background: rgba(255,255,255,.07); transform: none; } }
/* demo: text & ticker */
.d-text { width: 80%; aspect-ratio: 16/10; border-radius: 14px; background: linear-gradient(160deg, #182060, #0a0f2e); border: 1px solid rgba(255,255,255,.1); position: relative; display: grid; place-items: center; overflow: hidden; }
.d-text > span { font-weight: 700; font-size: 1.15rem; color: #fff; animation: neonpulse 3s ease-in-out infinite; }
.d-text .tick { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 0; background: rgba(255,63,216,.18); border-top: 1px solid rgba(255,63,216,.4); overflow: hidden; }
.d-text .tick p { display: inline-block; white-space: nowrap; font-size: .78rem; padding-inline-start: 100%; animation: ticker 13s linear infinite; }
@keyframes neonpulse { 0%, 100% { text-shadow: 0 0 6px var(--pink), 0 0 20px rgba(255,63,216,.7); } 50% { text-shadow: 0 0 10px var(--cyan), 0 0 28px rgba(46,197,255,.8); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* demo: voice & music */
.d-music { width: 80%; display: grid; gap: 16px; justify-items: center; }
.d-music > i { font-size: 1.7rem; font-style: normal; }
.d-music .bars { display: flex; align-items: center; gap: 5px; height: 72px; }
.d-music .bars b { width: 6px; border-radius: 6px; background: linear-gradient(var(--orange), var(--pink)); animation: wave 1.2s ease-in-out infinite alternate; }
.d-music .bars b:nth-child(3n) { animation-delay: -.4s; background: linear-gradient(var(--cyan), var(--violet)); }
.d-music .bars b:nth-child(3n+1) { animation-delay: -.8s; }
.d-music em { font-style: normal; font-size: .8rem; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
/* demo: timeline */
.d-time { width: 84%; display: grid; gap: 8px; position: relative; padding: 10px 0; }
.d-time .trk { display: flex; gap: 6px; height: 26px; }
.d-time .trk i { flex: 1; border-radius: 7px; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.d-time .trk i:nth-child(2) { flex: 2; }
.d-time .two i { height: 18px; align-self: center; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.d-time .two i:nth-child(1) { flex: 2; }
.d-time .two i:nth-child(2) { flex: 3; }
.d-time .three i { height: 14px; align-self: center; background: linear-gradient(135deg, var(--orange), #ffc23d); }
.d-time u { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.9); animation: playhead 7s ease-in-out infinite; }
@keyframes playhead { 0% { inset-inline-start: 3%; } 50% { inset-inline-start: 94%; } 100% { inset-inline-start: 3%; } }
/* demo: export */
@property --expp { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.d-exp { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; }
.d-exp .ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pink) 0 var(--expp, 72%), rgba(255,255,255,.08) 0); animation: expfill 5s ease-in-out infinite; }
.d-exp .ring::after { content: ""; width: 86px; height: 86px; border-radius: 50%; background: var(--card-solid); }
.d-exp b { position: absolute; top: 0; height: 112px; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.1rem; }
.d-exp em { font-style: normal; font-size: .82rem; color: var(--muted); }
@keyframes expfill { 0% { --expp: 6%; } 70%, 100% { --expp: 72%; } }
/* demo: share link */
.d-link { width: 84%; display: grid; gap: 12px; justify-items: center; text-align: center; }
.d-link .url { font-family: "Poppins", sans-serif; font-size: .84rem; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--muted); }
.d-link .url b { color: #c7b3ff; }
.d-link em { font-style: normal; font-size: .76rem; padding: 5px 12px; border-radius: 999px; background: rgba(32,211,154,.16); color: #20d39a; opacity: 0; animation: copied 4.5s ease-in-out infinite; }
.d-link .eye { font-size: .82rem; color: var(--muted); }
@keyframes copied { 0%, 18% { opacity: 0; transform: translateY(6px); } 32%, 74% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px); } }
/* demo: insights */
.d-stat { width: 80%; display: grid; gap: 16px; justify-items: center; }
.d-stat .bars { display: flex; align-items: flex-end; gap: 9px; height: 112px; }
.d-stat .bars i { width: 16px; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--cyan), var(--violet)); transform-origin: bottom; animation: grow 3.4s ease-out infinite; }
.d-stat .bars i:nth-child(1) { height: 34%; }
.d-stat .bars i:nth-child(2) { height: 56%; animation-delay: .1s; }
.d-stat .bars i:nth-child(3) { height: 42%; animation-delay: .2s; }
.d-stat .bars i:nth-child(4) { height: 74%; animation-delay: .3s; }
.d-stat .bars i:nth-child(5) { height: 60%; animation-delay: .4s; }
.d-stat .bars i:nth-child(6) { height: 94%; background: linear-gradient(var(--pink), var(--orange)); animation-delay: .5s; }
.d-stat .bars i:nth-child(7) { height: 70%; animation-delay: .6s; }
.d-stat em { font-style: normal; font-size: .84rem; color: var(--muted); }
@keyframes grow { 0% { transform: scaleY(.04); } 30%, 88% { transform: scaleY(1); } 100% { transform: scaleY(.04); } }
/* demo: no watermark */
.d-nowm { width: 78%; aspect-ratio: 16/10; border-radius: 14px; background: linear-gradient(160deg, #182060, #0a0f2e); border: 1px solid rgba(255,255,255,.1); position: relative; display: grid; place-items: center; overflow: hidden; }
.d-nowm u { position: absolute; inset: 0; background: radial-gradient(circle at 28% 26%, rgba(123,59,255,.28), transparent 62%); }
.d-nowm s { position: absolute; inset-inline-end: 7%; top: 8%; font-family: "Poppins", sans-serif; font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.55); text-decoration: none; animation: wmgone 4.5s ease-in-out infinite; }
.d-nowm em { font-style: normal; font-size: .9rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; background: rgba(32,211,154,.16); color: #20d39a; border: 1px solid rgba(32,211,154,.35); }
@keyframes wmgone { 0%, 28% { opacity: .65; transform: none; filter: blur(0); } 56%, 100% { opacity: 0; transform: scale(1.3) rotate(-8deg); filter: blur(6px); } }

/* Blog list */
.blog-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.chips button.on, .chips button:hover { background: var(--brand); color: #fff; border-color: transparent; }
.search { position: relative; flex: 1; max-width: 320px; min-width: 200px; }
.search input { width: 100%; padding: 11px 16px 11px 40px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); font: inherit; outline: none; transition: border-color .25s; }
.search input:focus { border-color: rgba(123,59,255,.6); }
.search::before { content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); color: var(--dim); font-size: 1.1rem; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .35s, border-color .35s; backdrop-filter: blur(12px); }
.post-card:hover { transform: translateY(-6px); border-color: rgba(123,59,255,.5); }
.post-card[hidden] { display: none; }
.cover { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 45%); }
.cover span { position: relative; z-index: 1; transition: transform .5s; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.post-card:hover .cover span { transform: scale(1.18) rotate(-6deg); }
.cover.cover-img { background: var(--card-solid); }
.cover.cover-img::after { background: linear-gradient(180deg, transparent 55%, rgba(6,10,36,.28)); }
.cover.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.post-card:hover .cover-img img { transform: scale(1.05); }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 10px; font-size: .78rem; color: var(--dim); flex-wrap: wrap; }
.post-meta b { color: #c7b3ff; font-weight: 600; }
.post-card h3 { font-size: 1.12rem; line-height: 1.35; }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card .more { font-weight: 600; font-size: .9rem; color: #c7b3ff; }
.empty-posts { text-align: center; color: var(--dim); padding: 40px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 36px 0 10px; }
.pager[hidden] { display: none; }
.pager button { min-width: 42px; padding: 9px 12px; border-radius: 12px; font-size: .88rem; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.pager button.wide { min-width: 72px; }
.pager button.on, .pager button:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--dim); padding: 0 4px; }

/* Article / legal prose */
.article { max-width: 860px; margin: 0 auto; }
.article .cover { border-radius: 26px; margin-bottom: 36px; font-size: 4rem; aspect-ratio: 3 / 1; }
.article .cover.cover-img { aspect-ratio: 16 / 9; }
.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; line-height: 1.3; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: #cfd3f5; }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: .5em; }
.prose a { color: #c7b3ff; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose .table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { background: rgba(255,255,255,.04); color: var(--muted); font-size: .85rem; }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 18px 20px; border-radius: 18px; background: rgba(123,59,255,.12); border: 1px solid rgba(123,59,255,.35); }
.callout.warn { background: rgba(255,138,61,.1); border-color: rgba(255,138,61,.35); }
.updated { color: var(--dim); font-size: .88rem; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.related { margin-top: 70px; }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; }
.related .posts { grid-template-columns: repeat(2, 1fr); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 14px; background: #20d39a; color: #04121a; font-weight: 600; opacity: 0; transition: all .3s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reading { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 101; }

.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 140px 0 60px; }
.nf b { display: block; font-size: clamp(6rem, 22vw, 12rem); line-height: 1; font-weight: 700; font-family: "Poppins", sans-serif; }

@media (max-width: 1024px) {
  .frow { grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .frow:nth-child(even) .fvis { order: 0; }
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .posts, .related .posts { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .fnav { top: 60px; }
}
.more-link { display: inline-block; margin-top: 14px; font-size: .88rem; font-weight: 600; color: #c7b3ff; transition: transform .25s; }
.more-link:hover { transform: translateX(4px); }
.tag + .more-link { margin-inline-start: 10px; }
#blog .posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { #blog .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { #blog .posts { grid-template-columns: 1fr; } }

/* ---------- Feature detail pages ---------- */
.fhero { text-align: start; padding-bottom: 40px; }
.fhero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fhero .crumbs { justify-content: flex-start; }
.fhero h1 { margin: 0; text-align: start; }
.fhero p { margin-inline: 0; }
.fhero-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; }
.fhero-meta .tag { margin: 0; }
.fhero-meta a { color: #c7b3ff; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.fchip { padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 500; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.fchip:hover, .fchip.on { color: #fff; background: var(--brand); border-color: transparent; }
.soon-dot { font-style: normal; font-size: .68rem; padding: 1px 6px; border-radius: 6px; background: rgba(255,138,61,.18); color: var(--orange); margin-inline-start: 4px; }
.fchip.on .soon-dot { background: rgba(255,255,255,.25); color: #fff; }
.fdetail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 90px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.toc p { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 4px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; font-size: .88rem; color: var(--muted); counter-increment: toc; transition: all .2s; }
.toc a::before { content: counter(toc) ". "; color: var(--dim); }
.toc a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.fdetail .prose { max-width: 820px; }
.fdetail .prose h2 { scroll-margin-top: 90px; }
.feature-links { margin-top: 36px; }
.feature-links p { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.feature-links .fchips { margin-bottom: 0; }
.d-click { position: relative; width: 70%; aspect-ratio: 16/10; border-radius: 14px; background: #0a0f2e; border: 1px solid rgba(255,255,255,.1); }
.d-click i { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--pink); transform: translate(-50%, -50%) scale(0); animation: clickRing 2.4s ease-out infinite; }
.d-click i:nth-child(1) { left: 30%; top: 40%; }
.d-click i:nth-child(2) { left: 68%; top: 62%; animation-delay: .8s; border-color: var(--cyan); }
.d-click i:nth-child(3) { left: 48%; top: 28%; animation-delay: 1.6s; border-color: var(--orange); }
@keyframes clickRing { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 70%, 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
.marquee-track > a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color .2s; }
.marquee-track > a::before { content: "✦"; color: var(--pink); }
.marquee-track > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.made { text-align: center; color: var(--dim); font-size: .82rem; margin-top: 8px; }
.made b { color: var(--muted); font-weight: 600; }
@media (max-width: 1024px) {
  .fhero-grid { grid-template-columns: 1fr; }
  .fdetail { grid-template-columns: 1fr; }
  .toc { position: static; }
}
.made a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.made a:hover b { color: #fff; }
