/* ————————————————————————————————————————
   KETO.PARTY — midnight confetti
   ———————————————————————————————————————— */

:root {
  --bg: #14121C;
  --surface: #1C1928;
  --line: #2E2A40;
  --text: #F4F1FA;
  --muted: #A29CB8;
  --pink: #FF5C8A;
  --yellow: #FFC94D;
  --cyan: #43D9D9;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(90% 60% at 50% -10%, #201C30, transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* drifting confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.c {
  position: absolute;
  top: -3vh;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: fall linear infinite;
}

.c1 { left: 8%;  background: var(--pink);   animation-duration: 13s; }
.c2 { left: 22%; background: var(--yellow); animation-duration: 17s; animation-delay: -6s; width: 8px; height: 8px; border-radius: 50%; }
.c3 { left: 36%; background: var(--cyan);   animation-duration: 15s; animation-delay: -11s; }
.c4 { left: 52%; background: var(--yellow); animation-duration: 19s; animation-delay: -3s; }
.c5 { left: 64%; background: var(--pink);   animation-duration: 14s; animation-delay: -9s; width: 8px; height: 8px; border-radius: 50%; }
.c6 { left: 78%; background: var(--cyan);   animation-duration: 18s; animation-delay: -14s; }
.c7 { left: 88%; background: var(--pink);   animation-duration: 16s; animation-delay: -5s; }
.c8 { left: 95%; background: var(--yellow); animation-duration: 20s; animation-delay: -12s; }

@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  6%   { opacity: 0.8; }
  92%  { opacity: 0.6; }
  100% { transform: translateY(108vh) rotate(420deg); opacity: 0; }
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

::selection { background: var(--pink); color: #fff; }

a { color: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.wordmark span { color: var(--pink); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 26px);
  font-size: 13.5px;
  font-weight: 600;
}

.site-header nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-header nav a:hover { color: var(--text); }

/* hero */

.hero { padding: clamp(80px, 13vh, 150px) var(--gutter) clamp(70px, 11vh, 120px); }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(46px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

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

.lede {
  max-width: 58ch;
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15.5px;
  color: #201700;
  background: var(--yellow);
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 28px;
  box-shadow: 0 12px 32px rgba(255, 201, 77, 0.28);
  transition: transform 0.15s, filter 0.2s;
}

.hero-cta:hover { filter: brightness(1.07); transform: translateY(-2px); }

/* sections */

.section {
  padding: clamp(62px, 9vh, 112px) var(--gutter);
  border-top: 1px solid var(--line);
}

.section-head { max-width: 800px; margin-bottom: clamp(28px, 4vh, 44px); }

.section-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); max-width: 58ch; }

/* rules */

.rules { list-style: none; max-width: 780px; }

.rules li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 16px;
}

.rules li:first-child { border-top: 1px dashed var(--line); }

.rules span {
  flex: 0 0 40px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  color: var(--pink);
  text-align: center;
}

.rules strong { color: var(--text); }

/* scenarios */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  transition: transform 0.25s, border-color 0.25s;
}

.scenario:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pink) 50%, var(--line));
}

.s-emoji { font-size: 30px; display: block; margin-bottom: 12px; }

.scenario h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.scenario p { color: var(--muted); font-size: 14.5px; }

/* playbooks */

.playbooks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 900px;
}

.playbook {
  display: block;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(130% 140% at 0% 0%, rgba(255, 92, 138, 0.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  transition: transform 0.25s, border-color 0.25s;
}

.playbook:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
}

.p-emoji { font-size: 34px; display: block; margin-bottom: 14px; }

.playbook h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.playbook p { color: var(--muted); font-size: 15px; }

.p-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow);
}

/* footer */

.site-footer {
  padding: 38px var(--gutter) 52px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links span { color: var(--muted); }
.footer-links a { text-decoration: none; color: var(--cyan); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.site-footer > p { color: var(--muted); font-size: 13px; }

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .c { animation: none; opacity: 0; }
  .scenario:hover, .playbook:hover, .hero-cta:hover { transform: none; }
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header nav { flex-wrap: wrap; row-gap: 8px; }
}
