/* =========================================================================
   UStudio Pro - Website stylesheet
   Palette taken from the extension icon (violet → cyan neon on deep navy)
   ========================================================================= */

:root {
  --bg: #07080d;
  --bg-2: #0b0d16;
  --surface: #10131f;
  --surface-2: #151a2a;
  --border: rgba(148, 163, 255, 0.12);
  --border-strong: rgba(148, 163, 255, 0.24);
  --text: #e8ebf7;
  --text-2: #a3abc7;
  --text-3: #6b7394;

  --violet: #7c5cff;
  --violet-2: #a78bfa;
  --blue: #4f8bff;
  --cyan: #38d6ff;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  --grad: linear-gradient(135deg, #8b5cf6 0%, #4f8bff 50%, #38d6ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(56, 214, 255, .12));
  --glow: 0 0 0 1px rgba(124, 92, 255, .35), 0 10px 40px -10px rgba(79, 139, 255, .55);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }
kbd {
  padding: .1em .45em; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.35);
}
::selection { background: rgba(124, 92, 255, .45); color: #fff; }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { position: relative; padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(56, 214, 255, .08); border: 1px solid rgba(56, 214, 255, .22);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); margin: 20px 0 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-2); }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(148,163,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: .55; }
.orb--violet { background: #6d4aff; }
.orb--cyan { background: #18b4ff; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 12px;
  font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(124,92,255,.6), 0 16px 50px -10px rgba(79,139,255,.8); }
.btn--ghost { background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(167,139,250,.5); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; }
.btn img { width: 20px; height: 20px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 8, 13, .72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand .pro { font-size: 11px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 6px; background: var(--grad); color: #fff; letter-spacing: .06em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.nav__cta { display: flex; gap: 10px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 100px; overflow: hidden; }
.hero .orb--violet { width: 520px; height: 520px; top: -160px; left: -120px; }
.hero .orb--cyan { width: 460px; height: 460px; top: 120px; right: -160px; opacity: .4; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .35);
  font-size: 13.5px; color: var(--text-2); transition: border-color .2s, background .2s;
}
.pill:hover { border-color: rgba(167,139,250,.7); background: rgba(124,92,255,.16); }
.pill__tag { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: 12px; font-family: var(--font-mono); }
.hero h1 { font-size: clamp(40px, 5.8vw, 70px); font-weight: 700; margin-top: 24px; letter-spacing: -.035em; }
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); margin: 24px 0 36px; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--text-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { color: var(--emerald); width: 16px; height: 16px; }
.install-cmd {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 14px; color: var(--text-2);
}
.install-cmd .prompt { color: var(--violet-2); }
.install-cmd button { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; transition: background .2s; }
.install-cmd button:hover { background: rgba(255,255,255,.1); }
.install-cmd button.is-copied { color: var(--emerald); border-color: rgba(52,211,153,.4); }

/* Hero editor mockup */
.editor {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0d1017; border: 1px solid var(--border-strong);
  box-shadow: 0 40px 120px -30px rgba(79, 139, 255, .45), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s ease;
}
.editor:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.editor::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(139,92,246,.7), transparent 40%, transparent 60%, rgba(56,214,255,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.editor__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #10141d; border-bottom: 1px solid var(--border); }
.editor__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3d; }
.editor__bar i:nth-child(1) { background: #ff5f57; } .editor__bar i:nth-child(2) { background: #febc2e; } .editor__bar i:nth-child(3) { background: #28c840; }
.editor__tabs { display: flex; gap: 2px; margin-left: 14px; font-family: var(--font-mono); font-size: 12px; }
.editor__tabs span { padding: 6px 12px; border-radius: 6px 6px 0 0; color: var(--text-3); }
.editor__tabs span.on { color: var(--text); background: #0d1017; border: 1px solid var(--border); border-bottom: 0; }
.editor__body { display: grid; grid-template-columns: 44px 1fr; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; padding: 14px 0 18px; min-height: 380px; }
.editor__gutter { color: #3b4258; text-align: right; padding-right: 14px; user-select: none; }
.editor__code { padding-right: 16px; white-space: pre; overflow: hidden; }
.tok-k { color: #c792ea; } .tok-t { color: #4fc1ff; } .tok-f { color: #dcdcaa; } .tok-m { color: #ff79c6; } .tok-s { color: #ce9178; } .tok-c { color: #6a9955; } .tok-n { color: #b5cea8; } .tok-p { color: #9cdcfe; }
.lens { color: #7f88a8; font-size: 11.5px; font-family: var(--font-sans); padding: 1px 0; }
.lens b { color: var(--violet-2); font-weight: 600; }
.lens .bp { color: var(--cyan); }
.live-line { position: relative; display: inline-block; border-radius: 4px; animation: livePulse 2.2s ease-in-out infinite; }
.live-badge { display: inline-block; margin-left: 12px; color: var(--amber); font-size: 11.5px; font-family: var(--font-sans); }
@keyframes livePulse { 0%, 100% { background: rgba(251,191,36,.08); box-shadow: 0 0 0 0 rgba(251,191,36,0); } 50% { background: rgba(251,191,36,.2); box-shadow: 0 0 22px 2px rgba(251,191,36,.25); } }
.squiggle { text-decoration: underline wavy var(--amber); text-underline-offset: 4px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--cyan); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ghost { color: #4d5570; font-style: italic; }

.float-card {
  position: absolute; z-index: 2; padding: 12px 16px; border-radius: 14px;
  background: rgba(16, 19, 31, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); box-shadow: 0 20px 50px -15px rgba(0,0,0,.6);
  font-size: 13px; display: flex; align-items: center; gap: 12px; animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13.5px; }
.float-card small { color: var(--text-3); font-size: 12px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); border: 1px solid var(--border-strong); }
.float-card--a { bottom: -26px; left: -34px; }
.float-card--b { top: 64px; right: -28px; animation-delay: -3s; }
.float-card--b .ic { color: var(--emerald); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__visual { position: relative; }

/* ---------- Logos strip ---------- */
.logos { padding: 40px 0 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.logos p { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 24px; font-family: var(--font-mono); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding-bottom: 30px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-weight: 600; font-size: 16px; opacity: .78; transition: opacity .2s; }
.marquee__item:hover { opacity: 1; }
.marquee__item img { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.stat { padding: 26px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: border-color .25s, transform .25s; }
.stat:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.stat__num { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1; }
.stat__label { margin-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }

/* ---------- Promo video ---------- */
.video-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong); background: #000;
  box-shadow: 0 50px 120px -40px rgba(124, 92, 255, .55);
}
.video-frame video, .video-frame > img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(7,8,13,.15), rgba(7,8,13,.55));
  transition: background .3s;
}
.video-play:hover { background: radial-gradient(circle at center, rgba(7,8,13,.05), rgba(7,8,13,.45)); }
.video-play__btn { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow); transition: transform .3s; }
.video-play__btn::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(124,92,255,.5); animation: ring 2.4s ease-out infinite; }
.video-play:hover .video-play__btn { transform: scale(1.08); }
.video-play__btn svg { width: 34px; height: 34px; fill: #fff; stroke: none; margin-left: 5px; }
.video-play__label { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(7,8,13,.7); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); white-space: nowrap; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease;
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .14), transparent 45%); }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.card--span2 { grid-column: span 2; } .card--span3 { grid-column: span 3; } .card--span4 { grid-column: span 4; }
.card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--cyan); }
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { color: var(--text-2); margin: 12px 0 0; font-size: 15px; }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.card li .icon { color: var(--emerald); width: 17px; height: 17px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag--pro { background: rgba(124, 92, 255, .18); color: var(--violet-2); border: 1px solid rgba(124,92,255,.4); }
.tag--free { background: rgba(52, 211, 153, .12); color: var(--emerald); border: 1px solid rgba(52,211,153,.35); }
.tag--exp { background: rgba(251, 191, 36, .12); color: var(--amber); border: 1px solid rgba(251,191,36,.35); }
.tag--new { background: rgba(56, 214, 255, .12); color: var(--cyan); border: 1px solid rgba(56,214,255,.35); }

.mini-code { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #0b0e15; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre; overflow-x: auto; color: #c8cde0; }

/* ---------- Video showcase (tabs) ---------- */
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.showcase__list { display: grid; gap: 8px; }
.showcase__tab {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; transition: background .2s, border-color .2s;
}
.showcase__tab:hover { background: rgba(255,255,255,.03); }
.showcase__tab.is-active { background: var(--surface); border-color: var(--border-strong); }
.showcase__num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); padding-top: 2px; }
.showcase__tab.is-active .showcase__num { color: var(--cyan); }
.showcase__tab strong { display: block; font-size: 15.5px; font-weight: 600; }
.showcase__tab span.desc { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.showcase__tab.is-active span.desc { max-height: 80px; }
.showcase__progress { grid-column: 2; height: 2px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 10px; display: none; }
.showcase__tab.is-active .showcase__progress { display: block; }
.showcase__progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.showcase__stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.showcase__stage .video-frame { aspect-ratio: 16 / 9; }
.showcase__caption { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text-3); font-size: 14px; }

