:root {
  --bg: #f5f8f7;
  --ink: #102321;
  --muted: #71817e;
  --teal: #00c8a0;
  --deep: #082523;
  --line: #e5ece9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  height: 78px;
  min-height: 78px;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(28px, calc((100vw - 1104px) / 2));
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 35, 33, .04);
}
.brand { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -1.2px; }
.brand em { color: var(--teal); font-style: normal; }
.nav .brand { display: flex; align-items: center; gap: 14px; line-height: 1; white-space: nowrap; }
.nav .brand > span:last-child { display: flex; flex-flow: column nowrap; align-items: flex-start; gap: 4px; line-height: 1; }
.navlogo { color: var(--ink); }
.brand-title { display: inline-flex; align-items: center; }
.brand-tagline { color: #5f6865; font-size: 10px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.logo-mark {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(0, 169, 135, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fffd, #dff6f0);
  box-shadow: 0 8px 22px rgba(0, 116, 92, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 45, 36, .16));
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 78% 45%, #174c46 0, #103b36 29%, #092724 64%, #071d1d 100%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -8%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(119, 231, 205, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(119, 231, 205, .03), 0 0 0 140px rgba(119, 231, 205, .02);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1160px;
  min-height: 535px;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 36px;
  margin: auto;
  padding: 86px 28px 74px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #98e9d6; font-size: 12px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 23px; height: 1px; background: var(--teal); }
