:root {
  --cream:#fff3d8;
  --paper:#fff8e8;
  --ink:#24180e;
  --muted:#6e5a45;
  --wood:#5c331b;
  --brown:#2a160d;
  --orange:#ff8b1a;
  --yellow:#ffd83d;
  --blue:#28a8ff;
  --purple:#7b43d8;
  --line:rgba(36,24,14,.16);
  --panel:#18130f;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background:var(--cream);
}

img{max-width:100%;display:block}
a{color:inherit}
.page{overflow:hidden}

.nav{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,243,216,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{font-weight:950;letter-spacing:.02em;font-size:1.05rem}
.nav-actions{display:flex;gap:10px;align-items:center}

.pill{
  border:2px solid var(--brown);
  border-radius:999px;
  padding:10px 16px;
  text-decoration:none;
  font-weight:900;
  background:var(--yellow);
}

.ghost{background:transparent}

.hero{
  max-width:1180px;
  margin:0 auto;
  padding:42px 22px 36px;
  display:grid;
  grid-template-columns:.9fr 1.15fr;
  gap:34px;
  align-items:center;
}

.hero-copy{position:relative;z-index:2}
.logo{width:min(560px,100%);margin:0 0 8px -8px;filter:none}

.kicker{
  font-size:.9rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--orange);
  margin:4px 0 10px;
}

h1{
  font-size:clamp(2.2rem,6vw,5.8rem);
  line-height:.88;
  margin:0 0 18px;
  font-weight:1000;
  letter-spacing:-.055em;
}

.tagline{
  font-size:clamp(1.15rem,2vw,1.7rem);
  line-height:1.15;
  font-weight:950;
  margin:0 0 18px;
  max-width:620px;
}

.tagline span:nth-child(1){color:var(--orange)}
.tagline span:nth-child(2){color:var(--blue)}
.tagline span:nth-child(3){color:var(--purple)}

.copy{
  font-size:1.05rem;
  line-height:1.55;
  color:var(--muted);
  max-width:560px;
  margin:0 0 22px;
}

.ctas{display:flex;gap:12px;flex-wrap:wrap}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:2px solid var(--brown);
  border-radius:16px;
  padding:14px 20px;
  font-weight:950;
  text-decoration:none;
  background:var(--yellow);
  color:var(--ink);
}

.button.secondary{background:var(--paper)}

.hero-art{position:relative;min-height:520px}

.device-card{
  position:absolute;
  border-radius:30px;
  overflow:hidden;
  background:#111;
  border:5px solid #111;
  box-shadow:0 18px 40px rgba(36,24,14,.22);
}

.device-card img{width:100%;height:100%;object-fit:cover}

.tablet{
  right:-8px;
  top:10px;
  width:min(720px,96%);
  aspect-ratio:4/3;
  animation:slideRight .85s cubic-bezier(.18,.9,.2,1) both;
}

.phone{
  left:0;
  bottom:0;
  width:min(260px,42%);
  aspect-ratio:9/16;
  animation:slideLeft .85s .12s cubic-bezier(.18,.9,.2,1) both;
}

.badge{
  position:absolute;
  left:28%;
  bottom:28px;
  background:var(--panel);
  color:white;
  border:2px solid rgba(255,255,255,.18);
  border-radius:20px;
  padding:14px 18px;
  font-weight:950;
  max-width:260px;
  animation:slideUp .85s .22s cubic-bezier(.18,.9,.2,1) both;
}

@keyframes slideRight{
  from{opacity:0;transform:translateX(90px) rotate(2deg)}
  to{opacity:1;transform:translateX(0) rotate(0)}
}

@keyframes slideLeft{
  from{opacity:0;transform:translateX(-90px) rotate(-3deg)}
  to{opacity:1;transform:translateX(0) rotate(0)}
}

@keyframes slideUp{
  from{opacity:0;transform:translateY(40px)}
  to{opacity:1;transform:translateY(0)}
}

.section{
  max-width:1180px;
  margin:0 auto;
  padding:52px 22px;
}

.section-title{
  font-size:clamp(2rem,4vw,4rem);
  line-height:.95;
  margin:0 0 12px;
  font-weight:1000;
  letter-spacing:-.045em;
}

.section-lede{
  font-size:1.1rem;
  color:var(--muted);
  line-height:1.55;
  max-width:720px;
  margin:0 0 26px;
}

.poster{
  border-radius:30px;
  overflow:hidden;
  border:3px solid var(--brown);
  background:#111;
  box-shadow:0 16px 38px rgba(36,24,14,.18);
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:var(--paper);
  border:2px solid var(--brown);
  border-radius:24px;
  overflow:hidden;
}

