/* =====================================================================
   Astrix — site design system (2026 redesign)
   Premium dark · one accent (MEGA blue) · tokens first.
   The sub-pages (product, vane, changelog, blog, transparency, mega,
   tweaks) all lean on the variable + class names defined here, so keep
   the legacy names (--bg, --panel, --card, --accent, --muted, --line …)
   even where the new names are nicer.
   ===================================================================== */

:root {
  /* surfaces */
  --bg: #08080A;
  --bg2: #0C0C0F;
  --surface-1: #111114;
  --surface-2: #151519;
  --surface-3: #1A1A20;
  --glass: rgba(255,255,255,.045);
  --glass-2: rgba(255,255,255,.065);

  /* legacy aliases used by sub-pages */
  --panel: #111114;
  --card: rgba(255,255,255,.035);
  --card2: rgba(255,255,255,.055);

  /* text */
  --text: #F5F5F7;
  --muted: #A1A1AA;
  --faint: #71717A;

  /* lines */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.12);
  --line-3: rgba(255,255,255,.18);

  /* accent — MEGA blue */
  --accent: #5B8CFF;
  --accent-2: #7C7BFF;
  --accent-d: #3F6FE6;
  --accent-ink: #0A1230;
  --accent-soft: rgba(91,140,255,.12);
  --accent-line: rgba(91,140,255,.35);
  --grad: linear-gradient(120deg, #5B8CFF 0%, #7C7BFF 100%);

  /* status */
  --ok: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;
  --pro: #F5C451;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-card: 20px;
  --r-xl: 24px;
  --radius: 20px;
  --maxw: 1680px;
  --gutter: clamp(20px, 4vw, 72px);

  /* depth */
  --shadow: 0 10px 30px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.18);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.75), 0 12px 30px rgba(0,0,0,.3);
  --glow: 0 0 40px rgba(91,140,255,.16);

  /* type */
  --font: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);   /* expo-out: fast start, long gentle settle */
  --ease-io: cubic-bezier(.65,0,.35,1);
  --reveal: 900ms;
  --fast: 140ms;
  --normal: 220ms;
  --slow: 360ms;

  --nav-h: 64px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body::before {               /* very soft ambient light behind everything */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(91,140,255,.13), transparent 60%),
    radial-gradient(700px 480px at 4% 6%, rgba(124,123,255,.07), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(91,140,255,.05), transparent 60%);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, .link { color: var(--accent); }