/* ---------- Spotlight (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split--rev > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; color: var(--text-2); }
.checklist li .dot { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--cyan); }
.checklist li .dot .icon { width: 15px; height: 15px; }
.checklist strong { color: var(--text); font-weight: 600; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery__item { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); cursor: zoom-in; aspect-ratio: 16 / 10; }
.gallery__item:first-child { grid-column: span 6; aspect-ratio: 16 / 9; }
.gallery__item:not(:first-child) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: rgba(7,8,13,.78); backdrop-filter: blur(8px); border: 1px solid var(--border); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 40px; background: rgba(4, 5, 9, .92); backdrop-filter: blur(10px); }
.lightbox.is-open { display: grid; animation: fadeIn .25s ease; }
.lightbox img { max-height: 86vh; border-radius: 12px; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox__caption { margin-top: 14px; text-align: center; color: var(--text-2); font-size: 14px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.14); }
.lightbox__close { top: 22px; right: 22px; } .lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); } .lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Inspections table */
.rules { display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; transition: border-color .2s, transform .2s; }
.rule:hover { border-color: var(--border-strong); transform: translateX(4px); }
.rule code { color: var(--amber); font-weight: 600; }
.rule span { color: var(--text-2); }
.rule span em { font-style: normal; color: var(--emerald); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step__n { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; opacity: .9; }
.step h3 { margin-top: 18px; }
.step p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan--pro { background: linear-gradient(180deg, rgba(124,92,255,.12), var(--surface) 55%); border-color: rgba(124, 92, 255, .5); box-shadow: 0 40px 100px -40px rgba(124, 92, 255, .6); }
.plan__badge { position: absolute; top: -14px; right: 32px; padding: 6px 14px; border-radius: 999px; background: var(--grad); font-size: 12.5px; font-weight: 600; color: #fff; box-shadow: var(--glow); }
.plan__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.plan__price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 10px; }
.plan__price strong { font-family: var(--font-display); font-size: 48px; line-height: 1; letter-spacing: -.03em; }
.plan__price span { color: var(--text-2); font-size: 15px; }
.plan__desc { color: var(--text-2); font-size: 15px; margin: 0 0 26px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15px; color: var(--text-2); }
.plan li .icon { color: var(--emerald); width: 18px; height: 18px; margin-top: 3px; }
.plan--pro li .icon { color: var(--violet-2); }
.plan .btn { width: 100%; }
.plan__fine { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-3); }

