/* Your Man Nar — brand colours: mint #55fbdc, purple #3b27b1, dark #14171c */

:root {
  --bg: #0c0e12;
  --bg-2: #14171c;
  --surface: #181c22;
  --surface-2: #1f242c;
  --ink: 255, 255, 255;
  --line: rgba(var(--ink), .08);
  --line-2: rgba(var(--ink), .14);
  --text: #f3f5f7;
  --muted: #98a1ac;
  --prose: #c9d0d7;
  --placeholder: #5f6873;
  --mint: #55fbdc;
  --mint-soft: rgba(85, 251, 220, .12);
  --accent: #55fbdc;
  --on-mint: #071512;
  --purple: #3b27b1;
  --purple-lite: #8f7cff;
  --purple-text: #8f7cff;
  --danger: #ff7a7a;
  --warn: #ffd166;
  --logo: #ffffff;
  --header-bg: rgba(12, 14, 18, .72);
  --menu-bg: rgba(12, 14, 18, .97);
  --chip-bg: rgba(24, 28, 34, .85);
  --card-shadow: none;
  --glow-opacity: .32;
  color-scheme: dark;

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Light theme: same brand, soft paper background */
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-2: #eceff3;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --ink: 20, 23, 28;
  --text: #14171c;
  --muted: #5b6470;
  --prose: #39414b;
  --placeholder: #9aa2ac;
  --mint-soft: rgba(0, 68, 49, .08);
  --accent: #004431;
  --purple-text: #3b27b1;
  --danger: #c93c3c;
  --warn: #9a6a00;
  --logo: #14171c;
  --header-bg: rgba(246, 247, 249, .78);
  --menu-bg: rgba(246, 247, 249, .97);
  --chip-bg: rgba(255, 255, 255, .9);
  --card-shadow: 0 1px 2px rgba(20, 23, 28, .04), 0 12px 32px -16px rgba(20, 23, 28, .16);
  --glow-opacity: .14;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--mint); color: var(--on-mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--muted); }
