/* ═══════════════════════════════════════════════════════════════
   TANTALUM — Cinematic
   Pure black · deep blue radials · Bebas Neue + DM Sans + JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;1,300&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --black: #000;
  --ink-1: #050505;
  --ink-2: #0a0a0a;
  --ink-3: #1a1a1c;
  --ink-4: #1d1d1f;
  --hover: #2a2a2c;

  --white: #f5f5f7;
  --gray: #86868b;
  --gray-soft: #c8c8cb;
  --gray-dim: #4a4a4d;

  --blue: #2997ff;
  --blue-hover: #1a7de0;
  --blue-soft: rgba(41, 151, 255, 0.12);
  --blue-glow: rgba(41, 151, 255, 0.25);

  --red: #ff453a;
  --amber: #ff9f0a;
  --green: #28c840;

  --rule: rgba(255, 255, 255, 0.07);
  --rule-strong: rgba(255, 255, 255, 0.14);

  --font-display: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

  --radius: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 980px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.4s var(--ease);
  --t-fast: 0.2s var(--ease);

  --container: 1180px;
  --nav-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--white);
  background: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Divider — thin rule between sections ─── */
.divider {
  height: 1px;
  width: 100%;
  background: var(--rule);
}

/* ─── Film-edge accent (photographic detail) ─── */
.film-edge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

.film-edge::before, .film-edge::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.film-edge-start::after { display: none; }
.film-edge-end::before { display: none; }

.aurora, .aurora-mid, .grain { display: none !important; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--blue-hover); }

::selection { background: var(--blue); color: var(--white); }

/* ─── Type ─── */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.88;
  color: var(--white);
  text-transform: none;
}

h1 { font-size: clamp(72px, 14vw, 200px); }
h2 { font-size: clamp(48px, 8vw, 120px); }
h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }

p {
  color: var(--gray-soft);
  font-weight: 300;
}

strong { color: var(--white); font-weight: 600; }
em { font-style: normal; }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; color: var(--white); }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container-sm {
  width: min(720px, 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ─── Glow orbs (shared) ─── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ─── Nav (Apple-style frosted) ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 22px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}

.logo:hover { color: var(--white); }

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35) 0, transparent 55%),
    conic-gradient(from 200deg, var(--blue) 0deg, #7fb4ff 120deg, #a78bfa 220deg, var(--blue) 360deg);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 0 24px rgba(41,151,255,0.55);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a:not(.btn) {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.7);
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
}

.nav-links a:not(.btn):hover { color: var(--white); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  border-color: var(--blue-hover);
  box-shadow: 0 0 0 4px rgba(41,151,255,.2), 0 6px 20px rgba(41,151,255,.25);
}

.btn-paper, .btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-paper:hover, .btn-white:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-danger {
  background: rgba(255, 69, 58, 0.1);
  color: var(--red);
  border-color: rgba(255, 69, 58, 0.3);
}
.btn-danger:hover { background: rgba(255, 69, 58, 0.18); color: var(--red); }

.btn-coral { background: var(--amber); color: var(--black); border-color: var(--amber); }

.btn-google {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 500;
}
.btn-google:hover { background: #fff; color: var(--black); }
.btn-google svg { flex-shrink: 0; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ─── Cards & surfaces ─── */
.card, .glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--t-fast), background var(--t-fast);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  position: relative;
}

.card:hover { border-color: var(--rule-strong); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 60% 40%, #0d1e35 0%, var(--black) 68%);
}

.hero-eye {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  z-index: 2;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s var(--ease) forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 220px);
  line-height: 0.86;
  background: linear-gradient(180deg, #fff 25%, #3a3a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease) forwards;
  margin-bottom: 24px;
}

.hero h1 em { font-style: normal; color: var(--blue); -webkit-text-fill-color: var(--blue); }

.hero .lead {
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.55;
  max-width: 620px;
  z-index: 2;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s var(--ease) forwards;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 2;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease) forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.9s 1.2s var(--ease) forwards;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.s-caret {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  animation: cbounce 1.4s ease-in-out infinite;
}

@keyframes cbounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ─── Particle field (hero) ─── */
.pfield { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pfield span {
  position: absolute;
  border-radius: 50%;
  background: rgba(41, 151, 255, 0.7);
  animation: pfloat linear infinite;
}
@keyframes pfloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(-5vh) translateX(var(--dx)); opacity: 0; }
}