.hero-copy h1 { min-height: 2.26em; margin: 22px 0 18px; font-size: 62px; font-weight: 800; line-height: 1.13; letter-spacing: -2px; }
.hero-copy h1 span { color: var(--teal); }
.hero-copy h1 .white-text { color: #fff; }
.hero-copy h1 .headline-line { display: inline-block; color: inherit; white-space: nowrap; }
.typing-cursor { display: inline-block; width: .28em; height: .86em; margin-left: 3px; visibility: hidden; border-right: 3px solid var(--teal); box-sizing: border-box; vertical-align: -.08em; }
.hero-copy h1.typewriting .typing-cursor { visibility: visible; animation: type-caret .8s steps(2, end) infinite; }
.hero-copy h1.type-done .typing-cursor { visibility: hidden; animation: none; }
.lead { max-width: 475px; margin: 0 0 30px; color: #b8ceca; font-size: 17px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; transition: .2s; }
.btn.primary { color: #062722; background: var(--teal); box-shadow: 0 8px 24px rgba(0, 200, 160, .2); }
.btn.primary:hover { background: #26d9b4; transform: translateY(-2px); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, .21); color: #fff; background: rgba(255, 255, 255, .03); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.tiny { margin-top: 17px; color: #85a29d; font-size: 12px; }

.visual { position: relative; display: grid; height: 370px; place-items: center; }
.halo { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(13, 169, 141, .16), transparent 68%); }
.table { position: absolute; width: 380px; height: 220px; border: 9px solid #b98b4b; border-radius: 50%; background: linear-gradient(145deg, #155b50, #0d3c36 70%); box-shadow: 0 26px 45px rgba(0, 0, 0, .4), inset 0 0 0 3px rgba(255, 255, 255, .08); transform: rotate(-8deg); }
.table::after { content: "ALLINGO  •  PRIVATE TABLE"; position: absolute; top: 50%; left: 50%; color: rgba(219, 243, 236, .4); font-size: 12px; font-weight: 800; letter-spacing: 3px; white-space: nowrap; transform: translate(-50%, -50%); }
.card { position: absolute; display: flex; width: 90px; height: 128px; flex-direction: column; justify-content: space-between; padding: 9px 10px; border-radius: 10px; color: #172321; background: #fbfcfa; box-shadow: 0 15px 30px rgba(0, 0, 0, .33); font-size: 18px; font-weight: 700; animation: card-float 3.6s ease-in-out infinite; will-change: translate; }
.card.red { color: #db5b58; }
.card.one { transform: translate(-80px, -32px) rotate(-17deg); animation-delay: -1.2s; }
.card.two { transform: translate(5px, -42px) rotate(5deg); animation-delay: -2.4s; }
.card.three { transform: translate(89px, -20px) rotate(18deg); }
.card .suit { align-self: center; font-size: 44px; }
.card small { font-size: 13px; }
.chip { position: absolute; display: grid; width: 64px; height: 64px; place-items: center; border: 7px dashed #f1ce84; border-radius: 50%; color: #fff; background: #d9a64e; box-shadow: 0 10px 18px rgba(0, 0, 0, .33); font-weight: 800; animation: chip-bounce 3s ease-in-out infinite; will-change: translate, scale; }
.chip.c1 { right: 13%; bottom: 17%; transform: rotate(14deg); animation-delay: -1.4s; }
.chip.c2 { bottom: 13%; left: 16%; width: 50px; height: 50px; border-color: #d6fff3; background: #00a986; transform: rotate(-12deg); animation-delay: -.3s; }

.features { max-width: 1160px; margin: auto; padding: 74px 28px 82px; }
.section-head { margin-bottom: 34px; text-align: center; }
.kicker { color: #00a984; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.section-head h2 { margin: 10px 0; font-size: 32px; letter-spacing: -.7px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.game { position: relative; min-height: 150px; overflow: hidden; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: .22s; }
.game:hover { border-color: #b6e8dc; box-shadow: 0 14px 35px rgba(18, 57, 44, .05); transform: translateY(-4px); }
.game::after { content: ""; position: absolute; right: -18px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: #e8f8f3; }
.gicon { position: relative; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 13px; border-radius: 12px; background: #e9f8f4; font-size: 22px; }
.game h3 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 16px; }
.game p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 12px; }

.download { padding: 52px 28px; background: #eaf4f1; }
.download-inner { position: relative; display: flex; max-width: 1104px; align-items: center; justify-content: space-between; gap: 24px; margin: auto; padding: 32px 40px; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #0a2926, #10443d); }
.download-copy { position: relative; z-index: 2; flex: 1; min-width: 250px; margin-right: auto; text-align: left; }
.download h2 { margin: 0 0 7px; font-size: 23px; }
.download p { margin: 0; color: #afc7c1; font-size: 13px; }
.download-actions { position: relative; z-index: 2; display: flex; gap: 10px; margin-left: auto; }
.download-actions .btn { min-width: 158px; color: #12302b; background: #fff; }
.download-actions .btn:hover { background: #dff7ef; }
.poker-scene { position: absolute; top: 50%; right: -48px; z-index: 0; width: 350px; height: 170px; opacity: .42; transform: translateY(-50%) rotate(-9deg); pointer-events: none; }
.mini-table { position: absolute; inset: 9px 0; border: 10px solid #bd9254; border-radius: 50%; background: radial-gradient(ellipse at 42% 37%, #247b67 0%, #145345 48%, #0b362f 78%); box-shadow: 0 15px 27px rgba(0, 25, 21, .44), inset 0 0 0 2px #f0d89b, inset 0 0 0 8px #18483d, inset 0 0 30px #031c18; }
.mini-table::after { content: "ALLINGO  •  TEXAS HOLD’EM"; position: absolute; top: 50%; left: 50%; color: rgba(212, 238, 228, .66); font-size: 9px; font-weight: 700; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 1px 2px #00362b; transform: translate(-50%, -50%); }
.meteor-layer { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.meteor-layer i { position: absolute; display: block; width: 142px; height: 2px; border-radius: 50%; opacity: 0; background: linear-gradient(90deg, transparent 0%, rgba(81, 217, 188, .27) 28%, #c5fff3 76%, transparent 100%); filter: drop-shadow(0 0 6px #00d8b4); transform: rotate(-28deg); animation: banner-meteor 7.5s ease-in-out infinite; }
.meteor-layer i:nth-child(1) { top: 22%; left: 17%; animation-delay: -1s; }
.meteor-layer i:nth-child(2) { top: 64%; left: 43%; width: 105px; animation-delay: -4.3s; }
.meteor-layer i:nth-child(3) { top: 18%; left: 69%; width: 125px; animation-delay: -2.8s; }
.meteor-layer i:nth-child(4) { top: 78%; left: 82%; width: 90px; animation-delay: -6.1s; }
.meteor-layer i:nth-child(5) { top: 86%; left: 32%; width: 100px; animation-delay: -5.2s; }

.foot { display: flex; max-width: 1160px; align-items: center; justify-content: space-between; margin: auto; padding: 25px 28px; color: #82918e; font-size: 12px; }
.foot .brand { color: #102321; font-size: 18px; }
.foot .brand em { color: #00a984; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 26, 24, .72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(100%, 440px); padding: 27px; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(0, 27, 24, .5); animation: pop .18s ease-out; }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; }
.modal h2 { margin: 0 0 6px; font-size: 23px; }
.modal-sub { margin: 0; color: var(--muted); font-size: 13px; }
.close { width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; color: #52635f; background: #f0f5f3; font-size: 20px; }
.download-list { display: grid; gap: 10px; margin-top: 24px; }
.download-option { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid #e6eeeb; border-radius: 13px; transition: .18s; }
.download-option:hover, .download-option:focus-visible { border-color: #8bdbc9; outline: none; background: #f4fbf9; transform: translateY(-1px); }
.platform-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; color: #087c68; background: #eff8f5; }
.platform-icon svg { width: 23px; height: 23px; fill: currentColor; }
.option-copy { flex: 1; }
.option-copy strong { display: block; font-size: 14px; }
.option-copy small { display: block; margin-top: 3px; color: #82918d; font-size: 11px; }
.option-arrow { color: #13a98b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.modal-note { margin: 17px 2px 0; color: #82918d; font-size: 11px; line-height: 1.6; }

@keyframes type-caret { to { opacity: 0; } }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes chip-bounce { 0%, 100% { translate: 0 0; scale: 1; } 50% { translate: 0 -8px; scale: 1.06; } }
@keyframes banner-meteor { 0%, 8% { translate: 190px -80px; opacity: 0; } 18% { opacity: .68; } 52% { translate: -240px 110px; opacity: 0; } 100% { translate: -240px 110px; opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .nav { height: 68px; min-height: 68px; padding-inline: 20px; }
  .logo-mark { width: 48px; height: 48px; padding: 4px; border-radius: 14px; }
  .hero::after { top: -25%; right: -80%; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: 62px; padding-bottom: 36px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-copy h1 { font-size: clamp(29px, 9vw, 45px); }
  .lead { margin-right: auto; margin-left: auto; font-size: 15px; }
  .actions { justify-content: center; }
  .visual { height: 300px; margin-top: 12px; transform: scale(.84); transform-origin: top center; }
  .table { width: 340px; height: 195px; }
  .features { padding: 58px 20px; }
  .section-head h2 { font-size: 27px; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game { min-height: 144px; padding: 17px; }
  .download-inner { flex-direction: column; padding: 28px 22px; text-align: left; }
  .download-copy { width: 100%; min-width: 0; }
  .download-actions { width: 100%; margin-left: 0; flex-direction: column; }
  .download-actions .btn { width: 100%; }
  .poker-scene { top: 50%; right: -105px; opacity: .25; transform: translateY(-50%) rotate(-9deg) scale(.78); }
  .foot { flex-direction: column; gap: 12px; padding: 22px; }
}

@media (max-width: 430px) {
  .brand-tagline { display: none; }
  .games { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .chip, .meteor-layer i { animation: none !important; }
  .hero-copy h1 { white-space: normal; }
}
