:root {
  --ink: #0a0d12;
  --ink-2: #0f141d;
  --gold-1: #fbe8ac;
  --gold-2: #d9b441;
  --gold-3: #9c7a1e;
  --text: #eef1f6;
  --muted: #97a1b2;
  --card-border: rgba(214, 180, 70, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layered background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 50% -15%, #1a2333 0%, transparent 58%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.orb-gold { width: 460px; height: 460px; top: -120px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217,180,65,0.45), transparent 65%);
  animation: drift1 16s ease-in-out infinite; }
.orb-rose { width: 360px; height: 360px; bottom: -120px; left: -80px;
  background: radial-gradient(circle, rgba(244,169,184,0.28), transparent 65%);
  animation: drift2 20s ease-in-out infinite; }
.orb-deep { width: 420px; height: 420px; bottom: -160px; right: -120px;
  background: radial-gradient(circle, rgba(64,110,180,0.30), transparent 65%);
  animation: drift1 22s ease-in-out infinite reverse; }
.grid { position: absolute; inset: 0; opacity: 0.05;
  background-image: linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%); }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 72px 24px 52px; }

/* ---------- hero ---------- */
.hero { text-align: center; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.kicker { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 18px; opacity: 0.9; }
.pig { width: 184px; height: auto; filter: drop-shadow(0 18px 34px rgba(0,0,0,0.55));
  animation: bob 5.5s ease-in-out infinite; }
h1 { font-family: "Fraunces", Georgia, serif; font-weight: 900;
  font-size: clamp(46px, 8.5vw, 92px); line-height: 1.0; letter-spacing: -0.025em; margin-top: 6px; }
.gold { background: linear-gradient(120deg, var(--gold-1), var(--gold-2) 48%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 30px rgba(217,180,65,0.25); }
.tagline { margin: 20px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- floating glass cards ---------- */
.apps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }

.card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 24px;
  border-radius: 22px; text-decoration: none; color: var(--text); isolation: isolate;
  background: linear-gradient(165deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
  animation: floaty 7s ease-in-out infinite, rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.card:nth-child(1) { animation-delay: 0s, .10s; }
.card:nth-child(2) { animation-delay: 1.2s, .20s; }
.card:nth-child(3) { animation-delay: 2.4s, .30s; }

/* gold sheen on hover */
.card::before { content: ""; position: absolute; inset: 0; border-radius: 22px; z-index: -1;
  background: radial-gradient(440px 200px at 50% -10%, rgba(217,180,65,0.22), transparent 70%);
  opacity: 0; transition: opacity .3s; }
.card:hover {
  transform: translateY(-12px) scale(1.025);
  border-color: rgba(217,180,65,0.6);
  box-shadow: 0 44px 80px -28px rgba(0,0,0,0.85), 0 0 0 1px rgba(217,180,65,0.25),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.card:hover::before { opacity: 1; }

.card-icon { font-size: 32px; width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(217,180,65,0.18), rgba(217,180,65,0.05));
  border: 1px solid var(--card-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.card h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 24px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.go { margin-top: 22px; font-weight: 600; font-size: 14px; color: var(--gold-2); display: inline-flex; align-items: center; gap: 2px; }
.arrow { transition: transform .25s; }
.card:hover .arrow { transform: translateX(5px); }

/* ---------- footer ---------- */
footer { margin-top: 60px; text-align: center; color: #5c6473; font-size: 13px; }
footer .dot { margin: 0 9px; opacity: 0.5; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes drift1 { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 26px); } }
@keyframes drift2 { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }

@media (max-width: 780px) {
  .apps { grid-template-columns: 1fr; gap: 18px; }
  main { padding: 48px 20px 40px; }
  .card { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; } /* drop float on mobile */
}
@media (prefers-reduced-motion: reduce) {
  .pig, .hero, .card, .orb { animation: none !important; }
}
