/* ==========================================================================
   ExnoServs — base site
   ========================================================================== */
:root {
  --bg: #0a0710;
  --bg-2: #130d1e;
  --panel: #130d1e;
  --panel-2: #191126;
  --line: #261b38;
  --line-2: #35234d;
  --text: #f4effc;
  --muted: #9c93b0;
  --muted-2: #6f6585;
  --accent: #a855f7;
  --accent-2: #d8b4fe;
  --accent-soft: rgba(168,85,247,.12);
  --green: #45e6a0;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--accent); color: #000; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* ------------------------------- top bar -------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 38px; padding: 8px 18px;
  background: linear-gradient(90deg, rgba(168,85,247,.16), rgba(168,85,247,.04) 40%, rgba(168,85,247,.14));
  border-bottom: 1px solid rgba(168,85,247,.18);
  font-size: 13px; color: #e9d5ff; letter-spacing: .01em; text-align: center;
}
.topbar a { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }

/* ------------------------------- header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 11, 15, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(10, 11, 15, .94); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.brand-mark { width: 30px; height: 30px; }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.brand-text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: 16px; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transition: width .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: #d9d7e2; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #c084fc, var(--accent));
  border-color: #a855f7;
  box-shadow: 0 8px 26px -8px rgba(168,85,247,.75), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #d8b4fe, #9333ea); box-shadow: 0 12px 34px -10px rgba(168,85,247,.9), inset 0 1px 0 rgba(255,255,255,.4); }

.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.05); }

.btn-outline { color: #eeeaf6; background: rgba(255,255,255,.035); border-color: var(--line-2); }
.btn-outline:hover { border-color: rgba(168,85,247,.6); background: rgba(168,85,247,.07); }

.btn-disabled {
  width: 100%; color: var(--muted-2); background: var(--panel-2);
  border-color: var(--line); cursor: not-allowed;
}

/* -------------------------------- hero ---------------------------------- */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 900px; height: 620px; left: 50%; top: -220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(168,85,247,.22), rgba(168,85,247,.05) 55%, transparent 75%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center; padding-bottom: 84px;
}
.hero-copy { max-width: 620px; min-width: 0; }
.hero-panel { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.28);
  color: #e9d5ff; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.16); }
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.03; letter-spacing: -.035em; font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, #c084fc, var(--accent) 45%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 30px; max-width: 540px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px;
  color: var(--muted-2); font-size: 13px;
}
.hero-trust span { position: relative; padding-left: 16px; }
.hero-trust span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 6px; height: 6px; background: var(--accent); border-radius: 1px;
}

