/* Whose Eyes Is It Anyway? — landing page styles (mobile-first) */

@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #170a2e;
  --purple-900: #240b55;
  --purple-800: #2e0f6b;
  --purple-700: #3b1585;
  --purple-600: #5520a8;
  --purple-500: #6d2fc7;
  --yellow: #ffd400;
  --cyan: #00d0ff;
  --green: #6fe84f;
  --orange: #ff7a00;
  --red: #ff2f55;
  --red-dark: #a8102e;
  --white: #ffffff;
  --display: "Lilita One", "Arial Black", "Impact", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--white);
  background: var(--purple-800);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--yellow); }
a:hover { color: var(--white); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yellow); color: var(--ink);
  padding: .6rem 1rem; border-radius: 10px; font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, 1040px);
  margin-inline: auto;
}

/* ---------- Purple rays (shared) ---------- */
.hero, .footer { position: relative; isolation: isolate; overflow: hidden; }

.rays {
  position: absolute; inset: -50%;
  z-index: -1;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      var(--purple-500) 0deg 7.5deg,
      var(--purple-700) 7.5deg 15deg);
}
.hero::after {
  /* vignette */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(23, 10, 46, .65) 100%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 900px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1rem; }

.logo {
  width: min(78vw, 360px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }

.tagline {
  margin: .25rem 0 .5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--white);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.tagline .hl { display: block; color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .95rem 1.8rem;
  border: 4px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }

.btn-yt { background: #e0242b; color: var(--white); }
.btn-yt:hover { color: var(--white); background: #f0333a; }
.yt-icon { width: 2rem; height: auto; flex: none; }
.btn-yt .yt-icon path:last-child { fill: #e0242b; }

.btn-small { font-size: clamp(1.05rem, 4.2vw, 1.25rem); padding: .8rem 1.4rem; }

.handle { margin: .25rem 0 0; font-weight: 800; }
.handle a {
  color: var(--white); text-decoration: none;
  background: rgba(23,10,46,.55); padding: .3rem .9rem; border-radius: 999px;
}
.handle a:hover { text-decoration: underline; }

/* Floating cartoon eyes + question marks */
.floaty { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.eyes { position: absolute; display: flex; gap: 2px; filter: drop-shadow(3px 4px 0 rgba(23,10,46,.6)); }
.eyes i {
  position: relative;
  width: 1em; height: 1.2em;
  background: var(--white);
  border: .09em solid var(--ink);
  border-radius: 50%;
}
.eyes i::after { /* iris + pupil */
  content: "";
  position: absolute; width: .5em; height: .5em;
  left: 50%; top: 50%; transform: translate(-30%, -45%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff 0 12%, transparent 13%),
              radial-gradient(circle, var(--ink) 0 42%, #1aa3ff 43%);
  animation: look 6s ease-in-out infinite;
}
@keyframes look {
  0%, 40% { transform: translate(-30%, -45%); }
  50%, 70% { transform: translate(-75%, -50%); }
  80%, 100% { transform: translate(-30%, -45%); }
}

.e1 { font-size: 34px; top: 7%;  left: 6%; }
.e2 { font-size: 26px; top: 12%; right: 7%; }
.e3 { font-size: 30px; bottom: 9%; left: 9%; }
.e4 { font-size: 38px; bottom: 6%; right: 8%; }

.q {
  position: absolute;
  font-family: var(--display);
  font-size: 2.6rem;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  animation: wobble 3s ease-in-out infinite;
}
.q1 { color: var(--yellow); top: 26%; left: 4%; }
.q2 { color: var(--cyan);   top: 34%; right: 5%; animation-delay: -1s; }
.q3 { color: var(--red);    bottom: 26%; left: 5%; animation-delay: -2s; }
.q4 { color: var(--green);  bottom: 22%; right: 4%; animation-delay: -.5s; }
@keyframes wobble { 50% { transform: rotate(14deg) scale(1.08); } }

/* On narrow phones keep decorations small and to the edges */
@media (max-width: 599px) {
  .e1 { font-size: 22px; top: 2.5%; left: 4%; }
  .e2 { font-size: 20px; top: 3.5%; right: 5%; }
  .e3, .q2, .q3 { display: none; }
  .e4 { font-size: 24px; bottom: 2.5%; right: 5%; }
  .q { font-size: 1.9rem; }
  .q1 { top: 20%; left: 3%; }
  .q4 { bottom: 4%; right: auto; left: 6%; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; text-align: center; overflow-x: clip; }

.about { background: var(--purple-900); }
.challenge {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.06) 0 120px, transparent 121px),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.06) 0 160px, transparent 161px),
    var(--purple-700);
}
.soon { background: var(--purple-900); }

/* Red ribbon headings, like the "IS IT ANYWAY?" banner */
.ribbon {
  position: relative;
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: .35rem 1.4rem .45rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 6vw, 2.6rem);
  line-height: 1.1;
  max-width: calc(100% - 2.2em);
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 4px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 6px 0 var(--ink);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
}
.ribbon::before, .ribbon::after {
  /* ribbon tails */
  content: "";
  position: absolute; z-index: -1;
  top: 30%;
  width: 1.4em; height: 85%;
  background: var(--red-dark);
  border: 4px solid var(--ink);
}
.ribbon::before { left: -.9em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 35% 50%); }
.ribbon::after  { right: -.9em; clip-path: polygon(0 0, 100% 0, 65% 50%, 100% 100%, 0 100%); }
.ribbon { isolation: auto; }
.section .container { position: relative; z-index: 0; }

.ribbon-yellow { background: var(--yellow); color: var(--ink); -webkit-text-stroke: 0; }
.ribbon-yellow::before, .ribbon-yellow::after { background: #c99a00; }

.lead {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.1rem, 3.6vw, 1.3rem);
}
.lead strong { color: var(--yellow); }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
}
.step {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
  padding: 2.2rem 1.25rem 1.4rem;
  margin-top: 1.2rem;
}
.step h3 {
  margin: 0 0 .35rem;
  font-family: var(--display); font-weight: 400;
  font-size: 1.8rem; text-transform: uppercase; letter-spacing: .02em;
}
.step p { margin: 0; }
.step-num {
  position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%);
  width: 3rem; height: 3rem; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.7rem;
  border: 4px solid var(--ink); border-radius: 50%;
  color: var(--ink);
}
.step:nth-child(1) .step-num { background: var(--yellow); }
.step:nth-child(2) .step-num { background: var(--cyan); }
.step:nth-child(3) .step-num { background: var(--green); }