/* ─── Scroll-driven sticky zoom (used in pricing.html) ─── */
.zoom-outer {
  height: 250vh;
  position: relative;
}

.zoom-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a1426 0%, var(--black) 70%);
}

.zoom-text {
  font-family: var(--font-display);
  font-size: clamp(52px, 11vw, 136px);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 0.92;
  will-change: transform, opacity;
}

.zoom-text .label { color: var(--gray); display: block; }
.zoom-text .word {
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Automatic zoom-in: plays when element enters viewport ─── */
.auto-zoom-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink-4);
}

.zoom-auto {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 148px);
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 40px;
  transform: scale(0.25);
  opacity: 0;
}

.zoom-auto.zoom-playing {
  animation: autoZoomIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes autoZoomIn {
  from { transform: scale(0.22); opacity: 0; }
  40%  { opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}

/* ─── Marquee ─── */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
  margin: 60px 0;
}

.marquee-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  color: var(--white);
  letter-spacing: 0.04em;
  animation: mq 24s linear infinite;
}

@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Sections ─── */
.section {
  padding: clamp(100px, 14vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.section + .section { border-top: 1px solid var(--rule); }

.section-eye {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-title h2 { margin-bottom: 18px; }
.section-title p {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.55;
}

/* ─── Features grid (cinematic tiles) ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.feature {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  position: relative;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(41, 151, 255, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin-bottom: 22px;
}

.feature h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.feature p { font-size: 14px; color: var(--gray); }

.feature-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dim);
  letter-spacing: 0.08em;
}

/* ─── Download cards ─── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.download-card {
  padding: 32px;
  background: var(--ink-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.download-card.recommended {
  border-color: rgba(41, 151, 255, 0.45);
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 60%);
}

.download-card.recommended::before {
  content: 'Detected on your system';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-bottom-left-radius: var(--radius);
}

.download-os {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 0.9;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.02em;
}

.download-hash {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dim);
  word-break: break-all;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  border: 1px dashed var(--rule-strong);
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.price-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast), background var(--t-fast);
  position: relative;
}

.price-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-4px); }

.price-card.featured {
  border-color: rgba(41, 151, 255, 0.5);
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 60%);
}

.price-card .tier {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.price-card .tier .badge {
  color: var(--blue);
  margin-left: 6px;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.02em;
  margin: 14px 0 4px;
  color: var(--white);
  line-height: 1;
}

.price-card .amount span {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0;
}

.price-card ul {
  list-style: none;
  margin: 28px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--gray-soft);
  line-height: 1.5;
}

.price-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-family: var(--font-mono);
}

/* ─── Auth ─── */
.auth-shell {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  place-items: center;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 30%, #0d1e35 0%, var(--black) 75%);
}

.auth-card {
  width: min(440px, 100%);
  padding: 48px 40px;
  position: relative;
  z-index: 2;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 64px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  line-height: 0.92;
  background: linear-gradient(180deg, #fff 30%, #6b6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card .sub {
  font-size: 15px;
  margin-bottom: 32px;
  color: var(--gray);
  font-weight: 300;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ─── Forms ─── */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

input, select, textarea, .input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(41, 151, 255, 0.6);
  background: rgba(41, 151, 255, 0.06);
}

select option { background: var(--ink-4); }

.form-hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}

.search { max-width: 360px; }

/* ─── Stats grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast);
  position: relative;
}

.stat:hover { border-color: rgba(41, 151, 255, 0.3); }

.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
}

.stat .value {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.02em;
  margin-top: 12px;
  color: var(--white);
  line-height: 1;
}

.stat .icon { display: none; }

/* ─── Pills ─── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gray-soft);
}

.pill-active { background: rgba(40, 200, 64, 0.1); color: var(--green); border-color: rgba(40, 200, 64, 0.3); }
.pill-grace { background: rgba(255, 159, 10, 0.1); color: var(--amber); border-color: rgba(255, 159, 10, 0.3); }
.pill-canceled, .pill-suspended { background: rgba(255, 69, 58, 0.1); color: var(--red); border-color: rgba(255, 69, 58, 0.3); }
.pill-none { color: var(--gray); }
.pill-tier-basic { color: var(--gray-soft); }
.pill-tier-creator { color: var(--blue); border-color: rgba(41, 151, 255, 0.3); }
.pill-tier-pro { color: var(--amber); border-color: rgba(255, 159, 10, 0.3); }
.pill-tier-studio { color: var(--green); border-color: rgba(40, 200, 64, 0.3); }

/* ─── Tables ─── */
.table-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--rule);
}

.table tbody tr {
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background var(--t-fast);
}

.table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.table tbody tr.is-selected {
  background: rgba(41, 151, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--blue);
}

.table tbody tr:last-child { border-bottom: none; }
.table td { padding: 14px 18px; color: var(--gray-soft); }
.table td strong { color: var(--white); }

/* ─── Admin ─── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 64px 0 100px;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 40px);
}

.admin-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}

.admin-nav { display: flex; flex-direction: column; gap: 2px; }

.admin-nav button {
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--t-fast);
}

.admin-nav button:hover { color: var(--white); background: rgba(255, 255, 255, 0.04); }

.admin-nav button.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 3px 0 0 var(--blue);
}

.user-detail-panel {
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--blue);
}

.user-detail-panel[hidden] { display: none !important; }

.user-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.user-detail-header h2 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.02em;
}

.tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px;
}

.tile .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.tile .value {
  font-family: var(--font-display);
  font-size: 36px;
  margin-top: 8px;
  color: var(--white);
}

.token-box {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--rule-strong);
  word-break: break-all;
  color: var(--blue);
}

/* ─── FAQ ─── */
.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }

