﻿:root {
  /* palette lifted from the mascot: arena charcoal, brick brown, crest orange, helmet gold, ghost white */
  --bg: #1F1C1B;                       /* arena charcoal */
  --bg-soft: #2A211C;                  /* warm brick brown for alternating sections */
  --surface: rgba(255, 255, 255, 0.06); /* card surfaces */
  --surface-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(237, 233, 228, 0.14);
  --border-strong: rgba(237, 233, 228, 0.30);

  --ink: #EDE9E4;                      /* ghost white, primary text */
  --ink-secondary: rgba(237, 233, 228, 0.72);
  --ink-muted: rgba(237, 233, 228, 0.45);
  --ink-invert: #1B1817;               /* text on light/accent fills */

  --brick: #5C3A2C;                    /* colosseum arch brown */
  --crest: #F5793B;                    /* spartan crest orange */
  --gold: #F7C41F;                     /* helmet gold */
  --canvas: #161413;                   /* pfp canvas backdrop */
  --white: #FFFFFF;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-pill: 999px;
  --radius-card: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.crest { color: var(--crest); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

/* ---------- shared type ---------- */
.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--crest);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-top: 0.75rem;
}

.center { text-align: center; }

/* ---------- nav ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 2rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}

#nav.scrolled {
  background: rgba(31, 28, 27, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  position: relative;
  z-index: 10;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-right {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ca-pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.ca-pill:hover { border-color: var(--crest); }

.icon-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.3s ease;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-secondary);
  transition: fill 0.3s ease;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn:hover svg { fill: var(--crest); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 200;
  background: var(--ink);
  color: var(--ink-invert);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 4rem;
  background: var(--bg);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3rem;
  align-items: center;
}

/* the konva stage renders at a fixed pixel width, so the columns need to be
   allowed to shrink below their content or the hero blows out on small screens */
.hero-inner > * { min-width: 0; }

.hero-text h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-top: 1rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-secondary);
  max-width: 440px;
  margin-top: 1.5rem;
}

.hero-btns {
  position: relative;
  z-index: 10;
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  z-index: 10;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--ink-invert);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--crest);
  border-color: var(--crest);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--crest);
  color: var(--crest);
}

/* ---------- pfp maker ---------- */
.hero-maker { position: relative; z-index: 5; }

.maker-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas);
}

#stage-container { width: 100%; height: 100%; overflow: hidden; }
#stage-container canvas { display: block; }

.maker-note {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.helmet-picker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.picker-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-right: 0.35rem;
}

.hbtn {
  position: relative;
  z-index: 10;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.hbtn:hover { border-color: var(--crest); color: var(--crest); }

.hbtn.is-active {
  border-color: var(--crest);
  color: var(--crest);
  background: rgba(245, 121, 59, 0.10);
}

.hbtn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--border);
  color: var(--ink-muted);
  background: transparent;
}

.maker-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  justify-content: center;
}

.mbtn {
  position: relative;
  z-index: 10;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.mbtn:hover {
  border-color: var(--crest);
  color: var(--crest);
}

.mbtn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-invert);
}
.mbtn-primary:hover {
  background: var(--crest);
  border-color: var(--crest);
  color: var(--ink-invert);
}

/* ---------- scroll hint ---------- */
.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  animation: pulse-down 3s ease-in-out infinite;
}
.scroll-hint svg { width: 26px; height: 26px; display: block; }

@keyframes pulse-down {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ---------- sections ---------- */
.section {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}
.section-soft { background: var(--bg-soft); }

/* ---------- the post ---------- */
.tweet-box {
  max-width: 480px;
  margin: 2.5rem auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #16110E;
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.40);
  overflow: hidden;
}

.tweet-fallback {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.tweet-fallback a {
  position: relative;
  z-index: 10;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.tweet-fallback a:hover { color: var(--crest); }

.tweet-caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-secondary);
  text-align: center;
  max-width: 440px;
  margin: 1.5rem auto 0;
}

/* ---------- manifesto ---------- */
.manifesto {
  max-width: 680px;
  text-align: left;
  padding: 0 2rem;
}

.mf {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--ink-secondary);
  margin-top: 1.5rem;
}
.manifesto h2 + .mf { margin-top: 2rem; }

.mf-final {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--crest);
  text-align: center;
  margin-top: 3rem;
}

/* ---------- how to buy ---------- */
.steps {
  list-style: none;
  max-width: 560px;
  margin: 2.5rem auto 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--crest);
  min-width: 40px;
  line-height: 1.3;
}

.step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.step-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-secondary);
  margin-top: 0.4rem;
}

.step-desc a {
  position: relative;
  z-index: 10;
  color: var(--ink);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.step-desc a:hover { color: var(--crest); }

.ca-block {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.ca-full {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.4rem;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ca-copy {
  position: relative;
  z-index: 10;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-invert);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ca-copy:hover { background: var(--crest); border-color: var(--crest); }

/* ---------- footer ---------- */
.footer {
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg);
  padding: 4rem 2rem;
}

.footer-line {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--crest);
  border-radius: 2px;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.footer-tag {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

.footer-links {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.footer-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--crest); }

.footer-bottom {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--ink-muted);
  margin-top: 2.5rem;
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  #nav { padding: 0.9rem 1.1rem; }
  .nav-right { gap: 0.45rem; }

  .hero {
    padding-top: 90px;
    padding-bottom: 5rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 0 1.25rem;
  }
  .hero-sub { max-width: 100%; }
  .maker-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  .canvas-wrap { max-width: 100%; }
  .maker-controls { gap: 0.4rem; }
  .mbtn { padding: 9px 13px; font-size: 0.65rem; }

  .section { padding: 4rem 0; }
  .wrap { padding: 0 1.25rem; }
  .manifesto { padding: 0 1.25rem; }
  .tweet-box { max-width: 100%; }
  .footer { padding: 3rem 1.25rem; }
  .footer-links { gap: 1.25rem; }
}

@media (max-width: 420px) {
  .ca-pill { padding: 0.45rem 0.9rem; }
  #navCaText { display: none; }
  .ca-pill::after {
    content: 'CA';
    font-weight: 600;
    letter-spacing: 0.1em;
  }
  .icon-btn { width: 40px; height: 40px; }
  .btn { padding: 13px 22px; font-size: 0.75rem; }
}
