/* Yeetbox website: the apps' Cyber-Pop look. */
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Mono"; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #0d0e12;
  --surface: #161821;
  --surface-2: #1f2230;
  --border: #2a2e3f;
  --text: #f4f5fa;
  --muted: #9aa0b4;
  --volt: #c6ff00;
  --iris: #7c5cff;
  --iris-soft: #a996ff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Jakarta", system-ui, sans-serif;
  overflow-x: hidden;
}
/* Soft iris and lime glows behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 30vmax at 15% 10%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(30vmax 25vmax at 90% 60%, rgba(198, 255, 0, 0.08), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); text-align: center; margin-bottom: 40px; }
h3 { font-size: 20px; margin: 10px 0 6px; }
p { margin: 0; }
.hl { color: var(--volt); }
.hl.iris { color: var(--iris-soft); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(13, 14, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 46, 63, 0.6);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav nav { display: flex; align-items: center; gap: 24px; font-weight: 600; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--volt); color: var(--bg);
  font-weight: 800; font-size: 17px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 34px rgba(198, 255, 0, 0.35); }
.btn:active { transform: scale(0.97); }
.btn.small { padding: 9px 18px; font-size: 15px; color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--iris); }
.btn.ghost:hover { box-shadow: 0 10px 34px rgba(124, 92, 255, 0.35); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(18px, 5vw, 56px);
}
.kicker {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--volt); color: var(--volt); font-weight: 600; font-size: 14px;
  background: rgba(198, 255, 0, 0.06);
}
.lead { margin: 22px 0 30px; font-size: 19px; color: var(--muted); max-width: 33em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.tiny { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-text > * { animation: rise 700ms var(--ease) both; }
.hero-text > *:nth-child(2) { animation-delay: 80ms; }
.hero-text > *:nth-child(3) { animation-delay: 160ms; }
.hero-text > *:nth-child(4) { animation-delay: 240ms; }
.hero-text > *:nth-child(5) { animation-delay: 320ms; }

/* the yeet animation: phone → laptop */
.stage { position: relative; height: 420px; animation: rise 900ms 200ms var(--ease) both; }
.device { position: absolute; background: var(--surface); border: 1.5px solid var(--border); }
.device .screen { position: absolute; inset: 10px; border-radius: 14px; background: var(--bg); overflow: hidden; }
.phone {
  left: 2%; top: 40px; width: 170px; height: 340px; border-radius: 30px;
  box-shadow: 0 0 50px rgba(124, 92, 255, 0.25);
  animation: float 6s ease-in-out infinite;
}
.phone .screen { border-radius: 22px; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.pill-row { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 12px; background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tiles i { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, hsl(var(--h) 70% 60%), hsl(calc(var(--h) + 40) 70% 40%)); }
.yeet {
  margin-top: auto; text-align: center; padding: 10px; border-radius: 999px;
  background: var(--volt); color: var(--bg); font-weight: 800;
  animation: tap 3.6s var(--ease) infinite;
}
.laptop {
  right: 0; top: 120px; width: 300px; height: 190px; border-radius: 16px 16px 6px 6px;
  box-shadow: 0 0 50px rgba(198, 255, 0, 0.1);
  animation: float 6s 1.5s ease-in-out infinite;
}
.laptop .base { position: absolute; left: -22px; right: -22px; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px; background: var(--surface-2); border: 1.5px solid var(--border); }
.drop {
  position: absolute; inset: 12px; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--iris); border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--muted);
  animation: catch 3.6s var(--ease) infinite;
}
.flight { position: absolute; inset: 0; pointer-events: none; }
.file {
  position: absolute; left: 22%; top: 62%; font-size: 30px; opacity: 0;
  filter: drop-shadow(0 6px 14px rgba(198, 255, 0, 0.45));
  animation: yeet 3.6s var(--ease) infinite;
}
.f2 { animation-delay: 0.18s; }
.f3 { animation-delay: 0.36s; }

