:root {
  --ink: #f8f4e7;
  --muted: #a7b7ad;
  --green-950: #03100c;
  --green-900: #071c15;
  --green-800: #0b2c20;
  --green-700: #0e4730;
  --gold: #f2c45b;
  --gold-light: #ffe7a0;
  --red: #db4f4f;
  --line: rgba(255, 255, 255, .11);
  --shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 18%, rgba(30, 122, 78, .22), transparent 30rem),
    linear-gradient(145deg, #020b08, var(--green-900) 48%, #04110d);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 24%, rgba(255,255,255,.035) 25%, rgba(255,255,255,.035) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.035) 75%, rgba(255,255,255,.035) 76%, transparent 77%),
    linear-gradient(150deg, transparent 24%, rgba(255,255,255,.035) 25%, rgba(255,255,255,.035) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.035) 75%, rgba(255,255,255,.035) 76%, transparent 77%);
  background-size: 62px 108px;
}

a { color: inherit; }
.ambient { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.ambient-one { width: 340px; height: 340px; right: 8%; top: 18%; background: rgba(29, 146, 90, .17); }
.ambient-two { width: 280px; height: 280px; left: -8%; bottom: 8%; background: rgba(219, 79, 79, .08); }

.site-header, main, footer { position: relative; z-index: 1; }
.site-header {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: -.02em; }
.brand img { border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.brand strong { color: var(--gold); font-weight: 600; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { color: #c2cec7; font-size: 14px; text-decoration: none; transition: .2s ease; }
nav a:hover { color: #fff; }
nav .nav-play { border: 1px solid rgba(242,196,91,.55); color: var(--gold-light); padding: 11px 17px; border-radius: 999px; }

main { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 44px; padding: 56px 0 70px; }
.hero-copy { max-width: 610px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; font-weight: 700; margin-bottom: 24px; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 6vw, 88px); line-height: .93; letter-spacing: -.055em; margin: 0; font-weight: 500; text-wrap: balance; }
h1 em { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-lead { color: var(--muted); line-height: 1.75; font-size: 17px; max-width: 540px; margin: 27px 0 30px; }

.download-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { min-height: 68px; min-width: 204px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; background: rgba(255,255,255,.055); box-shadow: 0 12px 32px rgba(0,0,0,.18); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.store-button:hover { transform: translateY(-2px); border-color: rgba(242,196,91,.5); background: rgba(255,255,255,.08); }
.store-button.primary { color: #0b1912; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: transparent; }
.store-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.store-icon svg { width: 100%; height: 100%; fill: currentColor; }
.store-button > span:last-child { font-size: 17px; font-weight: 750; line-height: 1.05; }
.store-button small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; opacity: .72; margin-bottom: 5px; }
.store-button b { display: inline-block; font-size: 10px; padding: 3px 5px; border-radius: 5px; background: rgba(0,0,0,.13); margin-left: 3px; vertical-align: 2px; }
.web-button { min-height: 54px; display: inline-flex; align-items: center; gap: 9px; color: #d6e7dd; font-size: 13px; text-decoration: none; padding: 0 12px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #52dc91; box-shadow: 0 0 0 5px rgba(82,220,145,.12), 0 0 15px rgba(82,220,145,.55); }
.trust-row { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 25px; color: #84998d; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { font-style: normal; color: var(--gold); font-size: 10px; }

.hero-art { position: relative; height: 540px; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(49,159,103,.22), transparent 65%); }
.app-medallion { position: relative; width: min(400px, 78%); aspect-ratio: 1; z-index: 3; transform: rotate(1.5deg); }
.app-medallion img { width: 100%; height: 100%; object-fit: cover; border-radius: 24%; filter: drop-shadow(0 35px 30px rgba(0,0,0,.5)); }
.medallion-glow { position: absolute; inset: 10%; border-radius: 30%; box-shadow: 0 0 85px rgba(242,196,91,.22); }
.orbit { position: absolute; border: 1px solid rgba(242,196,91,.22); border-radius: 50%; z-index: 1; }
.orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 12%; right: 16%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.orbit-one { width: 475px; height: 475px; transform: rotate(-15deg); }
.orbit-two { width: 535px; height: 370px; transform: rotate(24deg); border-color: rgba(255,255,255,.1); }
.playing-card { position: absolute; width: 125px; height: 178px; border-radius: 13px; padding: 15px; color: #1b1d1b; background: linear-gradient(150deg,#fff9e8,#e4d8bc); box-shadow: var(--shadow); font-family: Georgia, serif; font-size: 29px; line-height: .9; z-index: 2; border: 3px solid rgba(242,196,91,.85); }
.playing-card span { display: block; font-size: 27px; margin-top: 4px; }
.card-left { left: 2%; top: 26%; color: #b62228; transform: rotate(-21deg); }
.card-right { right: 1%; top: 17%; transform: rotate(18deg); }
.floating-chip { position: absolute; z-index: 4; display: grid; place-items: center; border-radius: 50%; width: 51px; height: 51px; color: var(--gold-light); background: #083020; border: 4px double var(--gold); box-shadow: 0 14px 25px rgba(0,0,0,.4); font-size: 20px; }
.chip-one { left: 10%; bottom: 13%; transform: rotate(-12deg); }
.chip-two { right: 7%; bottom: 17%; color: #ef8383; transform: rotate(15deg); }
.version-pill { position: absolute; z-index: 5; bottom: 2%; right: 13%; padding: 10px 14px; border-radius: 10px; background: rgba(4,18,13,.82); backdrop-filter: blur(12px); border: 1px solid var(--line); color: #8ca297; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 18px 36px rgba(0,0,0,.3); }
.version-pill strong { display: block; color: var(--gold-light); font-size: 11px; margin-top: 4px; }
.desktop-qr { display: none; }

.feature-strip { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-strip article { min-height: 160px; padding: 32px 30px; display: flex; gap: 17px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border-right: 0; }
.feature-no { color: var(--gold); font-family: Georgia,serif; font-style: italic; font-size: 13px; padding-top: 3px; }
.feature-strip h3 { margin: 0 0 10px; font-family: Georgia,serif; font-size: 19px; font-weight: 500; }
.feature-strip p { margin: 0; color: #82958a; font-size: 13px; line-height: 1.65; }

.install-guide { padding: 82px 0 90px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.section-label, .qr-kicker { color: var(--gold); letter-spacing: .18em; font-size: 10px; font-weight: 800; }
.install-guide h2, .desktop-qr h2 { font-family: Georgia,serif; font-size: 38px; line-height: 1.1; font-weight: 500; margin: 12px 0 0; }
.install-guide ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.install-guide li { min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.install-guide li > span { color: var(--gold); font-family: Georgia,serif; font-style: italic; display: block; margin-bottom: 26px; }
.install-guide strong { font-family: Georgia,serif; font-size: 16px; font-weight: 500; }
.install-guide li p { color: #81948a; font-size: 12px; line-height: 1.55; margin: 7px 0 0; }
.ios-note { grid-column: 2; margin: -42px 0 0; color: #778b80; font-size: 11px; line-height: 1.6; }

footer { width: min(1240px, calc(100% - 64px)); margin: 0 auto; min-height: 110px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #71847a; font-size: 11px; }
.footer-brand { font-size: 17px; color: var(--ink); }
footer p { text-align: center; }
footer > div { display: flex; gap: 22px; }
footer a { text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 20; transform: translate(-50%, 20px); padding: 12px 16px; border-radius: 10px; background: #fff; color: #102218; font-size: 13px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

body[data-site="desktop"] .hero { grid-template-columns: .9fr .78fr .62fr; gap: 28px; }
body[data-site="desktop"] .hero-copy .download-actions { display: none; }
body[data-site="desktop"] .hero-copy .trust-row { margin-top: 32px; }
body[data-site="desktop"] .hero-art { height: 500px; }
body[data-site="desktop"] .playing-card { width: 105px; height: 150px; }
body[data-site="desktop"] .orbit-one { width: 410px; height: 410px; }
body[data-site="desktop"] .orbit-two { width: 450px; height: 320px; }
body[data-site="desktop"] .desktop-qr { display: block; padding: 28px; border: 1px solid rgba(242,196,91,.22); border-radius: 20px; background: linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.02)); box-shadow: 0 24px 55px rgba(0,0,0,.2); }
body[data-site="desktop"] .desktop-qr h2 { font-size: 29px; margin-bottom: 23px; }
.qr-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.qr-grid figure { margin: 0; text-align: center; }
.qr-frame { padding: 9px; background: #fff; border-radius: 11px; aspect-ratio: 1; }
.qr-frame img { width: 100%; height: 100%; display: block; }
.qr-grid figcaption { margin-top: 9px; color: #b5c5bc; font-size: 10px; }
.desktop-hint { color: #73877c; font-size: 10px; line-height: 1.5; margin: 20px 0 0; }

@media (max-width: 1080px) {
  body[data-site="desktop"] .hero { grid-template-columns: 1fr 1fr; }
  body[data-site="desktop"] .hero-art { display: none; }
  .card-left { left: 0; }
  .card-right { right: 0; }
}

@media (max-width: 860px) {
  .site-header, main, footer { width: min(100% - 36px, 680px); }
  .site-header { min-height: 78px; }
  nav > a:not(.nav-play) { display: none; }
  .hero, body[data-site="desktop"] .hero { grid-template-columns: 1fr; padding: 48px 0 54px; min-height: auto; gap: 16px; }
  body[data-site="desktop"] .hero-copy .download-actions { display: flex; }
  body[data-site="desktop"] .desktop-qr { display: none; }
  .hero-copy { margin: 0 auto; text-align: center; }
  .eyebrow { justify-content: center; }
  h1 { font-size: clamp(52px, 15vw, 76px); }
  .hero-lead { font-size: 15px; }
  .download-actions, .trust-row { justify-content: center; }
  .hero-art { height: 430px; }
  .app-medallion { width: min(340px, 70vw); }
  .orbit-one { width: min(410px, 86vw); height: min(410px, 86vw); }
  .orbit-two { width: min(470px, 95vw); height: 310px; }
  .playing-card { width: 100px; height: 145px; font-size: 24px; }
  .version-pill { right: 17%; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 130px; }
  .feature-strip article:last-child { border-bottom: 0; }
  .install-guide { grid-template-columns: 1fr; gap: 34px; padding: 60px 0; text-align: center; }
  .install-guide ol { grid-template-columns: 1fr; text-align: left; }
  .install-guide li { min-height: 112px; display: flex; gap: 20px; align-items: flex-start; }
  .install-guide li > span { margin: 2px 0 0; }
  .ios-note { grid-column: 1; margin: 0; }
  footer { padding: 26px 0; flex-direction: column; min-height: 170px; }
  footer p { margin: 0; }
}

@media (max-width: 520px) {
  .brand { font-size: 18px; }
  .brand img { width: 42px; height: 42px; }
  nav .nav-play { padding: 9px 13px; font-size: 12px; }
  h1 { font-size: clamp(50px, 16vw, 68px); }
  .hero { padding-top: 37px; }
  .hero-lead { margin: 23px 0 26px; }
  .download-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .store-button { min-width: 0; min-height: 64px; padding: 10px 12px; gap: 9px; text-align: left; }
  .store-icon { width: 28px; height: 28px; }
  .store-button > span:last-child { font-size: 14px; }
  .store-button b { display: none; }
  .web-button { grid-column: 1 / -1; justify-content: center; }
  .trust-row { gap: 13px; font-size: 9px; }
  .hero-art { height: 350px; margin-top: 6px; }
  .playing-card { width: 77px; height: 112px; padding: 11px; font-size: 19px; }
  .playing-card span { font-size: 18px; }
  .card-left { left: -1%; }
  .card-right { right: -1%; }
  .floating-chip { width: 42px; height: 42px; }
  .version-pill { right: 9%; bottom: 0; }
  .install-guide h2 { font-size: 34px; }
  .feature-strip article { padding: 27px 19px; }
}

@media (prefers-reduced-motion: no-preference) {
  .app-medallion { animation: hover 5s ease-in-out infinite; }
  .chip-one { animation: drift-one 4.8s ease-in-out infinite; }
  .chip-two { animation: drift-two 5.4s ease-in-out infinite; }
  @keyframes hover { 0%,100% { transform: translateY(0) rotate(1.5deg); } 50% { transform: translateY(-10px) rotate(0deg); } }
  @keyframes drift-one { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-13px) rotate(-2deg); } }
  @keyframes drift-two { 0%,100% { transform: translateY(0) rotate(15deg); } 50% { transform: translateY(11px) rotate(6deg); } }
}