p a:hover, li a:hover, .link:hover { text-decoration: underline; text-underline-offset: 3px; }
b, strong { color: var(--text); font-weight: 600; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
kbd { background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: .1em .45em; color: var(--text); }
::selection { background: rgba(91,140,255,.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
main { display: block; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--text);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--glass-2); border-color: var(--line-3); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-accent {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 24px -8px rgba(91,140,255,.55);
}
.btn-accent:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 12px 30px -8px rgba(91,140,255,.7); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--glass); }
.btn-white { background: #F5F5F7; color: #0B0B0E; border-color: transparent; }
.btn-white:hover { background: #fff; border-color: transparent; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn.full, .full { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- small atoms ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); line-height: 1.65; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.14); display: inline-block; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--muted);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.pill b { color: var(--text); font-weight: 600; }
.pill:hover { border-color: var(--line-2); }
.tag {
  display: inline-flex; align-items: center; gap: .35em;
  padding: 3px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(91,140,255,.22);
}
.tag.ok { background: rgba(52,211,153,.10); color: var(--ok); border-color: rgba(52,211,153,.22); }
.tag.warn { background: rgba(251,191,36,.10); color: var(--warn); border-color: rgba(251,191,36,.22); }
.tag.pro { background: rgba(245,196,81,.10); color: var(--pro); border-color: rgba(245,196,81,.24); }
.tag.dim { background: var(--card2); color: var(--muted); border-color: var(--line); }
.y { color: var(--ok); font-weight: 600; }
.n { color: var(--faint); }
.price-note { text-align: center; color: var(--faint); font-size: .9rem; max-width: 720px; margin: 28px auto 0; line-height: 1.6; }
.price-note b { color: var(--muted); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); /* edge to edge: logo hugs the left, actions hug the right */
  border-bottom: 1px solid transparent;
  transition: background var(--normal) var(--ease), border-color var(--normal) var(--ease), backdrop-filter var(--normal) var(--ease);
}
.nav.scrolled, .nav.open, .nav.solid {
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; color: var(--text); flex: none; }
.brand-mark { width: 26px; height: 26px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-links a, .nav-links button {
  position: relative;
  padding: 8px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav-links a:hover, .nav-links button:hover { color: var(--text); background: var(--glass); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-links .nav-mega { color: var(--text); }
.nav-links .nav-mega::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }
.nav-links .nav-earn { color: var(--text); }
.nav-links .nav-earn::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 10px #4ADE80; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-cta .btn { min-height: 38px; padding: 0 16px; font-size: .88rem; border-radius: 10px; }
.nav-discord { color: var(--muted); }
.nav-burger {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--glass); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform var(--normal) var(--ease), opacity var(--fast); }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* mid-size screens: keep every tab on one line */
@media (max-width: 1260px) and (min-width: 941px) { .nav-links a, .nav-links button { padding: 8px 7px; font-size: .84rem; } }
@media (max-width: 1080px) and (min-width: 941px) { .nav-links a[href="changelog.html"], .nav-links a[href="index.html#faq"] { display: none; } }
@media (max-width: 940px) {
  .nav { gap: 12px; }
  .nav-burger { display: inline-flex; }
  .nav-links, .nav-cta .nav-discord { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-cta + .nav-burger { margin-left: 0; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
    padding: 10px 16px 18px;
    background: rgba(10,10,12,.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    animation: drop var(--normal) var(--ease);
  }
  .nav.open .nav-links a, .nav.open .nav-links button { padding: 13px 12px; font-size: 1rem; text-align: left; }
  .nav.open .nav-links a[aria-current="page"]::after { display: none; }
}
@media (max-width: 420px) { .nav-cta .btn-ghost { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); position: relative; }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section.tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015) 20%, rgba(255,255,255,.015) 80%, transparent); }
.sec-head { max-width: 860px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 14px 0 16px; letter-spacing: -.03em; }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; }

/* page header used by sub-pages */
.page-head { padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) var(--gutter) clamp(36px, 5vw, 56px); text-align: center; }
.page-head > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.035em; margin: 14px auto 18px; }
.page-head .lead { max-width: 640px; }

/* ---------- reveal (Apple-style: long, soft expo-out rise; headings blur up into focus) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out), filter var(--reveal) var(--ease-out); }
.js h1.reveal, .js h2.reveal, .js .sec-head.reveal { filter: blur(10px); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) var(--gutter) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -.045em; line-height: 1.04; margin: 22px auto 22px; }
.hero .lead { max-width: 640px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; color: var(--faint); font-size: .85rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .i { width: 15px; height: 15px; color: var(--ok); }
/* "Reviewed by Microsoft: no detection" — links to the exact wording on the Trust center */
.hero-meta .ms-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.08); transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.hero-meta .ms-check:hover { border-color: var(--ok); background: rgba(52,211,153,.14); }