.compare { margin: 56px auto 0; max-width: 980px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.compare summary { list-style: none; cursor: pointer; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary .icon { transition: transform .3s; }
.compare[open] summary .icon { transform: rotate(180deg); }
.compare__wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 28px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 110px; }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font-display); }
.compare tr.group td { background: rgba(124,92,255,.06); font-weight: 600; color: var(--violet-2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.compare td { color: var(--text-2); }
.compare .yes { color: var(--emerald); } .compare .no { color: var(--text-3); }
.compare .yes .icon, .compare .no .icon { margin: 0 auto; width: 18px; height: 18px; }

/* ---------- Roadmap ---------- */
.roadmap-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(167,139,250,.5); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.chip .count { font-family: var(--font-mono); font-size: 12px; opacity: .75; }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.rm-col { border-radius: var(--radius-lg); background: rgba(16, 19, 31, .6); border: 1px solid var(--border); padding: 18px; min-height: 200px; }
.rm-col__head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.rm-col__head h3 { font-size: 16px; }
.rm-col__head .count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.05); }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 12px currentColor; background: currentColor; }
.rm-col[data-status="shipped"] .rm-dot { color: var(--emerald); }
.rm-col[data-status="progress"] .rm-dot { color: var(--amber); animation: blinkSoft 1.6s ease-in-out infinite; }
.rm-col[data-status="planned"] .rm-dot { color: var(--blue); }
.rm-col[data-status="exploring"] .rm-dot { color: var(--violet-2); }
@keyframes blinkSoft { 50% { opacity: .35; } }
.rm-list { display: grid; gap: 12px; }
.rm-card { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s; animation: fadeUp .4s ease both; }
.rm-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.rm-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.rm-card__when { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.rm-card h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.rm-card p { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.rm-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rm-card__tags span { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--text-3); font-family: var(--font-mono); }
.rm-progress { margin-top: 12px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.rm-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), #fb923c); border-radius: inherit; }
.rm-empty { padding: 20px; text-align: center; font-size: 13.5px; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rm-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border-strong); }
.rm-cta h3 { font-size: 22px; }
.rm-cta p { margin: 6px 0 0; color: var(--text-2); }

