/* yapmaxxer landing — locket-style: warm cream, glossy stickers, frosted phone */

:root {
  --cream: #fffbf1;
  --ink: #1a1200;
  --ink-55: rgba(26, 18, 0, 0.55);
  --ink-40: rgba(26, 18, 0, 0.4);
  --gold: #ffb800;
  --gold-deep: #f09c00;
  --tint: rgba(255, 184, 0, 0.075);
  --glass: rgba(255, 255, 255, 0.5);
  --btn: rgba(26, 18, 0, 0.1);
  --shadow-card:
    0 5px 10px rgba(0, 0, 0, 0.04), 0 19px 19px rgba(0, 0, 0, 0.03),
    0 43px 26px rgba(0, 0, 0, 0.02), 0 76px 30px rgba(0, 0, 0, 0.01);
  --font: "SF Pro Rounded", "Nunito", ui-rounded, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* soft yellow glow behind the hero */
body::before {
  content: "";
  position: fixed; inset: -20% 0 auto 0; height: 70vh;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 196, 40, 0.35), rgba(255, 214, 90, 0.12) 55%, transparent 75%);
  pointer-events: none; z-index: 0;
}
main, footer, nav { position: relative; z-index: 1; }

/* ---------------- nav ---------------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px;
  padding: 18px 34px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink-55); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-dl {
  margin-left: auto; height: 38px; padding: 0 18px; border-radius: 999px;
  background: var(--btn); font-size: 14px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; transition: background .15s, transform .15s;
}
.nav-dl:hover { background: rgba(26, 18, 0, 0.16); transform: translateY(-1px); }

/* ---------------- hero ---------------- */
.hero { display: grid; place-items: center; padding: 84px 20px 0; }
.stage { position: relative; width: min(720px, 94vw); height: 590px; }