.faq .faq-body {
  padding-top: 14px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 80px 0 64px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-dim);
  letter-spacing: 0.04em;
}

/* ─── Alerts ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 16px;
  border: 1px solid;
  font-weight: 400;
}

.alert-error {
  background: rgba(255, 69, 58, 0.08);
  border-color: rgba(255, 69, 58, 0.3);
  color: var(--red);
}

.alert-success {
  background: rgba(40, 200, 64, 0.08);
  border-color: rgba(40, 200, 64, 0.25);
  color: var(--green);
}

.alert-info {
  background: rgba(41, 151, 255, 0.08);
  border-color: rgba(41, 151, 255, 0.25);
  color: var(--blue);
}

.alert-warning {
  background: rgba(255, 159, 10, 0.08);
  border-color: rgba(255, 159, 10, 0.3);
  color: var(--amber);
}

/* ─── Utilities ─── */
.text-gradient {
  background: linear-gradient(95deg, var(--blue) 0%, #a8d8ff 50%, var(--blue) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.text-muted { color: var(--gray); }
.text-soft { color: var(--gray-soft); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }

.flex { display: flex; }
.flex.between { justify-content: space-between; }
.flex.center { align-items: center; }
.flex.wrap { flex-wrap: wrap; }
.gap { gap: 16px; }
.gap-sm { gap: 10px; }
.gap-lg { gap: 28px; }
.grid { display: grid; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 28px; }
.mb-4 { margin-bottom: 16px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.page-header {
  padding: calc(var(--nav-h) + 80px) 0 56px;
  text-align: center;
}

.page-header h1 { margin-bottom: 16px; }
.page-header .sub {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 300;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ─── Reveal animations (intersection observer driven) ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.04s; }
.stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.20s; }
.stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.28s; }
.stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.36s; }
.stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.44s; }

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) forwards;
}
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }
.fade-up:nth-child(4) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal, .stagger > * { animation: none; opacity: 1; transform: none; transition: none; }
  .hero-eye, .hero h1, .hero .lead, .hero-actions, .scroll-hint { animation: none; opacity: 1; }
  .marquee-inner { animation: none; }
  .pfield { display: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(:last-child):not(:nth-last-child(2)) { display: none; }
  .admin-layout { grid-template-columns: 1fr; gap: 28px; }
  .admin-side { position: static; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   QoL v2 — Toast · Spinner · Skeleton · Password · Page Transition
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page transition ─── */
html { transition: opacity 0.2s var(--ease); }
html.page-leaving { opacity: 0; pointer-events: none; }

/* ─── Toast container ─── */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--ink-3);
  border: 1px solid var(--rule-strong);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  pointer-events: all;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}
.toast-in {
  animation: toastIn 0.28s var(--ease) forwards;
}
.toast-out {
  animation: toastOut 0.22s var(--ease) forwards;
}

