/* ==========================================================================
   IndividualProxy — design tokens (palette taken from the desktop app)
   ========================================================================== */
:root {
  --bg: #14141e;
  --bg-1: #181a26;
  --bg-2: #1c2130;
  --bg-3: #252a38;
  --bg-4: #323848;

  --accent: #606bdb;
  --accent-2: #7f72f0;
  --accent-soft: rgba(96, 107, 219, 0.16);
  --blue: #429ad6;
  --green: #5cc96b;
  --danger: #e06a7a;
  --danger-bg: #3a2830;

  --text: #f0f2f8;
  --muted: #9aa3b5;
  --muted-2: #6f788c;

  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);

  --grad: linear-gradient(135deg, #606bdb 0%, #8a6ff0 100%);
  --grad-soft: linear-gradient(135deg, rgba(96, 107, 219, 0.35), rgba(138, 111, 240, 0.35));

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 12px 32px rgba(96, 107, 219, 0.38);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.has-header { padding-top: var(--header-h); }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
button { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- header */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 20, 30, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--stroke-2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--text); }
.nav-links .btn { margin-left: 0.5rem; }
.nav-links a.btn { color: #fff; padding: 0.6rem 1.25rem; }
.nav-links a.btn-outline { color: var(--text); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

@media (max-width: 960px) {
  .nav-burger { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--bg-2);
    border: 1px solid var(--stroke-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 0.8rem 1rem; text-align: center; }
  .nav-links .btn { margin: 0.25rem 0 0; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(96, 107, 219, 0.5); }

.btn-outline {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--stroke-2);
}
.btn-outline:hover { background: var(--bg-4); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.btn-light {
  background: #fff;
  color: #4b50c7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.btn-light:hover { color: #3a3fb0; background: #fff; }

.btn-dark {
  background: #0f1017;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-dark:hover { background: #000; color: #fff; }

.btn-teal { background: var(--blue); color: #fff; }
.btn-teal:hover { color: #fff; filter: brightness(1.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* -------------------------------------------------------------- sections */
.section { padding: 5.5rem 0; position: relative; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--bg-1); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2, .section-head h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-lead { color: var(--muted); margin: 0 0 2rem; max-width: 60ch; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(96, 107, 219, 0.28), transparent 65%),
    radial-gradient(640px 400px at 80% 10%, rgba(66, 154, 214, 0.22), transparent 65%),
    radial-gradient(500px 360px at 55% 90%, rgba(138, 111, 240, 0.16), transparent 65%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.hero-content { text-align: center; max-width: 900px; margin: 0 auto 3.5rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(96, 107, 219, 0.35);
  color: #b9bfff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(92, 201, 107, 0.2);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #8f97ff, #b89cff 50%, #6fc3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 62ch;
  margin: 0 auto 2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* feature "checkbox" cards (as on the reference) */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.feature {
  flex: 1 1 320px;
  max-width: 380px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(96, 107, 219, 0.45); }
.feature .check {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(96, 107, 219, 0.35);
}
.feature .check svg { width: 18px; height: 18px; }
.feature h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.feature p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

/* ------------------------------------------------------------- protocols */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.proto {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.proto:hover { transform: translateY(-4px); border-color: rgba(96, 107, 219, 0.5); box-shadow: var(--shadow); }
.proto-head { display: flex; align-items: center; gap: 0.9rem; }
.proto-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.proto-icon svg { width: 24px; height: 24px; }
.proto h4 { font-size: 1.15rem; font-weight: 700; }
.proto .tag {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proto p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.proto .badge {
  position: absolute;
  top: -10px; right: 14px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #0f1017;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--stroke-2);
}

.g-indigo { background: linear-gradient(135deg, #6a74e8, #9b6cf5); }
.g-blue   { background: linear-gradient(135deg, #3f8ee0, #4fc0f0); }
.g-orange { background: linear-gradient(135deg, #ff8a4c, #ff5f7a); }
.g-sky    { background: linear-gradient(135deg, #2aa7e8, #3fd3ff); }
.g-red    { background: linear-gradient(135deg, #e2554f, #ff8a65); }
.g-teal   { background: linear-gradient(135deg, #2bb7a8, #5fe3c0); }
.g-green  { background: linear-gradient(135deg, #43b35c, #8fe07a); }
.g-violet { background: linear-gradient(135deg, #8e5cf6, #c08bff); }

@media (max-width: 1100px) { .proto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .proto-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--plan-color, var(--grad));
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--stroke-2); }
.plan-card.featured { border-color: rgba(96, 107, 219, 0.5); box-shadow: 0 0 0 1px rgba(96, 107, 219, 0.3), var(--shadow); }
.plan-card .ribbon {
  position: absolute;
  top: 14px; right: 14px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #0f1017;
  border: 1px solid var(--stroke-2);
  font-size: 0.72rem;
  font-weight: 600;
}
.plan-card .name { text-align: center; font-size: 1.15rem; font-weight: 700; }
.plan-card .from { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
.plan-card .price {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.35rem 0 0.25rem;
}
.plan-card .price small { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-card .per-day { text-align: center; color: var(--muted-2); font-size: 0.85rem; margin-bottom: 1.4rem; }
.plan-card ul { display: grid; gap: 0.7rem; margin-bottom: 1.75rem; }
.plan-card li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--muted); font-size: 0.93rem; }
.plan-card li strong { color: var(--text); font-weight: 600; }
.plan-card li .tick {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--plan-tick, var(--accent-2));
  display: grid; place-items: center;
  color: var(--plan-tick, var(--accent-2));
}
.plan-card li .tick svg { width: 10px; height: 10px; }
.plan-card .btn { margin-top: auto; align-self: center; min-width: 150px; }

@media (max-width: 1100px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plans-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- partners */
.partners-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.partners-text h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.partners-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }
.partners-text .cta-row { justify-content: flex-start; margin-top: 1.75rem; }

.tiers { display: grid; gap: 0.9rem; }
.tier {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tier:hover { transform: translateX(4px); border-color: rgba(96, 107, 219, 0.5); }
.tier .pct {
  min-width: 92px;
  padding: 0.65rem 0.6rem;
  border-radius: 14px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px rgba(96, 107, 219, 0.3);
}
.tier.t2 .pct { background: linear-gradient(135deg, #3f8ee0, #6b7cf0); }
.tier.t3 .pct { background: linear-gradient(135deg, #8e5cf6, #ff7fb0); }
.tier .label { font-weight: 700; font-size: 1.02rem; }
.tier .sub { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

.rules {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px dashed var(--stroke-2);
}
.rules h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.65rem; color: #c9cdff; }
.rules li { display: flex; gap: 0.6rem; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.45rem; }
.rules li::before { content: "•"; color: var(--accent-2); font-weight: 700; }

@media (max-width: 900px) { .partners-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ------------------------------------------------------------------ apps */
.pill-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs-wrap { display: flex; justify-content: center; margin-bottom: 3rem; }
.pill-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.pill-tab:hover { color: var(--text); }
.pill-tab.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-accent); }

.app-panel { display: none; }
.app-panel.active { display: block; animation: rise 0.45s ease both; }
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.app-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 0.75rem; }
.app-text .lead { color: var(--muted); margin-bottom: 1.5rem; }
.app-text ul { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.app-text li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.app-text li .tick {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  display: grid; place-items: center;
  color: var(--accent-2);
}
.app-text li .tick svg { width: 11px; height: 11px; }
.app-text .cta-row { justify-content: flex-start; }
.app-text .cta-row .btn { padding: 0.85rem 1.25rem; font-size: 0.93rem; }
.app-visual { display: flex; justify-content: center; }

.app-soon {
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px dashed var(--stroke-2);
}
.app-soon h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 0.65rem; }
.app-soon p { color: var(--muted); }
.app-soon .icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  border-radius: 20px;
  background: var(--grad-soft);
  border: 1px solid rgba(96, 107, 219, 0.4);
  display: grid; place-items: center; color: #c9cdff;
}
.app-soon .icon svg { width: 34px; height: 34px; }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .app-visual { order: -1; }
}

/* device mockups */
.device-phone {
  width: 250px;
  aspect-ratio: 472 / 1024;
  padding: 10px;
  border-radius: 38px;
  background: #0b0b12;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 0 0 2px #1d1f2b;
  position: relative;
}
.device-phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 20px;
  border-radius: 999px;
  background: #0b0b12;
  z-index: 2;
}
.device-phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.device-tv { width: min(100%, 520px); }
.device-tv .screen {
  aspect-ratio: 16 / 9;
  padding: 10px;
  border-radius: 14px;
  background: #0b0b12;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  display: grid;
  place-items: center;
}
.device-tv .screen-inner {
  width: 100%; height: 100%;
  border-radius: 6px;
  background: #121318;
  position: relative;
  overflow: hidden;
}
.device-tv .screen-inner img,
.device-laptop .screen-inner img {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 100%; width: auto; max-width: none;
}
.device-tv .stand {
  width: 36%; height: 14px; margin: 0 auto;
  background: linear-gradient(#1b1d29, #0b0b12);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
.device-tv .stand-base { width: 50%; height: 6px; margin: 0 auto; border-radius: 999px; background: #1b1d29; }

.device-laptop { width: min(100%, 560px); }
.device-laptop .screen {
  padding: 12px 12px 14px;
  border-radius: 18px 18px 6px 6px;
  background: #0b0b12;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  position: relative;
}
.device-laptop .screen::before {
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: #262838;
}
.device-laptop .screen-inner {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: #14141e;
  overflow: hidden;
  position: relative;
}
.device-laptop .base {
  height: 16px;
  margin: 0 -5%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(#262838, #15161f);
  position: relative;
}
.device-laptop .base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18%; height: 5px; border-radius: 0 0 6px 6px; background: #0b0b12;
}

/* ------------------------------------------------------------------- cta */
.cta-section { padding: 2rem 0 5rem; }
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #5f66e0 0%, #7b5ff0 55%, #9a6cf5 100%);
  box-shadow: 0 30px 80px rgba(96, 107, 219, 0.35);
}
.cta-box::before, .cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.cta-box::before { width: 420px; height: 420px; top: -200px; right: -120px; }
.cta-box::after  { width: 300px; height: 300px; bottom: -160px; left: -80px; }
.cta-box h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-box p { position: relative; color: rgba(255,255,255,0.86); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-box .btn { position: relative; }

/* ---------------------------------------------------------------- footer */
footer.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 3rem 0 2rem;
  background: var(--bg-1);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stroke);
}
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; }
.footer-col.right { text-align: right; }
.footer-col.right .socials { justify-content: flex-end; }
.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--stroke);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.socials a:hover { transform: translateY(-3px); background: var(--accent-soft); border-color: rgba(96, 107, 219, 0.5); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  color: var(--muted-2);
  font-size: 0.88rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.92rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-col.right { text-align: left; }
  .footer-col.right .socials { justify-content: flex-start; }
}

/* ---------------------------------------------------------- auth screens */
.auth-shell, .cab-shell {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 3rem 0 4rem;
  position: relative;
  isolation: isolate;
}
.auth-shell::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(96, 107, 219, 0.22), transparent 65%),
    radial-gradient(520px 380px at 75% 80%, rgba(138, 111, 240, 0.18), transparent 65%);
}
.auth-card {
  width: min(440px, calc(100% - 2rem));
  background: var(--bg-2);
  border: 1px solid var(--stroke-2);
  border-radius: 24px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}
.auth-card h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.auth-card .sub { color: var(--muted); text-align: center; margin: 0 0 1.5rem; font-size: 0.95rem; }
.auth-card .btn-block { margin-top: 1.25rem; }
.auth-card .switch { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 1.25rem; }
.auth-card .switch a { color: var(--accent-2); font-weight: 600; }
.auth-card .switch a:hover { color: #fff; }

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  margin: 0.9rem 0 0.4rem;
}
input, select {
  width: 100%;
  border: 1px solid var(--stroke-2);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder { color: var(--muted-2); }
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 107, 219, 0.25);
}
.hint { font-size: 0.86rem; color: var(--muted); margin-top: 0.75rem; }
.msg {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
}
.msg.error { background: rgba(224, 106, 122, 0.14); color: #ffb4bf; border: 1px solid rgba(224, 106, 122, 0.3); }
.msg.ok { background: rgba(92, 201, 107, 0.12); color: #a9f0b2; border: 1px solid rgba(92, 201, 107, 0.3); }

/* legacy tabs (kept for the cabinet) */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  background: var(--bg-3);
  border-radius: 999px;
}
.tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 0.65rem; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.tab.active { background: var(--grad); color: #fff; }

/* OTP modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(420px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--stroke-2);
  border-radius: 24px;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
  position: relative;
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--bg-3);
  color: var(--muted);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1;
}
.modal-close:hover { color: #fff; background: var(--bg-4); }
.modal-card h2 { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; }
.modal-card .sub { text-align: center; color: var(--muted); font-size: 0.93rem; margin-bottom: 1.5rem; }
.modal-card .sub b { color: var(--text); font-weight: 600; }
.modal-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.modal-icon svg { width: 28px; height: 28px; }

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.otp input {
  padding: 0;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 14px;
  caret-color: var(--accent-2);
}
.otp input.filled { border-color: rgba(96, 107, 219, 0.55); }
.otp-actions { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.otp-resend { text-align: center; font-size: 0.9rem; color: var(--muted); }
.otp-resend button {
  border: 0; background: none; color: var(--accent-2); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit;
}
.otp-resend button:disabled { color: var(--muted-2); cursor: default; }

/* ----------------------------------------------------------------- legal */
.legal { padding: 2.5rem 0 4rem; }
.legal .panel {
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.legal h1 { font-size: 2rem; font-weight: 800; margin: 0 0 1rem; }
.legal h2 { margin: 1.75rem 0 0.5rem; font-size: 1.25rem; font-weight: 700; }
.legal p { margin: 0.5rem 0; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; color: var(--muted); }
.legal li { margin: 0.3rem 0; }
.back-link { display: inline-block; margin-bottom: 1rem; }

/* --------------------------------------------------------------- cabinet */
.cab-layout {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) { .cab-layout { grid-template-columns: 1fr; } }
.cab-side {
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  position: sticky;
  top: 1.5rem;
}
.cab-side .brand { margin-bottom: 1rem; }
.cab-nav { display: grid; gap: 0.35rem; }
.cab-nav button {
  text-align: left; border: 0; background: transparent; color: var(--muted);
  padding: 0.75rem 0.9rem; border-radius: 12px; cursor: pointer; font-weight: 600;
}
.cab-nav button.active, .cab-nav button:hover { background: var(--accent-soft); color: var(--text); }
.cab-main {
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  min-height: 480px;
  box-shadow: var(--shadow);
}
.cab-main h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.stat { padding: 1rem; border-radius: 14px; border: 1px solid var(--stroke); background: var(--bg-3); }
.stat .k { color: var(--muted); font-size: 0.82rem; }
.stat .v { font-size: 1.35rem; font-weight: 700; margin-top: 0.25rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; }
.plan {
  border: 1px solid var(--stroke); border-radius: 16px; padding: 1.1rem; background: var(--bg-3);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.plan.featured { border-color: rgba(96, 107, 219, 0.55); box-shadow: 0 0 0 1px rgba(96, 107, 219, 0.2); }
.plan .price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .meta { color: var(--muted); font-size: 0.9rem; }
.plan .btn { margin-top: auto; }
.qr-box {
  display: grid; place-items: center; gap: 0.75rem; padding: 1rem;
  border-radius: 16px; border: 1px dashed var(--stroke-2); margin-top: 1rem;
}
.qr-box canvas, .qr-box img { border-radius: 12px; background: #fff; padding: 8px; }
.config-link {
  word-break: break-all; font-family: ui-monospace, monospace; font-size: 0.82rem;
  color: var(--accent-2); cursor: pointer; padding: 0.75rem; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--stroke);
}

/* legacy helpers used by older pages */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-2); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.card p { color: var(--muted); }

/* ------------------------------------------------------------- animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: rise 0.6s ease both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
