:root {
  --bg: #071512;
  --bg-2: #0d2420;
  --bg-3: #12352f;
  --ink: #f3f7f5;
  --muted: #9fb3ac;
  --line: rgba(232, 184, 109, 0.22);
  --accent: #e8b86d;
  --accent-2: #7dcfb6;
  --danger: #ff8f8f;
  --ok: #8fe3b5;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(125, 207, 182, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(232, 184, 109, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #081a17 40%, #0a1f1b 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 21, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #f6d59a 0 28%, transparent 29%),
    radial-gradient(circle at 65% 38%, #0b1f1c 0 10%, transparent 11%),
    radial-gradient(circle at 38% 38%, #0b1f1c 0 10%, transparent 11%),
    radial-gradient(circle at 50% 55%, #e8b86d 0 46%, transparent 47%);
  box-shadow: 0 0 0 1px rgba(232, 184, 109, 0.35);
}

.brand-text,
.brand-hero,
.brand-inline,
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text {
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a,
.nav-link-btn {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.nav-link-btn:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
}

.nav-cta:hover {
  background: #f0c788;
  color: var(--bg) !important;
}

.nav-form {
  margin: 0;
}

.nav-link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: transparent;
  padding: 0.65rem;
  gap: 0.35rem;
  flex-direction: column;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 7rem 0 4.5rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 18, 0.15) 0%, rgba(7, 21, 18, 0.55) 55%, rgba(7, 21, 18, 0.92) 100%),
    radial-gradient(ellipse 80% 50% at 70% 35%, rgba(125, 207, 182, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 45% at 20% 70%, rgba(232, 184, 109, 0.14), transparent 55%),
    linear-gradient(135deg, #0a1c18, #12352f 45%, #071512);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  animation: gridDrift 28s linear infinite;
}

.hero-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -10%;
  top: -15%;
  background: radial-gradient(circle, rgba(232, 184, 109, 0.22), transparent 65%);
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-screen {
  position: absolute;
  right: max(4%, calc(50% - 520px));
  top: 18%;
  width: min(46vw, 520px);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(232, 184, 109, 0.28);
  border-radius: 18px 18px 10px 10px;
  background:
    linear-gradient(180deg, rgba(18, 53, 47, 0.9), rgba(7, 21, 18, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(900px) rotateY(-12deg) rotateX(6deg);
}

.hero-screen-bar {
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-scanlines {
  position: absolute;
  inset: 1.4rem 0 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(125, 207, 182, 0.05),
    rgba(125, 207, 182, 0.05) 2px,
    transparent 2px,
    transparent 6px
  );
}

.hero-clean-wave {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 45%;
  bottom: 8%;
  background: linear-gradient(90deg, transparent, rgba(125, 207, 182, 0.55), rgba(232, 184, 109, 0.45), transparent);
  filter: blur(18px);
  animation: cleanSweep 5.5s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.brand-hero {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  color: var(--accent);
}

.brand-inline {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 16ch;
}

.hero h1 {
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1205;
}

.btn-primary:hover {
  background: #f0c788;
  color: #1a1205;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.section,
.page-hero,
.dash,
.auth-section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 53, 47, 0.35), rgba(7, 21, 18, 0.1));
}

.page-hero {
  padding-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 0.75rem;
}

.pull {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.plain-list,
.split-list,
.difference-list,
.steps,
.faq-list,
.data-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.plain-list li,
.difference-list li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.45rem 0;
}

.plain-list li::before,
.difference-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent-2);
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.5rem;
}

.split-list li {
  padding-left: 1rem;
  position: relative;
}

.split-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feature-board {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
}

.feature-board li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.25rem;
}

.feature-board strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.feature-board span {
  color: var(--muted);
}

.why-works {
  margin-top: 1.5rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.25rem;
  padding-left: 3.2rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(232, 184, 109, 0.14);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.steps span {
  color: var(--muted);
}

.pricing-band {
  text-align: left;
}

.price-label {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--accent);
  margin: 0.2rem 0 0.6rem;
  letter-spacing: -0.04em;
}

.price-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.fineprint {
  color: var(--muted);
  font-size: 0.92rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.support-grid article {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.support-grid h2 {
  font-size: 1.35rem;
}

.support-grid p {
  color: var(--muted);
}

.faq-list details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.faq-list p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.stack-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stack-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.stack-form input:focus,
.stack-form textarea:focus {
  outline: 2px solid rgba(232, 184, 109, 0.45);
  outline-offset: 1px;
}

.alert {
  border-left: 3px solid var(--accent);
  background: rgba(232, 184, 109, 0.08);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.alert-error {
  border-left-color: var(--danger);
  background: rgba(255, 143, 143, 0.08);
}

.alert-success {
  border-left-color: var(--ok);
  background: rgba(143, 227, 181, 0.08);
}

.dash {
  padding-top: 2.5rem;
}

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.dash-aside-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.dash-nav {
  display: grid;
  gap: 0.35rem;
}

.dash-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  font-weight: 600;
}

.dash-nav a:hover,
.dash-nav a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}

.dash-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dash-panels article {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.dash-panels h2 {
  font-size: 1.2rem;
}

.license-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(232, 184, 109, 0.08);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.data-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.data-list .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr;
  gap: 2.5rem;
}

.footer-wordmark {
  font-size: 1.7rem;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.footer-tag,
.footer-line,
.footer-bottom p {
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-cols h3 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.footer-cols a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.35rem 0;
}

.footer-cols a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes cleanSweep {
  0%, 100% { transform: translateX(-8%) translateY(8%); opacity: 0.45; }
  50% { transform: translateX(8%) translateY(-4%); opacity: 0.9; }
}

@media (max-width: 900px) {
  .hero {
    align-items: center;
    padding-top: 6rem;
  }

  .hero-screen {
    opacity: 0.35;
    width: min(70vw, 420px);
    right: -8%;
    top: 12%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .split-list,
  .feature-board,
  .support-grid,
  .dash-panels,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .dash-nav a {
    border-left: 0;
    padding-left: 0;
    border-bottom: 2px solid transparent;
  }

  .dash-nav a.is-active {
    border-bottom-color: var(--accent);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(7, 21, 18, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav.is-open {
    display: flex;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-grid,
  .hero-glow,
  .hero-clean-wave {
    animation: none;
  }
}

.btn-lg {
  min-height: 3.1rem;
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
  min-width: 8.5rem;
}

.status-row {
  display: grid;
  gap: 0.45rem;
  margin: 1.2rem 0 0.4rem;
}

.agent-pill,
.job-pill {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.scan-actions {
  margin-top: 1rem;
}

.report-block {
  overflow: auto;
  max-height: 70vh;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.mobile-dock {
  display: none;
}

@media (max-width: 900px) {
  .page-dashboard .dash {
    padding-bottom: 6.5rem;
  }

  .page-dashboard .dash-aside {
    display: none;
  }

  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.55rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(7, 21, 18, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-dock a {
    color: var(--muted);
    text-decoration: none;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 0.15rem;
  }

  .mobile-dock a.is-active {
    color: var(--accent);
  }

  .cta-row .btn {
    flex: 1 1 140px;
  }
}