@keyframes toastIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}

.toast-success { border-color: rgba(40,200,64,0.35); }
.toast-success .toast-icon { color: var(--green); }
.toast-error   { border-color: rgba(255,69,58,0.35); }
.toast-error   .toast-icon { color: var(--red); }
.toast-warning { border-color: rgba(255,159,10,0.35); }
.toast-warning .toast-icon { color: var(--amber); }
.toast-info    { border-color: var(--rule-strong); }
.toast-info    .toast-icon { color: var(--blue); }

.toast-icon { font-size: 15px; flex-shrink: 0; font-weight: 600; }
.toast-msg  { flex: 1; line-height: 1.4; }
.toast-close {
  background: none; border: none; color: var(--gray);
  cursor: pointer; font-size: 13px; padding: 0 2px;
  flex-shrink: 0; transition: color var(--t-fast);
  line-height: 1;
}
.toast-close:hover { color: var(--white); }

/* ─── Button loading spinner ─── */
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

[data-loading] { cursor: wait !important; opacity: 0.8; }

/* ─── Skeleton loading ─── */
.skeleton {
  background: linear-gradient(90deg, var(--ink-3) 25%, var(--hover) 50%, var(--ink-3) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.stat-skeleton .stat {
  background: none;
}
.stat-skeleton .value {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ink-3) 25%, var(--hover) 50%, var(--ink-3) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite;
}
.stat-skeleton .label {
  height: 12px; width: 60%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink-3) 25%, var(--hover) 50%, var(--ink-3) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.5s 0.1s infinite;
}

/* ─── Password strength bar ─── */
.pw-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-strength-track {
  flex: 1;
  height: 4px;
  background: var(--rule-strong);
  border-radius: 2px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.35s var(--ease), background 0.35s;
}
.pw-strength-fill.pw-weak   { background: var(--red); }
.pw-strength-fill.pw-fair   { background: var(--amber); }
.pw-strength-fill.pw-good   { background: #a8e063; }
.pw-strength-fill.pw-strong { background: var(--green); }
.pw-strength-fill.pw-great  { background: var(--blue); }

.pw-strength-label {
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 48px;
  text-align: right;
  transition: color 0.3s;
}
.pw-strength-label.pw-weak   { color: var(--red); }
.pw-strength-label.pw-fair   { color: var(--amber); }
.pw-strength-label.pw-good   { color: #a8e063; }
.pw-strength-label.pw-strong { color: var(--green); }
.pw-strength-label.pw-great  { color: var(--blue); }

/* ─── Field-level error ─── */
.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(255,69,58,0.15);
}
.form-group.has-error .field-error { display: block; }

/* ─── Mobile hamburger nav ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  flex-direction: column;
  gap: 4px;
  margin-left: 12px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 2px);
  left: 0; right: 0;
  background: rgba(5,5,5,0.98);
  border-bottom: 1px solid var(--rule-strong);
  padding: 20px 24px 28px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(20px);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-drawer.open {
  transform: none;
  opacity: 1;
}
.nav-drawer a {
  display: block;
  padding: 12px 0;
  color: var(--gray-soft);
  font-size: 16px;
  border-bottom: 1px solid var(--rule);
  transition: color var(--t-fast);
}
.nav-drawer a:hover { color: var(--white); }
.nav-drawer a.btn { text-align: center; margin-top: 10px; border-bottom: none; }

@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-drawer { display: flex; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}

/* ─── Connect card pulse (dashboard) ─── */
.connect-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.connect-pulse::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(40,200,64,0.4);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(40,200,64,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(40,200,64,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,200,64,0); }
}

