@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0c0c0c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(10, 12, 14, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.34);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --soft: rgba(255, 255, 255, 0.38);
  --brand: #39ff14;
  --cyan: #39ff14;
  --ice: #c9ff72;
  --green: #b9ff4a;
  --danger: #ff7474;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
::selection { background: rgba(57, 255, 20, 0.25); }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, p, ol { margin: 0; }
a { color: inherit; }
.noise-svg { position: absolute; width: 0; height: 0; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.page-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.08);
}
.video-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 50% 6%, rgba(57, 255, 20, 0.16), transparent 68%),
    radial-gradient(640px circle at 20% 20%, rgba(185, 255, 74, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(12,12,12,.52), #0c0c0c 82%);
}
.guide {
  position: fixed;
  inset-block: 0;
  width: 1px;
  background: rgba(255,255,255,.1);
  z-index: -1;
}
.guide-left { left: calc(50% - 36rem); }
.guide-right { left: calc(50% + 36rem); }

.shell {
  width: min(1152px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.liquid-glass {
  background: rgba(255,255,255,0.018);
  background-blend-mode: luminosity;
  backdrop-filter: blur(14px) brightness(0.95);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), var(--shadow);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.navbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  animation: navIn .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.brand img {
  width: 158px;
  height: 42px;
  object-fit: contain;
  border-radius: 7px;
}
.nav-cta, .primary-link, .ghost-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav-cta, .primary-link {
  color: #050505;
  background: #fff;
}
.nav-cta:hover, .primary-link:hover { transform: translateY(-1px); background: rgba(255,255,255,.92); }
.ghost-link {
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
}
.ghost-link:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }

.hero {
  min-height: 470px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 54px 0 42px;
}
.hero-inner {
  max-width: 850px;
  display: grid;
  justify-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.7);
  font-size: .86rem;
  font-weight: 800;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
}
h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: .9;
  letter-spacing: -0.06em;
  font-weight: 760;
}
.shiny {
  display: block;
  background-image: linear-gradient(to right, #061006 0%, #12380d 12.5%, #d7ff91 32.5%, #39ff14 50%, #12380d 67.5%, #061006 87.5%, #061006 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: url(#c3-noise);
  animation: shiny 6s linear infinite;
}
@keyframes shiny { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.lead {
  margin-top: 28px;
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.microcopy {
  margin-top: 14px;
  color: rgba(255,255,255,.42);
  font-size: .78rem;
}

.menu-strip {
  height: 40px;
  margin: 0 calc(50% - 50vw);
  padding: 0 max(16px, calc(50vw - 576px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-block: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,.58);
  font-size: .78rem;
}
.menu-strip div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.menu-strip strong { color: #fff; }

.mockup-section { padding: 70px 0 86px; }
.window {
  border-radius: 22px;
  background: rgba(14, 16, 20, .88);
}
.window-titlebar {
  height: 46px;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.traffic { display: flex; gap: 8px; padding-left: 18px; }
.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}
.traffic span:nth-child(1) { background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }
.window-titlebar p {
  color: rgba(255,255,255,.48);
  text-align: center;
  font-size: .78rem;
}
.dashboard-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: 250px minmax(260px, .95fr) minmax(320px, 1.2fr);
}
.mock-sidebar, .mock-list, .mock-reader { min-width: 0; }
.mock-sidebar {
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.28);
}
.mock-sidebar button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 850;
  font-size: .78rem;
}
.mock-nav {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  color: rgba(255,255,255,.62);
  font-size: .85rem;
}
.mock-nav.active { color: #fff; background: rgba(255,255,255,.1); }
.mock-nav span { margin-left: auto; color: rgba(255,255,255,.4); }
.labels {
  margin-top: 34px;
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.58);
  font-size: .78rem;
}
.labels p {
  color: rgba(255,255,255,.34);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 8px;
}
.dot.cyan { background: var(--cyan); }
.dot.green { background: var(--green); }
.dot.amber { background: #f59e0b; }

.mock-list {
  border-right: 1px solid rgba(255,255,255,.1);
}
.mock-search {
  margin: 14px;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.38);
  font-size: .82rem;
}
.lead-card {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 12px;
  padding: 15px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.lead-card.active { background: rgba(255,255,255,.08); }
.lead-card > span {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--ice);
}
.lead-card b { font-size: .9rem; }
.lead-card p, .lead-card small { color: rgba(255,255,255,.5); font-size: .78rem; }

.mock-reader {
  padding: 26px;
}
.reader-toolbar {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.48);
  font-size: .8rem;
}
.mock-reader h2 {
  margin-top: 26px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -.03em;
}
.mock-reader p {
  margin-top: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.62;
}
.summary-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(164,244,253,.08);
  border: 1px solid rgba(164,244,253,.18);
}
.summary-card b { display: block; color: var(--ice); }
.summary-card span { display: block; margin-top: 8px; color: rgba(255,255,255,.65); line-height: 1.5; }
.attachment-pill {
  width: fit-content;
  margin-top: 22px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0 26px;
}
.card {
  min-width: 0;
  border-radius: 22px;
  padding: 26px;
}
.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.section-title span {
  color: var(--ice);
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.section-title h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-title.compact h2 { font-size: 1.55rem; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.78);
  font-weight: 760;
}
small { color: rgba(255,255,255,.42); font-weight: 560; line-height: 1.35; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(0,0,0,.36);
  outline: none;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(164,244,253,.65);
  box-shadow: 0 0 0 4px rgba(57,255,20,.12);
}
.wide { margin-top: 16px; }
.consent-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.checkbox {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 650;
  line-height: 1.45;
}
.checkbox input { min-height: auto; margin-top: 4px; }