.muted a { color: var(--accent); }
.center { text-align: center; margin-top: 48px; }
.text-mint { color: var(--accent); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--mint); color: var(--on-mint); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Background glow ---------- */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-glow span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); opacity: var(--glow-opacity); transition: opacity .6s; }
.bg-glow span:first-child { background: var(--purple); top: -30vmax; right: -20vmax; animation: drift 22s ease-in-out infinite alternate; }
.bg-glow span:last-child { background: #0f5f55; bottom: -35vmax; left: -25vmax; opacity: calc(var(--glow-opacity) * .7); animation: drift 28s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { background: var(--mint); color: #071512; box-shadow: 0 0 0 0 rgba(85, 251, 220, .4); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), #ffffff 0%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(85, 251, 220, .55); }
.btn-primary:hover::before { opacity: .55; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(var(--ink), .02); }
.btn-ghost:hover { border-color: var(--mint); color: var(--accent); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-large { padding: 20px 34px; font-size: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(4px); }

.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0;
  transition: transform .45s var(--ease), padding .3s, background .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { padding: 10px 0; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.logo-mark { width: 52px; height: auto; color: var(--logo); overflow: visible; }
.lm-slash { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.lm-bar { transform-box: fill-box; transform-origin: bottom; transition: transform .4s var(--ease); }
.brand:hover .lm-slash { transform: rotate(-20deg) scale(1.08); }
.brand:hover .lm-b1 { transform: scaleY(.7); }
.brand:hover .lm-b2 { transform: scaleY(.85); transition-delay: .05s; }
.brand:hover .lm-b3 { transform: scaleY(.6); transition-delay: .1s; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px; border-radius: 999px; background: rgba(var(--ink), .03); border: 1px solid var(--line); }
.main-nav a { position: relative; display: block; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s, background .25s; }
.main-nav a:hover { color: var(--text); background: rgba(var(--ink), .05); }
.main-nav a[aria-current="page"] { color: var(--bg); background: var(--text); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--menu-bg); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-head); font-size: clamp(34px, 9vw, 52px); font-weight: 700; line-height: 1.15; color: var(--muted);
  opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
  transition-delay: calc(var(--i) * 50ms);
}
.mobile-menu nav a[aria-current="page"], .mobile-menu nav a:hover { color: var(--accent); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--mint); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(85, 251, 220, .55);
  display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.cursor-label { font-size: 12px; font-weight: 700; color: var(--on-mint); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(85, 251, 220, .12); border-color: var(--mint); }
.cursor.has-label .cursor-ring { width: 82px; height: 82px; margin: -41px 0 0 -41px; background: var(--mint); border-color: var(--mint); }
.cursor.has-label .cursor-label { opacity: 1; }
.cursor.has-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { transform: scale(.85); }
.cursor.is-hidden { opacity: 0; }
.cursor-trail { position: fixed; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--mint); pointer-events: none; z-index: 9998; animation: trail .7s ease-out forwards; }
@keyframes trail { to { opacity: 0; transform: scale(.2); } }

/* ---------- Scroll progress, page wipe ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--purple-lite), var(--mint)); transform-origin: left; transform: scaleX(0); }

.page-wipe {
  position: fixed; inset: 0; z-index: 200; background: var(--bg-2); display: grid; place-items: center;
  pointer-events: none; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease);
}
.is-loaded .page-wipe { clip-path: inset(0 0 100% 0); }
.is-leaving .page-wipe { clip-path: inset(0 0 0 0); transition-duration: .4s; }
.wipe-logo { width: 90px; color: var(--logo); }
.wipe-logo .lm-slash { animation: slash-spin 1s var(--ease) infinite; }
@keyframes slash-spin { 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Spotlight (mouse-follow border glow) ---------- */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: radial-gradient(380px circle at var(--mx, -500px) var(--my, -500px), rgba(85, 251, 220, .75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(500px circle at var(--mx, -500px) var(--my, -500px), rgba(85, 251, 220, .06), transparent 40%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-tight { padding-top: 20px; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title { font-size: clamp(32px, 4.6vw, 56px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-title { font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; }
.hero-line2 { display: block; color: var(--muted); font-weight: 700; }
.rotator { display: inline-block; position: relative; color: var(--accent); white-space: nowrap; }
.rotator-text { display: inline-block; }
.rotator::after { content: ""; display: inline-block; width: .06em; height: .85em; margin-left: .05em; background: var(--accent); vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { margin-top: 26px; max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--accent); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(85, 251, 220, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(85, 251, 220, 0); } 100% { box-shadow: 0 0 0 0 rgba(85, 251, 220, 0); } }

.hero-visual { position: relative; perspective: 1200px; }
.browser {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(59, 39, 177, .7), 0 0 0 1px rgba(var(--ink), .02);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out;
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(var(--ink), .02); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f48; }
.browser-bar i:first-child { background: #ff6b6b; } .browser-bar i:nth-child(2) { background: #ffd166; } .browser-bar i:nth-child(3) { background: var(--mint); }
.browser-url { margin-left: 12px; flex: 1; padding: 5px 12px; border-radius: 8px; background: rgba(var(--ink), .05); font-size: 12px; color: var(--muted); }
.browser-body { position: relative; padding: 22px; display: grid; gap: 20px; }
.browser-body span, .browser-body b, .browser-body em, .mock-img { display: block; border-radius: 6px; background: rgba(var(--ink), .08); }
.mock-nav { display: flex; align-items: center; gap: 10px; }
.mock-nav b { width: 46px; height: 14px; background: var(--mint); margin-right: auto; }
.mock-nav span { width: 38px; height: 8px; }
.mock-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; }
.mock-lines { display: grid; gap: 10px; }
.mock-lines span { height: 14px; }
.mock-lines span.short { width: 60%; }
.mock-lines em { width: 90px; height: 28px; border-radius: 999px; background: var(--mint); margin-top: 8px; }
.mock-img { aspect-ratio: 4 / 3.2; background: linear-gradient(135deg, var(--purple), #6c5ce7 60%, var(--mint)); border-radius: 12px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards span { height: 70px; border-radius: 10px; background: rgba(var(--ink), .05); border: 1px solid var(--line); }
/* build-up loop */
.browser-body > *:not(.mock-cursor), .mock-lines > *, .mock-cards > * { animation: build 8s var(--ease) infinite both; }
.mock-nav { animation-delay: 0s !important; }
.mock-lines > :nth-child(1) { animation-delay: .4s; } .mock-lines > :nth-child(2) { animation-delay: .6s; }
.mock-lines > :nth-child(3) { animation-delay: .8s; } .mock-lines > :nth-child(4) { animation-delay: 1.1s; }
.mock-hero { animation-delay: .3s !important; }
.mock-img { animation: build-img 8s var(--ease) infinite both; animation-delay: 1.3s; }
.mock-cards { animation-delay: 1.6s !important; }
.mock-cards > :nth-child(1) { animation-delay: 1.8s; } .mock-cards > :nth-child(2) { animation-delay: 2s; } .mock-cards > :nth-child(3) { animation-delay: 2.2s; }
@keyframes build { 0% { opacity: 0; transform: translateY(10px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes build-img { 0% { opacity: 0; transform: scale(.85); } 10%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mock-cursor { position: absolute; color: var(--text); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); animation: mock-cursor 8s var(--ease) infinite; }
.mock-cursor .icon { transform: rotate(-90deg); }
@keyframes mock-cursor {
  0% { left: 80%; top: 85%; } 20% { left: 30%; top: 50%; } 26% { transform: scale(.85); } 30% { transform: none; }
  50% { left: 70%; top: 40%; } 75% { left: 50%; top: 82%; } 100% { left: 80%; top: 85%; }
}
.browser-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .08), transparent 40%); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--chip-bg); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); transition: transform .3s ease-out; white-space: nowrap;
}
.float-chip .icon { color: var(--accent); }
.chip-a { top: -18px; left: -24px; animation: bob 5s ease-in-out infinite; }
.chip-b { bottom: 70px; right: -30px; animation: bob 6s ease-in-out infinite reverse; }
.chip-c { bottom: -20px; left: 12%; animation: bob 5.5s ease-in-out infinite .5s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mint); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg-2); transform: rotate(-1.2deg) scale(1.02); }
.marquee-alt { transform: rotate(1deg); background: var(--purple); border: 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee-group span { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 42px); font-weight: 700; white-space: nowrap; letter-spacing: -.02em; transition: color .2s; }
.marquee-group span:hover { color: var(--accent); }
.marquee-alt .marquee-group span:hover { color: var(--mint); }
.marquee-mark { width: 44px; color: rgba(var(--ink), .35); }
.marquee-alt .marquee-mark { color: rgba(255, 255, 255, .4); }
.marquee-alt .marquee-group span { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Compare ---------- */
.compare { max-width: 900px; }
.compare-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; }
.compare-switch button { position: relative; z-index: 1; padding: 12px 26px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .3s; }
.compare-switch button.is-active { color: var(--on-mint); }
.compare-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--mint); transition: transform .5s var(--ease), background .4s; transform: translateX(100%); }
.compare[data-side="old"] .compare-thumb { transform: translateX(0); background: #ff8f8f; }
.compare[data-side="old"] .compare-switch button.is-active { color: #2a0b0b; }
.compare-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s, border-color .5s, box-shadow .5s; }
.compare-card h3 { font-size: 24px; margin-bottom: 20px; }
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; }
.compare-card li .icon { flex: none; margin-top: 3px; }
.compare-old .icon { color: var(--danger); }
.compare-new .icon { color: var(--accent); }
.compare[data-side="new"] .compare-old, .compare[data-side="old"] .compare-new { opacity: .35; transform: scale(.96); filter: grayscale(1) blur(1px); }
.compare[data-side="new"] .compare-new { border-color: rgba(85, 251, 220, .5); box-shadow: 0 30px 80px -30px rgba(85, 251, 220, .35); }
.compare[data-side="old"] .compare-old { border-color: rgba(255, 143, 143, .5); }

/* ---------- Steps ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 30px 26px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); }
.step-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-size: 40px; font-weight: 800; color: rgba(var(--ink), .06); }
.step-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint-soft); color: var(--accent); margin-bottom: 26px; transition: transform .5s var(--ease), background .3s, color .3s; }
.step:hover .step-icon { transform: rotate(-8deg) scale(1.08); background: var(--mint); color: var(--on-mint); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.steps-line { position: absolute; left: 0; right: 0; top: -26px; height: 2px; background: var(--line); border-radius: 2px; }
.steps-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-lite), var(--mint)); transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: inherit; }

/* ---------- Picker ---------- */
.picker { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 28px; background: linear-gradient(135deg, rgba(59, 39, 177, .3), var(--surface) 60%); border: 1px solid var(--line-2); }
.picker-copy p { color: var(--muted); margin-top: 16px; }
.picker-form { display: grid; gap: 22px; justify-items: start; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.chip { position: relative; }
.chip input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px;
  background: rgba(var(--ink), .03); border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: border-color .25s, background .25s, transform .3s var(--ease), color .25s;
}
.chip span .icon { color: var(--muted); transition: color .25s, transform .4s var(--ease); }
.chip:hover span { border-color: rgba(85, 251, 220, .5); transform: translateY(-2px); }
.chip input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.chip input:checked + span .icon { color: var(--on-mint); transform: scale(1.15) rotate(-6deg); }
.chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---------- Apps ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  --rx: 0deg; --ry: 0deg;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out, opacity .4s, scale .4s var(--ease);
}
.app-visual { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, hsl(var(--hue) 60% 22%), hsl(calc(var(--hue) + 40) 55% 12%)); }
.app-orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, hsl(var(--hue) 90% 65% / .55), transparent 65%); top: 50%; left: 50%; translate: -50% -50%; transition: transform .6s var(--ease); }
.app-card:hover .app-orb { transform: scale(1.35); }
.app-icon { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); color: #fff; transition: transform .5s var(--ease); }
.app-card:hover .app-icon { transform: translateY(-6px) rotate(-6deg); }
.app-body { padding: 24px 24px 26px; display: grid; gap: 12px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-top h3 { font-size: 24px; }
.app-tagline { color: var(--text); }
.app-about { color: var(--muted); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(var(--ink), .06); color: var(--muted); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--accent); background: var(--mint-soft); }
.status-live i { animation: pulse 2s infinite; }
.status-beta { color: var(--warn); background: rgba(255, 209, 102, .1); }
.status-building { color: var(--purple-text); background: rgba(143, 124, 255, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.app-card.is-filtered { display: none; }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.video-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-top: 14px; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; opacity: .85; }
.yt-lite:hover img { transform: scale(1.06); opacity: 1; }
.yt-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--on-mint); transition: transform .4s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.yt-play .icon { margin-left: 3px; }
.yt-lite:hover .yt-play { transform: scale(1.12); }
.yt-lite-big .yt-play { width: 84px; height: 84px; }
.yt-meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.yt-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 40px; }
.yt-feature h2 { font-size: clamp(26px, 3vw, 36px); margin: 16px 0 12px; }
.yt-feature .link-arrow { margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 80px; }
.stats > div { background: var(--bg-2); padding: 28px; display: grid; gap: 4px; }
.stats strong { font-family: var(--font-head); font-size: clamp(32px, 4vw, 48px); color: var(--accent); line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; }
.yt-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter); }
.yt-modal[hidden] { display: none; }
.yt-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .85); backdrop-filter: blur(8px); animation: fade .3s; }
.yt-modal-box { position: relative; width: min(1100px, 100%); animation: pop .45s var(--ease); }
.yt-modal-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.yt-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-modal-close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.yt-modal-close:hover { background: var(--mint); color: var(--on-mint); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(20px); } }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease); }
.article-card:hover { transform: translateY(-6px); }
.article-card > a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px; }
.article-card h3 { font-size: 22px; line-height: 1.2; }
.article-card p { color: var(--muted); font-size: 15px; flex: 1; }
.article-card.is-filtered { display: none; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.featured-article { display: grid; grid-template-columns: 1fr 1.3fr; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 40px; }
.featured-art { display: grid; place-items: center; min-height: 280px; background: radial-gradient(circle at 30% 30%, rgba(85, 251, 220, .25), transparent 50%), linear-gradient(135deg, var(--purple), #160e4a); }
.featured-mark { width: 45%; color: #fff; transition: transform .7s var(--ease); }
.featured-article:hover .featured-mark { transform: scale(1.08) rotate(-4deg); }
.featured-copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.featured-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.featured-copy p { color: var(--muted); }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--muted); transition: all .25s; }
.filter-chips button:hover { color: var(--text); border-color: var(--text); }
.filter-chips button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-chips sup { font-size: 11px; opacity: .6; margin-left: 2px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); min-width: 260px; transition: border-color .25s; }
.search-field:focus-within { border-color: var(--mint); }
.search-field input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; outline: none; min-width: 0; }
.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-state a { color: var(--accent); }