/* Challenge */
.tips {
  list-style: none; padding: 0; margin: 0 auto 2.5rem;
  display: grid; gap: .75rem; max-width: 34rem;
}
.tips li {
  background: rgba(23,10,46,.5);
  border: 3px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: .7rem 1rem;
  font-weight: 800;
  text-align: left;
  display: flex; align-items: center; gap: .75rem;
}
.tips li span { font-size: 1.5rem; }

.share-title {
  margin: 0 0 1rem;
  font-family: var(--display); font-weight: 400;
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--yellow);
}
.share {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 40rem; margin: 0 auto;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px;
  padding: .7rem 1rem;
  font: inherit; font-weight: 800; font-size: 1rem;
  text-decoration: none;
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.share-btn svg { width: 1.35rem; height: 1.35rem; flex: none; }
.share-btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.share-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.share-native { background: var(--orange); color: var(--ink); grid-column: 1 / -1; }
.share-native:hover { color: var(--ink); }
.share-wa   { background: #128c3e; }
.share-fb   { background: #1662d9; }
.share-x    { background: #000; }
.share-mail { background: #b3125a; }
.share-copy { background: var(--yellow); color: var(--ink); grid-column: 1 / -1; }
.share-copy:hover { color: var(--ink); }
.share-native[hidden] { display: none; }

.copy-status { min-height: 1.5em; margin: 1rem 0 0; font-weight: 800; color: var(--yellow); }

/* Coming soon */
.soon-card {
  display: grid; gap: 1.5rem; justify-items: center;
  background: linear-gradient(160deg, var(--purple-600), var(--purple-700));
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink);
  padding: 2.25rem 1.25rem;
}
.mystery {
  position: relative;
  width: 200px; height: 150px;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: 18px;
  border: 4px solid var(--yellow);
}
.eyes.big { position: static; font-size: 58px; gap: 4px; filter: none; }
.mystery .qmark {
  position: absolute; right: -14px; top: -22px;
  font-family: var(--display); font-size: 3.4rem; line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  animation: wobble 3s ease-in-out infinite;
}
.badge {
  display: inline-block; margin: 0 0 .5rem;
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .9rem; border-radius: 999px; border: 3px solid var(--ink);
}
.soon-copy h2 {
  margin: 0 0 .6rem;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.05;
  text-transform: uppercase;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}
.soon-copy p { margin: 0 0 1.5rem; max-width: 34rem; }

/* Footer */
.footer {
  padding: 3rem 0 2.5rem;
  text-align: center;
  background: var(--ink);
  border-top: 6px solid var(--red);
}
.footer p { margin: .4rem 0; }
.footer-brand {
  font-family: var(--display);
  font-size: 1.6rem; text-transform: uppercase;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--green), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer a { word-break: break-word; }
.footer .small { margin-top: 1.25rem; font-size: .9rem; color: #d9cff0; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .share { display: flex; flex-wrap: wrap; justify-content: center; max-width: 60rem; }
  .share-btn { flex: 0 1 10rem; }
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  .section { padding: 5.5rem 0; }
  .logo { width: 420px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .tips { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .tips li { justify-content: center; text-align: center; flex-direction: column; gap: .25rem; }
  .soon-card {
    grid-template-columns: auto 1fr; text-align: left; justify-items: start;
    align-items: center; gap: 3rem; padding: 3rem 3.5rem;
  }
  .mystery { width: 260px; height: 190px; }
  .eyes.big { font-size: 76px; }
}
