/* ============================================================================
   Ready Set Exploit LLC — stylesheet
   Plain CSS. No build step, no framework, no CDN. Drop it on any host.
   ========================================================================= */

/* ---------- Design tokens: dark (default) ---------- */
:root {
  --bg:        #0b0f14;
  --bg-alt:    #101720;
  --surface:   #141c26;
  --surface-2: #1a2432;
  --border:    #24303f;
  --text:      #e6edf5;
  --text-dim:  #97a6b8;
  --text-mute: #6b7c91;
  --accent:    #3ddc97;
  --accent-2:  #35c5f0;
  --accent-ink:#07281c;
  --danger:    #ff6b6b;
  --warn:      #ffcc66;
  --shadow:    0 18px 45px -20px rgba(0,0,0,.75);
  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg:        #f7f9fc;
  --bg-alt:    #eef2f8;
  --surface:   #ffffff;
  --surface-2: #f1f5fa;
  --border:    #dbe3ee;
  --text:      #101720;
  --text-dim:  #4b5a6c;
  --text-mute: #74839a;
  --accent:    #0f9d63;
  --accent-2:  #0a7fa8;
  --accent-ink:#ffffff;
  --warn:      #8a5a00;
  --danger:    #c0342b;
  --shadow:    0 14px 35px -22px rgba(16,23,32,.35);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.06rem; }
p  { margin: 0 0 1rem; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.muted { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; padding-block: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: inline-grid; place-items: center; cursor: pointer;
  font-size: 1rem; line-height: 1;
  transition: border-color .16s ease, color .16s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn [data-theme-icon] { display: inline-grid; place-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--mono); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: .1rem .4rem; border-radius: 6px; font-size: .95rem;
}
.brand-text { letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.6rem); }
.nav > a:not(.btn) { color: var(--text-dim); font-size: .95rem; font-weight: 500; }
.nav > a:not(.btn):hover { color: var(--text); text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; }

.burger, .burger::before, .burger::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.burger::before { transform: translateY(-6px); }
.burger::after  { transform: translateY(4px); }
[aria-expanded="true"] .burger { background: transparent; }
[aria-expanded="true"] .burger::before { transform: rotate(45deg); }
[aria-expanded="true"] .burger::after  { transform: rotate(-45deg) translateY(-1px); }

