:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #c8c8d4;
  --text-dim: #5a5a72;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --warn: #ff6b35;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- animated background grid --- */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-45%, -55%); }
}

/* --- layout --- */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- header --- */
header {
  padding-top: 80px;
  animation: fadeUp 0.8s ease-out;
}

.logo {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.logo .cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --- hero --- */
.hero {
  margin-top: 60px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 580px;
}

/* --- what's coming --- */
.coming {
  margin-top: 56px;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.coming h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
  margin-bottom: 20px;
}

.track {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.track-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.track-item .label {
  color: var(--text-dim);
  font-size: 0.7rem;
  display: block;
  margin-bottom: 4px;
}

/* --- CTA section --- */
.cta-section {
  margin-top: 64px;
  animation: fadeUp 0.8s ease-out 0.6s both;
}

.cta-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cta-section .sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Tally embed container */
.tally-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tally-placeholder {
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.tally-placeholder a {
  color: var(--accent);
  text-decoration: none;
}

.tally-placeholder a:hover {
  text-decoration: underline;
}

/* fallback form if no tally */
.fallback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fallback-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 14px;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}

.fallback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.fallback-form textarea::placeholder {
  color: var(--text-dim);
}

.fallback-form input[type="email"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 14px;
  transition: border-color 0.2s;
}

.fallback-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.fallback-form input::placeholder {
  color: var(--text-dim);
}

.btn-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  background: #00ffaa;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* --- social links --- */
.social {
  margin-top: 56px;
  display: flex;
  gap: 24px;
  animation: fadeUp 0.8s ease-out 0.8s both;
}

.social a {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.social a:hover {
  color: var(--accent);
}

.social a::before {
  content: '→ ';
  color: var(--accent-dim);
}

/* --- footer --- */
footer {
  margin-top: auto;
  padding: 48px 0 32px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  animation: fadeUp 0.8s ease-out 1s both;
}

/* --- animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- blog post styles --- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.prose h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.prose h3 { font-size: 1.2rem; }

.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25em;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--accent);
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* --- mobile --- */
@media (max-width: 480px) {
  header { padding-top: 48px; }
  .hero { margin-top: 40px; }
  .coming { margin-top: 40px; }
  .cta-section { margin-top: 48px; }
  .tally-embed { padding: 20px; }
  .track { flex-direction: column; }
}
