:root {
  --bg: #001020;
  --bg-elevated: #071b30;
  --bg-elevated-2: #0d2740;
  --border: #123049;
  --border-bright: #1c4a6b;
  --text: #bcdcec;
  --text-muted: #6d90a6;
  --text-bright: #eaf8ff;
  --accent: #a8e6ff;
  --accent-2: #145a8c;
  --accent-hover: #6fd0f5;
  --success: #2fbf6f;
  --warn: #f2c078;
  --danger: #f18688;
  --gradient: linear-gradient(135deg, #a8e6ff, #145a8c 55%, #001020);
  --radius: 10px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 0 1px rgba(168, 230, 255, .25), 0 8px 24px rgba(168, 230, 255, .12);
  /* One workhorse sans for prose and headings, one mono for anything that
     reads as data -- commands, log lines, tags, counters. The mono thread is
     what ties "a moderation bot that logs everything" together visually,
     rather than a display face picked for looking impressive in a hero. */
  --font-display: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  animation: page-in .5s ease forwards;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { animation: page-out .25s ease forwards; }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving { animation: none; opacity: 1; }
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(168, 230, 255, .35); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; }

/* ---------- Backdrop ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000, transparent 80%);
}

/* ---------- Splash ---------- */
.modsentry-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .4s ease;
}
.modsentry-splash img { width: 130px; height: 130px; }
.modsentry-splash--out { opacity: 0; pointer-events: none; }

/* Same punchy feel as the loading splash, but without the opacity fade --
   this hits an already-visible logo, it doesn't need to appear from nothing. */
@keyframes modsentry-punch {
  0% { transform: scale(1); }
  30% { transform: scale(1.28); }
  55% { transform: scale(.94); }
  75% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.hero-logo-wrap:hover { animation: modsentry-punch .5s cubic-bezier(.2, .9, .3, 1.4); }
@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap:hover { animation: none; }
}

/* ---------- Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0;
  background: rgba(0, 16, 32, .75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-word {
  font-weight: 800; font-size: 19px; letter-spacing: -.01em;
  color: var(--text-bright);
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; display: inline-block; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a { position: relative; color: var(--text-muted); font-weight: 600; font-size: 14px; transition: color .15s ease; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gradient); transition: right .2s ease;
}
.nav-links a:hover { color: var(--text-bright); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--text-bright); }

.nav-cta { margin-left: auto; display: flex; gap: 10px; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .topbar .wrap { gap: 12px; }
  .brand-word { font-size: 16px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: none;
  background: var(--accent);
  color: var(--bg); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background-color: var(--accent-hover); box-shadow: 0 0 0 1px rgba(168,230,255,.4), 0 10px 28px rgba(168,230,255,.28); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-ghost {
  background: transparent; color: var(--text-bright);
  border: 1px solid var(--border-bright); box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-elevated-2); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
}
.hero-logo-wrap { perspective: 900px; margin: 0 auto 28px; width: 128px; height: 128px; }
.hero-logo {
  width: 128px; height: 128px; display: block;
  transition: transform .25s cubic-bezier(.2,.8,.3,1.1);
  will-change: transform;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px; border-radius: 3px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0; animation: rise .6s ease .1s both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.04;
  margin: 0 0 22px;
  opacity: 0; animation: rise .7s ease .2s both;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  max-width: 620px; margin: 0 auto 40px;
  color: var(--text-muted); font-size: 18px; line-height: 1.7;
  opacity: 0; animation: rise .7s ease .32s both;
}
.hero-ctas {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: rise .7s ease .44s both;
}
.hero-note {
  margin-top: 18px; color: var(--text-muted); font-size: 13px;
  opacity: 0; animation: rise .7s ease .54s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero p.lead, .hero-ctas, .hero-note { animation: none; opacity: 1; }
  .hero-logo { transition: none; }
}

/* A thin radar sweep behind the shield instead of a soft glow blob -- reads
   as "watching," ties into the Sentry name, and stays out of the way of the
   logo instead of sitting under it as decoration with no reason to exist. */
.hero-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px;
  pointer-events: none; z-index: -1;
  border: 1px solid rgba(168, 230, 255, .1);
  border-radius: 50%;
}
.hero-glow::before, .hero-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(168, 230, 255, .07);
}
.hero-glow::before { inset: 15%; }
.hero-glow::after {
  inset: 0; border: none;
  background: conic-gradient(from 0deg, transparent 0%, rgba(168, 230, 255, .16) 8%, transparent 16%);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-glow::after { animation: none; display: none; } }

/* Below ~1000px the hero stays the centered single-column stack (it's what
   makes the mobile version work well). Above it, a stretched copy of that
   same stack just reads as empty space either side -- so widen into a real
   two-column layout instead: copy on the left, the shield on the right,
   using named grid areas so DOM order (logo first, for a sane mobile flow)
   doesn't have to match visual order. */
@media (min-width: 1000px) {
  .hero { text-align: left; padding: 120px 0 110px; }
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas:
      "badge   logo"
      "heading logo"
      "lead    logo"
      "ctas    logo"
      "note    logo";
    align-items: center;
    column-gap: 56px;
  }
  .hero-logo-wrap { grid-area: logo; margin: 0 auto; width: 220px; height: 220px; }
  .hero-logo { width: 220px; height: 220px; }
  .hero-badge { grid-area: badge; justify-self: start; }
  .hero h1 { grid-area: heading; }
  .hero p.lead { grid-area: lead; margin: 0 0 36px; max-width: 92%; }
  .hero-ctas { grid-area: ctas; justify-content: flex-start; justify-self: start; }
  .hero-note { grid-area: note; }
  .hero-glow { left: 68%; }
}
@media (min-width: 1240px) {
  .hero-logo-wrap { width: 260px; height: 260px; }
  .hero-logo { width: 260px; height: 260px; }
}

