/* Reflex Lab XR: cartoon page (ink outlines, sunburst yellow-orange, target red) */
@font-face {
  font-family: 'Luckiest Guy';
  src: url('luckiest-guy-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink: #1E1B2E;
  --sun: #FFD23F;
  --orange: #FF9A1A;
  --red: #FF3B3B;
  --red-dark: #B81E2A;
  --cream: #FFF6DC;
  --paper: #FFFFFF;
  --text: #2A2540;
  --muted: #5B5470;
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.display { font-family: 'Luckiest Guy', 'Barlow Condensed', sans-serif; font-weight: 400; letter-spacing: 0.02em; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(255, 246, 220, 0.92);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 22px; }
.nav-logo img { width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; text-decoration: none;
  font-family: 'Luckiest Guy', sans-serif; font-size: 20px; letter-spacing: 0.04em;
  padding: 14px 30px 10px;
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-small { font-size: 16px; padding: 10px 20px 7px; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 40px 80px;
  background: radial-gradient(circle at 30% 35%, #FFEC80 0%, var(--sun) 35%, var(--orange) 100%);
  border-bottom: 4px solid var(--ink);
}
.hero-rays {
  position: absolute; left: 30%; top: 35%; width: 2600px; height: 2600px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255, 246, 194, 0.45) 0deg 7deg, transparent 7deg 15deg);
  animation: spin 90s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero-logo { width: 100%; max-width: 620px; filter: drop-shadow(6px 8px 0 rgba(30, 27, 46, 0.25)); }
.hero-tagline { margin: 18px 0 30px; font-size: 21px; font-weight: 500; color: var(--ink); max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-burst { width: 92%; max-width: 440px; }
.hero-hand {
  position: absolute; width: 44%; max-width: 210px; left: 26%; top: 24%;
  transform: rotate(-16deg); transform-origin: 50% 90%;
  animation: slap 2.6s ease-in-out infinite;
  filter: drop-shadow(5px 6px 0 rgba(30, 27, 46, 0.3));
}
@keyframes slap {
  0%, 60%, 100% { transform: rotate(-16deg) translateY(0); }
  70% { transform: rotate(-6deg) translateY(-14px); }
  78% { transform: rotate(-20deg) translateY(10px) scale(0.97); }
  86% { transform: rotate(-15deg) translateY(0); }
}

/* ── SECTIONS ── */
section { padding: 100px 40px; }
.inner { max-width: 1180px; margin: 0 auto; }
.label {
  display: inline-block; font-family: 'Luckiest Guy', sans-serif; font-size: 16px; letter-spacing: 0.08em;
  background: var(--red); color: #fff; padding: 6px 14px 3px; border: 3px solid var(--ink); border-radius: 10px;
  transform: rotate(-2deg); margin-bottom: 18px;
}
.title { font-family: 'Luckiest Guy', sans-serif; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; color: var(--ink); margin-bottom: 18px; }
.lead { font-size: 19px; max-width: 640px; color: var(--muted); }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-inner > *, .intro-grid > *, .boards-grid > *, .steps > *, .features-grid > * { min-width: 0; }
.cover-card { border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); }

/* steps */
.how { background: var(--paper); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step { background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow); }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 3px solid var(--ink);
  font-family: 'Luckiest Guy', sans-serif; font-size: 26px; padding-top: 4px; margin-bottom: 16px;
}
.step h3, .feature h3 { font-family: 'Luckiest Guy', sans-serif; font-weight: 400; font-size: 24px; color: var(--ink); margin-bottom: 8px; letter-spacing: 0.02em; }
.step p, .feature p { color: var(--muted); }

/* boards */
.boards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.board { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.board img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.board-body { padding: 16px 20px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board-body h3 { font-family: 'Luckiest Guy', sans-serif; font-weight: 400; font-size: 26px; color: var(--ink); }
.board-body span { font-weight: 600; color: var(--red-dark); white-space: nowrap; }
.modes { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.modes b { font-family: 'Luckiest Guy', sans-serif; font-weight: 400; font-size: 20px; color: var(--ink); margin-right: 6px; }
.chip { background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 16px 4px; font-weight: 700; color: var(--ink); }

/* features */
.features { background: var(--sun); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.feature { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow); }
.feature-icon { width: 54px; height: 54px; margin-bottom: 14px; }

/* cta band */
.cta { text-align: center; background: radial-gradient(circle at 50% 40%, #3B2A63 0%, var(--ink) 70%); color: #fff; }
.cta .title { color: #fff; }
.cta p { color: #C9C2E8; margin: 0 auto 34px; max-width: 460px; }

/* footer */
footer { padding: 34px 40px 40px; background: var(--ink); color: #C9C2E8; border-top: 3px solid #000; }
.footer-row { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-row .display { color: var(--sun); font-size: 22px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; margin-left: 18px; }
.footer-links a:hover { color: var(--sun); }
.credits { max-width: 1180px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid rgba(201, 194, 232, 0.2); font-size: 13px; line-height: 1.7; color: #9C95BD; }
.credits a { color: #C9C2E8; }

/* fade-in (script.js) */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-rays, .hero-hand { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  nav { padding: 12px 16px; }
  .nav-logo span { display: none; }
  .hero { padding: 110px 16px 60px; min-height: auto; }
  .hero-inner, .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  section { padding: 70px 16px; }
  .steps, .features-grid, .boards-grid { grid-template-columns: minmax(0, 1fr); }
  footer { padding: 30px 16px; }
  .footer-links a { margin: 0 18px 0 0; }
}