/* ─── Copy button flash ─── */
.btn-copied {
  background: var(--green) !important;
  color: #000 !important;
  transition: background 0.25s, color 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  html, .toast, .toast-in, .toast-out, .pw-strength-fill, .btn-spinner,
  .skeleton, .stat-skeleton .value, .stat-skeleton .label,
  .connect-pulse::before { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   v13 — Universal Nav Panel · Cursor Glow · Scroll Progress
   Command Palette · Confetti · Ripple · Auth Glow · Page Enter
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hamburger ALWAYS visible (not mobile-only) ─── */
.nav-hamburger {
  display: flex !important;  /* override previous mobile-only display:none */
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  margin-left: 12px;
  border-radius: var(--radius);
  transition: background var(--t-fast);
}
.nav-hamburger:hover { background: rgba(255,255,255,0.07); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s var(--ease), opacity 0.22s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Universal Nav Panel (right-side drawer) ─── */
.nav-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 1998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.nav-panel-overlay.open { opacity: 1; pointer-events: all; }

.nav-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: rgba(5,5,5,0.97);
  border-left: 1px solid var(--rule-strong);
  z-index: 1999;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(24px);
}
.nav-panel.open { transform: none; }

.nav-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.nav-panel-logo { font-size: 18px; }

.nav-panel-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--rule);
  color: var(--gray);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-panel-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.nav-panel-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
}
.nav-panel-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6dd5ed);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}
.nav-panel-username { font-weight: 500; font-size: 15px; }
.nav-panel-usub { font-size: 12px; color: var(--gray); margin-top: 2px; }

.nav-panel-auth-prompt { margin-bottom: 24px; }

.nav-panel-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-panel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius);
  color: var(--gray-soft);
  font-size: 15px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-panel-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-panel-link-active { background: rgba(41,151,255,0.1) !important; color: var(--blue) !important; }
.nav-panel-link-icon { width: 20px; text-align: center; font-size: 16px; opacity: 0.7; }
.nav-panel-logout { color: var(--gray-dim) !important; margin-top: 8px; }
.nav-panel-logout:hover { color: var(--red) !important; background: rgba(255,69,58,0.08) !important; }

.nav-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}
.nav-panel-hint { font-family: var(--font-mono); font-size: 11px; color: var(--gray-dim); }
.nav-panel-hint kbd {
  background: rgba(255,255,255,0.08); border: 1px solid var(--rule-strong);
  border-radius: 4px; padding: 1px 5px; font-size: 10px; color: var(--gray-soft);
}
.nav-panel-online { font-family: var(--font-mono); font-size: 11px; color: var(--green); }

/* ─── Scroll progress bar ─── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #6dd5ed);
  z-index: 9997;
  transition: width 0.1s linear;
  border-radius: 0 1px 1px 0;
}

/* ─── Cursor glow ─── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,151,255,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: none;
}
.cursor-glow.cursor-glow-active {
  background: radial-gradient(circle, rgba(41,151,255,0.18) 0%, transparent 70%);
}

/* ─── Command palette ─── */
.cmd-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  z-index: 9995;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 140px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease);
}
.cmd-overlay.cmd-open { opacity: 1; pointer-events: all; }
.cmd-overlay.cmd-open .cmd-box { transform: translateY(0); }

.cmd-box {
  width: min(560px, 90vw);
  background: rgba(14,14,16,0.98);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(-12px);
  transition: transform 0.22s var(--ease);
}

.cmd-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
.cmd-search-icon { font-size: 18px; color: var(--gray-dim); flex-shrink: 0; }
.cmd-input {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 16px;
  color: var(--white);
  caret-color: var(--blue);
}
.cmd-input::placeholder { color: var(--gray-dim); }
.cmd-esc-hint {
  background: rgba(255,255,255,0.06); border: 1px solid var(--rule);
  border-radius: 4px; padding: 2px 7px; font-size: 11px; color: var(--gray-dim);
  font-family: var(--font-mono);
}

.cmd-results {
  list-style: none;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast);
}
.cmd-item:hover, .cmd-item-active { background: rgba(255,255,255,0.07); }
.cmd-item-icon { font-size: 16px; color: var(--gray-dim); width: 20px; text-align: center; flex-shrink: 0; }
.cmd-item-body { flex: 1; }
.cmd-item-label { display: block; font-size: 14px; color: var(--white); }
.cmd-item-label mark { background: rgba(41,151,255,0.25); color: var(--blue); border-radius: 2px; padding: 0 2px; }
.cmd-item-desc { display: block; font-size: 12px; color: var(--gray); margin-top: 2px; }
.cmd-item-arrow { color: var(--gray-dim); font-size: 14px; opacity: 0; transition: opacity var(--t-fast); }
.cmd-item:hover .cmd-item-arrow, .cmd-item-active .cmd-item-arrow { opacity: 1; }

.cmd-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dim);
}
.cmd-footer kbd {
  background: rgba(255,255,255,0.07); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1px 5px; font-size: 10px; margin-right: 2px;
}