.primary, .secondary {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 850;
  border: 0;
}
.primary {
  width: 100%;
  margin-top: 18px;
  background: #fff;
  color: #000;
}
.secondary {
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.danger {
  color: #fff;
  background: rgba(255, 116, 116, .18);
  border: 1px solid rgba(255, 116, 116, .4);
}
.mini { min-height: 36px; padding: 0 12px; border-radius: 9px; }
.message { min-height: 22px; margin-top: 12px; color: var(--muted); line-height: 1.45; }
.message.success { color: var(--green); }
.message.error { color: var(--danger); }

.side-stack { display: grid; gap: 22px; }
.steps { display: grid; gap: 12px; }
.steps div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.steps b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061006;
  background: #fff;
}
.steps span, .muted { color: var(--muted); line-height: 1.55; }

.admin { display: block; margin-top: 18px; }
.admin-shell { min-height: 100vh; padding-bottom: 56px; }
.admin h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: .96;
  letter-spacing: -0.04em;
}
.admin-auth, .admin-actions, .manual-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto;
  gap: 10px;
  margin-bottom: 12px;
}
.requires-auth { display: none; }
.admin-unlocked .admin-actions { display: grid; }
.admin-unlocked .manual-form { display: grid; }
.admin-unlocked .table-wrap { display: block; }
.admin-unlocked #logoutAdmin { display: inline-flex; }
.admin-actions { grid-template-columns: minmax(180px, 1fr) 180px auto; }
.manual-form { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: start; }
.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
}
table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}
th, td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--ice);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
td span { display: block; color: rgba(255,255,255,.45); margin-top: 4px; font-size: .86rem; }
.pill {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: #061006;
  background: #fff;
  font-weight: 850;
}
.activity-pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .82rem;
}
.activity-active { color: #061006; background: var(--green); }
.activity-warm { color: #1e1400; background: #ffd166; }
.activity-inactive { color: #fff; background: rgba(255, 116, 116, .28); border: 1px solid rgba(255, 116, 116, .45); }
.activity-unlinked { color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }

.logos {
  padding: 68px 0;
  text-align: center;
}
.logos p {
  color: rgba(255,255,255,.42);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
}
.logos div {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.logos span {
  color: rgba(255,255,255,.52);
  font-weight: 850;
  transition: color .2s ease;
}
.logos span:hover { color: #fff; }

.final-cta {
  margin-top: 26px;
  padding: clamp(42px, 8vw, 86px);
  border-radius: 28px;
  text-align: center;
}
.final-cta h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 5.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.final-cta p {
  max-width: 480px;
  margin: 20px auto 26px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .guide { display: none; }
  .navbar { grid-template-columns: auto auto; }
  .hero { min-height: auto; padding-top: 54px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-list { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .content-grid { grid-template-columns: 1fr; }
  .manual-form, .admin-actions, .admin-auth { grid-template-columns: 1fr; }
  .logos div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1152px); padding-top: 14px; }
  .brand img { width: 138px; }
  .nav-cta { min-height: 40px; padding: 0 13px; font-size: .8rem; }
  h1 { font-size: clamp(2.55rem, 17vw, 4rem); }
  .lead { font-size: .98rem; }
  .menu-strip { overflow: hidden; font-size: .7rem; }
  .menu-strip span:nth-child(n+4) { display: none; }
  .window-titlebar { grid-template-columns: 70px 1fr 70px; }
  .mock-reader, .card { padding: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .logos div { grid-template-columns: 1fr; }
}
