@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #070707;
  --surface: #0e0e0e;
  --surface-soft: #121212;
  --white: #f5f5f2;
  --muted: #969692;
  --dim: #5f5f5b;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.18);
  --shadow: 0 32px 90px rgba(0,0,0,.38);
  --radius: 28px;
  --page: min(1180px, calc(100vw - 48px));
  --sans: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.085), transparent 32%),
    radial-gradient(circle at 85% 38%, rgba(255,255,255,.025), transparent 24%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--white); color: var(--bg); }

/* One scrollbar language across the whole interface */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(255,255,255,.22); background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.5); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

.react-app { min-height: 100vh; position: relative; z-index: 1; overflow: visible; }
.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Navigation */
.topbar {
  width: var(--page);
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  width: max-content;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.085em;
}
.brand > span:last-child {
  color: var(--dim);
  font: 400 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-word { color: var(--white) !important; font: inherit !important; letter-spacing: inherit !important; text-transform: none !important; }
.topnav { display: flex; align-items: center; gap: 30px; }
.topnav a { color: var(--muted); font-size: 11px; text-decoration: none; transition: color .25s; }
.topnav a:hover { color: var(--white); }
.topnav-state { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.topnav-state i, .admin-live i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(255,255,255,.07);
  animation: breathe 2.8s ease-in-out infinite;
}
.top-actions { display: flex; justify-content: flex-end; gap: 8px; }

.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.button:hover { transform: translateY(-2px); background: var(--white); border-color: var(--white); color: var(--bg); }
.button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.button-small { min-height: 38px; padding: 0 15px; }
.button-invert { background: var(--white); color: var(--bg); border-color: var(--white); }
.button-invert:hover { background: #dcdcd8; border-color: #dcdcd8; }
.button-dark { background: var(--bg); color: var(--white); border-color: var(--bg); }
.status { margin-top: 16px; color: var(--muted); font: 400 10px/1.5 var(--mono); }

/* Landing */
.landing-main { width: 100%; }
.hero {
  width: var(--page);
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-aside, .hero-state { display: none; }
.hero-copy { width: 100%; padding: 11vh 0 8vh; }
.hero-copy .eyebrow { margin-bottom: 34px; }
.hero-copy h1 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(4.2rem, 9vw, 8.8rem);
  line-height: .88;
  letter-spacing: -.08em;
  font-weight: 500;
}
.hero-copy h1 span { color: var(--muted); }
.hero-foot {
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hero-foot p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.round-arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: .3s ease;
}
.round-arrow:hover { transform: translateY(4px); background: var(--white); color: var(--bg); }

.section-grid, .proof, .console-section, .feature-list {
  width: var(--page);
  margin-inline: auto;
}
.statement, .method, .access, .faq { padding: 150px 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 100px; align-items: start; }
.section-no, .line-no, .line-arrow, .plan-top { display: none; }
.section-grid > .section-no + div { grid-column: 1; }
.section-grid h2, .proof h2, .console-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 6.3rem);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 500;
}
.statement > p {
  grid-column: 2;
  max-width: 410px;
  margin: 50px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.feature-list {
  padding-bottom: 150px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-line {
  min-height: 260px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.feature-line:hover { transform: translateY(-5px); border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.feature-line h3 { margin: 0 0 16px; font-size: 30px; letter-spacing: -.055em; font-weight: 500; }
.feature-line p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.console-section {
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(400px, 1.15fr);
  gap: 90px;
  align-items: center;
  border-radius: 36px;
  background: var(--white);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.console-copy .eyebrow { color: #6b6b67; }
.console-copy h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.console-copy p { max-width: 350px; margin: 28px 0 0; color: #676763; font-size: 13px; line-height: 1.8; }
.console {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #242424;
  border-radius: 20px;
  background: #080808;
  color: var(--white);
  box-shadow: 0 28px 60px rgba(0,0,0,.25);
}
.console-top { height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #222; color: #70706c; font: 400 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.console-body { min-height: 335px; padding: 28px; display: flex; flex-direction: column; gap: 16px; color: #aaa; font: 400 10px/1.4 var(--mono); }
.console-log span { display: inline-block; width: 34px; color: #4f4f4c; }
.console-action { min-height: 48px; margin-top: auto; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #333; border-radius: 12px; background: #101010; color: var(--white); font: inherit; transition: .25s; }
.console-action:hover { background: var(--white); color: var(--bg); }

.method { margin-top: 80px; }
.timeline { grid-column: 2; }
.timeline-row { padding: 27px 0; display: grid; grid-template-columns: 80px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.timeline-row:first-child { border-top: 1px solid var(--line); }
.timeline-row > span { color: var(--dim); font: 400 9px/1 var(--mono); }
.timeline-row h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.035em; font-weight: 500; }
.timeline-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.access { display: block; }
.access > div:nth-child(2) { max-width: 740px; }
.access-intro { margin: 26px 0 65px; color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan {
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}
.plan:hover { transform: translateY(-6px); background: var(--white); border-color: var(--white); color: var(--bg); }
.plan h3 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.045em; font-weight: 500; }
.plan strong { font-size: 58px; line-height: 1; letter-spacing: -.08em; font-weight: 500; }
.plan strong small { margin-right: 5px; font-size: 13px; vertical-align: top; }
.plan p { margin: 18px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.plan .button { margin-top: auto; }
.plan:hover .button { border-color: #242424; color: #111; }
.plan:hover .button:hover { background: #111; color: #fff; }

.proof { padding: 140px 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.quote-grid { display: grid; gap: 12px; }
.quote-grid blockquote {
  min-height: 150px;
  margin: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  background: var(--surface);
  color: var(--white);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.025em;
}
.quote-grid footer { margin-top: 28px; color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.quote-grid footer b { margin-right: 8px; color: var(--muted); }

.faq { padding-top: 80px; }
.faq > div:first-child .section-no { display: none; }
.faq-list { grid-column: 2; }
.faq-row { border-bottom: 1px solid var(--line); }
.faq-row:first-child { border-top: 1px solid var(--line); }
.faq-row button { width: 100%; min-height: 82px; padding: 0; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; color: var(--white); text-align: left; font-size: 15px; }
.faq-row button b { color: var(--dim); font-size: 20px; font-weight: 400; transition: transform .3s; }
.faq-row.is-open button b { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .35s ease; }
.faq-row.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { min-height: 0; max-width: 520px; margin: 0; padding: 0 40px 28px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.closing {
  width: var(--page);
  min-height: 650px;
  margin: 60px auto 30px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 36px;
  background: var(--white);
  color: var(--bg);
}
.closing .eyebrow { color: #666; }
.closing h2 { margin: 0; font-size: clamp(4.6rem, 10vw, 9rem); line-height: .84; letter-spacing: -.09em; font-weight: 500; }
.closing .button { align-self: flex-start; margin-top: 54px; }
.site-footer { width: var(--page); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-footer > span { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-footer > a:last-child { justify-self: end; color: var(--muted); font-size: 11px; text-decoration: none; }

/* Login */
.login-page { padding: 24px; }
.login-layout {
  width: min(1240px, 100%);
  min-height: calc(100svh - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,.015);
  box-shadow: var(--shadow);
}
.login-intro { padding: 50px 58px; display: flex; flex-direction: column; }
.login-copy { margin: auto 0; }
.login-copy h1 { margin: 0; font-size: clamp(4rem, 7vw, 7.8rem); line-height: .83; letter-spacing: -.09em; font-weight: 500; }
.login-copy h1 em { color: var(--muted); font-style: normal; }
.login-copy p { max-width: 400px; margin: 38px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.login-meta { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .1em; }
.login-card { padding: 60px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); background: rgba(255,255,255,.025); }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.06em; font-weight: 500; }
.login-card > p { margin: 18px 0 38px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.login-fields { display: grid; gap: 10px; margin-bottom: 18px; }
.login-fields label { display: grid; gap: 8px; }
.login-fields label > span { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.login-fields input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(255,255,255,.035); color: var(--white); font: 400 11px/1 var(--mono); transition: border-color .25s, background .25s; }
.login-fields input::placeholder { color: var(--dim); }
.login-fields input:focus { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.login-button { min-height: 52px; justify-content: space-between; border-radius: 12px; }
.mock-login { margin-top: 17px; color: var(--dim); text-align: center; text-decoration: none; font: 400 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mock-login:hover { color: var(--white); }
.login-foot { margin-top: 28px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.login-foot a { color: var(--white); text-decoration: none; }

/* Dashboard */
.dashboard {
  width: var(--page);
  min-height: calc(100svh - 102px);
  margin: 12px auto 30px;
  display: grid;
  grid-template-columns: 230px minmax(420px, 1fr) 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.012);
}
.profile-rail, .dashboard-main, .loader-rail { padding: 36px; }
.profile-rail { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.avatar { width: 66px; height: 66px; margin: 66px 0 22px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 24px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.profile-rail h1 { margin: 0; font-size: 25px; line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.mono { margin: 8px 0 0; color: var(--dim); font: 400 8px/1.5 var(--mono); word-break: break-all; }
.profile-bottom { margin-top: auto; }
.profile-bottom > div { padding: 14px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.profile-bottom span, .license-facts span, .loader-indicator span { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.profile-bottom b { font-size: 9px; font-weight: 500; }
.profile-bottom a { display: block; margin-top: 20px; color: var(--white); font-size: 10px; text-decoration: none; }
.dashboard-main { min-width: 0; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 65px; }
.page-heading h2 { margin: 0; font-size: clamp(3rem, 4.4vw, 5rem); line-height: .9; letter-spacing: -.075em; font-weight: 500; }
.page-heading > a { margin-top: 28px; color: var(--muted); font-size: 10px; text-decoration: none; }
.key-card { padding: 25px 0; border-block: 1px solid var(--line); }
.key-card strong { display: block; margin-top: 14px; font: 400 clamp(15px, 1.8vw, 22px)/1 var(--mono); letter-spacing: -.04em; }
.key-card button { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--muted); font: 400 9px/1 var(--mono); }
.license-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.license-facts > div { min-height: 115px; padding: 23px 0; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); }
.license-facts b { font-size: 11px; font-weight: 500; }
.action-row { margin-top: 25px; display: flex; gap: 9px; }
.action-row > * { flex: 1; }
.empty-license { margin-top: 22vh; }
.empty-license h3 { margin: 18px 0 12px; font-size: 42px; letter-spacing: -.07em; font-weight: 500; }
.empty-license > p { max-width: 410px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.key-form { margin-top: 32px; display: flex; gap: 8px; }
.key-form input, .admin-card input, .admin-card select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--white);
}
.key-form input { min-width: 0; flex: 1; }
.loader-rail { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.loader-indicator { margin: 66px 0 24px; display: flex; align-items: center; gap: 14px; }
.loader-indicator > i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.loader-indicator.connected > i { background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.07); animation: breathe 2.4s infinite; }
.loader-indicator div { display: flex; flex-direction: column; gap: 6px; }
.loader-indicator b { font-size: 12px; font-weight: 500; }
.loader-rail > p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.loader-rail > .button { width: 100%; margin-top: auto; }
.loader-rail > .quiet { margin-top: 8px; color: var(--muted); border-color: var(--line); }

/* Config */
.config-layout {
  width: var(--page);
  min-height: calc(100svh - 102px);
  margin: 12px auto 30px;
  display: grid;
  grid-template-columns: 235px 1fr;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.012);
}
.config-nav { padding: 32px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.config-nav > .eyebrow { margin-top: 54px; }
.config-nav nav { margin-top: 15px; display: flex; flex-direction: column; gap: 4px; }
.config-nav nav button { min-height: 41px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; font-size: 11px; }
.config-nav nav button:hover { color: var(--white); background: rgba(255,255,255,.035); }
.config-nav nav button.active { background: var(--white); color: var(--bg); }
.config-nav nav button span { opacity: .45; }
.config-nav-foot { margin-top: auto; color: var(--dim); font: 400 8px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.config-main { min-width: 0; min-height: 0; padding: 46px; }
.config-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-bottom: 34px; }
.config-heading h1 { margin: 0; font-size: clamp(3rem, 4.6vw, 5rem); line-height: .9; letter-spacing: -.075em; font-weight: 500; }
.control-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 10px; }
.control { min-height: 76px; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); transition: border-color .25s, background .25s; }
.control:hover { border-color: var(--line-strong); background: rgba(255,255,255,.028); }
.control:focus-within, .control:has(.dropdown.is-open) { position: relative; z-index: 80; }
.control span { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.control span b { font-size: 11px; font-weight: 500; }
.control span small { overflow: hidden; color: var(--dim); font: 400 7px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.control > input[type=text] { width: 120px; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: var(--surface); color: var(--white); }
.control input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.toggle { width: 34px; height: 20px; flex: 0 0 34px; position: relative; padding: 0; border: 0; border-radius: 99px; appearance: none; background: #292929; cursor: pointer; transition: .25s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #858581; transition: .25s; }
.control input[type=checkbox]:checked + .toggle { background: var(--white); }
.control input[type=checkbox]:checked + .toggle::after { left: 17px; background: var(--bg); }
.range-input { width: 105px; accent-color: var(--white); }
.control em { min-width: 34px; color: var(--muted); font: 400 9px/1 var(--mono); text-align: right; font-style: normal; }
.color-input { width: 32px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; filter: grayscale(1); }

/* Admin */
.admin-layout { width: var(--page); margin: 40px auto 80px; }
.admin-heading { padding: 50px 0 55px; display: flex; align-items: flex-end; justify-content: space-between; }
.admin-heading h1 { margin: 0; font-size: clamp(4rem, 7vw, 7.6rem); line-height: .82; letter-spacing: -.09em; font-weight: 500; }
.admin-live { color: var(--muted); font: 400 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { min-height: 145px; padding: 23px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 20px; background: var(--surface); }
.stat span { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.stat strong { font-size: 48px; line-height: 1; letter-spacing: -.075em; font-weight: 500; }
.admin-columns { margin-top: 10px; display: grid; grid-template-columns: minmax(270px, .52fr) minmax(520px, 1.48fr); gap: 10px; }
.admin-card, .live-card { padding: 28px; border-radius: 22px; background: var(--surface); }
.create-card { display: flex; flex-direction: column; gap: 10px; }
.create-card select {
  width: 100%;
  min-height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 20px) 19px / 6px 6px no-repeat,
              linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 15px) 19px / 6px 6px no-repeat,
              var(--surface-soft);
  color: var(--white);
  font: 500 10px/1 var(--mono);
  cursor: pointer;
}
.create-card select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.create-card select option { background: #111; color: var(--white); }
.create-card h2, .table-head h2 { margin: 0 0 22px; font-size: 27px; letter-spacing: -.055em; font-weight: 500; }
.create-card .button { margin-top: 8px; }
.table-head { padding-bottom: 19px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-head > span { color: var(--dim); font: 400 8px/1 var(--mono); }
.license-table, .live-table { max-height: 430px; overflow-y: auto; padding-right: 5px; }
.license-row { min-height: 72px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.license-row > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.license-row b { overflow: hidden; font: 400 10px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.license-row span { color: var(--muted); font-size: 10px; }
.state { color: var(--white) !important; font: 400 8px/1 var(--mono) !important; text-transform: uppercase; }
.state.paused { color: var(--dim) !important; }
.row-actions { display: flex; gap: 9px; }
.row-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
.row-actions button:hover { color: var(--white); }
.live-card { margin-top: 10px; }
.live-table { margin-top: 8px; }
.live-row { min-height: 66px; display: grid; grid-template-columns: 1.4fr .65fr .65fr .5fr; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.live-row > div { display: flex; flex-direction: column; gap: 5px; }
.live-row b { font-size: 11px; font-weight: 500; }
.live-row span { color: var(--muted); font-size: 9px; }
.empty-live { margin: 23px 0 4px; color: var(--dim); font: 400 9px/1 var(--mono); }

.loading-page { display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); font: 400 9px/1 var(--mono); }
.loader-mark { font-size: 58px; font-weight: 600; letter-spacing: -.1em; animation: fade 1.8s ease-in-out infinite; }

@keyframes breathe { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes fade { 0%,100% { opacity: .45; transform: scale(.98); } 50% { opacity: 1; transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1, .login-copy h1, .admin-heading h1 { animation: reveal .9s cubic-bezier(.2,.8,.2,1) both; }
  .feature-line, .plan, .quote-grid blockquote, .stat, .control { animation: reveal .7s cubic-bezier(.2,.8,.2,1) both; }
}

@media (max-width: 1050px) {
  :root { --page: min(920px, calc(100vw - 40px)); }
  .console-section { padding: 55px; gap: 50px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .dashboard { grid-template-columns: 210px 1fr; }
  .loader-rail { grid-column: 1 / -1; min-height: 260px; border-top: 1px solid var(--line); border-left: 0; }
  .loader-rail > .button { width: auto; }
  .admin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  :root { --page: calc(100vw - 30px); --radius: 22px; }
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .top-actions { gap: 5px; }
  .top-actions .button-small { min-height: 34px; padding: 0 10px; }
  .hero { min-height: calc(100svh - 72px); }
  .hero-copy { padding: 70px 0 45px; }
  .hero-copy h1 { font-size: clamp(3.7rem, 18vw, 6.6rem); line-height: .86; }
  .hero-foot { margin-top: 48px; align-items: flex-end; }
  .hero-foot p { font-size: 12px; }
  .statement, .method, .access, .faq { padding: 95px 0; }
  .section-grid, .proof, .console-section { grid-template-columns: 1fr; gap: 45px; }
  .statement > p, .timeline, .faq-list { grid-column: 1; }
  .statement > p { margin-top: 0; }
  .feature-list { grid-template-columns: 1fr; padding-bottom: 95px; }
  .feature-line { min-height: 220px; padding: 28px; }
  .console-section { padding: 38px 24px; border-radius: 28px; }
  .console { min-height: 350px; }
  .console-body { min-height: 295px; }
  .method { margin-top: 40px; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 340px; }
  .proof { padding: 95px 0; }
  .closing { min-height: 600px; padding: 55px 26px; border-radius: 28px; }
  .closing h2 { font-size: clamp(4.6rem, 22vw, 7.8rem); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > span { display: none; }
  .login-page { padding: 10px; }
  .login-layout { min-height: calc(100svh - 20px); grid-template-columns: 1fr; border-radius: 24px; }
  .login-intro { min-height: 56svh; padding: 34px 26px; }
  .login-copy h1 { font-size: clamp(3.8rem, 18vw, 6.5rem); }
  .login-card { min-height: 50svh; padding: 55px 26px; border-top: 1px solid var(--line); border-left: 0; }
  .dashboard { grid-template-columns: 1fr; }
  .profile-rail { min-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-main { min-height: 620px; }
  .loader-rail { grid-column: auto; }
  .page-heading { margin-bottom: 45px; flex-direction: column; }
  .license-facts { grid-template-columns: 1fr; }
  .license-facts > div { min-height: 85px; }
  .action-row, .key-form { flex-direction: column; }
  .config-layout { grid-template-columns: 1fr; }
  .config-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .config-nav > .eyebrow { margin-top: 35px; }
  .config-nav nav { flex-direction: row; overflow-x: auto; }
  .config-nav nav button { min-width: max-content; }
  .config-nav-foot { display: none; }
  .config-main { padding: 38px 20px; }
  .config-heading { align-items: flex-start; flex-direction: column; }
  .control-grid { grid-template-columns: 1fr; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-card, .live-card { padding: 22px 16px; }
  .license-row { grid-template-columns: 1fr auto; padding: 14px 0; }
  .row-actions { grid-column: 1 / -1; }
  .live-row { grid-template-columns: 1fr 1fr; padding: 13px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Functional controls + tighter motion pass */
.tool-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.018);
}
.tool-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding-bottom:25px; border-bottom:1px solid var(--line); }
.tool-heading h2 { margin:0; font-size:clamp(2rem,3.8vw,4.4rem); line-height:.9; letter-spacing:-.075em; font-weight:500; }
.tool-heading > span { color:var(--dim); font:400 9px/1 var(--mono); text-transform:uppercase; letter-spacing:.1em; }
.tool-controls { display:grid; grid-template-columns:minmax(220px,1fr) minmax(260px,.7fr); gap:14px; padding:20px 0; }
.tool-controls > input { min-height:46px; padding:0 14px; border:1px solid var(--line); border-radius:12px; outline:0; background:var(--surface); color:var(--white); }
.tool-controls label { display:grid; grid-template-columns:48px 1fr 40px; align-items:center; gap:12px; color:var(--dim); font:400 9px/1 var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.tool-controls output { color:var(--white); text-align:right; font:400 11px/1 var(--mono); }
.weapon-grid { width:100%; min-width:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; max-height:430px; overflow-x:hidden; overflow-y:auto; padding:0 3px 2px 0; }
.weapon-card { min-width:0; max-width:100%; min-height:72px; padding:14px; display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; gap:12px; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.02); color:var(--white); text-align:left; transition:transform .25s, background .25s, border-color .25s; }
.weapon-card span { min-width:0; max-width:100%; font-size:11px; line-height:1.35; overflow-wrap:anywhere; word-break:break-word; }.weapon-card b { align-self:flex-end; color:var(--dim); font-weight:400; flex:0 0 auto; }.weapon-card:hover { transform:translateY(-3px); background:var(--white); border-color:var(--white); color:var(--bg); }.weapon-card:hover b { color:var(--bg); }
.players-table { max-height:430px; margin-top:12px; overflow-y:auto; padding-right:5px; }.players-head,.player-row { display:grid; grid-template-columns:1.2fr .65fr .55fr 1fr 1.2fr; gap:14px; align-items:center; }.players-head { padding:13px 0; color:var(--dim); font:400 8px/1 var(--mono); text-transform:uppercase; letter-spacing:.1em; border-bottom:1px solid var(--line); }.player-row { min-height:64px; border-bottom:1px solid var(--line); }.player-row > span { color:var(--muted); font-size:10px; }.player-row b { font-size:11px; font-weight:500; }.player-row > div { display:flex; gap:8px; justify-content:flex-end; }.player-row button { padding:0; border:0; background:none; color:var(--muted); font-size:9px; }.player-row button:hover:not(:disabled) { color:var(--white); }.player-row button:disabled { opacity:.25; cursor:not-allowed; }.empty-players { padding:32px 0; margin:0; color:var(--dim); font:400 9px/1 var(--mono); }

.control .range-input, .tool-controls input[type=range], .control-grid input[type=range] { height:4px; border-radius:99px; outline:none; appearance:none; -webkit-appearance:none; background:linear-gradient(90deg,var(--white) 0%, var(--white) 42%, #2b2b2b 42%, #2b2b2b 100%); cursor:pointer; }
.control .range-input::-webkit-slider-thumb, .tool-controls input[type=range]::-webkit-slider-thumb { width:17px; height:17px; appearance:none; -webkit-appearance:none; border:3px solid var(--bg); border-radius:50%; background:var(--white); box-shadow:0 0 0 1px var(--line-strong),0 3px 12px rgba(0,0,0,.45); transition:transform .2s,box-shadow .2s; }
.control .range-input::-webkit-slider-thumb:hover, .tool-controls input[type=range]::-webkit-slider-thumb:hover { transform:scale(1.2); box-shadow:0 0 0 5px rgba(255,255,255,.08),0 3px 12px rgba(0,0,0,.45); }
.control .range-input::-moz-range-thumb, .tool-controls input[type=range]::-moz-range-thumb { width:12px; height:12px; border:3px solid var(--bg); border-radius:50%; background:var(--white); }
.control .range-input { width:150px; }

.hero-copy { position:relative; isolation:isolate; }.hero-copy::after { content:''; position:absolute; z-index:-1; top:22%; left:25%; width:430px; height:250px; background:radial-gradient(ellipse,rgba(255,255,255,.055),transparent 70%); filter:blur(28px); pointer-events:none; animation:drift 9s ease-in-out infinite; }
.console { animation:float 7s ease-in-out infinite; }.feature-line,.plan,.quote-grid blockquote { will-change:transform; }.feature-line:nth-child(2),.plan:nth-child(2),.quote-grid blockquote:nth-child(2) { animation-delay:.08s; }.feature-line:nth-child(3),.plan:nth-child(3),.quote-grid blockquote:nth-child(3) { animation-delay:.16s; }.feature-line:nth-child(4),.plan:nth-child(4) { animation-delay:.24s; }
.statement,.method,.access,.faq { padding-block:112px; }.feature-list { padding-bottom:112px; }.proof { padding-block:112px; }.closing { min-height:540px; margin-top:36px; }
.proof .quote-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.proof .quote-grid blockquote { min-height:225px; padding:24px; font-size:15px; }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes drift { 0%,100% { transform:translate3d(0,0,0) scale(1); opacity:.6; } 50% { transform:translate3d(50px,22px,0) scale(1.12); opacity:1; } }
@media(max-width:740px) { .tool-controls { grid-template-columns:1fr; }.weapon-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.players-head { display:none; }.player-row { grid-template-columns:1fr 1fr; padding:13px 0; }.player-row > div { grid-column:1/-1; justify-content:flex-start; }.proof .quote-grid { grid-template-columns:1fr; }.statement,.method,.access,.faq,.proof { padding-block:86px; } }

/* Config controls: custom dropdowns and compact touch targets */
.dropdown { position: relative; min-width: 118px; z-index: 2; }
.dropdown.is-open { z-index: 1000; }
.dropdown-trigger {
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: var(--surface);
  color: var(--white);
  font: 500 10px/1 var(--mono);
  text-align: left;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.dropdown-trigger:hover, .dropdown.is-open .dropdown-trigger { border-color: var(--white); background: var(--surface-soft); }
.dropdown-trigger i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  position: absolute;
  right: 14px;
  top: 14px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s, border-color .25s;
}
.dropdown.is-open .dropdown-trigger i { top: 17px; transform: rotate(225deg); border-color: var(--white); }
.dropdown-trigger:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.dropdown-menu {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 7px);
  width: max-content;
  min-width: 0;
  right: auto;
  max-width: min(160px, 78vw);
  max-height: min(280px, 42vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #111;
  box-shadow: 0 18px 45px rgba(0,0,0,.5);
  pointer-events: auto;
  animation: dropdown-in .18s ease both;
}
.dropdown-option {
  width: 100%;
  min-height: 33px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 400 10px/1 var(--mono);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .2s, color .2s;
}
.dropdown-option:hover, .dropdown-option.active { background: var(--white); color: var(--bg); }
.keybind-select { width: 112px; }
.duration-select { width: min(150px, 100%); min-width: 0; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }

.color-picker { width: 132px; position: relative; z-index: 2; }
.color-picker.is-open { z-index: 1000; }
.color-trigger {
  width: 100%;
  min-height: 38px;
  padding: 0 28px 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: var(--surface);
  color: var(--white);
  text-align: left;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.color-trigger:hover, .color-picker.is-open .color-trigger { border-color: var(--white); background: var(--surface-soft); }
.color-trigger:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.color-dot { width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.color-trigger b { overflow: hidden; color: var(--muted); font: 400 9px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.color-trigger i { width: 6px; height: 6px; position: absolute; top: 14px; right: 12px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); transition: transform .25s; }
.color-picker.is-open .color-trigger i { top: 17px; transform: rotate(225deg); }
.color-popover { z-index: 9999; max-width: calc(100vw - 16px); padding: 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #111014; box-shadow: 0 20px 50px rgba(0,0,0,.58); animation: dropdown-in .18s ease both; }
.picker-popover { color: var(--white); }
.picker-head { display: flex; align-items: center; justify-content: space-between; color: #d8d8d8; font: 400 10px/1 var(--sans); }
.picker-head > span { display: inline-flex; align-items: center; gap: 7px; }
.picker-head > span i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.picker-head > button { width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #77757b; font: 400 17px/1 var(--sans); transform: rotate(0); }
.picker-head > button:hover { color: var(--white); }
.picker-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 3px; color: #77757b; font: 400 9px/1 var(--mono); }
.picker-wheel { width: 142px; height: 142px; margin: 0 auto 13px; position: relative; border-radius: 50%; background: conic-gradient(#ff4b66, #ffbd58, #e9ff79, #4dffbb, #50c7ff, #8876ff, #ff62c1, #ff4b66); touch-action: none; }
.picker-wheel::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #111014; }
.picker-surface { position: absolute; inset: 23px; z-index: 1; border-radius: 50%; overflow: visible; touch-action: none; }
.picker-surface::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, transparent 0 63%, rgba(0,0,0,.25) 100%); pointer-events: none; }
.hue-handle, .surface-handle { position: absolute; z-index: 3; width: 9px; height: 9px; display: block; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 1px 5px rgba(0,0,0,.7); transform: translate(-50%, -50%); pointer-events: none; }
.surface-handle { width: 8px; height: 8px; background: rgba(255,255,255,.08); }
.picker-fields { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; }
.picker-fields input { width: 100%; min-width: 0; height: 28px; padding: 0 4px; border: 0; border-radius: 5px; background: #19171c; color: #dedde0; outline: 0; text-align: center; font: 400 10px/1 var(--mono); }
.picker-fields input:focus { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

@media (max-width:740px) {
  .config-layout { width: calc(100vw - 20px); margin: 10px auto 20px; min-height: calc(100svh - 90px); border-radius: 20px; overflow: visible; }
  .config-nav { padding: 22px 16px 14px; }
  .config-nav .brand { font-size: 21px; }
  .config-nav > .eyebrow { margin: 30px 0 12px; }
  .config-nav nav { margin: 0 -4px; padding: 0 4px 6px; gap: 7px; scrollbar-width: none; }
  .config-nav nav::-webkit-scrollbar { display: none; }
  .config-nav nav button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }
  .config-nav nav button.active { border-color: var(--white); }
  .config-main { min-width: 0; padding: 28px 14px 34px; }
  .config-heading { gap: 18px; padding-bottom: 24px; }
  .config-heading h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .config-heading .button { width: 100%; }
  .control-grid { min-width: 0; gap: 8px; }
  .control { min-width: 0; min-height: 70px; padding: 13px 12px; gap: 8px; border-radius: 14px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,128px); }
  .control > * { max-width: 100%; justify-self: end; }
  .control span b { font-size: 10px; }
  .control span small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .control .range-input { width: 100%; min-width: 0; }
  .control em { min-width: 30px; }
  .keybind-select { width: 100%; min-width: 0; max-width: 112px; min-height: 36px; }
  .color-picker { width: 112px; }
  .dropdown-menu { max-width: min(160px, calc(100vw - 44px)); }
  .tool-panel { min-width: 0; padding: 18px 12px; border-radius: 18px; }
  .tool-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tool-heading h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .tool-controls { min-width: 0; }
  .tool-controls label { min-width: 0; grid-template-columns: 46px minmax(0,1fr) 34px; gap: 8px; }
  .players-table { width: 100%; max-height: none; overflow: visible; }
  .player-row { min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; padding: 14px 0; }
  .player-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-row > div { width: 100%; flex-wrap: wrap; gap: 8px 12px; }
}

@media (max-width:380px) {
  .config-layout { width: calc(100vw - 14px); }
  .config-main { padding-inline: 10px; }
  .config-nav { padding-inline: 12px; }
  .control { padding-inline: 10px; grid-template-columns: minmax(0,1fr) minmax(0,116px); }
  .keybind-select { max-width: 108px; }
  .color-picker { width: 108px; }
  .control span b { font-size: 9px; }
  .tool-panel { padding-inline: 10px; }
  .weapon-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .weapon-card { padding: 11px; }
}

/* Keep desktop panels stable and scroll their contents instead of stretching borders. */
@media (min-width:741px) {
  .config-layout { height: calc(100svh - 102px); max-height: calc(100svh - 102px); min-height: 0; overflow: hidden; }
  .config-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .config-heading { flex: 0 0 auto; }
  .control-grid { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; padding: 2px 8px 8px 0; align-content: start; }
  .tool-panel { flex: 1 1 auto; min-height: 0; max-height: none; display: flex; flex-direction: column; overflow: hidden; }
  .tool-heading, .tool-controls { flex: 0 0 auto; }
  .weapon-grid, .players-table { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
  .license-table, .live-table { max-height: calc(100svh - 350px); overflow-y: auto; padding-right: 8px; }
}

/* Premium landing pass */
.page-landing .topbar {
  width: var(--page);
  height: 58px;
  margin: 14px auto 0;
  padding: 0 9px 0 18px;
  position: sticky;
  top: 14px;
  z-index: 120;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(12,12,12,.78);
  box-shadow: 0 14px 44px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  overflow: hidden;
  animation: pill-enter .8s cubic-bezier(.2,.8,.2,1) both, pill-breathe 6s ease-in-out 1s infinite;
}
.page-landing .topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.055) 48%, transparent 72%);
  transform: translateX(-110%);
  animation: pill-sheen 7s ease-in-out 2s infinite;
}
.page-landing .topbar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  filter: drop-shadow(0 0 8px rgba(255,255,255,.45));
  animation: pill-trace 8s cubic-bezier(.65,0,.35,1) infinite;
}
.page-landing .topbar > * { position: relative; z-index: 1; }
.page-landing .topbar .brand { font-size: 20px; }
.page-landing .topnav { gap: 8px; }
.page-landing .topnav a { padding: 9px 12px; border-radius: 10px; font-size: 10px; transition: color .25s, background .25s; }
.page-landing .topnav a:hover { background: rgba(255,255,255,.07); }
.page-landing .top-actions .button { min-height: 40px; border-radius: 12px; }

.landing-v2 [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: opacity .85s cubic-bezier(.2,.8,.2,1), transform .85s cubic-bezier(.2,.8,.2,1), filter .85s ease; }
.landing-v2 [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.landing-v2 .hero { min-height: calc(100svh - 72px); }
.landing-v2 .hero-copy { padding: 13vh 0 9vh; }
.landing-v2 .hero-copy h1 { max-width: 1120px; font-size: clamp(4.5rem, 9.7vw, 9.5rem); }
.landing-v2 .hero-line { display: block; color: var(--white); font-style: normal; }
.landing-v2 .hero-line em { color: var(--muted); font-style: normal; }
.landing-v2 .hero.is-visible .hero-line { animation: line-rise .9s cubic-bezier(.16,1,.3,1) both; }
.landing-v2 .hero.is-visible .hero-line:nth-child(2) { animation-delay: .1s; }
.landing-v2 .hero-foot { margin-top: 56px; }
.landing-v2 .hero-foot p { max-width: 390px; }
.landing-v2 .round-arrow { border-radius: 16px; animation: arrow-drift 3s ease-in-out infinite; }

.landing-v2 .statement { padding-bottom: 92px; }
.landing-v2 .feature-list {
  padding-bottom: 112px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.landing-v2 .feature-line {
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  position: relative;
}
.landing-v2 .feature-line::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.045), transparent 65%);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .35s ease, transform .55s cubic-bezier(.16,1,.3,1);
}
.landing-v2 .feature-line:hover { transform: none; background: transparent; }
.landing-v2 .feature-line:hover::before,
.landing-v2 .feature-line.is-open::before { opacity: 1; transform: none; }
.feature-toggle {
  width: 100%;
  min-height: 96px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 28px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
}
.feature-toggle > span { color: var(--dim); font: 400 9px/1 var(--mono); }
.landing-v2 .feature-toggle h3 { margin: 0; font-size: clamp(25px, 3vw, 40px); letter-spacing: -.055em; }
.feature-toggle i, .timeline-row button i { color: var(--dim); font: 400 19px/1 var(--sans); font-style: normal; transition: transform .3s, color .3s; }
.reveal-card.is-open .feature-toggle i, .timeline-row.is-open button i { color: var(--white); transform: rotate(45deg); }
.feature-detail, .timeline-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2,.8,.2,1); }
.feature-detail > p {
  min-height: 0;
  max-width: 520px;
  margin: 0;
  padding: 0 24px 0 74px;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  transition: opacity .3s, padding-bottom .38s;
}
.reveal-card.is-open .feature-detail { grid-template-rows: 1fr; }
.reveal-card.is-open .feature-detail > p { padding-bottom: 30px; opacity: 1; }

.landing-v2 .console-section {
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #0c0c0c;
  color: var(--white);
  box-shadow: 0 35px 100px rgba(0,0,0,.3);
}
.landing-v2 .console-copy .eyebrow { color: var(--muted); }
.landing-v2 .console { border-color: var(--line-strong); box-shadow: none; }
.landing-v2 .console-top span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.landing-v2 .console-top span:last-child i { width: 5px; height: 5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 5px rgba(255,255,255,.06); animation: breathe 2.5s ease-in-out infinite; }
.landing-v2 .console-log { opacity: .55; animation: log-pulse 4.5s ease-in-out infinite; }
.landing-v2 .console-log:nth-child(2) { animation-delay: .5s; }
.landing-v2 .console-log:nth-child(3) { animation-delay: 1s; }

.landing-v2 .timeline-row { padding: 0; display: block; }
.landing-v2 .timeline-row > button {
  width: 100%;
  min-height: 78px;
  padding: 0;
  display: grid;
  grid-template-columns: 80px minmax(0,1fr) 24px;
  align-items: center;
  gap: 20px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
}
.landing-v2 .timeline-row > button > span { color: var(--dim); font: 400 9px/1 var(--mono); }
.landing-v2 .timeline-row h3 { margin: 0; }
.timeline-detail > p { min-height: 0; margin: 0; padding: 0 40px 0 100px; overflow: hidden; opacity: 0; color: var(--muted); font-size: 12px; line-height: 1.7; transition: opacity .3s, padding-bottom .38s; }
.timeline-row.is-open .timeline-detail { grid-template-rows: 1fr; }
.timeline-row.is-open .timeline-detail > p { padding-bottom: 24px; opacity: 1; }

.landing-v2 .access { grid-template-columns: minmax(260px, .72fr) minmax(500px, 1.28fr); gap: clamp(48px, 8vw, 120px); }
.landing-v2 .access > div:first-child { max-width: 430px; position: sticky; top: 108px; }
.landing-v2 .access h2 { max-width: 430px; font-size: clamp(3.6rem, 6vw, 6.8rem); }
.landing-v2 .access-intro { margin-bottom: 0; }
.landing-v2 .plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.landing-v2 .plan {
  min-height: 106px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 48px minmax(90px, 1fr) auto 122px;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: padding .35s cubic-bezier(.16,1,.3,1), background .35s ease, border-color .35s ease;
}
.landing-v2 .plan::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.055), transparent 72%);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .35s ease, transform .55s cubic-bezier(.16,1,.3,1);
}
.landing-v2 .plan-top { display: block; color: var(--dim); font: 400 8px/1 var(--mono); text-transform: uppercase; }
.landing-v2 .plan-top span:last-child { display: none; }
.landing-v2 .plan h3 { margin: 0; font-size: 17px; color: var(--muted); }
.landing-v2 .plan strong { font-size: 34px; justify-self: end; white-space: nowrap; }
.landing-v2 .plan strong small { vertical-align: middle; }
.landing-v2 .plan .button { min-height: 38px; margin: 0; padding-inline: 14px; border-radius: 12px; }
.landing-v2 .plan:hover { padding-left: 16px; transform: none; background: transparent; border-color: var(--line-strong); color: var(--white); }
.landing-v2 .plan:hover::before { opacity: 1; transform: none; }
.landing-v2 .plan:hover h3 { color: var(--white); }
.landing-v2 .plan:hover .button { border-color: var(--line-strong); color: var(--white); }
.landing-v2 .plan:hover .button:hover { background: var(--white); color: var(--bg); }

.landing-v2 .faq { padding-top: 60px; }
.landing-v2 .closing { min-height: 520px; margin-top: 10px; border-radius: 30px; }
.landing-v2 .closing .button { border-radius: 12px; }

.color-popover { border-color: var(--line-strong); border-radius: 14px; background: #0c0c0e; }
.picker-fields input { border: 1px solid var(--line); background: #151517; }

@keyframes pill-enter { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pill-breathe { 0%,100% { border-color: rgba(255,255,255,.12); } 50% { border-color: rgba(255,255,255,.2); } }
@keyframes pill-sheen { 0%,55% { transform: translateX(-120%); } 78%,100% { transform: translateX(120%); } }
@keyframes pill-trace { 0% { transform: translateX(-110px); opacity: 0; } 15% { opacity: 1; } 50% { transform: translateX(calc(var(--page) - 72px)); opacity: 1; } 65%,100% { transform: translateX(calc(var(--page) - 72px)); opacity: 0; } }
@keyframes line-rise { from { opacity: 0; transform: translateY(42px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes arrow-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes log-pulse { 0%,100% { opacity: .42; } 50% { opacity: .85; } }

@media (prefers-reduced-motion: no-preference) {
  .landing-v2 .feature-list.is-visible .feature-line,
  .landing-v2 .access.is-visible .plan { animation: row-enter .75s cubic-bezier(.16,1,.3,1) both; }
  .landing-v2 .feature-list.is-visible .feature-line:nth-child(2),
  .landing-v2 .access.is-visible .plan:nth-child(2) { animation-delay: .08s; }
  .landing-v2 .feature-list.is-visible .feature-line:nth-child(3),
  .landing-v2 .access.is-visible .plan:nth-child(3) { animation-delay: .16s; }
  .landing-v2 .feature-list.is-visible .feature-line:nth-child(4),
  .landing-v2 .access.is-visible .plan:nth-child(4) { animation-delay: .24s; }
}
@keyframes row-enter { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

@media (max-width:740px) {
  .page-landing .topbar { width: calc(100vw - 20px); height: 54px; margin-top: 10px; padding-left: 14px; top: 10px; border-radius: 16px; }
  .page-landing .brand > span:last-child { display: none; }
  .landing-v2 .hero { min-height: calc(100svh - 64px); }
  .landing-v2 .hero-copy { padding: 11vh 0 7vh; }
  .landing-v2 .hero-copy h1 { font-size: clamp(3.2rem, 15vw, 5.6rem); line-height: .88; }
  .landing-v2 .hero-foot { margin-top: 44px; }
  .landing-v2 .statement { padding-bottom: 70px; }
  .landing-v2 .feature-list { padding-bottom: 86px; }
  .feature-toggle { min-height: 82px; grid-template-columns: 34px minmax(0,1fr) 20px; padding: 0 4px; }
  .landing-v2 .feature-toggle h3 { font-size: 20px; }
  .feature-detail > p { padding-left: 51px; padding-right: 17px; }
  .landing-v2 .console-section { padding: 28px 20px; border-radius: 22px; }
  .landing-v2 .console { min-height: 320px; }
  .landing-v2 .console-body { min-height: 266px; }
  .landing-v2 .timeline-row > button { grid-template-columns: 58px minmax(0,1fr) 20px; gap: 10px; }
  .timeline-detail > p { padding-left: 68px; padding-right: 18px; }
  .landing-v2 .access { grid-template-columns: 1fr; gap: 46px; }
  .landing-v2 .access > div:first-child { position: static; }
  .landing-v2 .plans { grid-template-columns: 1fr; gap: 0; }
  .landing-v2 .plan { min-height: 94px; padding: 12px 4px; grid-template-columns: 32px minmax(70px,1fr) auto; gap: 10px; }
  .landing-v2 .plan strong { font-size: 30px; }
  .landing-v2 .plan .button { grid-column: 2 / -1; width: 100%; min-height: 36px; padding-inline: 10px; }
  .landing-v2 .plan:hover { padding-left: 8px; }
  .landing-v2 .closing { min-height: 500px; padding: 50px 24px; border-radius: 22px; }
  .landing-v2 .closing h2 { font-size: clamp(3.7rem, 18vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .page-landing .topbar, .page-landing .topbar::before, .page-landing .topbar::after, .landing-v2 .round-arrow, .landing-v2 .console-log { animation: none !important; }
  .landing-v2 [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* Final landing cleanup: keep the access block stacked and quiet. */
.landing-v2 .access {
  display: block;
  padding-top: 96px;
}
.landing-v2 .access > div:first-child {
  position: static;
  max-width: 620px;
}
.landing-v2 .access h2 {
  max-width: 620px;
  font-size: clamp(3.6rem, 8vw, 7rem);
}
.landing-v2 .plans {
  width: 100%;
  margin-top: 54px;
}
.landing-v2 .plan {
  grid-template-columns: 56px minmax(0, 1fr) auto 122px;
}
.landing-v2 .faq { display: none; }

/* Interface preview: the product becomes the hero of the live-interface block. */
.landing-v2 .interface-section {
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr);
  gap: clamp(34px, 7vw, 96px);
  padding: clamp(34px, 6vw, 74px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 78% 42%, rgba(255,255,255,.08), transparent 33%), #0a0a0a;
}
.landing-v2 .interface-section::before {
  content: '';
  position: absolute;
  inset: auto -20% -55% 18%;
  height: 75%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,255,255,.11), transparent 66%);
  filter: blur(34px);
  animation: interface-light 8s ease-in-out infinite;
}
.landing-v2 .interface-copy h2 { color: var(--white); }
.landing-v2 .interface-copy p { color: var(--muted); }
.interface-stage {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  padding: 38px 0 28px;
}
.interface-frame {
  width: min(100%, 748px);
  aspect-ratio: 748 / 519;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: #151515;
  box-shadow: 0 28px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.025), inset 0 1px rgba(255,255,255,.12);
  transform: perspective(1200px) rotateX(2deg);
  transition: transform .7s cubic-bezier(.16,1,.3,1), border-color .35s ease;
}
.interface-frame:hover { transform: perspective(1200px) rotateX(0) translateY(-7px); border-color: rgba(255,255,255,.32); }
.interface-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.interface-fade {
  position: absolute;
  inset: 42% 0 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(8,8,8,.24) 34%, #080808 100%);
}
.interface-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 24%, transparent 75%, rgba(255,255,255,.025));
  mix-blend-mode: screen;
}
.interface-halo,
.interface-orbit {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transform: rotate(-16deg);
}
.interface-halo { width: 86%; height: 132%; filter: blur(.2px) drop-shadow(0 0 12px rgba(255,255,255,.16)); animation: halo-breathe 5s ease-in-out infinite; }
.interface-orbit-one { width: 106%; height: 92%; border-color: rgba(255,255,255,.1); animation: orbit-spin 14s linear infinite; }
.interface-orbit-two { width: 72%; height: 148%; border-color: rgba(255,255,255,.11); transform: rotate(54deg); animation: orbit-spin-reverse 18s linear infinite; }
.interface-caption { position: absolute; z-index: 5; right: 2px; bottom: 0; color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.landing-v2 .interface-section.is-visible .interface-frame { animation: interface-rise 1.1s cubic-bezier(.16,1,.3,1) both; }
.landing-v2 .interface-section.is-visible .interface-halo { animation: halo-breathe 5s ease-in-out infinite, halo-in 1.5s cubic-bezier(.16,1,.3,1) both; }
@keyframes interface-rise { from { opacity: 0; transform: perspective(1200px) rotateX(8deg) translateY(36px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: perspective(1200px) rotateX(2deg); filter: none; } }
@keyframes halo-in { from { opacity: 0; transform: rotate(-16deg) scale(.82); } to { opacity: 1; transform: rotate(-16deg) scale(1); } }
@keyframes halo-breathe { 0%,100% { opacity: .48; filter: blur(.2px) drop-shadow(0 0 10px rgba(255,255,255,.12)); } 50% { opacity: .9; filter: blur(.2px) drop-shadow(0 0 22px rgba(255,255,255,.28)); } }
@keyframes orbit-spin { from { transform: rotate(-16deg); } to { transform: rotate(344deg); } }
@keyframes orbit-spin-reverse { from { transform: rotate(54deg); } to { transform: rotate(-306deg); } }
@keyframes interface-light { 0%,100% { transform: translateX(-2%) scale(.96); opacity: .45; } 50% { transform: translateX(7%) scale(1.08); opacity: .9; } }

@media (max-width: 740px) {
  .landing-v2 .access { padding-top: 76px; }
  .landing-v2 .plans { margin-top: 34px; }
  .landing-v2 .plan { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .landing-v2 .interface-section { grid-template-columns: 1fr; gap: 30px; padding: 30px 20px 34px; border-radius: 22px; }
  .interface-stage { padding: 18px 0 24px; }
  .interface-frame { border-radius: 13px; }
  .interface-halo { width: 110%; height: 132%; }
  .interface-orbit-one { width: 128%; }
  .interface-orbit-two { width: 90%; }
  .interface-caption { right: 0; bottom: 0; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 .interface-section::before,
  .interface-orbit-one,
  .interface-orbit-two,
  .interface-halo,
  .landing-v2 .interface-section.is-visible .interface-frame { animation: none !important; }
}

/* Product-first hero */
.landing-v2 .hero-product {
  --hero-shift: 0px;
  --hero-copy-shift: 0px;
  --hero-scale: 1;
  min-height: 154svh;
  display: block;
  position: relative;
  overflow: clip;
}
.hero-product .hero-stage {
  min-height: calc(100svh - 72px);
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.landing-v2 .hero-product .hero-copy {
  width: 100%;
  padding: clamp(40px, 6.5vh, 76px) 0 0;
  z-index: 5;
  transform: translate3d(0, var(--hero-copy-shift), 0);
  will-change: transform;
}
.landing-v2 .hero-product .hero-copy h1 {
  max-width: 1040px;
  font-size: clamp(4rem, 8vw, 8.35rem);
  line-height: .86;
}
.landing-v2 .hero-product .hero-foot {
  margin-top: 30px;
}
.hero-interface {
  width: min(760px, 68vw);
  aspect-ratio: 748 / 519;
  margin: clamp(-76px, -6vh, -42px) 1.5vw 0 auto;
  padding: 1px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: #262626;
  box-shadow: 0 38px 100px rgba(0,0,0,.7), 0 0 74px rgba(255,255,255,.08);
  transform: translate3d(0, var(--hero-shift), 0) scale(var(--hero-scale));
  transform-origin: 72% 40%;
  will-change: transform;
}
.hero-interface::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 165%;
  aspect-ratio: 1;
  left: -32.5%;
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 39%, rgba(255,255,255,.08) 44%, #fff 49%, rgba(255,255,255,.18) 53%, transparent 59% 100%);
  animation: hero-ray-spin 5.6s linear infinite;
}
.hero-interface-frame {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 23px;
  background: #080808;
}
.hero-interface-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.02) saturate(.82);
  transform: scale(1.002);
}
.hero-interface-reflection {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.065) 39%, transparent 54%);
  transform: translateX(-125%);
  animation: hero-screen-sheen 8s cubic-bezier(.45,0,.55,1) 1.4s infinite;
}
.hero-interface-fade {
  position: absolute;
  z-index: 4;
  inset: 48% -2px -2px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(6,6,6,.18) 32%, rgba(6,6,6,.78) 74%, #060606 100%);
}
.hero-interface-caption {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 15px;
  color: rgba(255,255,255,.45);
  font: 400 8px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.landing-v2 .hero-product.is-visible .hero-interface-frame {
  animation: hero-screen-enter 1.25s cubic-bezier(.16,1,.3,1) .18s both;
}
.landing-v2 .hero-product + .statement {
  padding-top: 118px;
}
@keyframes hero-ray-spin { to { transform: rotate(360deg); } }
@keyframes hero-screen-enter {
  from { opacity: 0; transform: translateY(42px) scale(.965); filter: blur(9px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hero-screen-sheen {
  0%, 55% { transform: translateX(-125%); }
  78%, 100% { transform: translateX(125%); }
}

@media (max-width: 740px) {
  .landing-v2 .hero-product { min-height: 136svh; }
  .hero-product .hero-stage { top: 64px; min-height: calc(100svh - 64px); }
  .landing-v2 .hero-product .hero-copy { padding-top: 7vh; }
  .landing-v2 .hero-product .hero-copy h1 { font-size: clamp(3.15rem, 14.5vw, 5.35rem); }
  .landing-v2 .hero-product .hero-foot { margin-top: 24px; }
  .hero-interface {
    width: 100%;
    margin: 32px auto 0;
    border-radius: 17px;
    transform-origin: center;
  }
  .hero-interface-frame { border-radius: 16px; }
  .hero-interface-caption { right: 11px; bottom: 10px; font-size: 7px; }
  .landing-v2 .hero-product + .statement { padding-top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product .hero-copy,
  .hero-interface { transform: none !important; }
  .hero-interface::before,
  .hero-interface-reflection,
  .landing-v2 .hero-product.is-visible .hero-interface-frame { animation: none !important; }
}

/* Hero scroll sequence: product first, copy second. */
.landing-v2 .hero-product {
  --screen-opacity: 1;
  --screen-shift: 0px;
  --screen-scale: 1;
  --screen-fade-top: 58%;
  --line-one-opacity: 0;
  --line-two-opacity: 0;
  --line-one-shift: 62px;
  --line-two-shift: 72px;
  --line-one-blur: 8px;
  --line-two-blur: 8px;
  --detail-opacity: 0;
  --detail-shift: 28px;
  min-height: 238svh;
}
.hero-product .hero-stage {
  height: calc(100svh - 72px);
  min-height: 0;
  display: grid;
  place-items: center;
  position: sticky;
  top: 72px;
  isolation: isolate;
}
.hero-product .hero-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(920px, 76vw);
  aspect-ratio: 1.45;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.075), transparent 66%);
  filter: blur(42px);
  opacity: var(--screen-opacity);
}
.landing-v2 .hero-product .hero-interface {
  width: min(1080px, 88vw, 109svh);
  margin: 0;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  opacity: var(--screen-opacity);
  transform: translate3d(-50%, calc(-50% + var(--screen-shift)), 0) scale(var(--screen-scale));
  transform-origin: center;
}
.landing-v2 .hero-product .hero-interface-fade {
  inset: var(--screen-fade-top) -2px -2px;
  background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,.28) 24%, rgba(5,5,5,.88) 76%, #050505 100%);
}
.landing-v2 .hero-product .hero-scroll-copy {
  width: 100%;
  height: 100%;
  padding: 0;
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: none;
}
.landing-v2 .hero-scroll-copy h1 {
  max-width: 1080px;
  margin: 24px 0 0;
  font-size: clamp(4.6rem, 9.1vw, 9.4rem);
}
.landing-v2 .hero-scroll-copy .hero-line {
  animation: none !important;
  will-change: transform, opacity, filter;
}
.landing-v2 .hero-scroll-copy .hero-line:first-child {
  opacity: var(--line-one-opacity);
  transform: translate3d(0, var(--line-one-shift), 0);
  filter: blur(var(--line-one-blur));
}
.landing-v2 .hero-scroll-copy .hero-line:nth-child(2) {
  opacity: var(--line-two-opacity);
  transform: translate3d(0, var(--line-two-shift), 0);
  filter: blur(var(--line-two-blur));
}
.landing-v2 .hero-scroll-copy > .eyebrow,
.landing-v2 .hero-scroll-copy .hero-foot {
  opacity: var(--detail-opacity);
  transform: translate3d(0, var(--detail-shift), 0);
}
.landing-v2 .hero-scroll-copy .hero-foot {
  margin-top: 38px;
}
.landing-v2 .hero-scroll-copy .round-arrow { pointer-events: auto; }
.landing-v2 .hero-product + .statement { padding-top: 106px; }

@media (max-width: 740px) {
  .landing-v2 .hero-product { min-height: 216svh; }
  .hero-product .hero-stage { height: calc(100svh - 64px); top: 64px; }
  .landing-v2 .hero-product .hero-interface { width: min(94vw, 106svh); }
  .landing-v2 .hero-scroll-copy h1 { margin-top: 18px; font-size: clamp(3.25rem, 15vw, 5.6rem); }
  .landing-v2 .hero-scroll-copy .hero-foot { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 .hero-product .hero-interface,
  .landing-v2 .hero-scroll-copy .hero-line,
  .landing-v2 .hero-scroll-copy > .eyebrow,
  .landing-v2 .hero-scroll-copy .hero-foot { filter: none !important; }
}

@property --hero-ray-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Clean ray: border-only mask, with the whole preview fading out at the bottom. */
.landing-v2 .hero-product .hero-interface {
  --hero-ray-angle: 0deg;
  background: #050505;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 57%, rgba(0,0,0,.94) 68%, rgba(0,0,0,.45) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 57%, rgba(0,0,0,.94) 68%, rgba(0,0,0,.45) 84%, transparent 100%);
}
.landing-v2 .hero-product .hero-interface::before {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  left: 0;
  top: 0;
  z-index: 6;
  padding: 1px;
  translate: none;
  border-radius: inherit;
  background: conic-gradient(from var(--hero-ray-angle), transparent 0 42%, rgba(255,255,255,.08) 46%, #fff 49%, rgba(255,255,255,.18) 52%, transparent 58% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hero-ray-border 5.6s linear infinite;
}
.landing-v2 .hero-product.is-visible .hero-interface-frame {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none !important;
}
.landing-v2 .hero-product.is-visible .hero-interface-frame img {
  animation: hero-image-enter 1s cubic-bezier(.16,1,.3,1) .08s both;
}
@keyframes hero-ray-border { to { --hero-ray-angle: 360deg; } }
@keyframes hero-image-enter {
  from { opacity: 0; transform: scale(1.025); filter: blur(7px); }
  to { opacity: 1; transform: scale(1.002); filter: contrast(1.02) saturate(.82); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 .hero-product .hero-interface::before,
  .landing-v2 .hero-product.is-visible .hero-interface-frame img { animation: none !important; }
}

/* Shared white wordmark and a completely still landing header. */
.brand { align-items: center; }
.brand-logo { width: 56px; height: auto; display: block; object-fit: contain; }
.page-landing .topbar { animation: pill-enter .8s cubic-bezier(.2,.8,.2,1) both; }
.page-landing .topbar::before,
.page-landing .topbar::after { display: none; animation: none !important; }

@media (max-width: 740px) {
  .brand-logo { width: 50px; }
}

/* Small terminal line above the product preview. */
.landing-v2 .hero-product .hero-interface {
  width: min(980px, 82vw, 100svh);
  transform: translate3d(-50%, calc(-50% + var(--screen-shift) + 48px), 0) scale(var(--screen-scale));
}
.hero-glitch-label {
  position: absolute;
  z-index: 3;
  top: clamp(54px, 13vh, 138px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.62);
  font: 400 9px/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: var(--screen-opacity);
  transform: translateX(-50%);
  text-shadow: 1px 0 rgba(255,255,255,.22), -1px 0 rgba(255,255,255,.08);
}
.hero-glitch-label b {
  width: 0;
  overflow: hidden;
  color: var(--white);
  font: inherit;
  animation: glitch-type 1.25s steps(20, end) .25s forwards, glitch-flicker 5s steps(2, end) 2.2s infinite;
}
.hero-glitch-label::after {
  content: '_';
  color: var(--white);
  animation: terminal-cursor .7s steps(1, end) infinite;
}
@keyframes glitch-type { to { width: 21ch; } }
@keyframes terminal-cursor { 50% { opacity: 0; } }
@keyframes glitch-flicker {
  0%, 92%, 100% { transform: none; filter: none; }
  93% { transform: translateX(-1px); filter: blur(.3px); }
  95% { transform: translateX(1px); }
}

@media (max-width: 740px) {
  .landing-v2 .hero-product .hero-interface {
    width: min(90vw, 94svh);
    transform: translate3d(-50%, calc(-50% + var(--screen-shift) + 28px), 0) scale(var(--screen-scale));
  }
  .hero-glitch-label { top: 11vh; font-size: 7px; letter-spacing: .11em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glitch-label b,
  .hero-glitch-label::after { animation: none !important; }
  .hero-glitch-label b { width: auto; }
}

/* Restore the supporting system copy and lower the preview once more. */
.system-side { max-width: 500px; }
.system-side > p { margin: 14px 0 34px; }
.system-notes { display: grid; border-top: 1px solid var(--line); }
.system-notes span {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 400 10px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.system-notes b { width: 24px; color: var(--dim); font: inherit; }
.landing-v2 .hero-product .hero-interface { transform: translate3d(-50%, calc(-50% + var(--screen-shift) + 96px), 0) scale(var(--screen-scale)); }

@media (max-width: 740px) {
  .landing-v2 .hero-product .hero-interface { transform: translate3d(-50%, calc(-50% + var(--screen-shift) + 52px), 0) scale(var(--screen-scale)); }
  .system-side > p { margin-top: 0; }
}