.shot-stage { position: relative; max-width: 1280px; margin: clamp(48px, 7vw, 80px) auto 0; }
.shot-stage::before {        /* glow pool under the screenshot */
  content: ""; position: absolute; left: 8%; right: 8%; top: 6%; bottom: -4%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(91,140,255,.35), rgba(124,123,255,.12) 50%, transparent 75%);
  filter: blur(40px); z-index: -1;
}
.frame {
  position: relative;
  border-radius: 18px; padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow: var(--shadow-lg);
}
.frame img { border-radius: 13px; width: 100%; height: auto; background: #0B0B0E; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(20,20,26,.78); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-size: .86rem; color: var(--muted); text-align: left; line-height: 1.3;
}
.float-chip b { display: block; color: var(--text); font-size: 1rem; }
.float-chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.float-chip.ok .ic { background: rgba(52,211,153,.12); color: var(--ok); }
.float-chip.c1 { left: -28px; top: 22%; animation: bob 7s var(--ease) infinite; }
.float-chip.c2 { right: -28px; top: 54%; animation: bob 8s var(--ease) infinite reverse; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1140px) { .float-chip.c1 { left: 12px; } .float-chip.c2 { right: 12px; } }
@media (max-width: 720px) { .float-chip { display: none; } }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px;
  transition: border-color var(--normal) var(--ease), transform var(--normal) var(--ease), background var(--normal) var(--ease);
}
a.card:hover, .card.hover:hover { border-color: var(--line-2); background: var(--card2); transform: translateY(-2px); text-decoration: none; }
.card h3 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.ic-box { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(91,140,255,.18); margin-bottom: 18px; }
.ic-box .i { width: 22px; height: 22px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- bento (feature cards with screenshots) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bento .b-txt { padding: 28px 28px 22px; }
.bento .b-txt h3 { font-size: 1.25rem; margin-top: 2px; }
.bento .b-img { margin-top: auto; padding: 0 0 0 28px; }
.bento .b-img .crop { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px 0 0 0; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; background: #0B0B0E; }
.bento .b-img .crop img { position: absolute; top: -2px; left: -23.6%; width: 123.6%; max-width: none; height: auto; }
.bento .w6.split .b-img .crop { aspect-ratio: 16 / 11; }
.bento .w6 { grid-column: span 6; }
.bento .w4 { grid-column: span 4; }
.bento .w3 { grid-column: span 3; }
.bento .w2 { grid-column: span 2; }
.bento .w6.split { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); align-items: stretch; }
.bento .w6.split .b-txt { padding: 40px; align-self: center; }
.bento .w6.split .b-img { padding: 40px 0 0 0; }
.b-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.b-list li { display: flex; gap: 10px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.b-list li .i { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
@media (max-width: 960px) {
  .bento .w4, .bento .w3, .bento .w2 { grid-column: span 3; }
  .bento .w6.split { grid-template-columns: minmax(0,1fr); }
  .bento .w6.split .b-txt { padding: 28px; }
  .bento .w6.split .b-img { padding: 0 0 0 28px; }
}
@media (max-width: 620px) { .bento .w4, .bento .w3, .bento .w2 { grid-column: span 6; } }

/* ---------- gallery tabs ---------- */
.gtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 28px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.gtabs button {
  border: 0; background: none; cursor: pointer;
  min-height: 38px; padding: 0 14px; border-radius: 11px;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.gtabs button:hover { color: var(--text); }
.gtabs button[aria-selected="true"] { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.gview { max-width: 1280px; margin: 0 auto; }
.gview .frame img { transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out), filter 320ms var(--ease-out); }
.gview .frame img.swap { opacity: 0; transform: scale(.985); filter: blur(6px); }
.gcap { text-align: center; color: var(--muted); font-size: .95rem; margin: 20px auto 0; max-width: 640px; min-height: 3.2em; }
.gcap b { color: var(--text); }
@media (max-width: 620px) {
  .gtabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .gtabs::-webkit-scrollbar { display: none; }
  .gtabs button { flex: none; }
}

/* ---------- split (text + image) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.03em; margin: 14px 0 16px; }
.split .lead { margin-bottom: 8px; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: 16px; border: 1px solid rgba(91,140,255,.2); }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- honest / rules ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); }
.rule .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.rule h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.rule p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
.nolist { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.nolist span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .88rem; }
.nolist .i { width: 15px; height: 15px; color: var(--bad); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
}
.plan .p-name { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan .p-for { color: var(--faint); font-size: .85rem; margin-top: 2px; }
.plan .p-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.plan .p-price b { font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.plan .p-price span { color: var(--faint); font-size: .88rem; }
.plan ul { list-style: none; margin: 20px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.plan li .i { width: 17px; height: 17px; color: var(--accent); margin-top: 1px; }
.plan li.off { color: var(--faint); }
.plan li.off .i { color: var(--faint); }
.plan .btn { width: 100%; }
.plan .p-sub { text-align: center; font-size: .8rem; color: var(--faint); margin-top: 10px; }
.plan .p-sub a { color: var(--muted); }
.plan.mega {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    linear-gradient(160deg, rgba(91,140,255,.9), rgba(124,123,255,.5) 40%, rgba(255,255,255,.08)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 70px -30px rgba(91,140,255,.45);
}
.plan.mega::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 60% at 50% 0%, rgba(91,140,255,.14), transparent 60%); pointer-events: none; }
.plan .ribbon { position: absolute; top: -11px; left: 24px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(91,140,255,.7); }
.plan .ribbon.dim { background: var(--surface-3); color: var(--muted); box-shadow: none; border: 1px solid var(--line-2); }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .plans { grid-template-columns: 1fr; } }

/* compare table */
.cmp-wrap { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: auto; background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .9rem; }
.cmp th, .cmp td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--muted); }
.cmp thead th { position: sticky; top: 0; background: var(--surface-1); font-weight: 600; color: var(--text); font-size: .88rem; }
.cmp thead th.hl { color: var(--accent); }
.cmp td.hl, .cmp th.hl { background: rgba(91,140,255,.05); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td { background: rgba(255,255,255,.015); }
.cmp tbody tr:hover td.hl { background: rgba(91,140,255,.07); }
.cmp td.ult, .cmp th.ult { background: rgba(167,139,250,.06); }
.cmp tbody tr:hover td.ult { background: rgba(167,139,250,.09); }
.cmp thead th.ult a { background: linear-gradient(120deg, #F472B6, #A78BFA 55%, #5B8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; text-decoration: none; }
.cmp td.ult a { font-size: .82rem; font-weight: 600; color: #C4B5FD; }
.cmp .grp td { color: var(--faint); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding-top: 20px; background: transparent !important; text-align: left; }
.cmp .i { width: 17px; height: 17px; margin: 0 auto; }
.cmp .y .i { color: var(--ok); }
.cmp .n .i { color: var(--faint); opacity: .6; }

/* ---------- download panel (Optimizer) ---------- */
.dl-panel { padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.dl-panel .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dl-count { color: var(--muted); font-size: .9rem; margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.dl-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.dl-count[hidden] { display: none; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.18); color: var(--muted); font-size: .87rem; line-height: 1.55; margin-top: 18px; }
.note .i { color: var(--warn); width: 18px; height: 18px; margin-top: 2px; }
.note.info { background: var(--accent-soft); border-color: rgba(91,140,255,.22); }
.note.info .i { color: var(--accent); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.checks li .i { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.checks.two { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 620px) { .checks.two { grid-template-columns: 1fr; } }

/* ---------- app family ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.app {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color var(--normal) var(--ease), background var(--normal) var(--ease), transform var(--normal) var(--ease);
}
.app:hover { border-color: var(--line-2); background: var(--card2); transform: translateY(-2px); text-decoration: none; }
.app-top { display: flex; align-items: center; gap: 12px; }
.app-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--hue, var(--accent)); background: color-mix(in srgb, var(--hue, #5B8CFF) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hue, #5B8CFF) 26%, transparent); }
.app-ico .i { width: 21px; height: 21px; }
.app h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.app .app-top .tag { margin-left: auto; }
.app p { color: var(--muted); font-size: .89rem; line-height: 1.55; flex: 1; }
.app .go { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: .86rem; font-weight: 600; }
.app .go .i { width: 15px; height: 15px; transition: transform var(--fast) var(--ease); }
.app:hover .go .i { transform: translateX(3px); }
.app.soon .go { color: var(--faint); }
.app.feature { background: linear-gradient(140deg, rgba(91,140,255,.12), rgba(124,123,255,.04) 60%, transparent); border-color: rgba(91,140,255,.28); }
.apps-group { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 16px; }
.apps-group:first-child { margin-top: 0; }
.apps-group h3 { font-size: 1.05rem; }
.apps-group p { color: var(--faint); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: border-color var(--normal) var(--ease), background var(--normal) var(--ease); }
.faq details[open] { border-color: var(--line-2); background: var(--card2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform var(--normal) var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.faq .a p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px); border-radius: 28px; text-align: center;
  border: 1px solid rgba(91,140,255,.25);
  background: radial-gradient(80% 120% at 50% 0%, rgba(91,140,255,.22), transparent 60%), var(--surface-1);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.03em; margin: 12px 0 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cta-band .hero-cta { margin-top: 28px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 32px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 3fr; gap: 48px; }
.foot-brand p { color: var(--faint); font-size: .9rem; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-cols h4 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-cols a, .foot-cols span { display: block; color: var(--muted); font-size: .9rem; padding: 4px 0; }
.foot-cols a:hover { color: var(--text); text-decoration: none; }
.foot-base { max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .84rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- tweak browser (tweaks.html) ---------- */
.tw-bar { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 10; display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(14,14,17,.85); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); margin-bottom: 24px; }
.tw-search { position: relative; }
.tw-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.tw-search input {
  width: 100%; min-height: 50px; padding: 0 16px 0 46px; border-radius: 12px;
  background: var(--surface-1); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.tw-search input::placeholder { color: var(--faint); }
.tw-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,140,255,.15); }
.tw-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tw-chips::-webkit-scrollbar { display: none; }
.tw-chips button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .84rem; cursor: pointer; transition: all var(--fast) var(--ease); }
.tw-chips button:hover { color: var(--text); border-color: var(--line-2); }
.tw-chips button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: rgba(91,140,255,.35); }
.tw-chips button i { font-style: normal; color: var(--faint); margin-left: 4px; font-size: .78rem; }
.browser { display: grid; gap: 12px; }
.browser details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.browser details[open] { border-color: var(--line-2); }
.browser summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; min-height: 56px; }
.browser summary::-webkit-details-marker { display: none; }
.browser summary .cnt { margin-left: auto; color: var(--faint); font-weight: 500; font-size: .88rem; font-variant-numeric: tabular-nums; }
.browser summary::after { content: ""; width: 9px; height: 9px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform var(--normal) var(--ease); }
.browser details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.browser ul { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 4px; }
.browser li { padding: 12px 14px; border-radius: 12px; display: grid; gap: 4px; transition: background var(--fast); }
.browser li:hover { background: rgba(255,255,255,.03); }
.browser li b { font-size: .93rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.browser li i { font-style: normal; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.browser li .tag { font-size: .62rem; padding: 2px 7px; }
.browser .no-match { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
@media (max-width: 760px) { .browser ul { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eyebrow-line { display: flex; align-items: center; gap: 12px; justify-content: center; }

/* ---------- reduced motion ---------- */
/* Reduced motion = calm mode, not no mode: things still fade and come into focus, but nothing slides,
   tilts, zooms or floats. (Windows' "Animation effects: off" turns this on for the whole browser.) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { transform: none !important; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }
/* sub-pages whose <main> is itself a section sit under the fixed nav */
main.section { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px)); }

/* ---------- hero glow: slow, subtle breathing behind the product shot ---------- */
.shot-stage::before { animation: glow-breathe 7s ease-in-out infinite; }
@keyframes glow-breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ---------- demo video modal (video loads only when opened) ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); background: rgba(0,0,0,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity var(--normal) var(--ease); }
.demo-modal.open { opacity: 1; }
.demo-modal[hidden] { display: none; }
.demo-box { position: relative; width: min(1280px, 100%); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), 0 0 120px -30px rgba(91,140,255,.6); transform: translateY(12px) scale(.98); transition: transform var(--normal) var(--ease); background: #000; }
.demo-modal.open .demo-box { transform: none; }
.demo-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.demo-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10,10,12,.7); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.demo-close:hover { background: rgba(30,30,36,.9); }

/* ---------- app directory filters + version labels ---------- */
.dir-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 8px; }
.dir-filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all var(--fast) var(--ease); }
.dir-filters button:hover { color: var(--text); border-color: var(--line-2); }
.dir-filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
[data-status][hidden] { display: none; }
.app-ver { font-family: var(--mono); font-size: .76rem; color: var(--faint); }
.app-ver[hidden] { display: none; }

/* ---------- latest releases ---------- */
.card.release .checks { margin-top: 18px; }
.card.release .checks li { font-size: .95rem; }
.card.release h3 [data-rv] { font-family: var(--mono); font-size: .9rem; color: var(--accent); font-weight: 500; margin-left: 6px; }

/* =====================================================================
   Motion layer — Apple-style. Everything here is progressive: browsers
   without a feature just get the plain page, and reduced-motion users
   get no movement at all (see the block at the very end).
   ===================================================================== */

/* ---- page-to-page transitions (Chrome/Edge 126+, Safari 18.2+). The nav
   holds still while the page underneath dissolves into the next one. ---- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation-duration: 0s; }
::view-transition-old(root) { animation: vt-out 240ms var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 560ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---- hero headline: each line rises out of a mask, one after another ---- */
.js .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.js .ln > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .lines.in .ln > span { transform: none; }
.js h1.lines.reveal { filter: none; transform: none; opacity: 1; transition: none; }

/* ---- hero scroll scene: the copy drifts up and fades as you leave, while the
   product shot tilts from a lean-back angle to flat and grows into place ---- */
.hero-copy { opacity: calc(1 - var(--leave, 0)); translate: 0 calc(var(--leave, 0) * -48px); scale: calc(1 - var(--leave, 0) * .04); }
.shot-stage[data-scene] { perspective: 1800px; }
.shot-stage[data-scene] > .frame { transform-origin: 50% 0; transform: rotateX(calc((1 - var(--p, 1)) * 16deg)) scale(calc(.9 + var(--p, 1) * .1)); }
.shot-stage[data-scene] .float-chip.c1 { translate: calc((1 - var(--p, 1)) * -40px) 0; opacity: calc(var(--p, 1) * 1.4 - .3); }
.shot-stage[data-scene] .float-chip.c2 { translate: calc((1 - var(--p, 1)) * 40px) 0; opacity: calc(var(--p, 1) * 1.4 - .3); }

/* ---- screenshots inside cards ease from a slight zoom to rest as they scroll in ---- */
.bento .b-img .crop img[data-scene] { transform-origin: 0 0; scale: calc(1.08 - var(--p, 1) * .08); translate: 0 calc((1 - var(--p, 1)) * 18px); }
.split .frame[data-scene], .gview .frame[data-scene] { scale: calc(.94 + var(--p, 1) * .06); }

/* ---- statement text that lights up word by word as you scroll (data-words) ---- */
.sec-head p.statement { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--text); max-width: 900px; margin: 0 auto; }
.js [data-words] .w { opacity: .18; transition: opacity 260ms linear; }
.js [data-words] .w.lit { opacity: 1; }

/* ---- cursor spotlight on cards (mouse only) ---- */
.app, .rule { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .card::after, .app::after, .rule::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 45%);
    opacity: 0; transition: opacity 400ms var(--ease-out);
  }
  .card:hover::after, .app:hover::after, .rule:hover::after { opacity: 1; }
}
a.card:hover, .card.hover:hover, .app:hover { transform: translateY(-3px); }
a.card, .card.hover, .app { transition: border-color 400ms var(--ease-out), transform 500ms var(--ease-out), background 400ms var(--ease-out); }