/* features */
.section { max-width: 1180px; margin: 0 auto; padding: 70px clamp(18px, 5vw, 56px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border);
  transition: transform 250ms var(--ease), border-color 250ms, box-shadow 250ms;
}
.card:hover { transform: translateY(-6px) rotate(-0.6deg); border-color: var(--iris); box-shadow: 0 18px 40px rgba(124, 92, 255, 0.18); }
.card:hover .emoji { transform: scale(1.25) rotate(-10deg); }
.card p { color: var(--muted); font-size: 15.5px; }
.emoji { font-size: 34px; display: inline-block; transition: transform 300ms var(--ease); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.steps b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--iris); font: 700 20px "Mono", monospace; box-shadow: 0 0 24px rgba(124, 92, 255, 0.5);
}
.steps p { color: var(--muted); font-size: 15.5px; }

/* download */
.download { text-align: center; }
.version { font: 700 18px "Mono", monospace; color: var(--volt); vertical-align: middle; }
.dl-cards { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.dl {
  display: flex; align-items: center; gap: 16px; min-width: 290px; padding: 22px 28px;
  border-radius: 22px; text-align: left; background: var(--surface);
  border: 1.5px solid var(--iris); box-shadow: 0 0 34px rgba(124, 92, 255, 0.25);
  transition: transform 220ms var(--ease), box-shadow 220ms, border-color 220ms;
}
.dl:hover { transform: translateY(-4px) scale(1.02); border-color: var(--volt); box-shadow: 0 14px 40px rgba(198, 255, 0, 0.25); }
.dl .os { font-size: 38px; }
.dl b { display: block; font-size: 20px; }
.dl small { color: var(--muted); font-size: 14px; }
.download .tiny { max-width: 640px; margin: 26px auto 0; }

footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 28px clamp(18px, 5vw, 56px); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
footer span { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
footer nav { display: flex; gap: 20px; }
footer a:hover { color: var(--text); }

/* pop messages, like the app's transfer tray */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid var(--iris); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(124, 92, 255, 0.25);
  font-weight: 600; font-size: 14.5px; max-width: 320px;
  animation: pop-in 450ms var(--ease) both;
}
.toast.out { animation: pop-out 350ms ease-in both; }
.toast .dot { flex: none; }

/* dots */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: inline-block; }
.dot.on { background: #3ddc84; animation: ping 1.6s ease-out infinite; }

/* reveal on scroll (app.js adds .seen) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.seen { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translate(4vmax, 3vmax) rotate(8deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes tap { 0%, 8%, 100% { transform: scale(1); } 4% { transform: scale(0.9); } }
@keyframes yeet {
  0%, 6% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0); }
  12% { opacity: 1; transform: translate(40px, -70px) scale(1.1) rotate(-12deg); }
  38% { opacity: 1; transform: translate(260px, -150px) scale(1.2) rotate(14deg); }
  55% { opacity: 1; transform: translate(400px, -60px) scale(0.9) rotate(0); }
  62%, 100% { opacity: 0; transform: translate(420px, -40px) scale(0.4); }
}
@keyframes catch {
  0%, 48%, 100% { border-color: var(--iris); color: var(--muted); box-shadow: none; }
  55%, 70% { border-color: var(--volt); color: var(--volt); box-shadow: inset 0 0 30px rgba(198, 255, 0, 0.15); }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(0.85); } }
@keyframes pop-out { to { opacity: 0; transform: translateX(40px) scale(0.9); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
  .stage { max-width: 440px; width: 100%; margin: 0 auto; height: 380px; }
  .laptop { width: 230px; height: 150px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  @keyframes yeet {
    0%, 6% { opacity: 0; transform: translate(0, 0) scale(0.6); }
    12% { opacity: 1; transform: translate(30px, -60px) scale(1.1) rotate(-12deg); }
    38% { opacity: 1; transform: translate(170px, -120px) scale(1.2) rotate(14deg); }
    55% { opacity: 1; transform: translate(250px, -40px) scale(0.9); }
    62%, 100% { opacity: 0; transform: translate(260px, -30px) scale(0.4); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .file { opacity: 1; }
}
