/* ==========================================================================
   ELAIS — site design system (v2)
   Minimal, near-black premium "product poster" aesthetic: one flat accent
   color, small sharp radii, huge bold display wordmarks, a single focused
   glow instead of scattered neon, cursor-tracking spotlight micro-interactions.
   Every selector below still matches index.html verbatim.
   ========================================================================== */

/* ---- self-hosted fonts (no external CDN; live CSP is style-src/font-src
   'self' only, so Google Fonts links are dropped by the browser there) ---- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---- tokens ------------------------------------------------------------ */
:root {
  --bg: #0b0b0e;
  --bg-soft: #101014;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.64);
  --text-mute: rgba(255, 255, 255, 0.42);
  --faint: rgba(255, 255, 255, 0.3);

  --accent: #0e87ff;
  --accent-2: #4fa8ff;
  --accent-ink: #0a0c10;
  --violet: #8f6bff;
  --green: #33e0a1;
  --danger: #ff5d72;

  --card-tint: linear-gradient(105deg, rgba(197, 199, 255, 0.06) 4%, rgba(167, 179, 255, 0.04) 98%);
  --card-fill: rgba(17, 18, 24, 0.72);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.2s;

  --shell: min(1325px, calc(100vw - 48px));
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
  --display: "Unbounded", "Manrope", ui-sans-serif, sans-serif;
  font-family: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---- reset / base -------------------------------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { color: inherit; }
button { border: 0; background: none; }
a { text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.hidden { display: none !important; }

::selection { background: rgba(14, 135, 255, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #24242c; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #313140; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---- ambient background: one quiet grid + one focused glow --------------*/
.site-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 68%);
}

.aurora { position: fixed; left: 0; right: 0; top: 0; height: 100vh; z-index: -7; pointer-events: none; overflow: hidden; mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; animation: drift 22s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 640px; height: 520px; left: 50%; top: 30%; transform: translateX(-50%); background: radial-gradient(circle, rgba(14, 135, 255, 0.5), transparent 68%); opacity: 0.65; }
.aurora i:nth-child(2) { width: 520px; height: 420px; left: 42%; top: 42%; background: radial-gradient(circle, rgba(143, 107, 255, 0.4), transparent 68%); opacity: 0.55; animation-delay: -7s; animation-duration: 27s; }
.aurora i:nth-child(3) { width: 420px; height: 340px; left: 58%; top: 46%; background: radial-gradient(circle, rgba(14, 135, 255, 0.3), transparent 68%); opacity: 0.4; animation-delay: -14s; animation-duration: 25s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, 3%) scale(1.08); }
}

/* ---- scroll reveal (progressive enhancement, see app.js) ---------------*/
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger.in-view > * { animation: rise 0.55s var(--ease) both; }
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.14s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-stagger.in-view > * { animation: none; }
}

/* ---- cursor-tracking spotlight border (applied via app.js) -------------*/
.spot { position: relative; }
.spot::before {
  content: "";
  position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 169, 255, 0.85), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.spot:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .spot::before { display: none; } }

