:root {
  color-scheme: dark;
  --bg: #080b10;
  --surface: #10151d;
  --surface-2: #151b25;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7f4;
  --muted: #9aa5a1;
  --accent: #77f36b;
  --accent-ink: #071006;
  --violet: #8995ff;
  --warning: #f0b429;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 7%, rgba(119, 243, 107, 0.12), transparent 27rem),
    radial-gradient(circle at 90% 22%, rgba(111, 124, 255, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  content: "";
  pointer-events: none;
}

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -6rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: #fff;
  color: #000;
}

.skip-link:focus { top: 1rem; }

.demo-ribbon {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-bottom: 1px solid rgba(240, 180, 41, 0.25);
  background: rgba(240, 180, 41, 0.1);
  color: #f7d58e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.demo-ribbon__dot {
  width: 0.46rem;
  height: 0.46rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0.8rem rgba(240, 180, 41, 0.7);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 16, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img { object-fit: contain; }
.brand strong { color: var(--accent); }
.brand--small { font-size: 0.9rem; }

.nav-link {
  color: #cbd2cf;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover { color: var(--accent); }

main { min-height: calc(100vh - 14rem); }

.hero {
  display: grid;
  width: min(var(--max), 90vw);
  min-height: 42rem;
  margin: 0 auto;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  padding: clamp(4rem, 9vw, 8.5rem) 0;
}

.hero__content { max-width: 46rem; }

.eyebrow,
.section-kicker,
.card-label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(119, 243, 107, 0.34);
  border-radius: 999px;
  background: rgba(119, 243, 107, 0.07);
  color: #c5ffbf;
}

.eyebrow span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(119, 243, 107, 0.8);
}

.eyebrow--violet {
  border-color: rgba(137, 149, 255, 0.35);
  background: rgba(137, 149, 255, 0.08);
  color: #cbd0ff;
}

.eyebrow--violet span { background: var(--violet); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1,
.auth-copy h1,
.dashboard__header h1,
.error-page h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 780;
}

.hero h1 em,
.auth-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero__lead,
.auth-copy > p,
.dashboard__header > div > p:last-child {
  max-width: 42rem;
  color: #adb7b3;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: var(--accent-ink); }
.button--discord { background: #5865f2; color: #fff; box-shadow: 0 0.8rem 2rem rgba(88, 101, 242, 0.22); }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text); }
.button--full { width: 100%; }
.button--small { min-height: 2.55rem; font-size: 0.85rem; }

.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
.back-link:focus-visible,
.scenario:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.microcopy {
  margin: 1rem 0 0;
  color: #78837f;
  font-size: 0.8rem;
}

.hero__visual { position: relative; min-height: 28rem; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb--one {
  top: 6%; right: 3%; width: 15rem; height: 15rem;
  background: rgba(119, 243, 107, 0.13);
  box-shadow: 0 0 6rem rgba(119, 243, 107, 0.2);
}

.orb--two {
  bottom: 2%; left: 0; width: 12rem; height: 12rem;
  background: rgba(111, 124, 255, 0.12);
  box-shadow: 0 0 6rem rgba(111, 124, 255, 0.22);
}

.preview-card,
.panel-card,
.consent-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(26, 32, 42, 0.96), rgba(13, 17, 24, 0.96));
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

.preview-card {
  position: absolute;
  top: 50%; left: 50%;
  width: min(100%, 24rem);
  min-height: 20rem;
  padding: 1.7rem;
  transform: translate(-50%, -50%) rotate(2deg);
  border-color: rgba(119, 243, 107, 0.3);
  border-radius: 1.4rem;
}

.preview-card__top,
.preview-card__row,
.vip-card__head,
.consent-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-pill,
.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(119, 243, 107, 0.25);
  border-radius: 999px;
  background: rgba(119, 243, 107, 0.08);
  color: #c5ffbf;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.status-pill i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }
.preview-card__label { margin: 2.5rem 0 0.2rem; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
.preview-card h2 { margin-bottom: 2.5rem; font-size: 2.3rem; }
.preview-card__row { padding: 0.72rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.preview-card__row strong { color: var(--text); }

.process-section,
.truth-section {
  width: min(var(--max), 90vw);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 42rem; }
.section-heading h2,
.truth-section h2 { font-size: clamp(2.2rem, 4.8vw, 4.5rem); }

.steps {
  display: grid;
  margin: 3rem 0 0;
  padding: 0;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--line);
  list-style: none;
}

.steps li { min-height: 15rem; padding: 1.8rem; background: rgba(13, 17, 24, 0.96); }
.steps li > span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 0.76rem; }
.steps h3 { margin: 4rem 0 0.8rem; font-size: 1.35rem; }
.steps p { color: var(--muted); }

.truth-section { display: grid; gap: 4rem; grid-template-columns: 0.75fr 1.25fr; }
.truth-grid { display: grid; gap: 0.7rem; }
.truth-grid p { display: grid; margin: 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 0.8rem; background: rgba(255,255,255,0.025); }
.truth-grid strong { color: var(--text); }
.truth-grid span { color: var(--muted); font-size: 0.88rem; }

.inline-notice,
.demo-disclaimer,
.safety-note {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--warning);
  background: rgba(240, 180, 41, 0.08);
  color: #f3d597;
  font-size: 0.86rem;
}

.inline-notice { margin-bottom: 1rem; }

.auth-layout {
  display: grid;
  width: min(1030px, 90vw);
  min-height: calc(100vh - 12rem);
  margin: 0 auto;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: 1fr minmax(20rem, 0.72fr);
  padding: 4rem 0 6rem;
}

.auth-copy h1 { font-size: clamp(3.2rem, 6vw, 5.8rem); }
.back-link { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); font-size: 0.84rem; text-decoration: none; }
.back-link:hover { color: var(--text); }
.safety-note { margin-top: 2rem; }

.consent-card { padding: clamp(1.4rem, 4vw, 2rem); border-color: rgba(137, 149, 255, 0.26); border-radius: 1.25rem; }
.consent-card__brand { justify-content: flex-start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.consent-card__brand div:last-child { display: grid; }
.consent-card__brand span, .demo-account span { color: var(--muted); font-size: 0.72rem; }
.discord-mark { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 0.8rem; background: #5865f2; color: #fff; font-size: 1.25rem; }
.demo-account { display: flex; align-items: center; gap: 0.85rem; margin: 1.4rem 0; padding: 1rem; border-radius: 0.85rem; background: rgba(255,255,255,0.035); }
.demo-account > div:last-child { display: grid; }
.avatar { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #8995ff, #5865f2); color: #fff; font-weight: 900; }
.permission-list { display: grid; gap: 0.8rem; margin: 0 0 1.5rem; padding: 0; color: #cbd2cf; font-size: 0.84rem; list-style: none; }
.permission-list li { display: flex; gap: 0.6rem; }
.permission-list li span { color: var(--accent); }
.permission-list__off { color: var(--muted); }
.permission-list__off span { color: #ff8f87 !important; }
.consent-card__fine { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.7rem; text-align: center; }

.dashboard { width: min(var(--max), 90vw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.dashboard__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.dashboard__header h1 { margin-bottom: 0.8rem; font-size: clamp(2.7rem, 5vw, 5.2rem); }
.dashboard__header > div > p:last-child { margin-bottom: 0; font-size: 1rem; }
.dashboard-grid { display: grid; gap: 1rem; grid-template-columns: minmax(16rem, 0.65fr) minmax(20rem, 1.35fr); }
.panel-card { position: relative; padding: 1.5rem; overflow: hidden; border-radius: 1rem; }
.profile-card { display: flex; align-items: center; gap: 1rem; }
.profile-card h2 { margin: 0 0 0.25rem; font-size: 1.45rem; }
.profile-card p { margin-bottom: 0; }
.avatar--large { width: 3.7rem; height: 3.7rem; }
.connection-badge { position: absolute; right: 1rem; bottom: 1rem; border-color: rgba(137,149,255,0.25); background: rgba(137,149,255,0.08); color: #cbd0ff; }
.muted { color: var(--muted); }
.card-label { margin-bottom: 0.5rem; font-size: 0.68rem; }

.vip-card { min-height: 23rem; border-color: rgba(119,243,107,0.3); }
.vip-card--free { border-color: rgba(84,205,255,0.32); }
.vip-card--neutral { border-color: var(--line); }
.vip-card__shine { position: absolute; top: -8rem; right: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: rgba(119,243,107,0.1); filter: blur(6px); }
.vip-card--free .vip-card__shine { background: rgba(84,205,255,0.11); }
.vip-card--neutral .vip-card__shine { background: rgba(255,255,255,0.045); }
.vip-card__head { position: relative; }
.vip-card__head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.vip-card__description { max-width: 34rem; margin: 1.5rem 0; color: var(--muted); }
.status-list { position: relative; margin: 0; }
.status-list div { display: grid; padding: 0.7rem 0; border-top: 1px solid var(--line); gap: 0.5rem; grid-template-columns: 8rem 1fr; }
.status-list dt { color: var(--muted); font-size: 0.78rem; }
.status-list dd { margin: 0; font-size: 0.82rem; font-weight: 750; text-align: right; }

.scenario-card h2 { margin-bottom: 0.6rem; font-size: 1.65rem; }
.scenario-card > p.muted { font-size: 0.82rem; }
.scenario-list { display: grid; gap: 0.5rem; margin-top: 1rem; }
.scenario-list form { margin: 0; }
.scenario { display: flex; width: 100%; align-items: center; gap: 0.7rem; padding: 0.72rem 0.8rem; border: 1px solid var(--line); border-radius: 0.65rem; background: rgba(255,255,255,0.025); color: #cbd2cf; cursor: pointer; text-align: left; }
.scenario:hover { border-color: rgba(119,243,107,0.35); }
.scenario--selected { border-color: rgba(119,243,107,0.45); background: rgba(119,243,107,0.07); color: #d8ffd4; }
.scenario span { color: var(--accent); }

.integration-card ul { display: grid; margin: 0; padding: 0; gap: 0.3rem; list-style: none; }
.integration-card li { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.integration-card li:last-child { border-bottom: 0; }
.integration-card li div { display: grid; }
.integration-card small { color: var(--muted); }
.indicator { width: 0.55rem; height: 0.55rem; flex: 0 0 auto; border-radius: 50%; }
.indicator--demo { background: var(--warning); box-shadow: 0 0 0.7rem rgba(240,180,41,0.55); }
.indicator--on { background: var(--mint); box-shadow: 0 0 0.7rem rgba(102,230,183,0.55); }
.indicator--off { border: 1px solid #65706c; background: transparent; }
.demo-disclaimer { margin-top: 1rem; }

.error-page { width: min(720px, 90vw); margin: 0 auto; padding: 8rem 0; text-align: center; }
.error-page h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.error-page p:not(.section-kicker) { margin-bottom: 2rem; color: var(--muted); }

.site-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 2.5rem 5vw; border-top: 1px solid var(--line); background: #06080c; color: var(--muted); font-size: 0.76rem; }
.site-footer p { margin: 0.5rem 0 0; }
.site-footer .risk { max-width: 37rem; text-align: right; }

@media (max-width: 850px) {
  .hero, .auth-layout, .truth-section { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero__visual { min-height: 25rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .steps h3 { margin-top: 2rem; }
  .dashboard__header, .site-footer { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .site-footer .risk { text-align: left; }
}

@media (max-width: 560px) {
  .demo-ribbon { font-size: 0.62rem; }
  .site-header { padding-inline: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .hero h1, .auth-copy h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero__visual { min-height: 22rem; }
  .preview-card { padding: 1.3rem; }
  .profile-card { align-items: flex-start; flex-wrap: wrap; }
  .connection-badge { position: static; width: 100%; justify-content: center; margin-top: 0.5rem; }
  .status-list div { grid-template-columns: 1fr; }
  .status-list dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