.card img{
  width:100%;
  height:250px;
  object-fit:cover;
}

.card-body{padding:18px}

.card h3{
  font-size:1.35rem;
  margin:0 0 8px;
  font-weight:1000;
  letter-spacing:-.025em;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

.feature-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.feature{
  background:#321b0f;
  color:#fff8df;
  border-radius:22px;
  padding:20px;
  border:2px solid rgba(255,255,255,.12);
}

.feature strong{
  display:block;
  font-size:1.1rem;
  margin-bottom:6px;
  color:var(--yellow);
}

.feature p{
  margin:0;
  line-height:1.45;
  color:#f5dca8;
}

.powerups{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.power{
  border-radius:24px;
  padding:22px;
  border:2px solid var(--brown);
  background:var(--paper);
}

.power .icon{font-size:2rem;margin-bottom:8px}
.power h3{margin:0 0 8px;font-size:1.35rem;font-weight:1000}
.power p{margin:0;color:var(--muted);line-height:1.45}

.footer{
  background:#321b0f;
  color:#fff8df;
  margin-top:30px;
}

.footer-inner{
  max-width:1180px;
  margin:0 auto;
  padding:34px 22px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
}

.store{display:flex;gap:10px;flex-wrap:wrap}

.store span{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;
  padding:11px 14px;
  font-weight:950;
  background:#19110c;
}

/* Floating fly mascot */
.page-fly{
  position:fixed;
  left:8vw;
  top:18vh;
  z-index:60;
  width:34px;
  height:34px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.28));
  animation:flyDrift 11s ease-in-out infinite;
}

.page-fly img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  pointer-events:none;
  transition:transform .18s ease, opacity .18s ease;
}

.page-fly:hover img{
  transform:scale(1.08) rotate(-6deg);
}

.page-fly.puffed{
  animation:none;
  pointer-events:none;
}

.page-fly.puffed img{
  opacity:0;
  transform:scale(.3) rotate(20deg);
}

.page-fly.puffed::after{
  content:'POOF! +5';
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:#fff8e8;
  color:#20130b;
  border:2px solid #20130b;
  border-radius:999px;
  padding:.35rem .65rem;
  font-weight:1000;
  font-size:.85rem;
  white-space:nowrap;
}

@keyframes flyDrift{
  0%,100%{transform:translate(0,0) rotate(-8deg)}
  25%{transform:translate(48vw,8vh) rotate(10deg)}
  50%{transform:translate(70vw,45vh) rotate(-6deg)}
  75%{transform:translate(20vw,62vh) rotate(14deg)}
}

.hero-art .device-card{
  transform:perspective(900px) rotateX(var(--tilt-x,0)) rotateY(var(--tilt-y,0));
}

/* Motion */
@media (prefers-reduced-motion:no-preference){
  .logo{animation:softBob 6s ease-in-out infinite}
  .tablet,.phone{animation-duration:.9s}
  .device-card{transition:transform .2s ease}
  .reveal,.reveal-card{
    opacity:0;
    transform:translateY(24px);
    transition:opacity .65s ease, transform .65s ease;
  }
  .reveal.in-view,.reveal-card.in-view{
    opacity:1;
    transform:translateY(0);
  }
  .reveal-card:nth-child(2){transition-delay:.08s}
  .reveal-card:nth-child(3){transition-delay:.16s}

  @keyframes softBob{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-6px)}
  }
}

@media (prefers-reduced-motion:reduce){
  .page-fly{animation:none}
  .reveal,.reveal-card{opacity:1;transform:none}
}

/* Responsive */
@media (max-width:900px){
  .hero{grid-template-columns:1fr;padding-top:28px}
  .hero-art{min-height:620px}
  .tablet{right:0;top:0;width:100%}
  .phone{width:42%;bottom:20px}
  .badge{left:42%;bottom:50px}
  .card-grid,.feature-row,.powerups{grid-template-columns:1fr}
  .card img{height:auto}
}

@media (max-width:700px){
  .page-fly{
    width:26px;
    height:26px;
  }
}

@media (max-width:560px){
  .nav-inner{padding:12px 14px}
  .nav-actions .ghost{display:none}
  .hero{padding:24px 14px 20px}
  .section{padding:38px 14px}
  .logo{margin-left:-4px}
  .hero-art{min-height:430px}
  .tablet{width:106%;right:-24%;top:0}
  .phone{width:46%;left:0;bottom:18px}
  .badge{display:none}
  .ctas{flex-direction:column}
  .button{width:100%}
}