/* =========================================================
   GAFF landing — Vector Pop, wacky setting
   ========================================================= */

:root {
  --paper:   #FAF4E8;
  --paper-2: #F3EAD8;
  --ink:     #16130E;
  --ink-70:  rgba(22, 19, 14, 0.70);
  --ink-50:  rgba(22, 19, 14, 0.50);
  --ink-30:  rgba(22, 19, 14, 0.30);

  --yellow:  #FFC629;
  --blue:    #2C5BFF;
  --coral:   #FF5A45;
  --green:   #1FA85C;
  --purple:  #7A5CFF;
  --white:   #FFFDF7;

  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 18px;

  --display: "Archivo Black", "Archivo", sans-serif;
  --ui: "Archivo", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --snap: cubic-bezier(0.34, 1.4, 0.44, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: var(--line) solid var(--ink); border-radius: 11px;
  background: var(--yellow);
  font-family: var(--display); font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
}
.brand span { font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.04em; }

.btn {
  display: inline-block;
  border: var(--line) solid var(--ink); border-radius: var(--radius);
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); text-transform: uppercase;
  text-decoration: none; text-align: center;
  letter-spacing: 0.03em;
  padding: 14px 26px; font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: transform 120ms var(--snap), box-shadow 120ms var(--snap);
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 0.85rem; box-shadow: var(--shadow-sm); }
.btn--ghost { background: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }

/* ---------- hero: poster layout ----------
   Claim on top, artwork center stage, details in a band below. */

.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 8px;
}
.hero-star {
  position: absolute; z-index: 0;
  left: 50%; top: 50%;
  width: min(480px, 120%); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--yellow);
  clip-path: polygon(
    50% 0%, 58.28% 19.09%, 75% 6.7%, 72.63% 27.37%, 93.3% 25%,
    80.91% 41.72%, 100% 50%, 80.91% 58.28%, 93.3% 75%, 72.63% 72.63%,
    75% 93.3%, 58.28% 80.91%, 50% 100%, 41.72% 80.91%, 25% 93.3%,
    27.37% 72.63%, 6.7% 75%, 19.09% 58.28%, 0% 50%, 19.09% 41.72%,
    6.7% 25%, 27.37% 27.37%, 25% 6.7%, 41.72% 19.09%
  );
  opacity: 0.9;
  animation: star-spin 40s linear infinite;
}
@keyframes star-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.hero h1 .w {
  display: inline-block;
  padding: 0 0.12em;
}
.hero h1 .w--sticker {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 0.18em;
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}
.hero h1 .w--loud {
  color: var(--white);
  -webkit-text-stroke: 0.045em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.07em 0.07em 0 var(--ink);
  transform: rotate(1.5deg);
}
.hero-under { max-width: 640px; margin: 6px auto 0; }
.hero-sub {
  margin: 0 auto;
  max-width: 52ch;
  font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.5;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.chip {
  display: inline-block;
  border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--white);
  padding: 6px 14px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.chip:nth-child(odd) { transform: rotate(-1.5deg); }
.chip:nth-child(even) { transform: rotate(1.2deg); }
.chip--yellow { background: var(--yellow); }
.chip--blue { background: var(--blue); color: var(--white); }
.chip--coral { background: var(--coral); color: var(--white); }
.chip--green { background: var(--green); color: var(--white); }
.chip--purple { background: var(--purple); color: var(--white); }

.hero-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* the stage: star behind, the three-screen fan in front */
.hero-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 540px;
  margin-top: 14px;
}
/* three screens, slightly fanned */
.phone-fan {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.phone-card {
  position: relative;
  width: 202px; height: 426px;
  transition: transform 160ms var(--snap);
}
.phone-card--a { transform: rotate(-7deg) translateY(18px); z-index: 1; margin-right: -30px; }
.phone-card--b { width: 222px; height: 468px; transform: translateY(-10px); z-index: 3; }
.phone-card--c { transform: rotate(7deg) translateY(20px); z-index: 2; margin-left: -30px; }
.phone-card--a:hover { transform: rotate(-7deg) translateY(6px); }
.phone-card--b:hover { transform: translateY(-20px); }
.phone-card--c:hover { transform: rotate(7deg) translateY(8px); }

.phone-face {
  position: absolute; inset: 0;
  border: var(--line) solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
}
.phone-face--front { background: var(--ink); padding: 7px; box-shadow: var(--shadow); }

/* the mini app screen inside the phone */
.mini {
  background: var(--paper);
  border-radius: 25px;
  height: 100%;
  padding: 16px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.mini-h1 {
  font-family: var(--display); font-size: 1.25rem; line-height: 0.95;
  text-transform: uppercase;
}
.mini-card {
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 9px;
}
.mini-card__top {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.mini-card__top strong { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.mini-card p { font-size: 0.6rem; font-weight: 700; color: var(--ink-70); margin-bottom: 6px; }
.mini-card p:last-child { margin-bottom: 0; }
.mini-chiplet {
  flex-shrink: 0;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 1px 6px;
  font-family: var(--mono); font-size: 0.45rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--white);
}
.mini-chiplet--yellow { background: var(--yellow); }
.mini-chiplet--blue { background: var(--blue); color: var(--white); }
.mini-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 6px 9px;
  font-size: 0.62rem; font-weight: 800;
}
.mini-row span:last-child { font-family: var(--mono); font-weight: 800; font-size: 0.6rem; }
.mini-row--lead { background: var(--yellow); }
.mini-kicker {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50);
}
.mini-timer {
  height: 12px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}
.mini-timer__fill {
  height: 100%; width: 100%;
  background: var(--yellow);
  border-radius: 999px 0 0 999px;
  animation: mini-drain 9s linear infinite;
}
@keyframes mini-drain { from { width: 96%; } to { width: 4%; } }
.mini-topic {
  align-self: flex-start;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--coral); color: var(--white);
  padding: 2px 10px;
  font-family: var(--mono); font-size: 0.58rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.mini-q {
  font-family: var(--display); font-size: 0.82rem; line-height: 1.18;
  text-transform: uppercase;
}
.mini-answers { display: flex; flex-direction: column; gap: 6px; }
.mini-answer {
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 9px;
  font-size: 0.62rem; font-weight: 800;
}
.mini-host {
  position: relative;
  border: 2px solid var(--ink); border-radius: 14px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 12px 10px;
  margin-top: auto;
}
.mini-tag {
  position: absolute; top: -10px; left: 10px;
  font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.1em;
  background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 6px;
  padding: 1px 6px;
}
.mini-host p { font-size: 0.6rem; font-weight: 700; line-height: 1.4; }
.mini-btn {
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--yellow);
  font-family: var(--display); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  text-align: center;
  padding: 7px;
  box-shadow: 2px 2px 0 var(--ink);
}