/* ---------- Live console: real commands, typed and logged ---------- */
.console {
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.console-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}
.console-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.console-title {
  margin-left: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 7px;
}
.console-title-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 191, 111, .18);
}
.console-body { padding: 26px 24px; font-family: var(--font-mono); min-height: 270px; }
.console-cmd { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-bright); margin-bottom: 22px; flex-wrap: wrap; }
.console-prompt { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.console-cursor { display: inline-block; width: 7px; height: 16px; background: var(--accent); animation: console-blink 1s step-end infinite; vertical-align: middle; }
@keyframes console-blink { 50% { opacity: 0; } }
.console-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.console-log-entry {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 14px; border-radius: 6px;
  background: var(--bg-elevated-2);
  border-left: 2px solid var(--entry-color, var(--accent));
  font-size: 12.5px; color: var(--text);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
}
.console-log-entry.is-in { opacity: 1; transform: translateY(0); }
.console-log-text { flex: 1; min-width: 0; }
.console-log-meta {
  flex-shrink: 0; color: var(--text-muted); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .05em;
}
.console-caption { text-align: center; color: var(--text-muted); font-size: 13px; margin: 16px 0 0; font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) { .console-cursor { display: none; } }
@media (max-width: 560px) {
  .console-body { padding: 20px 16px; min-height: 0; }
  .console-log-entry { flex-direction: column; gap: 3px; }
}

/* ---------- Beta strip ---------- */
.beta-strip {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 28px;
  text-align: center;
}
.beta-strip .lock { display: inline-flex; color: var(--accent); }
.beta-strip strong { color: var(--text-bright); }
.beta-count {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 26px; color: var(--accent);
}
.beta-bar {
  width: 160px; height: 6px; border-radius: 999px; background: var(--bg-elevated-2);
  overflow: hidden; border: 1px solid var(--border);
}
.beta-bar-fill { height: 100%; background: var(--gradient); border-radius: 999px; width: 0%; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }

/* ---------- Section shared ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: block; color: var(--accent); font-weight: 600; font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.impact-flourish { display: inline-block; width: 26px; height: 26px; margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: 0; line-height: 1.02; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin: 0; }

/* reveal-on-scroll, staggered via --i */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }

/* One card runs wide to break up the grid instead of 12 identical tiles --
   the flagship feature earns the extra room. */
.feature-card.is-wide { grid-column: span 2; }
@media (max-width: 620px) { .feature-card.is-wide { grid-column: span 1; } }

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-bright);
  border-radius: 4px;
  padding: 26px;
  position: relative; overflow: hidden;
  transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.feature-card:hover {
  border-left-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
/* A bordered square instead of a bare floating icon with a glow underneath --
   reads as a key on a console rather than decoration for its own sake. */
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  transition: border-color .25s ease, background-color .25s ease;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-card:hover .feature-icon { border-color: var(--accent); background: rgba(168, 230, 255, .08); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--text-bright); position: relative; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; position: relative; }

/* ---------- How it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; color: var(--accent); font-size: 18px; margin-bottom: 16px;
  transition: border-color .25s ease;
}
.step:hover .step-num { border-color: var(--accent); }
.step h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--text-bright); }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.step-note {
  font-size: 13px; color: #f2c078; background: rgba(217, 119, 6, .1);
  border: 1px solid rgba(217, 119, 6, .3); border-radius: 8px;
  padding: 8px 10px; margin-top: 10px; line-height: 1.5;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 20px;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: 0; color: var(--text-bright);
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ---------- Feature rows (features.html deep-dive) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.is-reverse { direction: rtl; }
.feature-row.is-reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .feature-row, .feature-row.is-reverse { grid-template-columns: 1fr; direction: ltr; padding: 44px 0; }
}
.feature-row-panel {
  aspect-ratio: 4 / 3; border-radius: 10px; position: relative; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border); border-top: 2px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  transition: border-top-color .3s ease;
}
.feature-row-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(220px 220px at 50% 50%, #000, transparent 75%);
}
.feature-row:hover .feature-row-panel { border-top-color: var(--accent); }
.feature-row-glyph {
  position: relative; z-index: 1; color: var(--accent);
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1.2), border-color .3s ease;
}
.feature-row-glyph svg { width: 38px; height: 38px; display: block; }
.feature-row:hover .feature-row-glyph { transform: scale(1.05); border-color: var(--accent); }

.feature-row-body .eyebrow { margin-bottom: 10px; }
.feature-row-body h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: 0; line-height: 1.04; margin: 0 0 14px; }
.feature-row-body p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin: 0 0 18px; }
.feature-row-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-row-list li {
  position: relative; padding-left: 28px;
  color: var(--text); font-size: 14.5px; line-height: 1.6;
}
.feature-row-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  color: var(--accent); font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(168,230,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  padding: 64px 40px;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: 0; margin: 0 0 14px; }
.cta-band p { color: var(--text-muted); font-size: 16px; margin: 0 0 32px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-word { font-size: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 13px; font-weight: 600; transition: color .15s ease; }
.footer-links a:hover { color: var(--text-bright); }
.footer-fine { color: var(--text-muted); font-size: 12px; margin-top: 24px; opacity: .7; }
.footer-studio { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.footer-studio a { color: var(--text); font-weight: 700; transition: color .15s ease; }
.footer-studio a:hover { color: var(--accent); }
