/* Fonts are served from this site (latin subsets, SIL OFL: assets/fonts/LICENSE.txt), so no third party sees visitors */
@font-face { font-family: "Space Grotesk"; src: url(assets/fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #030403;
  --bg-2: #0a0d0a;
  --surface: #101410;
  --line: #1f281f;
  --text: #eef2ee;
  --muted: #8f9a8f;
  --volt: #6dff2e;
  --volt-deep: #2fbf12;
  --volt-glow: rgba(109, 255, 46, 0.35);
  --silver: #c9d1c9;
  --radius: 16px;
  --max: 1160px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: var(--mono); }
::selection { background: var(--volt); color: var(--bg); }

/* The logo files have a black background; "lighten" blends it into the page */
.brand img, .hero-mark, .about-logo { mix-blend-mode: lighten; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 4, 3, 0.82);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 52px; }
.brand em { font-style: normal; color: var(--volt); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text); transition: transform .25s; }
.menu-toggle span:first-child { top: 11px; }
.menu-toggle span:last-child { bottom: 11px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--volt); color: var(--bg); font-weight: 700;
  transition: transform .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--volt-glow); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn-big { font-size: clamp(15px, 2.4vw, 22px); padding: 18px 34px; overflow-wrap: anywhere; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px clamp(16px, 4vw, 48px) 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 10%, rgba(109, 255, 46, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(201, 209, 201, 0.05), transparent 60%),
    var(--bg);
}
#storm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; max-width: var(--max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
}
.hero-mark {
  width: 100%; max-width: 520px; justify-self: end;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.eyebrow { color: var(--volt); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
h1 {
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 700;
}
.charge { color: var(--volt); text-shadow: 0 0 40px var(--volt-glow); }
.lede { margin-top: 28px; max-width: 48ch; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); letter-spacing: 0.1em;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) clamp(16px, 4vw, 48px); }
.section-head { margin-bottom: 48px; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.tag {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--volt); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; margin-bottom: 16px;
}

/* Bitcade feature */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.feature-art {
  position: relative; min-height: 380px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 40%, #123a0a, #050805 70%);
  overflow: hidden;
}
.pixels {
  position: absolute; inset: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(109, 255, 46, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 255, 46, .25) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
/* a wall of cabinet screens, each flipping between two frames of real Bitcade footage */
.screens {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  width: min(86%, 440px); transform: perspective(900px) rotateX(8deg); transition: transform .5s;
}
.feature-art:hover .screens { transform: perspective(900px) rotateX(0) scale(1.03); }
.screens span {
  position: relative; aspect-ratio: 320 / 427; overflow: hidden; border-radius: 6px;
  border: 2px solid #1d2a1a; background: #000;
  box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0, 0, 0, .6), 0 0 18px rgba(109, 255, 46, .12);
}
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.screens img + img { animation: frame 1.1s steps(1) infinite; }
.screens span:nth-child(2n) img + img { animation-delay: -.55s; }
.screens span::after { /* scanlines */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
}
@keyframes frame { 50% { opacity: 0; } }
.tag img { display: inline-block; vertical-align: -4px; margin-right: 8px; border-radius: 4px; }
.feature-body .btn { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .screens img + img { animation: none; opacity: 0; }
  .press { animation: none; }
}
.press { position: relative; font-size: 13px; letter-spacing: 0.3em; color: var(--silver); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.feature-body { padding: clamp(28px, 4vw, 48px); align-self: center; }
.feature-body h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin-bottom: 14px; }
.feature-body p { color: var(--muted); }
.checks { list-style: none; margin: 22px 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: "↯"; position: absolute; left: 0; color: var(--volt); }

/* Services */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 255, 46, 0.08), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: #33452f; transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 22px; color: var(--volt); margin-bottom: 22px; }
.card-verb { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver) !important; margin-bottom: 6px; }
.card p { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-body { display: grid; gap: 24px; margin-top: 32px; }
.about-body p { color: var(--muted); font-size: 18px; }
.about-body .big { color: var(--text); font-size: clamp(22px, 3vw, 28px); line-height: 1.35; letter-spacing: -0.01em; }
.about-logo { width: 100%; max-width: 440px; justify-self: center; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.founder-card {
  position: sticky; top: 100px; text-align: center; padding: 36px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.monogram {
  width: 132px; height: 132px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #173d0c, #060906 70%);
  border: 2px solid var(--volt); box-shadow: 0 0 32px var(--volt-glow), inset 0 0 24px rgba(109, 255, 46, .15);
}
.monogram span { font-size: 46px; font-weight: 700; letter-spacing: .02em; color: var(--text); text-shadow: 0 0 18px var(--volt-glow); }
.founder-card h3 { font-size: 24px; }
.founder-card .role { color: var(--volt); font-size: 13px; margin: 6px 0 2px; }
.founder-card .where { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.founder-body { display: grid; gap: 20px; }
.founder-body p { color: var(--muted); font-size: 18px; }
.founder-body .big { color: var(--text); font-size: clamp(22px, 3vw, 28px); line-height: 1.35; letter-spacing: -0.01em; }
.founder-body blockquote { border-left: 3px solid var(--volt); padding: 4px 0 4px 22px; }
.founder-body blockquote p { color: var(--text); font-size: clamp(18px, 2.2vw, 21px); font-style: italic; }
.path { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); }
.path li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.path span { color: var(--volt); font-size: 13px; padding-top: 2px; }

/* Contact */
.contact-card {
  text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(109, 255, 46, 0.10), transparent 70%),
    var(--bg-2);
}
.contact-card p:not(.eyebrow) { color: var(--muted); margin: 16px auto 36px; max-width: 46ch; font-size: 18px; }

.footer {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 32px clamp(16px, 4vw, 48px) 48px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer-slogan { color: var(--volt); letter-spacing: 0.15em; text-transform: uppercase; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; }

/* Plain text pages (privacy, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 140px clamp(16px, 4vw, 48px) 80px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.page p, .page li { color: var(--muted); font-size: 17px; }
.page p + p { margin-top: 12px; }
.page ul { margin: 10px 0 0 22px; display: grid; gap: 6px; }
.page a:not(.btn) { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }
.page .updated { font-size: 13px; color: var(--muted); }
.page .btn { margin-top: 32px; }
.nav.solid { background: rgba(3, 4, 3, 0.82); backdrop-filter: blur(12px); border-color: var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .feature, .about-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; max-width: 300px; justify-self: start; }
  .feature-art { min-height: 260px; }
  .cards { grid-template-columns: 1fr; }
  .about-logo { max-width: 320px; }
  .founder-grid { grid-template-columns: 1fr; gap: 28px; }
  .founder-card { position: static; }
}
@media (max-width: 480px) {
  .path li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 16px auto 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { margin-top: 6px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue, .hero-mark, .press { animation: none; }
}
