:root {
  --bg: #0d0f14;
  --surface: #141926;
  --surface-2: #1b2133;
  --text: #e2e8f0;
  --muted: #a8b3c7;
  --primary: #4da6ff;
  --accent: #ffb347;
  --ok: #4cd6a8;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, #1a2542 0%, var(--bg) 45%) no-repeat;
  color: var(--text);
  line-height: 1.55;
}

pre,
code,
.kicker {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(77, 166, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 166, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.hero,
main,
footer {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0.25rem 0 1rem;
}

.lede {
  color: var(--muted);
  max-width: 48ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(95deg, var(--primary), #6dc0ff);
  color: #001427;
}

.btn-ghost {
  border-color: #3b4a69;
  color: var(--text);
}

.hero-terminal {
  background: linear-gradient(180deg, #111625, #0c111d);
  border: 1px solid #303d5f;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  background: #1b233a;
}

.terminal-bar span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: #ff6464;
}

.terminal-bar span:nth-child(2) {
  background: var(--accent);
}

.terminal-bar span:nth-child(3) {
  background: var(--ok);
}

.hero-terminal pre {
  margin: 0;
  min-height: 245px;
  padding: 1rem 1.1rem 1.3rem;
  color: #b8e2ff;
}

main section {
  margin-bottom: 4.8rem;
}

.pitch {
  max-width: 70ch;
  font-size: 1.08rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(140deg, var(--surface), var(--surface-2));
  border: 1px solid #2c3752;
  border-radius: var(--radius);
  padding: 1rem;
}

.card h2 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.card pre {
  overflow-x: auto;
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(5, 9, 16, 0.85);
}

.gallery h2,
.philosophy h2,
.roadmap h2,
.notify h2 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.gallery-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}

.snippet {
  background: #111625;
  border: 1px solid #2e3a58;
  border-radius: var(--radius);
  padding: 1rem;
  scroll-snap-align: start;
}

.snippet p {
  color: var(--muted);
}

.snippet a {
  color: #85cbff;
}

.philosophy {
  max-width: 72ch;
}

.philosophy p {
  color: var(--muted);
}

.roadmap ul {
  list-style: none;
  padding: 0;
}

.roadmap li {
  margin-bottom: 0.7rem;
}

.done,
.todo {
  display: inline-block;
  min-width: 4.1rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  margin-right: 0.5rem;
}

.done {
  background: rgba(76, 214, 168, 0.2);
  color: #95ffd9;
}

.todo {
  background: rgba(255, 179, 71, 0.18);
  color: #ffd38a;
}

.notify {
  background: linear-gradient(150deg, #111927, #16213a);
  border: 1px solid #33476d;
  border-radius: var(--radius);
  padding: 1.2rem;
}

.notify p {
  color: var(--muted);
}

.notify form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.notify input {
  flex: 1;
  min-width: 220px;
  background: #0a101c;
  border: 1px solid #2f4269;
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.notify button {
  background: var(--accent);
  color: #1a1307;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.notify-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.notify-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #2f4269;
  color: var(--text);
  background: #0a101c;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}

footer {
  border-top: 1px solid #25324f;
  padding: 1.3rem 0 2.4rem;
  color: var(--muted);
}

footer nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

footer a {
  color: #87c9ff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  animation: rise 500ms ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
  }

  .pillars {
    grid-template-columns: 1fr;
  }
}
