@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
code, pre { font-family: var(--mono); }
code { color: #c4b5fd; font-size: 0.92em; }

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

/* —— NAV —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 220ms, border-color 220ms, backdrop-filter 220ms;
}
.topbar.scrolled {
  background: rgba(13, 13, 18, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
}
.topbar-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-text strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.brand-text small {
  display: block;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.36em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}
.menu {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.menu a {
  position: relative;
  padding: 6px 0;
  transition: color 160ms;
}
.menu a:hover { color: var(--text); }
.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.menu a:hover::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.link-quiet {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.link-quiet:hover { color: var(--text); }

/* —— BUTTONS —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  transition: filter 160ms, transform 140ms, box-shadow 160ms;
  box-shadow: 0 10px 28px rgba(90, 30, 255, 0.28);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-outline {
  background: transparent;
  border-color: var(--accent-line);
  box-shadow: none;
  color: var(--text);
}
.btn-outline:hover {
  background: var(--accent-soft);
  filter: none;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
  box-shadow: none;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); filter: none; }

/* —— HERO —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 100px 0 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 0.5%, 0); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(13,13,18,0.96) 0%, rgba(13,13,18,0.82) 36%, rgba(13,13,18,0.35) 58%, rgba(26,13,46,0.45) 100%),
    linear-gradient(180deg, rgba(13,13,18,0.55) 0%, transparent 40%, rgba(13,13,18,0.98) 100%);
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  max-width: 640px;
  animation: rise 900ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: rgba(123, 61, 255, 0.1);
  color: #c4b5fd;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 22px;
}
.brand-hero {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 10vw, 96px);
  letter-spacing: 0.06em;
  line-height: 0.92;
  color: var(--text);
}
.brand-hero-sub {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.46em;
  color: var(--accent);
  font-weight: 700;
}
.hero-tagline {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 16ch;
}
.hero-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 40ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* —— SECTIONS —— */
.band {
  padding: clamp(72px, 10vh, 110px) 0;
  position: relative;
}
.band-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.band-head {
  max-width: 560px;
  margin-bottom: 40px;
}
.band-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  font-family: var(--display);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.band-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 700;
}
.band-head p { color: var(--muted); font-size: 15.5px; }

/* Product showcase */
.showcase {
  border-radius: var(--radius-lg);
  border: var(--hairline);
  background: linear-gradient(180deg, #15151d, #0c0c12);
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,61,255,0.5), transparent);
}
.showcase-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(123, 61, 255, 0.18);
}
.showcase-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 6px 4px;
  color: var(--muted);
  font-size: 13.5px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feat {
  background: linear-gradient(180deg, rgba(23,23,34,0.95), rgba(12,12,18,0.98));
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: border-color 180ms, transform 180ms;
}
.feat:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 18px;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat h3 {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  font-weight: 700;
}
.feat p { color: var(--muted); font-size: 14px; }

/* Protect strip */
.protect {
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(135deg, rgba(26,13,46,0.65), rgba(13,13,18,0.95));
  box-shadow: var(--shadow);
}
.protect-copy { padding: clamp(28px, 4vw, 48px); }
.protect-copy h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.protect-copy > p { color: var(--muted); margin-bottom: 22px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--silver);
  font-size: 14px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #a78bfa, var(--accent));
}
.protect-art {
  min-height: 320px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(123, 61, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #120a1c, #0a0a0e);
  position: relative;
  overflow: hidden;
}
.protect-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,18,0.55), transparent 28%);
  pointer-events: none;
}
.protect-art img {
  width: min(78%, 340px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(123, 61, 255, 0.35));
  position: relative;
  z-index: 1;
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 24px;
}
.code-block {
  background: #0a0a10;
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  overflow: auto;
  color: #d4ccff;
  font-size: 13.5px;
  line-height: 1.75;
}
.steps { display: grid; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: var(--hairline);
  background: rgba(255,255,255,0.02);
}
.step span {
  font-family: var(--display);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.step strong { display: block; font-size: 14px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 13px; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.price-card {
  background: var(--panel);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(123,61,255,0.12), var(--panel) 42%);
}
.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 5px 9px;
  border-radius: 999px;
}
.price-card h3 {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.price-amt {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.price-card .sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  flex: 1;
  color: var(--silver);
  font-size: 14px;
}
.price-card li::before { content: "– "; color: var(--accent); }

/* Help */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.help-card {
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  background: var(--panel);
  transition: border-color 160ms, transform 160ms;
}
.help-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.help-card strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.help-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Honesty */
.honesty-card {
  text-align: center;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  border: var(--hairline);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123,61,255,0.16), transparent 55%),
    linear-gradient(180deg, #14141e, #0c0c12);
  max-width: 820px;
  margin: 0 auto;
}
.honesty-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 16px;
}
.honesty-card h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}
.honesty-card p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto;
  font-size: 15px;
}

/* Footer */
.site-foot {
  border-top: var(--hairline);
  padding: 36px 0 48px;
}
.foot-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}
.foot-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.foot-brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.foot-links a:hover { color: var(--text); }

/* Page shells (pricing/docs) */
.page-hero {
  padding: 120px 0 28px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.page-hero .lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 15.5px;
}
.page-body {
  padding: 0 0 80px;
}
.note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}

/* Auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123,61,255,0.18), transparent 50%),
    var(--bg);
}
.card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 0 50px rgba(90, 30, 255, 0.18);
}
.card h1 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.card > p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}
.card label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.card input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b0b10;
  color: var(--text);
  outline: none;
}
.card input:focus { border-color: var(--accent-line); }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.ok { color: var(--ok); font-size: 13px; margin-bottom: 8px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .menu { display: none; }
  .feat-grid, .price-grid, .help-grid { grid-template-columns: 1fr 1fr; }
  .protect, .install-grid { grid-template-columns: 1fr; }
  .protect-art { min-height: 240px; }
}
@media (max-width: 640px) {
  .feat-grid, .price-grid, .help-grid { grid-template-columns: 1fr; }
  .top-actions .link-quiet { display: none; }
  .brand-text small { display: none; }
  .hero { padding-top: 88px; }
}
