/* HackCell landing — main-site design language.
   White nav, photo hero with red glow + halftone, alternating
   white/dark sections, red CTA band, white footer with giant wordmark.
   Brand: body #070E0F, accent #EC0000, zero blue, zero emojis. */
:root {
  --bg: #070E0F;
  --bg-2: #0B1213;
  --bg-3: #101A1B;
  --surface: #131F20;
  --border: #22302F;
  --text: #E8EDED;
  --muted: #8FA3A0;
  --accent: #EC0000;
  --accent-dim: #B30000;
  --accent-soft: rgba(236, 0, 0, 0.10);
  --paper: #FFFFFF;
  --paper-text: #101A1B;
  --paper-muted: #5B6E6A;
  --paper-border: #E3E8E7;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  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;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }

/* Reveal on scroll (main-site pattern) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- White nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--paper-text); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 17px;
}
.logo-name { font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.logo-tag { font-size: 10px; color: var(--paper-muted); border: 1px solid var(--paper-border); border-radius: 20px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .6px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: #3A4744; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 11px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--accent-dim); }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.white { background: #fff; color: var(--accent); }
.btn.white:hover { background: #F3F5F4; }
.nav .btn { margin-left: auto; white-space: nowrap; }

/* ---------- Photo hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg) url("images/hero-home-1.webp") center 30% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 14, 15, 0.94) 0%, rgba(7, 14, 15, 0.78) 46%, rgba(7, 14, 15, 0.45) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 82% 18%, rgba(236, 0, 0, 0.38), transparent 70%),
    radial-gradient(2px 2px at 78% 22%, rgba(236, 0, 0, 0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 84% 30%, rgba(236, 0, 0, 0.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 20%, rgba(236, 0, 0, 0.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 34%, rgba(236, 0, 0, 0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 42%, rgba(236, 0, 0, 0.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 52%, rgba(236, 0, 0, 0.35) 50%, transparent 51%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 24px 84px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .4px;
  color: #FF5A5A; margin-bottom: 16px;
}
.hero h1 {
  font-size: 56px; line-height: 1.04; font-weight: 800; letter-spacing: -1.2px;
  max-width: 640px; margin-bottom: 18px;
  animation: heroIn .8s ease both;
}
.hero h1 .red { color: var(--accent); }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-sub { color: #C9D4D1; font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; font-size: 14.5px; color: #C9D4D1; }
.hero-trust strong { color: #fff; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.trust-inner span { display: inline-flex; align-items: center; gap: 7px; }
.trust-inner .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ECF5A; display: inline-block; }
.trust-inner strong { color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-ico { color: var(--accent); font-size: 24px; line-height: 1; margin-bottom: 12px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { color: var(--muted); font-size: 14.5px; margin: 12px 0 0 18px; }
.card li { margin: 5px 0; }
.card li strong { color: var(--text); font-weight: 600; }

/* Pipeline — WHITE section (ecosystem mirror) */
.section-white { background: var(--paper); color: var(--paper-text); }
.section-white .section-head p { color: var(--paper-muted); }
.pipeline { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: #F6F8F7; border: 1px solid var(--paper-border); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .18s ease, border-color .18s ease;
}
.step:hover { border-color: var(--accent); transform: translateY(-3px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 800; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--paper-muted); font-size: 14px; }
.step code {
  background: #fff; border: 1px solid var(--paper-border); border-radius: 5px;
  padding: 1px 6px; font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.pipeline-note { text-align: center; color: var(--paper-muted); font-size: 14.5px; margin-top: 26px; }
.pipeline-note strong { color: var(--paper-text); }

/* Playground band */
.band {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px;
  padding: 44px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
}
.band h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.band p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.band p strong { color: var(--text); }
.mock {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; font-size: 13.5px;
}
.mock-row { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.mock-row:last-child { margin-bottom: 0; }
.mock-who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); flex: 0 0 64px; padding-top: 2px; }
.mock-row.assistant .mock-who { color: var(--accent); }
.mock-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; flex: 1; }
.mock-bubble code {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px;
  padding: 0 5px; font-size: 12.5px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mock-input {
  margin-top: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 13.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.mock-send {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: var(--accent); color: #fff; border: none; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

/* CLI */
.cli-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.cli-grid h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.cli-grid p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.cli-grid p strong { color: var(--text); }
pre {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre;
}
pre .c { color: var(--muted); }
pre .r { color: #FF5A5A; }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safety-item { display: flex; gap: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.safety-mark { color: var(--accent); font-size: 20px; line-height: 1.3; flex: 0 0 20px; }
.safety-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.safety-item p { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 4px; }
.faq-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 15px; }
.faq-item p strong { color: var(--text); }

/* ---------- Red CTA band ---------- */
.red-band {
  background: linear-gradient(100deg, #8F0000 0%, var(--accent) 55%, #C80000 100%);
  padding: 76px 0; text-align: center;
}
.red-band h2 { font-size: 36px; font-weight: 800; letter-spacing: -.6px; color: #fff; margin-bottom: 12px; }
.red-band p { color: rgba(255, 255, 255, 0.85); font-size: 16.5px; margin-bottom: 26px; }

/* ---------- White footer + giant wordmark ---------- */
footer { background: var(--paper); color: var(--paper-text); padding: 44px 0 0; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid var(--paper-border);
}
.foot-grid h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--paper-muted); margin-bottom: 12px; }
.foot-grid a { display: block; color: #3A4744; text-decoration: none; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { color: var(--paper-muted); font-size: 14px; max-width: 320px; }
.foot-base {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 20px 0 8px; font-size: 13px; color: var(--paper-muted);
}
.foot-base a { color: var(--paper-muted); text-decoration: none; font-weight: 600; }
.foot-base a:hover { color: var(--accent); }
.foot-base .right { margin-left: auto; display: flex; gap: 18px; }
/* ---------- footer glitch wordmark (his glitch-title.html, 2026-11-15, verbatim) ----------
   Poppins 900, HACK dark crimson, CELL near-black. The "shake" is the SVG
   turbulence re-seeding ~14x/sec (script in the footer); the words never
   move, the streaks jitter. Mobile: smaller so the one-line title fits. */
.foot-wordmark { background: var(--paper); padding: 64px 2vw 80px; overflow: hidden; text-align: center; }
.glitch-title {
  font-family: 'Poppins', 'Montserrat', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  filter: url(#glitch);
}
.glitch-title .a { color: #8f0a1a; }
.glitch-title .b { color: #0b0b0b; }
@media (max-width: 768px) {
  .glitch-title { font-size: clamp(2rem, 8.5vw, 8rem); }
  .foot-wordmark { padding: 44px 4vw 60px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { padding: 64px 24px 56px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16.5px; }
  .nav-links { display: none; }
  .cards, .pipeline { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 30px 22px; }
  .cli-grid { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .section-head h2 { font-size: 27px; }
  .red-band h2 { font-size: 29px; }
  .foot-grid { grid-template-columns: 1fr; }
}