/* ---- segmented control: one pill slides between the gallery tabs ---- */
.gtabs.has-ind { position: relative; }
.gtabs .seg-ind { position: absolute; top: 0; left: 0; height: 0; border-radius: 11px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; transition: transform 520ms var(--ease-out), width 520ms var(--ease-out), height 520ms var(--ease-out); }
.gtabs.has-ind button { position: relative; z-index: 1; }
.gtabs.has-ind button[aria-selected="true"] { background: transparent; box-shadow: none; }

/* ---- FAQ / tweak groups open and close smoothly (Chrome 131+) ---- */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content, .browser details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 480ms var(--ease-out), content-visibility 480ms allow-discrete;
  }
  .faq details[open]::details-content, .browser details[open]::details-content { block-size: auto; }
}

/* ---- buttons: a softer, springier press ---- */
.btn { transition: transform 300ms var(--ease-out), background var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow 300ms var(--ease-out), color var(--fast) var(--ease), filter var(--fast) var(--ease); }
.btn:active { transform: scale(.97); transition-duration: 90ms; }

@media (prefers-reduced-motion: reduce) {
  /* pages cross-fade instead of lifting */
  ::view-transition-old(root) { animation: vt-fade-out 200ms linear both !important; animation-duration: 200ms !important; }
  ::view-transition-new(root) { animation: vt-fade-in 380ms linear both !important; animation-duration: 380ms !important; }
  /* headline lines fade up into focus in place instead of rising */
  .js .ln > span { transform: none; opacity: 0; filter: blur(8px); transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .lines.in .ln > span { opacity: 1; filter: none; }
  .gview .frame img.swap { transform: none; }
  .btn:hover, .btn:active, a.card:hover, .card.hover:hover, .app:hover { transform: none; }
}
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* ---------- promo code strip (10% off MEGA) ---------- */
.promo-wrap { text-align: center; margin-top: 18px; }
.promo-wrap.sm { text-align: left; margin-top: 12px; }
.promo { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.28); color: var(--muted); font-size: .92rem; line-height: 1.4; }
.promo-wrap.sm .promo { font-size: .85rem; border-radius: 14px; padding: 8px 12px 8px 8px; justify-content: flex-start; }
.promo-off { background: var(--ok); color: #04170F; font-weight: 700; font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.promo-code { font: inherit; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; color: var(--text); background: rgba(255,255,255,.06);
  border: 1px dashed var(--line-3); border-radius: 8px; padding: 1px 8px; margin: 0 2px; cursor: pointer; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.promo-code:hover, .promo-code:focus-visible { border-color: var(--ok); color: var(--ok); outline: none; }
.promo-code.copied { border-style: solid; border-color: var(--ok); color: var(--ok); background: rgba(52,211,153,.12); }
.promo-go { color: var(--ok); font-weight: 600; text-decoration: none; white-space: nowrap; }
.promo-go:hover { text-decoration: underline; }

/* ---------- Astrix Ultimate ---------- */
.nav-links .nav-ultimate { background: linear-gradient(120deg, #F472B6, #A78BFA 50%, #8FB0FF); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 700; }
.btn-ult { background: linear-gradient(120deg, #F472B6, #8B5CF6 55%, #5B8CFF); color: #fff !important; border: 0; box-shadow: 0 14px 40px -14px rgba(167,139,250,.65); }
.btn-ult:hover { filter: brightness(1.08); }

/* ---- real product screenshots ---- */
.app-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 12px; border: 1px solid var(--line); background: #0B0B0F; margin-bottom: 4px; }
.app-shot.contain { object-fit: contain; object-position: center; padding: 22px; }
.app.feature .app-shot { aspect-ratio: 16 / 9; }
.ushots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 18px; }
.ushots figure { margin: 0; }
.ushots a { display: block; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-2); background: #0B0B0F; transition: border-color var(--normal) var(--ease), transform var(--normal) var(--ease); }
.ushots a:hover { border-color: var(--line-3, var(--line-2)); transform: translateY(-2px); }
.ushots img { display: block; width: 100%; height: auto; }
.ushots figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }

/* ===== Reviews: corner button, chat-style panel, home section ===== */
.rv-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: rgba(17,17,20,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); font: inherit; font-weight: 650; cursor: pointer;
  box-shadow: 0 14px 40px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03); transition: transform var(--fast, .15s) var(--ease), border-color var(--fast, .15s) var(--ease); }
.rv-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.rv-fab-star { color: var(--pro); font-size: 18px; line-height: 1; }
.rv-panel { position: fixed; right: 20px; bottom: 78px; z-index: 91; width: min(400px, calc(100vw - 40px)); max-height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: 0 30px 80px -20px rgba(0,0,0,.75);
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .2s var(--ease), transform .2s var(--ease); overflow: hidden; }
.rv-panel.open { opacity: 1; transform: none; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rv-top b { display: block; font-size: 16px; } .rv-top small { color: var(--muted); font-size: 12.5px; }
.rv-x { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.rv-x:hover { color: var(--text); border-color: var(--line-2); }
.rv-feed { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rv-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.rv-foot .btn, .rv-send { width: 100%; justify-content: center; }
.rv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.rv-card p { margin: 10px 0 0; color: var(--text); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff; background: var(--grad); flex: none; }
.rv-who { flex: 1; min-width: 0; } .rv-who b { font-size: 14px; } .rv-who small { display: block; color: var(--faint); font-size: 12px; }
.rv-ver { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--ok); background: rgba(52,211,153,.1); border-radius: 999px; padding: 1px 8px; }
.rv-unver { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--faint); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.rv-stars { white-space: nowrap; }
.rv-star { color: rgba(255,255,255,.18); font-size: 14px; } .rv-star.on { color: var(--pro); }
.rv-reply { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.rv-reply b { font-size: 12px; color: var(--accent); } .rv-reply p { margin: 4px 0 0; font-size: 13.5px; }
.rv-empty { color: var(--muted); text-align: center; padding: 18px 8px; margin: 0; }
.rv-ok { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(52,211,153,.1); color: var(--ok); font-weight: 600; font-size: 14px; }
.rv-form { padding: 16px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; }
.rv-form label { font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 12px 0 6px; }
.rv-form label:first-child { margin-top: 0; }
.rv-form input, .rv-form select, .rv-form textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; outline: none; resize: vertical; }
.rv-form input:focus, .rv-form select:focus, .rv-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rv-pick { display: flex; gap: 4px; }
.rv-pick button { font-size: 30px; line-height: 1; background: none; border: 0; padding: 2px; cursor: pointer; color: rgba(255,255,255,.18); transition: transform .12s var(--ease), color .12s var(--ease); }
.rv-pick button:hover { transform: scale(1.12); } .rv-pick button.on { color: var(--pro); }
.rv-key { margin-top: 12px; font-size: 13px; color: var(--muted); }
.rv-key summary { cursor: pointer; } .rv-key input { margin-top: 8px; font-family: ui-monospace, Consolas, monospace; } .rv-key small { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }
.rv-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.rv-err { color: var(--bad); font-size: 13px; margin: 10px 0 0; }
.rv-send { margin-top: 14px; }
.rv-sum { display: flex; align-items: center; gap: 14px; }
.rv-sum > b { font-size: 46px; letter-spacing: -.03em; line-height: 1; }
.rv-sum .rv-star { font-size: 20px; } .rv-sum small { display: block; color: var(--muted); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 22px; }
.rv-grid:empty { display: none; }
.rv-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .rv-fab { right: 14px; bottom: 14px; height: 42px; padding: 0 14px 0 12px; }
  .rv-panel { right: 8px; left: 8px; bottom: 64px; width: auto; max-height: calc(100vh - 90px); }
}
@media (prefers-reduced-motion: reduce) { .rv-panel, .rv-fab { transition: none; } }
@media print { .rv-fab, .rv-panel { display: none !important; } }