/* ---- topbar --------------------------------------------------------------*/
.topbar {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 56px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur), backdrop-filter var(--dur);
}
.topbar.scrolled { background: rgba(11, 11, 14, 0.78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
body { padding-top: 96px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; font-size: 14px; transition: opacity var(--dur); }
.brand:hover { opacity: 0.8; }
.brand-glyph {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  font-size: 15px; color: var(--accent-ink); font-weight: 900;
  background: var(--accent);
}
.topbar nav { display: flex; gap: 30px; margin-right: auto; }
.topbar nav a { font-size: 14px; color: var(--text-dim); transition: color var(--dur) var(--ease); }
.topbar nav a:hover, .topbar nav a.active { color: #fff; }
.profile-chip { display: flex; align-items: center; gap: 12px; }
.language {
  height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: transparent; color: var(--text-dim); font-size: 11px; font-weight: 700; cursor: pointer;
  transition: border-color var(--dur), color var(--dur);
}
.language:hover { border-color: #fff; color: #fff; }
.profile-button { display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: right; }
.profile-copy { display: flex; flex-direction: column; }
.profile-copy b { font-size: 13px; font-weight: 700; }
.profile-copy small { color: var(--text-mute); font-size: 11px; }
.profile-avatar {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: #fff;
  transition: border-color var(--dur), background var(--dur);
}
.profile-button:hover .profile-avatar { border-color: var(--accent); background: rgba(14, 135, 255, 0.12); }

/* ---- view routing ---------------------------------------------------------*/
.view { display: none; }
.view.active { display: block; animation: fade-in 0.4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-view { min-height: calc(100vh - 96px); padding: 70px 0 130px; }

/* ---- hero ------------------------------------------------------------- */
.hero { min-height: 720px; display: grid; grid-template-columns: 0.86fr 1.14fr; align-items: center; gap: 42px; position: relative; padding-top: 30px; }
.hero-copy, .hero-stage { min-width: 0; }
.overline, .section-title > span, .page-heading > span, .modal-label, .config-toolbar > div > span, .account-header span {
  font: 700 11px var(--mono); letter-spacing: 0.16em; color: var(--text-mute); text-transform: uppercase;
}
.overline { display: flex; align-items: center; gap: 9px; }
.overline i, .live-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero-project { font-size: 12px; letter-spacing: 0.2em; color: var(--text-mute); margin: 34px 0 0; font-weight: 700; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(64px, 8.4vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 18px 0 28px;
  font-weight: 800;
  color: #fff;
}
.hero-lead { max-width: 540px; color: var(--text-dim); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }

.button {
  height: 54px; padding: 0 26px; border-radius: var(--r-sm); font-family: var(--display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease), border-color var(--dur), background-color var(--dur), color var(--dur);
}
.button::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 70%);
  transition: opacity 0.3s ease;
}
.button:hover::after { opacity: 1; }
.button:active { transform: scale(0.98); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-2); }
.button.subtle { background: transparent; border-color: var(--line-strong); color: #fff; }
.button.subtle:hover { border-color: #fff; }
.button.full { width: 100%; }

.hero-metrics { display: flex; gap: 30px; margin-top: 48px; }
.hero-metrics > div { display: flex; gap: 10px; align-items: flex-start; }
.hero-metrics b { font: 700 11px var(--mono); color: var(--accent-2); }
.hero-metrics span { font-size: 11px; color: var(--text-mute); line-height: 1.35; }

.hero-stage { height: 580px; position: relative; perspective: 1200px; display: grid; place-items: center; }
.hero-photo { display: none; }
.ui-plane {
  width: 620px; height: 345px; position: relative; z-index: 2;
  transform: rotateX(56deg) rotateZ(-23deg) translate(14px, -6px);
  transform-style: preserve-3d;
  background: rgba(14, 15, 20, 0.94);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.hero-stage:hover .ui-plane { transform: rotateX(54deg) rotateZ(-20deg) translate(14px, -12px); }
.ui-top { height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.ui-top b { letter-spacing: 0.14em; font: 700 11px var(--display); }
.ui-top span { color: var(--text-mute); font-size: 10px; }
.ui-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: auto; }
.ui-body { display: grid; grid-template-columns: 155px 1fr; height: calc(100% - 46px); }
.ui-body aside { border-right: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 17px; color: var(--text-mute); font-size: 11px; }
.ui-body aside b { color: var(--accent-2); }
.ui-modules { padding: 24px; display: grid; gap: 12px; }
.ui-modules > div { height: 70px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); padding: 14px; position: relative; border-radius: var(--r-sm); }
.ui-modules b { font-size: 11px; }
.ui-modules small { display: block; color: var(--text-mute); margin-top: 11px; }
.toggle { display: block; width: 28px; height: 14px; border-radius: 10px; background: #262631; position: absolute; right: 14px; top: 13px; }
.toggle::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #7c7c8c; position: absolute; left: 2px; top: 2px; }
.toggle.on { background: rgba(14, 135, 255, 0.4); }
.toggle.on::after { left: 16px; background: var(--accent-2); }
.ui-modules em { display: block; height: 3px; width: 46%; background: linear-gradient(90deg, var(--accent) 66%, #262631 66%); margin-top: 4px; border-radius: 2px; }
.ui-modules em.wide { width: 75%; }
.float-card {
  position: absolute; z-index: 5; padding: 9px 12px;
  border: 1px solid var(--line-strong); background: rgba(11, 11, 15, 0.88); border-radius: var(--r-sm);
  backdrop-filter: blur(12px);
}
.float-card small { display: block; color: var(--text-mute); font: 8px var(--mono); letter-spacing: 0.14em; }
.float-card b { font: 11px var(--mono); color: var(--green); }
.fc-one { right: 2%; top: 17%; }
.fc-two { left: 6%; bottom: 15%; }
.fc-two b { color: var(--accent-2); }

/* ---- trust strip ---------------------------------------------------------*/
.trust-strip { border-block: 1px solid var(--line); }
.trust-strip .shell { height: 56px; display: flex; align-items: center; justify-content: space-between; font: 10px var(--mono); letter-spacing: 0.12em; color: var(--text-mute); }
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---- generic section heading ---------------------------------------------*/
.section { padding: 120px 0; }
.section-title { display: grid; grid-template-columns: 170px 1fr 1fr; align-items: start; margin-bottom: 52px; }
.section-title h2, .page-heading h1 {
  font-family: var(--display); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0; font-weight: 800;
}
.section-title p { max-width: 420px; color: var(--text-dim); margin: 3px 0; }
.section-title.compact { grid-template-columns: 190px 1fr; }
.section-title.horizontal { display: flex; justify-content: space-between; align-items: end; }
.live-status { display: flex; align-items: center; gap: 10px; color: var(--text-mute); font: 10px var(--mono); letter-spacing: 0.1em; }

/* ---- benefit cards ---------------------------------------------------- */
.benefit-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 12px; }
.glass-card { border: 1px solid var(--line); background: var(--card-tint), var(--card-fill); border-radius: var(--r-md); }
.benefit-grid article {
  min-height: 340px; padding: 24px; display: flex; flex-direction: column; position: relative;
  overflow: hidden; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.benefit-grid article:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-no { position: absolute; right: 18px; top: 16px; color: var(--faint); font: 10px var(--mono); }
.line-icon { font-size: 30px; color: var(--accent-2); margin-top: 32px; }
.benefit-grid h3 { margin: auto 0 8px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.benefit-grid p { color: var(--text-dim); margin: 0; font-size: 13px; }
.status-lines { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; display: grid; gap: 5px; }
.status-lines span { display: flex; justify-content: space-between; font: 9px var(--mono); color: var(--text-mute); }
.status-lines b { color: var(--green); }

/* ---- experience / interactive preview -------------------------------- */
.experience { padding: 110px 0; border-block: 1px solid var(--line); position: relative; }
.experience-layout { display: grid; grid-template-columns: 330px 1fr; gap: 46px; }
.experience-list { display: flex; flex-direction: column; }
.experience-item {
  padding: 19px 4px; border-bottom: 1px solid var(--line); text-align: left;
  display: grid; grid-template-columns: 32px 1fr; cursor: pointer; color: var(--text-mute);
  transition: color var(--dur), padding-left var(--dur) var(--ease);
}
.experience-item.active, .experience-item:hover { color: #fff; padding-left: 6px; }
.experience-item > b { font: 10px var(--mono); color: var(--accent-2); }
.experience-item strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; }
.experience-item small { display: block; color: var(--text-mute); margin-top: 5px; }
.clickui-preview { min-height: 480px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); overflow: hidden; }
.preview-bar { height: 54px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 22px; gap: 28px; }
.preview-bar b { font: 700 11px var(--display); letter-spacing: 0.1em; }
.preview-bar span { color: var(--text-mute); font-size: 10px; }
.preview-bar i { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.preview-content { display: grid; grid-template-columns: 175px 1fr; min-height: 426px; }
.preview-content aside { border-right: 1px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; gap: 18px; color: var(--text-mute); font-size: 12px; }
.preview-content aside strong { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.preview-content aside b { color: var(--accent-2); }
.preview-settings { padding: 28px; }
.preview-settings header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; }
.preview-settings header strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; }
.preview-settings header small { color: var(--text-mute); }
.preview-settings header .toggle { position: relative; right: auto; top: auto; }
.setting { display: grid; grid-template-columns: 1fr 1.5fr 45px; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.setting b { text-align: right; color: #fff; font-size: 11px; }
.slider { height: 3px; background: linear-gradient(90deg, var(--accent) 75%, #262631 75%); border-radius: 4px; }
.slider.half { background: linear-gradient(90deg, var(--accent) 48%, #262631 48%); }
.widget-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.widget-row > div { border: 1px solid var(--line); padding: 15px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.015); }
.widget-row small { display: block; color: var(--text-mute); font: 9px var(--mono); }
.widget-row strong { font-size: 18px; }
.widget-row > div:last-child strong { color: var(--green); }

/* ---- experience preview caption ----------------------------------------*/
.preview-caption { margin: 16px 2px 0; color: var(--text-mute); font-size: 12px; line-height: 1.6; max-width: 640px; }
.preview-caption a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.preview-caption a:hover { color: #fff; }

/* ---- video reviews ------------------------------------------------------*/
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.video-card { padding: 0; overflow: hidden; }
.video-thumb { height: 150px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(14, 135, 255, 0.14), rgba(255, 255, 255, 0.02)); border-bottom: 1px solid var(--line); }
.video-thumb span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); color: #fff; font-size: 14px; }
.video-card h3 { margin: 20px 20px 8px; font-family: var(--display); font-size: 15px; font-weight: 700; }
.video-card p { margin: 0 20px 20px; color: var(--text-dim); font-size: 13px; }

/* ---- release list -------------------------------------------------------*/
.release-list { border-top: 1px solid var(--line); }
.release-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; align-items: center; padding: 21px 8px; border-bottom: 1px solid var(--line); transition: background var(--dur); }
.release-row:hover { background: rgba(255, 255, 255, 0.02); }
.release-row span { color: var(--text-mute); font-size: 12px; }
.badge { justify-self: end; border: 1px solid rgba(51, 224, 161, 0.35); background: rgba(51, 224, 161, 0.1); color: var(--green); border-radius: var(--r-sm); padding: 5px 10px; font: 9px var(--mono); }
.skeleton { height: 70px; border-radius: var(--r-sm); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent); background-size: 200% 100%; animation: load 1.4s infinite; }

/* ---- generic page heading ---------------------------------------------- */
.page-heading { max-width: 780px; margin-bottom: 56px; }
.page-heading h1 { margin: 14px 0 16px; }
.page-heading p { color: var(--text-dim); font-size: 16px; }
.page-heading.centered { text-align: center; margin-inline: auto; }

/* ---- pricing ------------------------------------------------------------*/
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft);
  padding: 30px; position: relative; min-height: 500px; display: flex; flex-direction: column;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.price-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.price-card.featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(14, 135, 255, 0.08), var(--bg-soft) 55%); }
.price-card.lifetime { border-color: var(--violet); background: linear-gradient(160deg, rgba(143, 107, 255, 0.1), var(--bg-soft) 55%); }
.price-card.lifetime .price-label { color: var(--violet); }
.popular { position: absolute; right: 18px; top: 17px; color: var(--accent-2); font: 9px var(--mono); letter-spacing: 0.12em; }
.price-label { font: 10px var(--mono); color: var(--text-mute); letter-spacing: 0.14em; }
.price-card h2 { font-family: var(--display); font-size: 22px; margin: 24px 0 5px; font-weight: 700; }
.price { font-family: var(--display); font-size: 38px; font-weight: 800; color: #fff; }
.price-card p { color: var(--text-dim); font-size: 13px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 auto; display: grid; gap: 12px; color: var(--text-dim); font-size: 13px; }
.price-card li { display: flex; align-items: center; }
.price-card li::before { content: "✓"; color: var(--green); margin-right: 10px; font-weight: 800; }

/* ---- profile / account --------------------------------------------------*/
.account-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.account-header h1 { font-family: var(--display); font-size: 44px; margin: 8px 0 0; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.profile-main { padding: 26px; display: flex; align-items: center; gap: 18px; position: relative; }
.large-avatar { width: 62px; height: 62px; border-radius: var(--r-md); background: rgba(14, 135, 255, 0.12); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 22px; color: var(--accent-2); font-family: var(--display); }
.profile-main small, .profile-stat small { font: 9px var(--mono); color: var(--text-mute); letter-spacing: 0.14em; }
.profile-main h2 { margin: 3px 0; font-family: var(--display); font-size: 20px; }
.profile-main p { margin: 0; color: var(--text-dim); }
.subscription-pill { margin-left: auto; border: 1px solid rgba(255, 93, 114, 0.35); color: var(--danger); padding: 7px 12px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.subscription-pill.active { border-color: rgba(51, 224, 161, 0.35); color: var(--green); background: rgba(51, 224, 161, 0.08); }
.profile-stat { padding: 24px; transition: border-color var(--dur); }
.profile-stat:hover { border-color: var(--line-strong); }
.profile-stat strong { display: block; font-family: var(--display); font-size: 22px; margin: 16px 0 3px; font-weight: 700; }
.profile-stat span { color: var(--text-mute); font-size: 11px; }
.dashboard-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.action-card {
  min-height: 108px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-md);
  padding: 20px; display: flex; align-items: center; gap: 15px; text-align: left; cursor: pointer;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.action-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.action-card > span { font-size: 20px; color: var(--accent-2); }
.action-card b, .action-card small { display: block; }
.action-card small { color: var(--text-mute); margin-top: 5px; font-size: 11px; }
.account-panel { margin-top: 46px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-lg); padding: 28px; }
.panel-heading h2 { margin: 5px 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.panel-heading span { font: 9px var(--mono); color: var(--text-mute); }
.device { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line); }
.device span { display: block; color: var(--text-mute); font-size: 11px; }
.device button { background: none; color: var(--accent-2); cursor: pointer; font-weight: 700; }
.device button:hover { color: #fff; }

/* ---- referrals -----------------------------------------------------------*/
.ref-how, .level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ref-how article, .level-grid article { border: 1px solid var(--line); background: var(--bg-soft); padding: 28px; border-radius: var(--r-md); text-align: center; transition: border-color var(--dur), transform var(--dur) var(--ease); }
.ref-how article:hover, .level-grid article:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.ref-how b, .level-grid b { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(14, 135, 255, 0.12); color: var(--accent-2); margin: 0 auto 22px; font-weight: 700; }
.ref-how p, .level-grid p { color: var(--text-dim); font-size: 13px; }
.ref-code-card { margin: 50px 0; min-height: 180px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(14, 135, 255, 0.06), var(--bg-soft)); border-radius: var(--r-lg); padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ref-code-card small { font: 10px var(--mono); color: var(--text-mute); letter-spacing: 0.14em; }
.ref-code-card strong { display: block; font-family: var(--display); color: #fff; font-size: 32px; letter-spacing: 0.04em; margin-top: 10px; font-weight: 800; }
.ref-code-card p { color: var(--text-mute); }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 50px; }
.ref-stats > div { padding: 24px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-md); text-align: center; }
.ref-stats small { font: 9px var(--mono); color: var(--text-mute); }
.ref-stats strong { display: block; font-family: var(--display); font-size: 28px; margin-top: 8px; color: var(--accent-2); font-weight: 700; }

/* ---- config cloud --------------------------------------------------------*/
.config-layout { display: grid; grid-template-columns: 220px 1fr; gap: 46px; }
.config-sidebar { display: flex; flex-direction: column; gap: 8px; }
.side-title { font: 10px var(--mono); color: var(--text-mute); letter-spacing: 0.14em; margin-bottom: 18px; }
.config-sidebar button { padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); color: var(--text-dim); cursor: pointer; transition: all var(--dur) var(--ease); }
.config-sidebar button:hover { color: #fff; border-color: var(--line-strong); }
.config-sidebar button.active { color: #fff; border-color: var(--accent); background: rgba(14, 135, 255, 0.08); }
.config-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.config-toolbar h1 { font-family: var(--display); font-size: 36px; margin: 5px 0 0; font-weight: 800; }
.config-toolbar form { display: flex; gap: 9px; }
.config-toolbar input, .modal input { min-width: 320px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); color: #fff; padding: 13px; outline: none; transition: border-color var(--dur); }
.config-toolbar input:focus, .modal input:focus { border-color: var(--accent); }
.config-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.config-stats > div { padding: 17px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-sm); }
.config-stats small { font: 9px var(--mono); color: var(--text-mute); }
.config-stats strong { display: block; font-size: 24px; margin-top: 4px; }
.config-list { display: grid; gap: 10px; }
.config-card { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-md); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px; transition: border-color var(--dur); }
.config-card:hover { border-color: var(--line-strong); }
.config-card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; }
.config-card p { margin: 4px 0; color: var(--text-dim); font-size: 13px; }
.config-card code { color: var(--accent-2); }
.config-card .config-meta { grid-column: 1 / -1; display: flex; gap: 18px; color: var(--text-mute); font-size: 11px; }
.empty-state { text-align: center; padding: 90px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-mute); }
.empty-state b { font-size: 32px; color: var(--accent); display: block; margin-bottom: 10px; }

/* ---- docs / news --------------------------------------------------------*/
.docs-grid, .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.docs-grid article, .news-grid article { padding: 28px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-md); transition: border-color var(--dur), transform var(--dur) var(--ease); }
.docs-grid article:hover, .news-grid article:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.docs-grid b, .news-grid time { font: 10px var(--mono); color: var(--accent-2); }
.docs-grid h2, .news-grid h2 { margin: 10px 0 8px; font-family: var(--display); font-size: 17px; font-weight: 700; }
.docs-grid p, .news-grid p { color: var(--text-dim); font-size: 13px; }
.news-grid { grid-template-columns: repeat(2, 1fr); }

/* ---- standalone legal pages (terms.html / privacy.html) -----------------*/
.legal-content { max-width: 760px; padding-bottom: 40px; }
.legal-content h2 { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-dim); font-size: 14px; line-height: 1.75; margin: 0 0 14px; }
.legal-content ul { color: var(--text-dim); font-size: 14px; line-height: 1.75; margin: 0 0 14px; padding-left: 20px; }
.legal-content li { margin-bottom: 6px; }
.legal-content li b, .legal-content p b { color: #fff; }
.legal-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: #fff; }

/* ---- footer --------------------------------------------------------------*/
footer { border-top: 1px solid var(--line); }
.footer-grid { min-height: 300px; padding: 70px 0; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid p, .footer-grid a, .footer-grid span { color: var(--text-mute); font-size: 12px; transition: color var(--dur); }
.footer-grid a:hover { color: #fff; }
.footer-grid b { font-size: 12px; margin-bottom: 6px; color: var(--text-dim); font-family: var(--display); }

/* ---- modals & toast ------------------------------------------------------*/
.modal { width: min(420px, calc(100vw - 28px)); padding: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #111116; color: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); overflow: visible; animation: modal-in 0.28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal::backdrop { background: rgba(4, 4, 6, 0.8); backdrop-filter: blur(10px); }
.modal h2 { font-family: var(--display); font-size: 28px; margin: 10px 0 6px; font-weight: 800; }
.modal > p { color: var(--text-dim); }
.modal-close { position: absolute; right: 15px; top: 12px; width: 30px; height: 30px; border-radius: var(--r-sm); color: var(--text-mute); font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: background var(--dur), color var(--dur); }
.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.modal label { display: block; color: var(--text-dim); font-size: 11px; margin: 14px 0; }
.modal input { display: block; width: 100%; min-width: 0; margin-top: 7px; }
.password-control { display: block; position: relative; }
.password-control button { position: absolute; right: 8px; top: 12px; width: 32px; height: 32px; border-radius: var(--r-sm); color: var(--text-mute); cursor: pointer; transition: color var(--dur), background var(--dur); }
.password-control button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.password-control input { padding-right: 45px; }
.form-error { min-height: 20px; color: var(--danger); font-size: 11px; }
.switch-mode { display: block; margin: 18px auto 0; color: var(--accent-2); cursor: pointer; transition: color var(--dur); }
.switch-mode:hover { color: #fff; }

/* ---- payment modal / order summary --------------------------------------*/
.order-summary { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); padding: 6px 18px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-dim); }
.order-row:last-child { border-bottom: 0; }
.order-row b { color: #fff; font-weight: 700; }
.order-row.discount b { color: var(--green); }
.order-row.total { font-size: 15px; }
.order-row.total b { font-family: var(--display); font-size: 20px; color: var(--accent-2); }

.toast { position: fixed; right: 22px; bottom: 22px; max-width: min(400px, calc(100vw - 44px)); padding: 14px 18px; border: 1px solid var(--line-strong); background: #111116; border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(80px); transition: 0.3s var(--ease); z-index: 60; }
.toast.visible { opacity: 1; transform: none; }

/* ---- keyframes shared -----------------------------------------------------*/
@keyframes load { to { background-position: -200% 0; } }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 1300px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 40px 0; }
  .hero-stage { height: 520px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { grid-template-columns: 1fr; gap: 20px; }
  .experience-layout { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-main { grid-column: 1 / -1; }
  .dashboard-actions { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .config-layout { grid-template-columns: 1fr; }
  .config-sidebar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .side-title { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --shell: calc(100vw - 28px); }
  .topbar { height: 68px; gap: 12px; }
  body { padding-top: 68px; }
  .topbar nav { display: none; }
  .profile-copy { display: none; }
  .hero h1 { font-size: 62px; }
  .hero-actions, .hero-metrics { flex-direction: column; }
  .hero-stage { height: 380px; }
  .ui-plane { width: min(420px, 90vw); height: min(260px, 55vw); }
  .trust-strip .shell { overflow: hidden; gap: 35px; justify-content: flex-start; }
  .benefit-grid, .profile-grid, .dashboard-actions, .ref-how, .level-grid, .ref-stats, .docs-grid, .news-grid { grid-template-columns: 1fr; }
  .preview-content { grid-template-columns: 105px 1fr; }
  .preview-content aside { padding: 18px 12px; }
  .preview-settings { padding: 18px; }
  .widget-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .config-toolbar { align-items: flex-start; flex-direction: column; gap: 20px; }
  .config-toolbar form { width: 100%; }
  .config-toolbar input { min-width: 0; width: 100%; }
  .config-sidebar { grid-template-columns: 1fr; }
  .section, .page-view { padding: 70px 0; }
  .release-row { grid-template-columns: 1fr 1fr; }
  .release-row > *:nth-child(3) { display: none; }
  .ref-code-card { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