/* ------------------------------ hero panel ------------------------------ */
.hero-panel { position: relative; perspective: 1200px; }
.panel {
  position: relative; z-index: 2;
  background: linear-gradient(160deg, #1a1229, #100a19 65%);
  border: 1px solid var(--line-2);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotateX(4deg) rotateY(-7deg);
  transition: transform .25s var(--ease);
}
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px;
  background: linear-gradient(150deg, rgba(168,85,247,.5), transparent 38%, transparent 65%, rgba(168,85,247,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.panel-shadow {
  position: absolute; inset: 30px 10px -30px; z-index: 1;
  background: radial-gradient(closest-side, rgba(168,85,247,.28), transparent 70%);
  filter: blur(30px); opacity: .55;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.brand-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(140deg, #d8b4fe, var(--accent)); box-shadow: 0 0 14px rgba(168,85,247,.6); }
.panel-chip { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 6px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.055); font-size: 13.5px; color: var(--muted); }
.panel-row .mono { font-family: var(--mono); font-size: 12px; color: #d9d6e2; }
.status { color: var(--green); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-shadow: 0 0 14px rgba(53,224,138,.45); }
.panel-bar { padding: 16px 0 14px; }
.panel-bar .bar { height: 6px; border-radius: 6px; background: #1c1e2a; overflow: hidden; }
.panel-bar .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #7c3aed, var(--accent), #d8b4fe); box-shadow: 0 0 18px rgba(168,85,247,.55); }
.panel-bar small { display: block; margin-top: 7px; font-size: 11px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.panel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cell { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 9px; padding: 10px 8px; text-align: center; }
.cell b { display: block; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.cell small { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.panel-foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(53,224,138,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(53,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(53,224,138,0); } }

/* ------------------------------- marquee -------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0916; overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  padding: 14px 0; animation: marquee 38s linear infinite;
}
.marquee-track span { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--muted-2); }
.marquee-track i { color: var(--accent); font-size: 8px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------- sections ------------------------------- */
.section { padding: 104px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 20%, rgba(255,255,255,.018) 80%, transparent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
.section-head p { max-width: 400px; margin: 0 0 6px; color: var(--muted); font-size: 15px; }

/* ------------------------------- products ------------------------------- */
.products { display: grid; grid-template-columns: 1fr; gap: 18px; }
.product { max-width: 560px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel), #130d1e);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-5px); border-color: rgba(168,85,247,.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(168,85,247,.08); }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(168,85,247,.35), rgba(168,85,247,.06));
  border: 1px solid rgba(168,85,247,.3); color: #f3e8ff; font-weight: 800; font-size: 15px;
}
.tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tag-soon { color: #e9d5ff; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.26); }
.product h3 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.02em; }
.product p { margin: 0; color: var(--muted); font-size: 14px; }
.product ul { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 8px; }
.product li { position: relative; padding-left: 18px; font-size: 13.5px; color: #b9b6c6; }
.product li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: .85; }
.product .btn { margin-top: auto; }

/* ------------------------------- features ------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); background: linear-gradient(170deg, rgba(168,85,247,.06), rgba(255,255,255,.008)); }
.f-icon {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 10px; background: rgba(168,85,247,.09); border: 1px solid rgba(168,85,247,.24);
  color: var(--accent-2); font-size: 18px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* -------------------------------- stats --------------------------------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0916; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 26px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; color: #fff; }
.stat b::after { content: ""; display: block; width: 26px; height: 2px; margin: 12px auto 0; background: var(--accent); opacity: .7; }
.stat span { font-size: 12.5px; color: var(--muted-2); letter-spacing: .02em; }

/* --------------------------------- faq ---------------------------------- */
.faq-wrap { max-width: 880px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255,255,255,.025); }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; max-width: 660px; }

/* --------------------------------- cta ---------------------------------- */
.cta { padding: 40px 0 120px; }
.cta-inner {
  position: relative; padding: 64px 32px; text-align: center; border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(180deg, #12131c, #0c0d13);
  border: 1px solid rgba(168,85,247,.22);
  overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.cta-inner h2 { position: relative; margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; }
.cta-inner p { position: relative; margin: 0 0 28px; color: var(--muted); }
.cta-inner .hero-cta { position: relative; justify-content: center; }

/* -------------------------------- footer -------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0712; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 14px 0 18px; color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); }
.footer-social a:hover { color: var(--accent-2); }
.footer-col h4 { margin: 4px 0 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.footer-col a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted-2);
}

/* --------------------------------- modal -------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,9,.72); backdrop-filter: blur(8px); }
.modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.97);
  width: min(440px, calc(100% - 32px)); padding: 30px; border-radius: 18px;
  background: linear-gradient(170deg, #1a1229, #130d1e);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px #000;
  opacity: 0; transition: transform .22s var(--ease), opacity .22s;
}
.modal.open .modal-card { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-close {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: #fff; border-color: var(--line-2); }
.modal-head h3 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.02em; }
.modal-head p { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }
.tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 20px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 10px; }
.tab { flex: 1; height: 36px; border: 0; background: transparent; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.tab.active { background: rgba(168,85,247,.14); color: #f3e8ff; box-shadow: inset 0 0 0 1px rgba(168,85,247,.3); }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.auth-form input {
  height: 44px; padding: 0 13px; border-radius: 9px;
  background: #0d0916; border: 1px solid var(--line); color: #fff; font: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus { outline: 0; border-color: rgba(168,85,247,.6); box-shadow: 0 0 0 3px rgba(168,85,247,.12); }
.auth-note { margin: 2px 0 0; font-size: 12px; color: var(--muted-2); text-align: center; }
.field-register { display: none; }
body.register-mode .field-register { display: grid; }

/* -------------------------------- reveal -------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ cursor glow ----------------------------- */
.cursor-glow {
  position: fixed; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(168,85,247,.075), transparent 70%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .hero-panel { max-width: 460px; min-width: 0; }
  .panel { max-width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 auto; top: 113px;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 10px 24px 24px;
    background: #0a0710; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .hero { padding-top: 64px; }
  .section { padding: 76px 0; }
  .products, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 44px); }
  .panel { transform: none; }
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 12px; }
  .header-actions .btn-primary { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .account-name { display: none; }
  .account-chip { height: 38px; padding: 0 5px; }
  .brand-text { font-size: 18px; }
  .panel { padding: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .topbar { font-size: 12px; }
  .topbar a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pulse { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}

/* --------------------------- accounts / auth ---------------------------- */
[hidden] { display: none !important; }

.account-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 12px 0 6px; border-radius: 999px;
  background: rgba(168,85,247,.10); border: 1px solid rgba(168,85,247,.32);
  color: var(--text); cursor: pointer; transition: border-color .2s, background .2s;
}
.account-chip:hover { border-color: rgba(168,85,247,.65); background: rgba(168,85,247,.16); }
.account-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #d8b4fe, #a855f7);
  color: #170a26; font-weight: 800; font-size: 13px;
}
.account-avatar.big { width: 52px; height: 52px; font-size: 20px; }
.account-name { font-size: 13.5px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pass-wrap { position: relative; display: block; }
.pass-wrap input { width: 100%; padding-right: 58px; }
.pass-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 30px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.pass-reveal:hover { color: #fff; border-color: var(--line-2); }

.auth-error {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255, 60, 90, .10); border: 1px solid rgba(255, 60, 90, .35);
  color: #ff9db0; font-size: 12.5px;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted-2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.terms { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--muted); }
.terms input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
body.register-mode .field-login { display: none; }

.account-card { width: min(430px, calc(100% - 32px)); }
.account-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-head h3 { margin: 0 0 3px; font-size: 22px; letter-spacing: -.02em; }
.account-head p { margin: 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.account-rows { padding: 6px 0; }
.account-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 13.5px; }
.account-row:last-child { border-bottom: 0; }
.account-row span { color: var(--muted); }
.account-row b { color: #fff; font-weight: 600; }
.account-row b.plan { color: var(--accent-2); }
.account-actions { display: flex; gap: 10px; margin-top: 18px; }
.account-actions .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px);
  max-width: min(420px, calc(100% - 32px)); padding: 12px 18px; border-radius: 10px;
  background: #1a1229; border: 1px solid rgba(168,85,247,.45); color: #f3e8ff;
  font-size: 13.5px; box-shadow: 0 20px 50px -20px #000; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.dim { border-color: var(--line-2); color: var(--muted); }

/* ------------------------- account / licensed view ---------------------- */
[data-auth-only] { display: none !important; }
body.logged-in [data-auth-only] { display: inline-flex !important; }
body.logged-in [data-guest-only] { display: none !important; }
body.logged-in .header-actions [data-auth-only],
body.logged-in .hero-cta [data-auth-only] { display: inline-flex !important; }

.remember {
  display: flex !important; flex-direction: row; align-items: center; gap: 9px;
  font-size: 12.5px !important; color: var(--muted) !important;
}
.remember input { width: 16px; height: 16px; accent-color: var(--accent); }

.account-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.account-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #e9e2f7; }
.account-section-head small { font-weight: 500; color: var(--muted2); letter-spacing: 0; }
.account-hint { margin: 0 0 10px; font-size: 12px; color: var(--muted2); line-height: 1.45; }
.license-list { display: grid; gap: 8px; max-height: 168px; overflow-y: auto; }
.license-item { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: rgba(255,255,255,.02); }
.li-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.li-top b { font-weight: 700; }
.li-meta { display: flex; gap: 12px; margin-top: 5px; font-size: 11.5px; color: var(--muted2); }
.li-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; }
.li-status.active { color: var(--green); background: rgba(53,224,138,.1); }
.li-status.expired { color: #ffc857; background: rgba(255,200,87,.1); }
.li-status.revoked { color: #ff5470; background: rgba(255,84,112,.1); }
.li-empty { font-size: 12.5px; color: var(--muted2); }
.reset-form { display: flex; gap: 8px; }
.reset-form input { flex: 1; height: 38px; }
.reset-form .btn { white-space: nowrap; }
#resetError { margin-top: 10px; }

.hidden{display:none!important}

/* auth field visibility (must override .auth-form label and !important helpers) */
.auth-form label.field-register,
.auth-form label.terms { display: none !important; }
.auth-form label.field-login { display: grid !important; }
.auth-form label.remember { display: flex !important; }
body.register-mode .auth-form label.field-register { display: grid !important; }
body.register-mode .auth-form label.terms { display: flex !important; }
body.register-mode .auth-form label.field-login,
body.register-mode .auth-form label.remember { display: none !important; }