/* the frosted phone */
.phone {
  position: absolute; left: 50%; top: 4%;
  width: 300px; height: 610px;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 52px;
  background: linear-gradient(160deg, rgba(255,255,255,.65), rgba(255,255,255,.3));
  border: 3px solid rgba(26, 18, 0, 0.14);
  box-shadow: 0 40px 80px rgba(26, 18, 0, 0.14), inset 0 0 0 1px rgba(255,255,255,.6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 96%);
  mask-image: linear-gradient(#000 62%, transparent 96%);
}
.phone-glass {
  position: absolute; inset: 0; backdrop-filter: blur(2.5px);
  background:
    radial-gradient(circle at 20% 25%, rgba(255,214,90,.35), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(255,158,205,.3), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(140,205,255,.3), transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(180,255,190,.28), transparent 45%);
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px 6px; font-size: 12px; font-weight: 700; color: var(--ink-55); }
.phone-status .ps-icons { display: flex; align-items: center; gap: 4px; }
.phone-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; border-radius: 14px; background: rgba(26,18,0,.85); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px 14px; padding: 20px 22px; }
.app-icon { width: 100%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 3px 8px rgba(26,18,0,.12), inset 0 1px 0 rgba(255,255,255,.5); display: grid; place-items: center; }
.app-icon svg { width: 58%; height: 58%; display: block; }
.app-icon .glyph { font-weight: 800; font-size: 13px; line-height: 1; text-align: center; }
.app-icon.brand { background: linear-gradient(150deg, #ffd23f, var(--gold)); }
.app-icon.brand svg { width: 62%; height: 62%; }
.app-label { font-size: 8px; font-weight: 700; color: var(--ink-40); text-align: center; margin-top: -10px; }
.dock { position: absolute; bottom: 14px; left: 12px; right: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px 14px; border-radius: 30px; background: var(--glass); backdrop-filter: blur(10px); }
.dock .app-icon { width: 100%; }

/* the X widget — a mini feed card living on the home screen */
.x-widget {
  margin: 8px 14px 4px; border-radius: 22px; padding: 12px 13px;
  background: rgba(16, 16, 18, 0.92); backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(26,18,0,.18);
  text-align: left;
}
.x-widget .xw-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.x-widget .xw-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#f472b6,#c084fc); flex-shrink: 0; }
.x-widget .xw-name { font-size: 10px; font-weight: 800; color: #f4f4f5; }
.x-widget .xw-name span { color: rgba(244,244,245,.5); font-weight: 600; }
.x-widget .xw-x { margin-left: auto; color: #f4f4f5; font-weight: 900; font-size: 11px; opacity: .9; }
.x-widget .xw-tweet { font-size: 11px; line-height: 1.45; color: #e8e8ea; margin: 0 0 4px; }
.x-widget .xw-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; color: rgba(255,255,255,.4); font-size: 9.5px; font-weight: 600; }
.x-widget .xw-draft {
  margin-top: 10px; border-left: 2px solid var(--lime); border-radius: 10px;
  padding: 9px 10px; background: rgba(212,255,63,.07);
}
.x-widget .xw-reply-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.x-widget .xw-av.you { background: linear-gradient(135deg,#ffd23f,#f09c00); }
.x-widget .xw-draft .tag { margin-left: auto; background: var(--lime); color: #000; font-size: 7.5px; font-weight: 900; letter-spacing: .08em; padding: 2.5px 7px; border-radius: 99px; }
.x-widget .xw-reply { font-size: 10.5px; line-height: 1.5; color: #e8e8ea; margin: 0; }
.x-widget .xw-send { margin-top: 7px; font-size: 8.5px; font-weight: 800; color: var(--lime); text-align: right; letter-spacing: .02em; }

/* QR card */
.qr-card {
  position: absolute; right: 2%; bottom: 12%;
  width: 158px; padding: 14px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  transform: rotate(7deg);
  transition: transform .3s;
  z-index: 6;
}
.qr-card:hover { transform: rotate(4deg) scale(1.03); }
.qr-card .qr-img { position: relative; width: 100%; }
.qr-card .qr-img img, .qr-card .qr-img svg { display: block; width: 100%; height: auto; }
.qr-cam {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.qr-cam span {
  width: 34px; height: 34px; border-radius: 10px; background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 15px;
}
.qr-card .qr-hint {
  position: absolute; left: 50%; bottom: -14px; transform: translate(-50%, 100%);
  width: 220px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-55);
  background: #fff; border-radius: 14px; padding: 9px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.qr-card:hover .qr-hint { opacity: 1; transform: translate(-50%, 92%); }

/* ---------------- stickers ---------------- */
.stk { position: absolute; z-index: 5; filter: drop-shadow(0 10px 16px rgba(26, 18, 0, 0.18)); will-change: transform; }
.stk .bob { animation: bob var(--dur, 5s) ease-in-out var(--del, 0s) infinite alternate; }
@keyframes bob { from { transform: translateY(-5px) rotate(var(--rot, 0deg)); } to { transform: translateY(7px) rotate(var(--rot, 0deg)); } }

.photo {
  width: var(--w, 96px); border-radius: 24px; overflow: hidden;
  border: 4px solid #fff; background: #fff;
  box-shadow: 0 14px 30px rgba(26, 18, 0, 0.16);
}
.photo img, .photo svg { display: block; width: 100%; height: auto; }

.pill-stk {
  background: var(--ink); color: var(--gold); font-weight: 800; font-size: 15px;
  letter-spacing: .06em; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.pill-stk.white { background: #fff; color: var(--ink); font-size: 14px; box-shadow: 0 10px 26px rgba(26,18,0,.14); }
.pill-stk.pink { background: #ffd7e4; color: #d4327f; font-size: 14px; }
.pill-stk.gold { background: linear-gradient(150deg, #ffd23f, var(--gold)); color: var(--ink); }

.badge-stk { width: 148px; }
.stamp-stk {
  background: linear-gradient(150deg, #ffd23f, var(--gold));
  color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .14em;
  padding: 10px 0; width: 190px; text-align: center; border-radius: 10px;
  box-shadow: 0 14px 30px rgba(26,18,0,.18);
}
.stamp-stk .ln { display: block; }
.emoji-stk { font-size: 44px; }

/* ---------------- logo lockup under the stage ---------------- */
.lockup { text-align: center; margin-top: -78px; position: relative; z-index: 2; padding-bottom: 56px; }
.lockup .row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lockup h1 { font-size: 42px; font-weight: 700; letter-spacing: -.02em; }
.lockup .tag { margin-top: 12px; font-size: 21px; font-weight: 600; color: var(--ink-55); }
.chev { display: inline-block; margin-top: 22px; font-size: 26px; color: var(--ink-40); animation: chev 1.6s ease-in-out infinite; }
@keyframes chev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* logo mark */
.mark { width: var(--ms, 34px); height: var(--ms, 34px); border-radius: 24%; background: linear-gradient(150deg, #ffd23f, var(--gold)); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(240, 156, 0, 0.4), inset 0 1px 0 rgba(255,255,255,.55); }
.mark svg { width: 58%; height: 58%; }
.mark.lg { --ms: 56px; }

/* ---------------- link cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; padding: 20px 28px 110px; }
.lcard {
  background: var(--tint); border-radius: 40px; padding: 30px 30px 34px;
  min-height: 300px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.2,.8,.3,1.2);
}
.lcard:hover { transform: translateY(-4px); }
.lcard:hover .illo { animation: wig .5s ease-in-out; }
@keyframes wig { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
.lcard .illo { height: 108px; display: grid; place-items: center; margin-bottom: 16px; }
.lcard h3 { font-size: 20px; font-weight: 700; }
.lcard p { margin-top: 8px; font-size: 15px; color: var(--ink-55); line-height: 1.5; }
.lcard .go { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 14px; color: var(--ink); opacity: 0; transform: translateX(-4px); transition: .2s; }
.lcard:hover .go { opacity: 1; transform: translateX(0); }

/* ---------------- footer ---------------- */
footer { padding: 70px 34px 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; max-width: 1240px; margin: 0 auto; }
.foot-brand .row { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; }
.socials { display: flex; gap: 10px; margin: 18px 0; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--btn);
  display: grid; place-items: center; transition: background .15s;
}
.socials a:hover { background: rgba(26,18,0,.18); }
.socials svg { width: 16px; height: 16px; fill: var(--ink); }
.copy { font-size: 13px; color: var(--ink-40); }
.fcol h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.fcol a { display: block; font-size: 14px; color: var(--ink-55); padding: 5px 0; transition: color .15s; }
.fcol a:hover { color: var(--ink); }

.wordmark {
  margin: 60px auto -18px; max-width: 1440px;
  font-size: clamp(64px, 11.5vw, 150px); font-weight: 800; letter-spacing: -.02em;
  line-height: .95; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,184,0,.14) 0%, rgba(255,184,0,.55) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(14%); user-select: none;
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .stage { height: 520px; transform: scale(.85); transform-origin: top center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stage { height: 470px; transform: scale(.72); }
  .stk-opt { display: none; }
  .lockup h1 { font-size: 34px; }
  .lockup .tag { font-size: 17px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 80px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stk .bob, .chev, .lcard:hover .illo { animation: none !important; }
  .lcard, .qr-card, .nav-dl { transition: none !important; }
  html { scroll-behavior: auto; }
}
