:root {
  --bg: #0c0a09;
  --bg-card: #1c1917;
  --border: #292524;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #f97316;
  --accent-glow: #fb923c;
  --pizza: #dc2626;
  --teal: #2dd4bf;
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgb(12 10 9 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-dot {
  color: var(--accent);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.alpha-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0c0a09;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  border-radius: 0.25rem;
  line-height: 1.4;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pizza), var(--accent));
  color: #fff;
  box-shadow: 0 4px 24px rgb(249 115 22 / 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgb(249 115 22 / 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-glow);
}

.btn-ghost {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-accent {
  background: linear-gradient(90deg, var(--pizza), var(--accent-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

.mascot {
  max-width: 22rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(145deg, rgb(45 212 191 / 0.08), rgb(249 115 22 / 0.06));
  border: 1px solid rgb(45 212 191 / 0.35);
  border-radius: 1rem;
  text-align: center;
}

.mascot-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.mascot-avatar {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgb(45 212 191 / 0.5));
}

.mascot-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.mascot-title {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.mascot-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--accent-glow);
  margin: 0;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.kits {
  padding: 3rem 0;
}

.kit-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .kit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.kit-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.kit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.kit-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.kit-path {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--teal);
  margin: 0 0 1rem;
}

.kit-card > p:not(.kit-path) {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}

.kit-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.kit-link {
  font-weight: 700;
  color: var(--accent-glow);
  margin-top: auto;
}

.tokens {
  padding: 3rem 0;
}

.token-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.token-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.token-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgb(249 115 22 / 0.15);
}

.badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.token-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
  color: var(--text);
}

.token-count {
  font-weight: 700;
  color: var(--teal);
  margin: 0.25rem 0 0.75rem;
}

.token-card p:last-child {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.token-fine {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.manifesto {
  padding: 3rem 0;
}

.manifesto blockquote {
  margin: 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgb(220 38 38 / 0.08), rgb(249 115 22 / 0.08));
  border-left: 4px solid var(--pizza);
  border-radius: 0 1rem 1rem 0;
}

.manifesto p {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.manifesto p:last-child {
  margin-bottom: 0;
}

.waitlist {
  padding: 3rem 0;
  text-align: center;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1 1 14rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
}

.waitlist-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waitlist-msg {
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 600;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-small {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Kit stub pages */
.kit-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.kit-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.kit-page .coming {
  color: var(--muted);
  margin-bottom: 2rem;
}

.kit-page .back {
  font-weight: 700;
  display: inline-block;
  margin-top: 2rem;
}

.kit-page .kit-tagline {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.kit-page .token-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  background: rgb(45 212 191 / 0.12);
  border: 1px solid rgb(45 212 191 / 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

.convert-panel {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 8rem;
  padding: 1.25rem;
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 1rem;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--teal);
  background: rgb(45 212 191 / 0.06);
}

.drop-icon {
  font-size: 2rem;
}

.drop-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.drop-name {
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.field select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.btn-convert {
  width: 100%;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #0c0a09;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  transition: opacity 0.15s, transform 0.1s;
}

.btn-convert:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-convert:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.progress-wrap {
  margin-top: 1.25rem;
}

.progress-track {
  height: 0.5rem;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.convert-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.convert-error {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgb(220 38 38 / 0.15);
  border: 1px solid rgb(220 38 38 / 0.4);
  color: #fecaca;
  font-size: 0.9rem;
}

.btn-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0.5rem;
  background: var(--teal);
  color: #0c0a09;
  text-decoration: none;
}

.btn-download:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
