:root{
  --bg:#fbf5ec; --ink:#0d0d10; --muted:#7a7a85; --rail:#101013; --btn:#0d0d10; --btnText:#fff;
  --card:#ffffff; --alt:#f2ede4; --brand:#0d0d10;
}
*{box-sizing:border-box} html,body{margin:0;padding:0}
body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--ink)}
a{color:inherit;text-decoration:none}

.nav{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:rgba(251,245,236,.85);backdrop-filter:saturate(1.1) blur(6px);border-bottom:1px solid #e6dfd4}
.nav-left{display:flex;align-items:center;gap:14px}
.brand{font-weight:800;font-size:18px;padding:6px 10px;border:2px solid #1d1d22;border-radius:10px;background:#fff}
.links a{margin:0 10px;color:#444}
.nav-right{display:flex;align-items:center;gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;font-weight:700;border:2px solid #1d1d22}
.btn.ghost{background:#fff}
.btn.buy{background:#000;color:#fff}

.hero{position:relative;padding:40px 0 120px;border-bottom:4px solid var(--rail)}
.hero-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;padding:0 18px}
.fly-hero{width:100%;height:auto;object-fit:contain;border:8px solid #1d1d22;border-radius:18px;background:#a8daf2}
.hero-copy{display:flex;flex-direction:column;justify-content:center}
.eyebrow{font-size:56px;line-height:1.0;margin:0 0 8px;font-weight:900;text-transform:lowercase}
.tag{font-size:28px;margin:0 0 16px;color:#ffb400;font-weight:900;text-transform:lowercase}
.btn.cta{background:#0d0d10;color:#fff;align-self:flex-start;margin-bottom:14px}
.hero-sub{color:#585866;max-width:42ch}

.stats-rail{position:absolute;left:50%;bottom:-28px;transform:translateX(-50%);background:#fff;border:4px solid var(--rail);border-radius:40px;padding:12px 16px;display:flex;gap:24px;flex-wrap:wrap}
.stat{font-size:14px}
.stat span{font-weight:800;margin-right:6px}
.stat .muted{color:#4e5fe0}

.section{padding:80px 0;border-top:1px solid #ece6da}
.section.alt{background:var(--alt)}
.wrap{max-width:1000px;margin:0 auto;padding:0 18px}
.bullets{margin:12px 0;padding-left:18px}
.bullets li{margin:10px 0}
.steps{margin:12px 0 0 18px}
.steps li{margin:10px 0}

.footer{border-top:1px solid #e6dfd4;padding:20px 0;margin-top:40px}
.footer .wrap{display:flex;align-items:center;justify-content:space-between}
.foot-links a{color:#444;margin-left:12px}

@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr;gap:16px}
  .stats-rail{position:static;transform:none;border-radius:24px;margin:16px auto 0}
  .eyebrow{font-size:40px}
  .tag{font-size:20px}
}

/* Swap embed sizing */
.swap-embed { margin-top: 14px; }
.swap-embed iframe {
  width: 100%;
  max-width: 940px;
  height: 680px;       /* Jupiter terminal height */
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  background: #fff;
}
.swap-alt { margin-top: 8px; font-size: 14px; color: #555; }
.swap-alt a { color: #4e5fe0; font-weight: 700; }

#gifgen .gifgen-grid {
  display:grid; gap:16px;
  grid-template-columns: 320px 1fr;
}
#gifgen .panel { background:#fff; border-radius:14px; padding:14px; box-shadow:0 8px 24px rgba(0,0,0,.06); }
#gifgen .lbl { display:block; margin:8px 0; font-weight:600; }
#gifgen .row { display:flex; gap:14px; flex-wrap:wrap; margin:10px 0; }
#gifgen .hint { color:#666; margin:6px 0 10px; }
#gifgen .hint.small { font-size:12px; }
.stage-wrap { position:relative; width:100%; max-width:900px; }
#stage { width:100%; background:#111; border-radius:12px; }
#flyOverlay { position:absolute; left:50%; top:50%; width:80px; transform:translate(-50%,-50%); cursor:grab; pointer-events:auto; }
#flyOverlay:active { cursor:grabbing; }