@media (max-width: 760px) {
  /* the fan is ~566px of layout; scale() doesn't shrink layout, so
     contain it: fixed-height stage, centered, overflow clipped */
  .hero-stage {
    min-height: 0; height: 340px;
    margin-top: 16px;
    overflow: hidden;
    width: 100%;
  }
  .phone-fan { transform: scale(0.6); transform-origin: center; }
  .hero-star { width: 300px; }
}
.hero-note {
  margin-top: 14px;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-50);
}

/* ---------- lore ticker ---------- */

.ticker {
  margin: 48px 0 0;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.ticker-track {
  display: inline-block;
  animation: ticker-run 36s linear infinite;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ticker-track span { margin: 0 22px; }
@keyframes ticker-run { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

section { padding: 72px 0 0; }
.kicker {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-70);
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 20px; height: 3px; background: var(--ink); }
h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.02;
  margin: 12px 0 28px;
}

/* how it works */
.how {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.how-card {
  border: var(--line) solid var(--ink); border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 140ms var(--snap);
}
.how-card:hover { transform: rotate(-1deg) translate(-2px, -2px); }
.how-card:nth-child(2):hover { transform: rotate(1deg) translate(-2px, -2px); }
.how-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: var(--line) solid var(--ink); border-radius: 12px;
  background: var(--yellow);
  font-family: var(--display); font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transform: rotate(-4deg);
}
.how-card strong { display: block; font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.how-card p { font-weight: 600; font-size: 0.95rem; line-height: 1.5; color: var(--ink-70); }

/* sample question */
.sample {
  border: var(--line) solid var(--ink); border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 640px;
  position: relative;
  min-height: 190px;
}
.sample .chip { position: absolute; top: -16px; left: 18px; }
.sample-q {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.2; text-transform: uppercase;
  margin-top: 8px;
}
.sample-truth {
  margin-top: 16px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green);
}
.sample.is-swap .sample-q, .sample.is-swap .sample-truth { animation: stamp-in 420ms var(--snap) both; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.08) rotate(-1deg); }
  60% { opacity: 1; transform: scale(0.99); }
  100% { opacity: 1; transform: none; }
}
.sample-note {
  margin-top: 14px;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-50);
}

/* host */
.host-line {
  border: var(--line) solid var(--ink); border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  position: relative;
  margin-top: 26px;
  max-width: 620px;
}
.host-line:nth-of-type(odd) { transform: rotate(-0.6deg); }
.host-line:nth-of-type(even) { transform: rotate(0.6deg); margin-left: auto; }
.host-tag {
  position: absolute; top: -15px; left: 16px;
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.1em;
  background: var(--yellow);
  border: var(--line) solid var(--ink); border-radius: 8px;
  padding: 2px 10px;
}
.host-line p { font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.host-line p strong { background: var(--yellow); padding: 0 4px; border-radius: 4px; }

/* titles */
.titles-row { display: flex; flex-wrap: wrap; gap: 12px; max-width: 700px; }
.titles-row .chip { font-size: 0.85rem; padding: 9px 16px; }

/* final cta */
.finale {
  text-align: center;
  padding: 90px 0 30px;
  position: relative;
}
.finale .hero-star { width: min(420px, 110vw); opacity: 0.85; top: 40%; }
.finale h2 {
  color: var(--white);
  -webkit-text-stroke: 0.05em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.08em 0.08em 0 var(--ink);
  transform: rotate(-3deg);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
}
.finale .btn { margin-top: 18px; }

/* footer */
footer {
  margin-top: 70px;
  border-top: var(--line) solid var(--ink);
  padding: 26px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-50);
}
footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .hero-star, .ticker-track, .phone-card, .mini-timer__fill { animation: none; }
  .sample.is-swap .sample-q, .sample.is-swap .sample-truth { animation: none; }
}