/* Single article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 61; }
.read-progress span { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.is-article .scroll-progress { display: none; }
.article-head { padding: 150px 0 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.back-link .icon { transform: rotate(180deg); transition: transform .3s var(--ease); }
.back-link:hover { color: var(--accent); }
.back-link:hover .icon { transform: rotate(180deg) translateX(4px); }
.article-title { font-size: clamp(36px, 5.4vw, 62px); margin: 18px 0 20px; }
.prose { font-size: 18px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.8em; }
.prose p, .prose li { color: var(--prose); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 2px; background: var(--accent); transform: rotate(-50deg); }
.prose blockquote { margin: 1.8em 0; padding: 26px 30px; border-left: 3px solid var(--mint); border-radius: 0 16px 16px 0; background: var(--mint-soft); font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; color: var(--text); }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; margin-top: 60px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(59, 39, 177, .5), var(--surface)); border: 1px solid var(--line-2); }
.inline-cta-title { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.share { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.share a, .copy-link { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: border-color .2s, color .2s; }
.share a:hover, .copy-link:hover { border-color: var(--mint); color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--mint); color: var(--on-mint); border-color: var(--mint); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 50px 26px 0; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(140px, 18vw, 200px) 0 clamp(50px, 7vw, 80px); }
.page-title { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.028em; max-width: 1000px; }
.page-lead { margin-top: 24px; max-width: 640px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-card {
  --rx: 0deg; --ry: 0deg;
  padding: 44px 34px; border-radius: 28px; text-align: center; background: linear-gradient(160deg, var(--purple), #1a1240 70%); border: 1px solid var(--line-2);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out;
}
.about-logo { display: grid; place-items: center; width: 160px; aspect-ratio: 1; margin: 0 auto 26px; border-radius: 50%; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .15); }
.about-mark { width: 100px; color: #fff; }
.about-card:hover .lm-slash { transform: rotate(160deg); }
.about-card-name { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.about-card-role { color: rgba(255, 255, 255, .7); margin-top: 4px; }
.about-socials { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.about-socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .25s, color .25s, transform .35s var(--ease); }
.about-socials a:hover { background: var(--mint); color: var(--on-mint); }

.timeline { position: relative; list-style: none; padding: 0 0 0 40px; margin: 0; display: grid; gap: 44px; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -46px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mint); transition: background .4s; }
.timeline li.is-in::before { background: var(--mint); box-shadow: 0 0 0 6px var(--mint-soft); }
.tl-year { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--accent); }
.timeline h3 { font-size: 24px; margin-bottom: 8px; }
.timeline p { color: var(--muted); }
.timeline-line { position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--mint), var(--purple-lite)); transform-origin: top; transform: scaleY(var(--p, 0)); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint-soft); color: var(--accent); margin-bottom: 22px; }
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-copy .page-title { font-size: clamp(40px, 5.4vw, 72px); }
.contact-promise { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; }
.contact-promise li { display: flex; gap: 10px; align-items: center; }
.contact-promise .icon { color: var(--accent); flex: none; }
.contact-direct { display: grid; gap: 10px; justify-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; transition: color .2s; }
.contact-direct a:hover { color: var(--accent); }
.contact-panel { padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(59, 39, 177, .7); }
.form-progress { height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 30px; overflow: hidden; }
.form-progress span { display: block; height: 100%; width: calc(var(--step, 1) / 3 * 100%); background: linear-gradient(90deg, var(--purple-lite), var(--mint)); transition: width .5s var(--ease); }
.no-js .form-progress { display: none; }
.form-step { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.js .form-step:not(.is-current) { display: none; }
.js .form-step.is-current { animation: step-in .5s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
.form-step legend { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin-bottom: 22px; padding: 0; line-height: 1.15; }
.step-count { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 16px; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.field textarea::placeholder { color: var(--placeholder); }
.field-error { color: var(--danger); font-size: 14px; margin: -8px 0 14px; }
.form-alert { padding: 14px 18px; border-radius: 12px; background: rgba(255, 122, 122, .1); color: var(--danger); margin-bottom: 20px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill span { display: block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; transition: all .25s; }
.pill:hover span { border-color: var(--mint); }
.pill input:checked + span { background: var(--mint); color: var(--on-mint); border-color: var(--mint); font-weight: 600; }
.pill input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.form-nav { display: flex; gap: 12px; justify-content: flex-end; }
.form-nav [hidden] { display: none; }
.no-js .form-nav [data-next], .no-js .form-nav [data-prev] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.sent { text-align: center; padding: 20px 0; display: grid; gap: 14px; justify-items: center; }
.sent-mark { width: 120px; color: var(--logo); animation: pop .6s var(--ease); }
.sent-mark .logo-mark { width: 100%; }
.sent-mark .lm-slash { animation: slash-spin 1.4s var(--ease) 1; }
.sent h2 { font-size: 34px; }
.sent p { color: var(--muted); }
.sent strong { color: var(--text); }
.sent-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.confetti { position: fixed; width: 8px; height: 14px; pointer-events: none; z-index: 400; border-radius: 2px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; min-height: 80vh; display: grid; place-items: center; }
.notfound .page-title, .notfound .page-lead { margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }
.notfound-mark { --rx: 0deg; --ry: 0deg; width: 180px; margin: 0 auto 40px; transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .2s ease-out; }
.notfound-mark .logo-mark { width: 100%; }
.notfound-mark .lm-slash { animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-25deg) translateY(4px); } }

/* ---------- Footer ---------- */
.footer-cta { padding: 40px 0 100px; }
.footer-cta-card { text-align: center; padding: clamp(50px, 8vw, 100px) var(--gutter); border-radius: 32px; background: radial-gradient(ellipse at top, rgba(85, 251, 220, .14), transparent 60%), linear-gradient(160deg, var(--purple), #150d40); border: 1px solid var(--line-2); overflow: hidden; }
.footer-cta-title { font-size: clamp(34px, 5.4vw, 70px); font-weight: 800; letter-spacing: -.03em; max-width: 900px; margin: 0 auto 40px; }
.footer-cta-title em { font-style: normal; color: var(--mint); position: relative; }
.footer-cta-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .1em; background: var(--mint); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .4s; }
.footer-cta-card.is-in .footer-cta-title em::after { transform: scaleX(1); }

.site-footer { position: relative; border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 360px; font-size: 15px; }
.footer-head { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; transition: color .2s, transform .3s var(--ease); }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.to-top .icon { transform: rotate(-90deg); transition: transform .3s var(--ease); }
.to-top:hover { color: var(--accent); }
.to-top:hover .icon { transform: rotate(-90deg) translateX(4px); }
.footer-giant {
  font-family: var(--font-head); font-weight: 800; font-size: 15.5vw; line-height: .8; letter-spacing: -.05em; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--ink), .09); margin-bottom: -2vw; user-select: none;
  background: radial-gradient(400px circle at var(--mx, -999px) var(--my, -999px), var(--mint), transparent 60%); -webkit-background-clip: text; background-clip: text;
}