.scroll-progress { height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .1s linear; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; inset: 66px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem clamp(1rem, 4vw, 2rem) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav > .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid-bg {
  position: absolute; inset: -30% -10% auto; height: 150%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 55% at 55% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--text-dim); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero-note { font-family: var(--mono); font-size: .8rem; color: var(--text-mute); }

/* ---------- Terminal ---------- */
.terminal {
  background: #06090d; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; min-height: 320px;
}
:root[data-theme="light"] .terminal { background: #0b0f14; }
.terminal-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem; background: #0e141c; border-bottom: 1px solid #1c2530;
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-r { background: #ff5f57; } .tdot-y { background: #febc2e; } .tdot-g { background: #28c840; }
.terminal-title { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: #5b6b7d; }
.terminal-body {
  margin: 0; padding: 1.1rem 1.2rem 1.4rem;
  font-family: var(--mono); font-size: clamp(.72rem, 1.15vw, .84rem); line-height: 1.85;
  color: #8ea3b8; white-space: pre-wrap; word-break: break-word;
  min-height: 260px;
}
.terminal-body .l-cmd  { color: #e6edf5; }
.terminal-body .l-ok   { color: #3ddc97; }
.terminal-body .l-warn { color: #ffcc66; }
.terminal-body .l-info { color: #35c5f0; }
.caret {
  display: inline-block; width: 8px; height: 1em; vertical-align: text-bottom;
  background: var(--accent); animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(1.5rem, 4vw, 2.4rem); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat-value { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; color: var(--accent); letter-spacing: -.03em; }
.stat-label { font-size: .85rem; color: var(--text-dim); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-sub { color: var(--text-dim); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter {
  background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem 1rem; font: inherit; font-size: .88rem; cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.filter:hover { color: var(--text); border-color: var(--text-mute); }
.filter[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent); color: var(--accent); font-weight: 600;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 1.15rem; margin-bottom: .4rem;
}
.card h3 { margin: 0; }
.card p { color: var(--text-dim); font-size: .93rem; margin: 0; }
.card-bullets { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.card-bullets li {
  font-family: var(--mono); font-size: .72rem; color: var(--text-mute);
  border: 1px solid var(--border); border-radius: 6px; padding: .15rem .45rem;
}
.empty-state { color: var(--text-mute); text-align: center; padding: 2rem 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.timeline li {
  position: relative; padding: 0 0 2rem 3.5rem; border-left: 2px solid var(--border); margin-left: 1rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .step-num {
  position: absolute; left: -1.05rem; top: -.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt); border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
}
.timeline h3 { margin: 0 0 .3rem; }
.timeline p { color: var(--text-dim); margin: 0; font-size: .95rem; max-width: 68ch; }

/* ---------- Why us / deliverables ---------- */
.why-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 940px) { .why-wrap { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
/* Deliverables panel beside the "why us" copy. Styled as a receipt/manifest
   rather than another card, so it reads as a list of what's in the box. */
.deliverables {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.deliverables h3 {
  margin: 0 0 1.1rem; padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.deliverables ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.deliverables li {
  position: relative; padding-left: 1.7rem;
  font-size: .92rem; color: var(--text-dim);
}
.deliverables li::before {
  content: ""; position: absolute; left: .2rem; top: .55rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.deliverables-note {
  margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: .74rem; color: var(--text-mute);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font: inherit; font-weight: 600; padding: 1.05rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev { margin-left: auto; color: var(--accent); transition: transform .2s ease; flex: none; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.2rem; max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; }
.faq-a p { color: var(--text-dim); margin: 0 0 1.1rem; font-size: .95rem; }
.faq-item.is-open .faq-a { max-height: 420px; }

/* ---------- Form ---------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label, .consent span { font-size: .9rem; font-weight: 600; }
.field label { display: block; margin-bottom: .4rem; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: .7rem .85rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem;
  transition: border-color .16s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .75rem; color: var(--text-mute); margin: .35rem 0 0; text-align: right; font-family: var(--mono); }
.error { color: var(--danger); font-size: .8rem; margin: .35rem 0 0; min-height: 0; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .3rem 0 1.3rem; cursor: pointer; }
.consent input { margin-top: .3rem; accent-color: var(--accent); flex: none; width: 16px; height: 16px; }
.consent span { font-weight: 400; font-size: .85rem; color: var(--text-dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-size: .9rem; min-height: 1.2em; }
.form-status.ok  { color: var(--accent); }
.form-status.bad { color: var(--danger); }
.contact-alt { text-align: center; margin-top: 1.5rem; color: var(--text-dim); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.5rem 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr auto; gap: 1.2rem; align-items: start; }
.footer-brand { font-weight: 700; font-size: 1.05rem; margin: 0 0 .3rem; }
.llc { color: var(--text-mute); font-weight: 400; font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1.2rem; margin: .6rem 0 0; font-size: .82rem; }
@media (max-width: 620px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ----------
   Gated on html.js (set by assets/js/head.js). With JavaScript disabled the
   class is absent, so .reveal never hides anything and the full page renders. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- 404 page ----------
   Kept here rather than in a <style> block inside 404.html so the Content
   Security Policy can stay strict (style-src 'self', no 'unsafe-inline'). */
.err { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.err code {
  font-family: var(--mono); color: var(--accent);
  font-size: clamp(3rem, 12vw, 7rem); display: block; letter-spacing: -.04em;
}
.err .lede { margin-inline: auto; }
