/* ─────────────────────────────────────────────────────────────────────────
   claudewatts — landing page. Cyberpunk-but-readable.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0014;
  --bg-2: #140033;
  --bg-3: #1f1f3a;
  --fg: #e0e0ff;
  --dim: #8a8a9e;
  --pink: #ff1a8c;
  --cyan: #00ddff;
  --acid: #00ff66;
  --amber: #ffcc00;
  --violet: #6633ff;
  --soft-pink: #ff66cc;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 26, 140, 0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0, 221, 255, 0.06), transparent 40%),
    var(--bg);
  min-height: 100vh;
}

/* hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 6vw;
  overflow: hidden;
  border-bottom: 1px solid var(--bg-3);
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 6vw; gap: 2rem; }
}

.hero-art {
  position: relative;
  border: 1px solid var(--bg-3);
  background: var(--bg);
  padding: 0;
  height: 320px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--bg-2), 0 0 40px rgba(255, 26, 140, 0.15);
}
.hero-art object { width: 100%; height: 100%; display: block; pointer-events: none; }

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 0.4em 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-shadow: 0 0 20px rgba(255, 26, 140, 0.4);
}
.bracket { color: var(--pink); }

.tagline {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 1.05rem;
  margin: 0 0 0.4em 0;
  letter-spacing: 0.02em;
}
.sub {
  color: var(--dim);
  margin: 0 0 2rem 0;
  max-width: 32em;
}

.cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: 1px solid var(--bg-3);
  color: var(--fg);
  background: transparent;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.95rem;
  transition: all 0.15s ease-out;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.primary {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--bg);
}
.btn.primary:hover {
  background: transparent;
  color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 26, 140, 0.5);
}

/* sections ──────────────────────────────────────────────────────────────── */
section {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 6vw;
}
section h2 {
  font-family: var(--mono);
  color: var(--pink);
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
section h2::before { content: "// "; color: var(--bg-3); }
section h3 {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 1rem;
  margin: 2rem 0 0.6rem 0;
  text-transform: lowercase;
}
section p { color: var(--fg); }
section ul li { margin-bottom: 0.4rem; }

a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--cyan); }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--amber);
  background: var(--bg-2);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

pre {
  font-family: var(--mono);
  font-size: 0.92rem;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-left: 2px solid var(--pink);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.5;
  color: var(--fg);
  margin: 1rem 0;
}
pre code { background: none; padding: 0; color: inherit; }
.prompt { color: var(--pink); user-select: none; }
.bolt { color: var(--amber); }
.dim { color: var(--dim); }

/* terminal demo ─────────────────────────────────────────────────────────── */
.terminal {
  max-width: 920px;
  margin: 0 auto 4rem;
  padding: 0 6vw;
}
.terminal pre {
  border-left-color: var(--cyan);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal .caption {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin: 0 0 0.6rem 0;
  text-align: center;
}
.terminal .hint {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin: 0.6rem 0 0 0;
  text-align: center;
  opacity: 0.7;
}
#rotating-comparison {
  display: inline-block;
  color: var(--soft-pink);
  transition: opacity 0.25s ease-out;
}

/* tech tree ─────────────────────────────────────────────────────────────── */
.techtree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.techtree figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.techtree img,
.techtree .placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  image-rendering: pixelated;
  background:
    linear-gradient(135deg, transparent 49%, var(--bg-3) 49% 51%, transparent 51%),
    var(--bg);
  background-size: 12px 12px;
}
.techtree .placeholder {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  line-height: 1.4;
}
.techtree figcaption {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.techtree .wh { color: var(--amber); }

/* footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--bg-3);
  margin-top: 4rem;
  padding: 2rem 6vw;
  text-align: center;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.85rem;
}
