/* Hirai Partners — Board 1, Midnight Navy.
   Midnight #0B1220 (background), Navy #121A2E (surface), Slate #2C3A52 (lines),
   Steel #9AA6B8 (muted), Paper #E8EEF6 (text), Cyan #3EC6D8 (accent; dark ink on cyan).
   Inter 400/500/600 for body and UI, JetBrains Mono 400 for labels and code. */
:root {
  --bg: #0B1220;
  --surface: #121A2E;
  --line: #2C3A52;
  --muted: #9AA6B8;
  --text: #E8EEF6;
  --accent: #3EC6D8;
  --accent-ink: #0B1220;
  --grid: rgba(44, 58, 82, .32);
  --glow: rgba(62, 198, 216, .10);
  --radius: 12px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-weight: 400; color: var(--text); background: var(--bg);
  font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
}
a { color: var(--text); text-decoration-color: rgba(62, 198, 216, .5); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -0.03em; line-height: 1.06; max-width: 18ch; text-wrap: balance; }
.nowrap { white-space: nowrap; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20; border-radius: 6px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, .82); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { display: block; height: 32px; width: auto; }
#site-nav { margin-left: auto; }
#site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
#site-nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--muted); }
#site-nav a:hover, #site-nav a[aria-current="page"] { color: var(--text); }
#site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.menu-toggle {
  display: none; margin-left: auto; background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
}

/* Buttons: dark ink on cyan */
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  font-size: 1rem; border: 1px solid var(--accent); cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(62, 198, 216, 0); }
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 0 28px rgba(62, 198, 216, .35); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { color: var(--text); border-color: var(--muted); background: rgba(18, 26, 46, .8); }
.btn-small { padding: 9px 15px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Fine grid + soft glow backdrop */
.hero, .band, .section.alt {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.hero { position: relative; overflow: hidden; padding: 112px 0 96px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 60%, var(--bg) 100%);
}
.hero > .wrap { z-index: 2; }
.hero-sm { padding: 80px 0 56px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(62, 198, 216, .45); border-radius: 6px; padding: 4px 10px; margin-bottom: 26px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.note { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--muted); }

/* Hero scrolling code (home hero only, CSS only) */
.code-scroll {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: .10;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 30%, transparent 78%);
}
.code-scroll pre {
  margin: 0; padding: 0 0 0 46%; font-family: var(--mono); font-size: 14px; line-height: 2.1; color: var(--accent);
  white-space: pre; animation: code-scroll 20s linear infinite; will-change: transform;
}
@keyframes code-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .code-scroll { display: none; }
  .btn { transition: none; }
}

/* Sections */
.section { padding: 80px 0; }
.alt { background-color: rgba(18, 26, 46, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band {
  background-color: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 56px 0; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; left: -10%; top: -60%; width: 60%; height: 220%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.band-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.band p { margin: 0; max-width: 720px; color: var(--muted); }
.prose { max-width: 720px; }
.prose p, .section p { color: var(--muted); }
.section .prose p:first-child { color: var(--text); }

.points { list-style: none; padding: 0; margin: 40px 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.points li, .card, .side-box, .thanks {
  background: linear-gradient(180deg, rgba(18, 26, 46, .95), rgba(18, 26, 46, .75));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.points li { padding: 26px; transition: border-color .2s ease, box-shadow .2s ease; }
.points li:hover, .card:hover { border-color: rgba(62, 198, 216, .45); box-shadow: 0 0 36px rgba(62, 198, 216, .07); }
.points p { margin: 0; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; display: flex; flex-direction: column; transition: border-color .2s ease, box-shadow .2s ease; }
.card .price { font-family: var(--mono); font-size: 1.15rem; color: var(--accent); margin-bottom: .8em; }
.card .for, .card-intro { font-size: .95rem; color: var(--muted); }
.card .for strong, .card-intro strong { color: var(--text); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; font-size: .96rem; }
.checks li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(62, 198, 216, .6); }
.card-cta { margin-top: auto; }
.brand p { color: var(--muted); font-size: .97rem; }
.brand .site-link { margin-top: auto; margin-bottom: 0; font-family: var(--mono); font-size: .88rem; }
.brand .site-link a { color: var(--accent); }

.terms { padding-left: 1.2em; color: var(--muted); }
.terms li { margin-bottom: .55em; }
.terms li::marker { color: var(--accent); }
.faq-teaser { margin-top: 28px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.photo-ph {
  aspect-ratio: 4 / 5; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; padding: 16px; background: var(--surface); text-align: center;
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; margin-bottom: 7px; font-size: .96rem; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
input::placeholder, textarea::placeholder { color: #6E7A8E; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62, 198, 216, .2); }
.form-error { color: #FF9AA2; margin-top: 12px; }
.thanks { padding: 28px; }
.sidebar { display: grid; gap: 20px; }
.side-box { padding: 24px; font-size: .95rem; }
.side-box p { margin-bottom: .5em; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 500; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .92rem; color: var(--muted); background: #0A101C; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.site-footer .logo img { height: 28px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 7px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-contact p { margin: 0 0 6px; }
.foot-name { color: var(--text); font-weight: 500; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p { margin: 0 0 6px; }
.small { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }

/* NEEDS KEVIN staging markers - visible on purpose so they can't ship by accident */
.nk {
  display: inline-block; background: #fff4c2; color: #6b4e00; border: 1px dashed #c9a200; border-radius: 6px;
  padding: 2px 8px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5;
}

@media (max-width: 900px) {
  .cards, .points, .footer-grid, .about-grid, .form-grid, .band-inner { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .header-row { min-height: 64px; }
  .logo img { height: 26px; }
  .menu-toggle { display: block; }
  #site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  #site-nav li a { display: block; padding: 11px 0; font-size: 1rem; }
  #site-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .hero { padding: 72px 0 60px; }
  .section { padding: 60px 0; }
  /* Mobile: code scroll becomes a static, fainter texture */
  .code-scroll { opacity: .05; }
  .code-scroll pre { animation: none; padding-left: 8%; }
}