/* ---------- Chat widget ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-launcher {
  display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 22px; border-radius: 999px;
  background: var(--mint); color: var(--on-mint); font-weight: 700; box-shadow: 0 14px 40px -10px rgba(85, 251, 220, .6);
  transform: translate(var(--bx, 0), var(--by, 0)); transition: transform .35s var(--ease), padding .35s var(--ease), box-shadow .3s;
  animation: launcher-in .6s var(--ease) .8s backwards;
}
.chat-launcher > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity .25s, transform .35s var(--ease); }
.chat-launcher-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.chat.is-open .chat-launcher { padding: 0; width: 56px; }
.chat.is-open .chat-launcher-open { opacity: 0; transform: scale(.5); }
.chat.is-open .chat-launcher-close { opacity: 1; transform: none; }
@keyframes launcher-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }

.chat-nudge {
  position: relative; max-width: 260px; padding: 14px 36px 14px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .45);
  font-size: 14px; line-height: 1.45; animation: pop .45s var(--ease); cursor: pointer;
}
.chat-nudge[hidden] { display: none; }
.chat-nudge-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.chat-nudge-close:hover { color: var(--text); background: rgba(var(--ink), .06); }

.chat-panel {
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--ink), .02);
  transform-origin: bottom right; animation: chat-open .45s var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-open { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; background: linear-gradient(135deg, var(--purple), #241677); color: #fff; }
.chat-avatar { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .3); }
.chat-logo { width: 26px; color: #fff; }
.chat-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.2; }
.chat-sub { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.chat-close:hover { background: rgba(255, 255, 255, .12); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: msg-in .35s var(--ease); overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
.msg-me { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; }
.msg-bot a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msg-error { background: rgba(255, 122, 122, .12); color: var(--danger); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.1s infinite ease-in-out; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.chat-quick:not(:empty) { padding-bottom: 14px; }
.chat-quick button, .chat-quick a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 600;
  animation: msg-in .35s var(--ease) both; transition: background .2s, color .2s;
}
.chat-quick button:hover, .chat-quick a:hover { background: var(--accent); color: var(--surface); }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input[hidden] { display: none; }
.chat-input textarea {
  flex: 1; resize: none; max-height: 120px; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4;
}
.chat-input textarea:focus { outline: none; border-color: var(--accent); }
.chat-input textarea::placeholder { color: var(--placeholder); }
.chat-input button { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--on-mint); transition: transform .3s var(--ease); }
.chat-input button:hover { transform: scale(1.06); }
.chat-input button:disabled { opacity: .5; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .app-grid, .article-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .header-cta .btn { display: none; }
  .hero { padding-top: 120px; min-height: auto; }
  .scroll-hint { display: none; }
  .chip-a { left: 0; } .chip-b { right: 0; }
  .compare-stage, .picker, .faq-grid, .about-grid, .contact-grid, .featured-article, .yt-feature, .footer-grid, .values { grid-template-columns: 1fr; }
  .compare-switch { display: grid; width: 100%; }
  .compare-switch button { padding: 12px 10px; }
  .compare-stage { gap: 12px; }
  .compare[data-side="new"] .compare-old, .compare[data-side="old"] .compare-new { display: none; }
  .steps, .app-grid, .article-grid, .video-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .featured-art { min-height: 180px; }
  .search-field { min-width: 0; width: 100%; }
  .timeline { padding-left: 30px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .timeline li::before { left: -36px; }
  .faq-body p { padding-right: 0; }
  .inline-cta { padding: 26px; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1; }
  .chat { right: 16px; bottom: 16px; }
  .chat.is-open { left: 16px; }
  .chat.is-open .chat-panel { width: 100%; height: calc(100svh - 110px); }
}
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .chip-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

.no-js .page-wipe { display: none; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; overflow: hidden; transition: border-color .25s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { position: absolute; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .t-sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="light"] .theme-toggle .t-sun { transform: none; opacity: 1; }
:root[data-theme="light"] .theme-toggle .t-moon { transform: rotate(90deg) scale(.4); opacity: 0; }

/* Smooth colour change when the theme flips (used when View Transitions aren't supported) */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.step, .app-card, .article-card, .value, .compare-card, .featured-article, .contact-panel, .stats, .yt-lite { box-shadow: var(--card-shadow); }
:root[data-theme="light"] .picker { border-color: rgba(59, 39, 177, .18); }
:root[data-theme="light"] .inline-cta { background: linear-gradient(135deg, rgba(59, 39, 177, .12), var(--surface)); }
:root[data-theme="light"] .browser { box-shadow: 0 40px 100px -40px rgba(59, 39, 177, .45); }
:root[data-theme="light"] .contact-panel { box-shadow: 0 40px 100px -50px rgba(59, 39, 177, .45); }
:root[data-theme="light"] .float-chip { box-shadow: 0 16px 36px -14px rgba(20, 23, 28, .25); }
:root[data-theme="light"] .yt-lite img { opacity: 1; }

/* Always-purple blocks keep white text in both themes */
.about-card, .footer-cta-card { color: #fff; }
