/* =========================================================
   AutoBank — Serial Console theme
   Bare-metal green phosphor, minimal chrome, IPMI/serial aesthetic
   Type: JetBrains Mono (display) + Inter (body)
   ========================================================= */

:root {
  --bg: #0c0c0c;
  --bg-2: #000000;
  --bg-3: #111111;
  --surface: #0a0a0a;
  --surface-2: #141414;
  --line: #1a331a;
  --line-strong: #2a4a2a;
  --ink: #c8e6c8;
  --ink-soft: #9fdf9f;
  --ink-muted: #3db83d;
  --accent: #33ff33;
  --accent-2: #228822;
  --accent-3: #66ff66;
  --warn: #ffb86b;
  --danger: #ff6b8a;
  --shadow-lg: none;

  --font-display: "JetBrains Mono", ui-monospace, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --radius: 6px;
  --radius-lg: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover {
  color: #66ff66;
}

main a:not(.btn):hover,
main a:not(.btn):focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.primary-nav a:hover,
.hero-title,
.kicker,
.brand-name,
.section-head h2 {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus-visible {
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 12, 12, 0.98);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.brand:hover {
  color: var(--accent);
}
.brand-mark-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  overflow: hidden;
  border-radius: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.brand-accent {
  color: var(--accent);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.primary-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 0;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent) !important;
  font-weight: 600;
}

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

@media (max-width: 720px) {
  .header-nav {
    position: relative;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 200px;
    padding: 10px;
    background: rgba(12, 12, 12, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

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

  .primary-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: var(--surface-2);
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 255, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 255, 51, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.glow-1,
.glow-2,
.glow-3 {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-mono);
  margin-bottom: 28px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(51, 255, 51, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 255, 51, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(51, 255, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 255, 51, 0);
  }
}

.hero-title {
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(32px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--accent);
  max-width: 20ch;
}
.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 0.9em;
  background: var(--accent);
  vertical-align: -0.05em;
  margin-left: 0.1em;
  animation: blink 1.1s infinite step-end;
  transform: translateY(0.05em);
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 36px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-large {
  padding: 16px 26px;
  font-size: 16px;
}
.btn-primary {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 0;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg) !important;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line);
  border-radius: 0;
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---------- Terminal ---------- */
.terminal {
  background: #000;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  max-width: 760px;
  margin-top: 8px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0c1124;
  border-bottom: 1px solid var(--line);
}
.terminal-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #ff6b6b; }
.dot.yellow { background: #ffcc66; }
.dot.green { background: #66e088; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.terminal-body {
  margin: 0;
  padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 1.25vw, 14px);
  line-height: 1.85;
  color: var(--ink-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .prompt {
  color: var(--accent);
  margin-right: 4px;
}
.terminal-body .cmd {
  color: var(--accent);
}
.terminal-body .muted {
  color: var(--ink-muted);
}
.terminal-body .hl {
  color: var(--accent-2);
}
.terminal-body .ok {
  color: var(--accent);
}
.blink {
  animation: blink 1.1s infinite step-end;
}

/* ---------- Strip ---------- */
.strip {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.strip-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}
.strip-list li {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
}
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 800px;
  margin: 0 0 56px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.kicker-light {
  color: var(--accent);
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--surface-2);
}
.service-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(51, 255, 51, 0.05);
  color: var(--accent);
  margin-bottom: 16px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.service-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.services-footnote {
  margin: 36px 0 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- Outcomes band ---------- */
.outcomes {
  padding: clamp(40px, 7vw, 80px) 0;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.outcomes-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 720px) {
  .outcomes-inner {
    grid-template-columns: 1fr;
  }
}
.outcome-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 64px);
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.outcome-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.process-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Use cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.usecase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease;
}
.usecase:hover {
  border-color: var(--line-strong);
}
.usecase-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.usecase p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 18px 0 28px;
  max-width: 60ch;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.why-list li strong {
  color: var(--ink);
  font-weight: 600;
}
.why-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.why-card {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.why-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.why-card-stat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.why-card-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- CTA / Book ---------- */
.cta-section {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cta-inner {
  max-width: 720px;
  text-align: center;
}
.cta-section h2 {
  color: var(--ink);
}
.cta-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 18px auto 36px;
  line-height: 1.6;
}
.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta-foot {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-inner p {
  margin: 0;
}
.footer-meta a {
  color: var(--ink-soft);
}
.footer-meta a:hover {
  color: var(--accent);
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse,
  .cursor,
  .blink {
    animation: none;
  }
}