/* ─── Ripple effect ─── */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: rippleAnim 0.55s linear forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ─── Page enter animation ─── */
@keyframes pageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body { animation: pageEnter 0.4s var(--ease) both; }

/* ─── Auth card animated glow ─── */
.auth-card {
  animation: authCardGlow 5s ease-in-out infinite alternate;
}
@keyframes authCardGlow {
  from { box-shadow: 0 0 0 0 rgba(41,151,255,0); }
  to   { box-shadow: 0 0 50px rgba(41,151,255,0.10), 0 0 100px rgba(41,151,255,0.05); }
}

/* ─── Toast with progress bar ─── */
.toast { position: relative; overflow: hidden; }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
  width: 100%;
  animation: toastProgress linear forwards;
  transform-origin: left;
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ─── Typewriter cursor ─── */
.typewriter-cursor {
  display: inline-block;
  color: var(--blue);
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── Form success state ─── */
.form-success-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(5,5,5,0.95);
  border-radius: inherit;
  z-index: 10;
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.form-success-check {
  font-size: 52px;
  color: var(--green);
  animation: popIn 0.5s var(--ease) both;
}
@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.form-success-text {
  font-family: var(--font-display);
  font-size: 28px;
  margin-top: 16px;
  letter-spacing: 0.03em;
}

/* ─── Floating particle background for auth pages ─── */
.auth-shell { position: relative; }
.auth-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(41,151,255,0.15);
  animation: floatParticle linear infinite;
  pointer-events: none;
}
@keyframes floatParticle {
  from { transform: translateY(0) scale(1); opacity: 0.4; }
  50%  { opacity: 0.7; }
  to   { transform: translateY(-120px) scale(0.6); opacity: 0; }
}

/* ─── Plan card glow on hover (pricing) ─── */
.plan-head-cell:not(:first-child):hover,
.plan-head-cell.featured-col {
  transition: box-shadow 0.3s;
}
.plan-head-cell.featured-col {
  box-shadow: inset 0 0 0 1px rgba(41,151,255,0.3), 0 0 40px rgba(41,151,255,0.06);
}

/* ─── OS detection highlight (download) ─── */
.download-card-recommended {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 1px var(--blue), 0 0 30px rgba(41,151,255,0.12);
}
.download-recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  background: rgba(41,151,255,0.1);
  border: 1px solid rgba(41,151,255,0.25);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

/* ─── Keyboard shortcut badge in nav ─── */
.nav-cmd-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-dim);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav:hover .nav-cmd-hint { opacity: 1; }
.nav-cmd-hint kbd {
  background: rgba(255,255,255,0.07); border: 1px solid var(--rule);
  border-radius: 3px; padding: 1px 4px; font-size: 9px;
}

/* ─── Mobile drawer (kept for backwards compat) ─── */
.nav-drawer {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 2px);
  left: 0; right: 0;
  background: rgba(5,5,5,0.98);
  border-bottom: 1px solid var(--rule-strong);
  padding: 20px 24px 28px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(20px);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-drawer.open { transform: none; opacity: 1; display: flex; }
.nav-drawer a { display: block; padding: 12px 0; color: var(--gray-soft); font-size: 16px; border-bottom: 1px solid var(--rule); transition: color var(--t-fast); }
.nav-drawer a:hover { color: var(--white); }
.nav-drawer a.btn { text-align: center; margin-top: 10px; border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════
   v15 — Premium polish layer
   ═══════════════════════════════════════════════════════════════ */

/* ─── Gradient-border card (hover) ─── */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(41,151,255,.5), transparent 60%, rgba(41,151,255,.15));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.gradient-border:hover::before { opacity: 1; }

/* ─── Section eye improved ─── */
.section-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-eye::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ─── Nav scrolled state ─── */
.nav-scrolled {
  background: rgba(0,0,0,0.92) !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
}

/* ─── Feature card spotlight (used in JS) ─── */
.feat-v2 {
  --mx: 50%;
  --my: 50%;
}

/* ─── Download card icon area ─── */
.download-card svg { color: var(--gray-dim); transition: color var(--t-fast); }
.download-card:hover svg { color: var(--blue); }
.download-card.recommended svg { color: var(--blue); }

/* ─── Improved scroll-hint ─── */
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--white), transparent);
  margin: 0 auto;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: 0.3; }
}

