:root {
  --bg: #020303;
  --bg-soft: #060808;
  --panel: rgba(13, 16, 16, .86);
  --panel-solid: #0b0f0f;
  --panel-bright: #111717;
  --text: #f6f8f7;
  --muted: #9aa3a0;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --brand: #6dffab;
  --aqua: #6ee7ff;
  --gold: #f5cb68;
  --danger: #ff6767;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(109, 255, 171, .13), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(110, 231, 255, .11), transparent 22%),
    linear-gradient(180deg, #000 0%, #040606 42%, #000 100%);
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}
a { color: inherit; text-decoration: none; }
main { min-height: calc(100vh - 72px); }
small, .muted { color: var(--muted); }

button, .button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #b5ffd1);
  color: #02100a;
  font-weight: 900;
  padding: 11px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
button:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(109, 255, 171, .22); }
.button.ghost, .copy-pill {
  background: rgba(255,255,255,.045);
  color: var(--text);
  border: 1px solid var(--line);
}
.danger { background: linear-gradient(135deg, var(--danger), #ff9b9b); color: #210202; }
.link { background: transparent; color: var(--text); padding: 0; min-height: 0; box-shadow: none; }
.link:hover { transform: none; box-shadow: none; color: var(--brand); }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
  animation: slideDown .7s ease both;
}
.brand { font-size: 24px; font-weight: 950; letter-spacing: .08em; }
.brand span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0; font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--muted); font-weight: 800; transition: color .2s ease; }
.topbar nav a:hover { color: var(--brand); }
.topbar form { margin: 0; }

.flash {
  margin: 16px auto 0;
  max-width: 1120px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 13, .88);
  animation: popIn .35s ease both;
}
.flash.success { border-color: rgba(109,255,171,.55); }
.flash.error { border-color: rgba(255,103,103,.65); }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  align-items: end;
  padding: 84px 8vw 78px;
  background:
    linear-gradient(110deg, rgba(0,0,0,.98), rgba(0,0,0,.84) 46%, rgba(0,0,0,.58)),
    url('https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1900&q=82') center/cover;
}
.hero-copy { padding-bottom: 30px; animation: floatUp .78s ease both; }
.hero h1 {
  font-size: 124px;
  line-height: .86;
  margin: 0;
  letter-spacing: 0;
  text-shadow: 0 20px 90px rgba(109, 255, 171, .18);
}
.lead { max-width: 780px; font-size: 23px; color: #d9e1dd; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-panel {
  background: rgba(2, 3, 3, .72);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow);
  animation: floatUp .9s ease .12s both;
}
.hero-panel div { display: flex; justify-content: space-between; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.hero-panel div:last-child { border-bottom: 0; }
.hero-panel span { color: var(--muted); }
.hero-panel strong { color: var(--brand); font-size: 22px; }

.band { padding: 82px 8vw; border-top: 1px solid var(--line); }
.band h2, .content h1 { margin-top: 0; }
.band h2 { font-size: 42px; line-height: 1.06; letter-spacing: 0; }
.statement { max-width: 1220px; margin: 0 auto; border-top: 0; }
.statement h2 { max-width: 920px; font-size: 52px; }
.statement p:last-child { max-width: 820px; color: var(--muted); font-size: 18px; }
.section-head, .page-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head h2 { max-width: 720px; margin-bottom: 0; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: 1fr 1fr; display: grid; }
article, .panel, .table-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 54px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
article:hover, .panel:hover { transform: translateY(-3px); border-color: rgba(109,255,171,.28); }
.feature-band article, .operations article { min-height: 190px; }
.step { display: inline-flex; color: var(--aqua); font-weight: 950; margin-bottom: 22px; }
.contact { text-align: center; }
.narrow { max-width: 560px; margin: 56px auto; }

.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); padding: 1px 8vw; }
.metric-strip div { background: #050606; padding: 36px 28px; }
.metric-strip span { display: block; font-size: 34px; color: var(--brand); font-weight: 950; }
.metric-strip p { margin: 4px 0 0; color: var(--muted); }

.tier-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tier-ladder .tier { position: relative; overflow: hidden; }
.tier-ladder .tier:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--aqua)); }
.tier small { color: var(--muted); text-transform: uppercase; font-weight: 950; }
.tier h3 { font-size: 28px; margin: 12px 0 8px; }
.tier strong { color: var(--brand); }

