/* =========================================================
   ORANGE BOLT — Design tokens
   ========================================================= */
:root {
  /* Color */
  --bg:            #101315;
  --panel:         #181c1f;
  --panel-raised:  #1e2226;
  --border:        #2a2f33;
  --border-soft:   #23272b;
  --text:          #e9e7e2;
  --text-muted:    #8b9196;
  --text-faint:    #5c6266;
  --accent:        #f97316;
  --accent-hover:  #fb8c3d;
  --accent-soft:   rgba(249, 115, 22, 0.12);
  --danger:        #f26262;
  --success:       #4ade80;

  /* Type */
  --font-head: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Layout */
  --content-width: 1180px;
  --gutter: 24px;
  --radius-sm: 4px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; color: var(--text); }
h1 { font-size: clamp(1.75rem, 2.4vw, 2.35rem); font-weight: 600; letter-spacing: -0.005em; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; color: var(--text-muted); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #101315; padding: 10px 16px;
  z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 88px var(--gutter);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #14100b;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-muted); }

.btn-nav { padding: 10px 18px; font-size: 0.9rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 19, 21, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.logo-mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
}
.logo-mark .cursor {
  animation: cursorBlink 1.1s steps(1) infinite;
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.93rem;
  color: var(--text-muted);
  transition: color 140ms ease;
}
.main-nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  margin: 0 auto;
  background: var(--text);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--border-soft);
}
.mobile-nav a { padding: 12px 4px; color: var(--text-muted); border-bottom: 1px solid var(--border-soft); }
.mobile-nav a:last-child { border-bottom: none; margin-top: 10px; text-align: center; }
.mobile-nav .btn { color: #14100b; }

@media (max-width: 860px) {
  .main-nav, .btn-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* =========================================================
   Hero + Simulator
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px var(--gutter) 88px;
}

/* Faint drifting blueprint-grid texture — the site's one ambient signature */
.hero::before {
  content: "";
  position: absolute;
  inset: -15% -10%;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 24% 18%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 45% at 24% 18%, black, transparent 72%);
  animation: gridDrift 50s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, -56px 56px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.hero-copy { padding-top: 24px; }

/* Terminal-style lead-in above the headline */
.hero-boot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.hero-boot span::before { content: ""; }

/* One orchestrated load-in sequence — runs once, nothing else on the page fades on scroll */
.hero-boot span,
.hero-copy h1,
.hero-sub,
.hero-ctas,
.hero-stats {
  opacity: 0;
  animation: heroReveal 550ms ease forwards;
}
.hero-boot span:nth-child(1) { animation-delay: 120ms; }
.hero-boot span:nth-child(2) { animation-delay: 520ms; }
.hero-copy h1  { animation-delay: 980ms; }
.hero-sub      { animation-delay: 1200ms; }
.hero-ctas     { animation-delay: 1380ms; }
.hero-stats    { animation-delay: 1540ms; }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-boot span, .hero-copy h1, .hero-sub, .hero-ctas, .hero-stats {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-sub { margin-top: 20px; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-ctas .btn-primary {
  animation: ctaPulse 3.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
  50%      { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ctas .btn-primary { animation: none; }
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.hero-stats dt { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 4px; }
.hero-stats dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

/* Simulator card */
.simulator {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sim-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.sim-tab {
  flex: 1 1 auto;
  padding: 14px 16px;
  background: none;
  border: none;
  border-right: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
  white-space: nowrap;
}
.sim-tab:last-child { border-right: none; }
.sim-tab:hover { color: var(--text); }
.sim-tab[aria-selected="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.sim-panel { padding: 24px; }
.sim-scenario-desc { font-size: 0.92rem; margin-bottom: 20px; }

.sim-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sim-column {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.sim-manual { background: var(--panel-raised); }
.sim-bolt { background: #14181b; border-color: rgba(249, 115, 22, 0.35); }

.sim-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sim-col-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }

.sim-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.sim-dot-active { background: var(--danger); box-shadow: 0 0 0 3px rgba(242, 98, 98, 0.18); }
.sim-dot-done-bad { background: var(--danger); }
.sim-dot-done-good { background: var(--success); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }

.sim-metric { display: flex; align-items: baseline; gap: 8px; }
.sim-metric-value { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sim-bolt .sim-metric-value { color: var(--accent); }
.sim-metric-label { font-size: 0.8rem; color: var(--text-faint); }

.sim-facts { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.sim-facts span { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

.sim-status-line {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.sim-terminal {
  background: #0b0d0e;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
}
.sim-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #14171a;
  border-bottom: 1px solid var(--border-soft);
}
.sim-terminal-bar span { width: 7px; height: 7px; border-radius: 50%; background: #3a3f43; }
.sim-terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.sim-terminal-body {
  margin: 0;
  padding: 12px 14px;
  height: 118px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-wrap;
}
.sim-terminal-body .ok { color: var(--success); }
.sim-terminal-body .dim { color: var(--text-faint); }

.sim-run { margin-top: 20px; width: 100%; }

.sim-calculator {
  border-top: 1px solid var(--border);
  padding: 22px 24px 26px;
}
.sim-calculator label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sim-slider-row { display: flex; align-items: center; gap: 16px; }

input[type="range"] {
  flex: 1;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #101315;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #101315;
}

.sim-slider-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-width: 58px;
  text-align: right;
  color: var(--text);
}

.sim-savings {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.sim-savings-label { font-size: 0.85rem; color: var(--text-muted); }
.sim-savings-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
}
@media (max-width: 640px) {
  .sim-compare { grid-template-columns: 1fr; }
  .sim-tabs { flex-wrap: nowrap; }
}

/* =========================================================
   Pillars (bento)
   ========================================================= */
.pillars { border-top: 1px solid var(--border-soft); }
.section-lede { margin-top: 12px; font-size: 1.05rem; }

.pillar-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar {
  background: var(--bg);
  padding: 32px;
}
.pillar-wide { grid-row: span 2; display: flex; flex-direction: column; gap: 18px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { max-width: 52ch; }

.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pillar-tags li {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 10px;
}

@media (max-width: 760px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-wide { grid-row: auto; }
}

/* =========================================================
   Packages
   ========================================================= */
.packages { border-top: 1px solid var(--border-soft); background: var(--panel); }
.package-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.package {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}
.package-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(249,115,22,0.06), rgba(249,115,22,0) 40%), var(--bg);
}
.package-desc { font-size: 0.94rem; }
.package-includes { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.package-includes li { font-size: 0.86rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.package-includes li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .package-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Trust
   ========================================================= */
.trust { border-top: 1px solid var(--border-soft); }
.trust-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
}
.trust-copy p { margin-top: 16px; }
.trust-list { display: flex; flex-direction: column; gap: 26px; }
.trust-list li { padding-left: 20px; border-left: 2px solid var(--accent); }
.trust-list h3 { margin-bottom: 6px; }
.trust-list p { font-size: 0.92rem; }

@media (max-width: 860px) {
  .trust-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact { border-top: 1px solid var(--border-soft); background: var(--panel); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-copy p { margin-top: 16px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input,
.form-row textarea {
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  transition: border-color 140ms ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--accent); outline: none; }
.form-row.has-error input,
.form-row.has-error textarea { border-color: var(--danger); }

.field-error {
  font-size: 0.78rem;
  color: var(--danger);
  min-height: 1em;
}

.form-submit { margin-top: 4px; }

.form-status {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border-soft); }
.footer-inner {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.footer-brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  margin-right: auto;
}
.footer-location { font-size: 0.85rem; color: var(--text-faint); flex-basis: 100%; order: 3; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-faint); flex-basis: 100%; order: 4; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