/* ─── Logo mark glow on nav hover ─── */
.logo:hover .logo-mark {
  box-shadow: 0 0 0 3px rgba(41,151,255,.25);
}

/* ─── Section dividers with label ─── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}
.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-rule span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dim);
  white-space: nowrap;
}

/* ─── Ink-highlighted number ─── */
.num-highlight {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--blue);
  display: block;
}

/* ─── Micro-badge ─── */
.micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(41,151,255,.08);
  border: 1px solid rgba(41,151,255,.18);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ─── Auth card polish ─── */
.auth-card {
  background: var(--ink-4) !important;
  border-color: var(--rule-strong) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) !important;
}

/* ─── Consistent focus ring ─── */
:focus-visible {
  outline: 2px solid rgba(41,151,255,.6);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .cursor-glow, .cmd-box, .nav-panel, .auth-card, .typewriter-cursor { animation: none !important; transition: none !important; }
  .ripple-wave { animation: none; }
  .text-gradient { animation: none; background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — Comprehensive responsive fixes
   Breakpoints: 900px · 720px · 520px · 380px
   ═══════════════════════════════════════════════════════════════ */

/* ─── 900px — tablet-ish ─── */
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(64px, 14vw, 180px); }
  .section { padding: clamp(72px, 12vw, 120px) 0; }
  .section-title { margin-bottom: 48px; }
  h2 { font-size: clamp(40px, 8vw, 80px) !important; }
}

/* ─── 720px — mobile ─── */
@media (max-width: 720px) {
  /* Container edges */
  .container,
  .container-sm { width: min(100%, 100% - 32px); }

  /* Hero */
  .hero { min-height: 92vh; padding-top: calc(var(--nav-h) + 12px); }
  .hero h1 { font-size: clamp(56px, 13vw, 120px); margin-bottom: 16px; }
  .hero .lead { font-size: clamp(15px, 3.5vw, 19px); }
  .hero-sub { font-size: 15px !important; }
  .hero-actions { gap: 12px; margin-top: 28px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: clamp(56px, 10vw, 96px) 0; }
  .section-title { margin-bottom: 40px; }

  /* Feature grid: already auto-fit but ensure 1-col on narrow */
  .features { grid-template-columns: 1fr; }
  .feature { padding: 28px 24px; }

  /* Download grid */
  .download-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat .value { font-size: 44px; }

  /* Tables — horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  /* Scroll hint hide on mobile (UX) */
  .scroll-hint { display: none; }

  /* Section eye / labels */
  .section-eye { font-size: 11px; }

  /* Auth cards */
  .auth-card { padding: 36px 24px !important; }

  /* Dashboard */
  .dash-grid { grid-template-columns: 1fr !important; }
  .dash-actions { flex-direction: column; gap: 10px; }
  .dash-actions .btn { width: 100%; }

  /* Billing / plan sections */
  .bill-row { flex-direction: column; gap: 12px; align-items: flex-start !important; }

  /* General 2-col grids → 1 col */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
}

/* ─── 520px — small phones ─── */
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(48px, 12vw, 80px); }
  h2 { font-size: clamp(32px, 9vw, 60px) !important; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat .value { font-size: 40px; }

  /* Auth */
  .auth-card { margin: 16px; padding: 28px 20px !important; }

  /* Nav panel full-width on tiny screens */
  .nav-panel { width: 100vw; }

  /* Section padding */
  .section { padding: 48px 0; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ─── 380px — very small ─── */
@media (max-width: 380px) {
  .hero h1 { font-size: 44px; }
  h2 { font-size: 32px !important; }
  .container,
  .container-sm { width: min(100%, 100% - 24px); }
  .plan-cta, .btn-block { font-size: 13px; }
}
/* -- Before/After Slider -- */
.comparison-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.img-compare {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  user-select: none;
}
.img-compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.img-compare .img-before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.compare-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--blue);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.img-compare:hover .compare-handle {
  transform: translate(-50%, -50%) scale(1.1);
}
.comparison-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.thumb-btn {
  background: var(--ink-3);
  border: 1px solid var(--rule);
  color: var(--gray);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.thumb-btn.active, .thumb-btn:hover {
  background: rgba(41,151,255,.1);
  color: var(--blue);
  border-color: rgba(41,151,255,.3);
}