.portal-preview { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 42px; align-items: center; }
.portal-preview p { max-width: 720px; color: var(--muted); }
.terminal-card { background: #020303; border: 1px solid #263a3d; border-radius: 8px; padding: 18px; box-shadow: var(--shadow); }
.terminal-top { display: flex; gap: 7px; margin-bottom: 18px; }
.terminal-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.terminal-top span:nth-child(2) { background: var(--gold); }
.terminal-top span:nth-child(3) { background: var(--aqua); }
.terminal-card dl { margin: 0; }
.terminal-card div:not(.terminal-top) { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 16px 0; }
.terminal-card dt { color: var(--muted); }
.terminal-card dd { margin: 0; color: var(--brand); font-weight: 950; }

.faq-strip > div { max-width: 920px; margin: 0 auto; }
.faq-strip details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-strip summary { cursor: pointer; font-size: 20px; font-weight: 950; }
.faq-strip p, article p { color: var(--muted); }
.final-cta { background: linear-gradient(180deg, rgba(109,255,171,.09), rgba(110,231,255,.03)); padding-bottom: 104px; }
.final-cta h2, .final-cta p { max-width: 760px; margin-left: auto; margin-right: auto; }

.form { display: grid; gap: 12px; }
.form.inline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.invite-form { grid-template-columns: 1.2fr 1fr 140px 150px 210px auto; align-items: end; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.42);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: rgba(109,255,171,.62); box-shadow: 0 0 0 3px rgba(109,255,171,.09); background: rgba(0,0,0,.68); }
textarea { min-height: 120px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.check input { width: auto; }

.app-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 72px); }
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideIn .55s ease both;
}
.sidebar a { padding: 11px 12px; border-radius: 8px; color: var(--muted); font-weight: 850; transition: color .2s ease, background .2s ease, transform .2s ease; }
.sidebar a:hover { background: rgba(255,255,255,.06); color: var(--brand); transform: translateX(3px); }
.content { padding: 30px; overflow: auto; animation: floatUp .5s ease both; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats article span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.stats article strong { display: block; font-size: 25px; margin-top: 6px; overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; background: rgba(4,6,6,.72); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 13px; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(255,255,255,.035); }
.status { color: var(--gold); font-weight: 950; }
.status.good { color: var(--brand); }
.status.closed { color: var(--muted); }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-form input, .row-form select { width: auto; min-width: 130px; }
.payment strong { display: block; font-size: 26px; color: var(--gold); margin: 6px 0 14px; }
.stacked { display: block; margin: 0 0 4px; }
.copy-pill { min-height: 36px; padding: 8px 12px; color: var(--brand); }
.proof-thumb { width: 120px; height: 76px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; transition: transform .2s ease, border-color .2s ease; }
.proof-thumb:hover { transform: scale(1.04); border-color: rgba(109,255,171,.52); }

.reveal-target { opacity: 0; transform: translateY(18px); }
.reveal-target.is-visible { animation: floatUp .62s ease both; }
main > *, .app-shell, .panel { animation: floatUp .55s ease both; }
article:nth-child(2n), tbody tr:nth-child(2n) { animation-delay: .04s; }
article:nth-child(3n), tbody tr:nth-child(3n) { animation-delay: .08s; }

@keyframes floatUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1100px) {
  .invite-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero, .grid.two, .grid.three, .grid.four, .split, .stats, .app-shell, .metric-strip, .tier-ladder, .portal-preview, .invite-form {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 92px; }
  .hero h1 { font-size: 68px; }
  .statement h2, .band h2 { font-size: 33px; }
  .section-head, .page-head { display: block; }
  .topbar { padding: 0 16px; align-items: flex-start; height: auto; min-height: 72px; flex-direction: column; justify-content: center; }
  .topbar nav { gap: 10px; font-size: 14px; flex-wrap: wrap; padding-bottom: 12px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow: auto; }
  .content { padding: 18px; }
  table { display: block; overflow-x: auto; }
}
