/* ============================================================
   Osmium — design system
   ============================================================ */

:root {
  --bg: #07070a;
  --bg-2: #0b0b10;
  --surface: #101017;
  --surface-2: #15151e;
  --surface-3: #1b1b26;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f8;
  --muted: #9a9aac;
  --muted-2: #6d6d80;

  --accent: #7c5cff;
  --accent-2: #b06cff;
  --accent-soft: rgba(124, 92, 255, 0.14);

  --success: #3ddc97;
  --danger: #ff5d6c;
  --warning: #ffb020;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

::selection { background: rgba(124, 92, 255, 0.45); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(124, 92, 255, 0.18), transparent 65%),
    radial-gradient(800px 520px at 92% 8%, rgba(176, 108, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #08080c 0%, #07070a 55%, #060609 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.bg-orb--1 { width: 520px; height: 520px; background: #4b2bff; top: -180px; left: -120px; }
.bg-orb--2 { width: 440px; height: 440px; background: #7b2bff; top: 120px; right: -160px; animation-delay: -6s; }
.bg-orb--3 { width: 380px; height: 380px; background: #2b1a7a; bottom: -220px; left: 40%; animation-delay: -12s; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 50px, 0) scale(1.12); }
}

/* ---------- layout primitives ---------- */

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section--tight { padding: 64px 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.hidden { display: none !important; }
.grad {
  background: linear-gradient(100deg, #a98bff, #d2b6ff 55%, #8f6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------- brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; font-size: 15px; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--text); }
.brand:hover { opacity: 0.9; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(124, 92, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.26); }

.btn-quiet { color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn-danger { background: rgba(255, 93, 108, 0.14); border-color: rgba(255, 93, 108, 0.4); color: #ff97a1; }
.btn-danger:hover { background: rgba(255, 93, 108, 0.22); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 34px; height: 34px; border-radius: 8px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cards / badges ---------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card-pad { padding: 24px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--ok { color: #8ef2c4; border-color: rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.1); }
.badge--warn { color: #ffd68a; border-color: rgba(255, 176, 32, 0.35); background: rgba(255, 176, 32, 0.1); }
.badge--danger { color: #ff9aa4; border-color: rgba(255, 93, 108, 0.35); background: rgba(255, 93, 108, 0.1); }
.badge--accent { color: #cbb8ff; border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.14); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; width: 18px; height: 18px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(16px);
  padding: 16px 24px 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- hero ---------- */

.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin: 20px 0 22px; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--muted-2); font-size: 12.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* terminal visual */
.terminal {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0d0d14, #09090e);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(124, 92, 255, 0.08);
  overflow: hidden;
}
.terminal::after {
  content: '';
  position: absolute;
  inset: -40% 30% 55% -20%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c38; }
.terminal-bar .dots i:nth-child(1) { background: #ff5f57; }
.terminal-bar .dots i:nth-child(2) { background: #febc2e; }
.terminal-bar .dots i:nth-child(3) { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; }
.terminal-body { padding: 20px 18px 24px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; }
.terminal-body .ln { display: flex; gap: 10px; white-space: pre-wrap; }
.terminal-body .n { color: #3d3d4d; user-select: none; width: 16px; text-align: right; }
.tok-key { color: #c4a5ff; }
.tok-fn { color: #7fd4ff; }
.tok-str { color: #9be8a8; }
.tok-num { color: #ffcf7a; }
.tok-com { color: #565672; }
.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted-2);
  font-size: 12px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 16, 23, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 12px;
}
.float-chip strong { display: block; font-size: 13px; }
.float-chip .muted-2 { font-size: 11px; }
.float-chip--a { top: 42px; right: -22px; animation: floatY 6s ease-in-out infinite; }
.float-chip--b { bottom: 54px; left: -26px; animation: floatY 7s ease-in-out infinite reverse; }
@keyframes floatY { 50% { transform: translateY(-10px); } }

/* ---------- logo strip ---------- */

.strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.strip-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.strip-item svg { width: 17px; height: 17px; color: var(--accent-2); }

/* ---------- features ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: rgba(124, 92, 255, 0.35); transform: translateY(-3px); }
.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  background: rgba(124, 92, 255, 0.12);
  color: #c9b7ff;
  margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- script cards ---------- */

.script-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.script-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.script-card:hover { border-color: var(--line-strong); }
.script-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.script-card h3 { font-size: 15.5px; }
.script-card pre {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #a9b4c8;
  max-height: 128px;
  overflow: hidden;
  white-space: pre;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* ---------- hub browser ---------- */

.hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.hub-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 240px;
  transition: border-color 0.2s ease;
}
.hub-search:focus-within { border-color: var(--line-strong); }
.hub-search svg { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.hub-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }

.script-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 84px;
}

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.step h3 { margin: 14px 0 8px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 640px; }

/* ---------- cta ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.3);
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(124, 92, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #12101d, #0b0a12);
  padding: 64px 32px;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); }
.cta p { color: var(--muted); margin: 16px auto 30px; max-width: 520px; }
.cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 104px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 14px; font-family: var(--font); font-weight: 600; }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12.5px; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 16px; }
.label { font-size: 13px; font-weight: 500; color: #c3c3d2; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label a { color: var(--accent-2); font-weight: 500; font-size: 12.5px; }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.input::placeholder { color: #5c5c70; }
.input:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.input.is-invalid { border-color: rgba(255, 93, 108, 0.7); box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.14); }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.pw-toggle svg { width: 17px; height: 17px; }

.hint { font-size: 12px; color: var(--muted-2); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.checkbox input { margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; }
.checkbox a { color: var(--accent-2); }

.error-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 93, 108, 0.4);
  background: rgba(255, 93, 108, 0.1);
  color: #ffb3ba;
  font-size: 13px;
  margin-bottom: 18px;
}
.error-banner svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.error-banner.is-ok { border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.1); color: #a4f5cf; }

.strength { display: flex; gap: 5px; margin-top: 2px; }
.strength i { height: 3px; flex: 1; border-radius: 99px; background: rgba(255, 255, 255, 0.1); transition: background 0.2s ease; }
.strength[data-level="1"] i:nth-child(1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warning); }
.strength[data-level="3"] i:nth-child(-n+3) { background: #b0d840; }
.strength[data-level="4"] i { background: var(--success); }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #1f1f28;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-google:hover { box-shadow: 0 8px 24px -10px rgba(255, 255, 255, 0.25); }
.btn-google:active { transform: translateY(1px); }
.btn-google svg { width: 18px; height: 18px; }

/* ---------- auth screens ---------- */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.02fr 0.98fr; }
.auth-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 500px at 10% 0%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(500px 400px at 110% 100%, rgba(176, 108, 255, 0.16), transparent 60%),
    #08080c;
}
.auth-showcase h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 34px 0 16px; max-width: 460px; }
.auth-showcase > div > p { color: var(--muted); max-width: 420px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.auth-point .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(61, 220, 151, 0.14);
  border: 1px solid rgba(61, 220, 151, 0.3);
  color: var(--success);
}
.auth-point .tick svg { width: 12px; height: 12px; }
.auth-stats { display: flex; gap: 36px; margin-top: 44px; }
.auth-stats strong { display: block; font-family: var(--display); font-size: 22px; }
.auth-stats span { color: var(--muted-2); font-size: 12px; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 24px;
}
.tab {
  padding: 9px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab.is-active { background: rgba(124, 92, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35); }

.auth-foot { margin-top: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-foot a { color: var(--accent-2); font-weight: 500; }
.auth-legal { margin-top: 28px; color: var(--muted-2); font-size: 11.5px; text-align: center; line-height: 1.7; }

.auth-preview { margin-top: 40px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(12, 12, 18, 0.8); overflow: hidden; }
.auth-preview-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.auth-preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c38; }
.auth-preview-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.preview-tile { padding: 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.preview-tile b { font-family: var(--display); font-size: 16px; display: block; }
.preview-tile span { font-size: 10.5px; color: var(--muted-2); }

/* ---------- app shell ---------- */

.app { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.85);
  backdrop-filter: blur(14px);
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); padding: 10px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-link svg { width: 17px; height: 17px; flex: none; }
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.side-link.is-active { color: #fff; background: rgba(124, 92, 255, 0.15); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.28); }
.side-link .count { margin-left: auto; font-size: 11px; color: var(--muted-2); background: rgba(255, 255, 255, 0.06); border-radius: 99px; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.side-user .name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.side-user .mail { font-size: 11px; color: var(--muted-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }

.avatar {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background-size: cover;
  background-position: center;
}
.avatar--lg { width: 54px; height: 54px; font-size: 19px; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.sidebar-toggle { display: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(14px);
}
.topbar h1 { font-size: 18px; }
.topbar .top-actions { display: flex; align-items: center; gap: 10px; }
.top-search {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-width: 260px;
}
.top-search svg { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.top-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }

.content { padding: 32px; max-width: 1280px; width: 100%; }
.panel { display: none; animation: fadeUp 0.25s ease; }
.panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h2 { font-size: 24px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.stat .k { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat .v { font-family: var(--display); font-size: 30px; margin-top: 8px; letter-spacing: -0.03em; }
.stat .d { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.stat .up { color: var(--success); }

.panel-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-card-head h3 { font-size: 15px; }
.panel-card-body { padding: 22px; }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-size: 13.5px; font-weight: 500; }
.list-row .s { font-size: 12px; color: var(--muted-2); }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 12px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.empty svg { width: 34px; height: 34px; color: var(--muted-2); }
.empty h3 { font-size: 16px; color: var(--text); }
.empty p { font-size: 13.5px; max-width: 340px; }

/* ---------- tables (admin) ---------- */

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--surface); }
table.user-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.user-table th:last-child,
.user-table td:last-child {
  position: sticky;
  right: 0;
  background: var(--surface);
  box-shadow: -14px 0 24px -18px rgba(0, 0, 0, 0.95);
  z-index: 1;
}
.user-table th:last-child { background: #131319; }
.user-table tbody tr:hover td:last-child { background: #18181f; }
.user-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.user-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.user-table tr:last-child td { border-bottom: 0; }
.user-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.user-cell { display: flex; align-items: center; gap: 11px; min-width: 168px; }
.user-cell .name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.user-cell .mail { color: var(--muted-2); font-size: 11.5px; line-height: 1.3; }
.cell-muted { color: var(--muted-2); font-size: 12.5px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.chip.is-active { color: #fff; border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.16); }

.menu-wrap { position: relative; display: inline-block; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 176px;
  padding: 6px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #14141c;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
}
.menu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.menu button.danger { color: #ff8f99; }
.menu button.danger:hover { background: rgba(255, 93, 108, 0.12); }

/* ---------- admin gate / modal / toast ---------- */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.gate-card { width: min(410px, 100%); padding: 32px; }
.gate-card .lock {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.13);
  color: #c9b7ff;
  margin-bottom: 18px;
}
.gate-card .lock svg { width: 21px; height: 21px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.18s ease;
}
.modal {
  width: min(430px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #12121a;
  box-shadow: 0 40px 90px -30px #000;
  padding: 26px;
  animation: pop 0.2s ease;
}
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 13.5px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(6px); } }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #15151f;
  box-shadow: 0 20px 45px -18px #000;
  font-size: 13px;
  animation: toastIn 0.22s ease;
  max-width: 340px;
}
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.toast.is-ok i { background: var(--success); }
.toast.is-error i { background: var(--danger); }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all 0.2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- misc ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.brand-hr { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

code.inline {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #cfc6ff;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .user-table th, .user-table td { padding-left: 13px; padding-right: 13px; }
  .user-table th:nth-child(6), .user-table td:nth-child(6) { display: none; }
  .user-table th:last-child, .user-table td:last-child { box-shadow: none; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .float-chip--a { right: 8px; }
  .float-chip--b { left: 8px; }
  .feature-grid, .script-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 30px 0 60px -30px #000;
  }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
  .topbar { padding: 0 18px; }
  .top-search { display: none; }
  .sidebar-toggle { display: inline-flex; }
  .content { padding: 22px 18px; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0; }
  .feature-grid, .script-grid, .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 44px 20px; }
  .hero-actions .btn { width: 100%; }
  .terminal-body { font-size: 11.5px; }
  .float-chip { display: none; }
  .stat .v { font-size: 24px; }
  .auth-panel { padding: 28px 18px; }
}