/* Release timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--violet), var(--cyan), transparent); }
.release { position: relative; padding: 0 0 36px; }
.release::before { content: ""; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--violet); box-shadow: 0 0 14px rgba(124,92,255,.7); }
.release:first-child::before { border-color: var(--cyan); box-shadow: 0 0 14px rgba(56,214,255,.8); }
.release__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.release__ver { font-family: var(--font-mono); font-weight: 700; font-size: 15px; padding: 3px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); }
.release__date { color: var(--text-3); font-size: 13.5px; font-family: var(--font-mono); }
.release h4 { margin-top: 12px; font-size: 19px; }
.release p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }

/* ---------- Privacy / trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust__item { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trust__item .icon { width: 28px; height: 28px; color: var(--cyan); }
.trust__item h3 { font-size: 17px; margin-top: 16px; }
.trust__item p { color: var(--text-2); font-size: 14.5px; margin: 8px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s; color: var(--violet-2); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }
.faq details > div p { margin: 0 0 10px; }
.faq a { color: var(--cyan); }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: 90px 40px; border-radius: 32px; border: 1px solid var(--border-strong); background: radial-gradient(800px 300px at 50% 0%, rgba(124,92,255,.35), transparent 70%), radial-gradient(600px 300px at 50% 100%, rgba(56,214,255,.18), transparent 70%), var(--bg-2); }
.cta-final img.logo { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 20px 60px -10px rgba(79,139,255,.6); }
.cta-final .hero__actions { justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--border); margin-top: 120px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer p { color: var(--text-3); font-size: 14px; }
.footer h4 { font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer__bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--text-3); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: background .2s, border-color .2s; }
.socials a:hover { background: rgba(255,255,255,.08); border-color: var(--border-strong); }
.socials img { width: 18px; height: 18px; }

/* ---------- Simple content pages (privacy / 404) ---------- */
.page { padding: calc(var(--nav-h) + 80px) 0 40px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: clamp(36px, 5vw, 54px); }
.prose h2 { font-size: 26px; margin-top: 48px; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--cyan); }
.prose code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--violet-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn--ghost { display: none; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 16px 20px 24px; background: rgba(7,8,13,.97); border-bottom: 1px solid var(--border); }
  .nav.is-open { background: rgba(7,8,13,.97); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 680px; margin: 30px auto 0; width: 100%; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .bento .card--span2, .bento .card--span3, .bento .card--span4 { grid-column: span 3; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__stage { position: relative; top: 0; order: -1; }
  .showcase__list { grid-template-columns: repeat(2, 1fr); }
  .split, .split--rev { grid-template-columns: 1fr; gap: 40px; }
  .split--rev > :first-child { order: 0; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { margin-left: 0; }
  .nav__cta .btn--primary span { display: none; }
  .editor { transform: none; } .editor:hover { transform: none; }
  .editor__body { font-size: 11.5px; min-height: 0; }
  .float-card { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento .card--span2, .bento .card--span3, .bento .card--span4 { grid-column: auto; }
  .showcase__list { grid-template-columns: 1fr; }
  .gallery__item:not(:first-child) { grid-column: span 3; }
  .steps, .pricing, .trust, .roadmap { grid-template-columns: 1fr; }
  .plan { padding: 30px 24px; }
  .compare th, .compare td { padding: 10px 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-final { padding: 64px 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .install-cmd { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
