:root {
  --bg: #070518;
  --bg-2: #0d0824;
  --surface: rgba(25, 17, 58, 0.72);
  --surface-strong: #19113a;
  --line: rgba(194, 151, 255, 0.18);
  --text: #fbf9ff;
  --muted: #b8afcb;
  --purple: #9b4dff;
  --pink: #ff39b7;
  --cyan: #69e5ff;
  --gold: #ffc95c;
  --success: #52e6a3;
  --danger: #ff668a;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(126, 46, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 10% 55%, rgba(255, 36, 171, 0.1), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: white; color: #111; border-radius: .7rem; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(7, 5, 24, 0.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-size: 1.05rem; font-weight: 900; letter-spacing: -.03em; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(211, 58, 255, .34)); }
.brand span span { color: var(--pink); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; }
.menu-button { display: none; border: 1px solid var(--line); color: white; background: var(--surface); border-radius: .8rem; padding: .6rem .8rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.25rem; border-radius: 1rem; text-decoration: none; font-weight: 900; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--purple), var(--pink)); box-shadow: 0 16px 35px rgba(184, 50, 255, .28); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.045); }
.button-small { min-height: 42px; padding: .6rem 1rem; border-radius: .8rem; }

.hero.shell { width: min(1420px, calc(100% - 3rem)); }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(460px,.82fr) minmax(620px,1.18fr); align-items: center; gap: 1.5rem; padding: 3.5rem 0 4.5rem; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .8rem; border: 1px solid rgba(200,146,255,.26); border-radius: 999px; color: #dec8ff; background: rgba(135,68,255,.08); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--pink); box-shadow: 0 0 16px var(--pink); }
h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { margin: 1.25rem 0; font-size: clamp(3.2rem, 7vw, 6.7rem); letter-spacing: -.075em; }
.hero h1 { font-size: clamp(3.8rem, 5.4vw, 5.8rem); }
.hero h1, .hero h1 span { white-space: nowrap; }
.gradient-text { background: linear-gradient(110deg, #fff 5%, #c29aff 45%, #ff53c1 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 630px; color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.23rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 1.8rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.2rem; color: #d7cfe4; font-size: .88rem; font-weight: 700; }
.trust-row span::before { content: "✓"; color: var(--success); margin-right: .45rem; }

.hero-stage { min-height: 550px; display: grid; place-items: center; position: relative; overflow: visible; }
.hero-phone-pair { width: min(760px, 54vw); height: 550px; position: relative; isolation: isolate; }
.hero-phone-image { position: absolute; top: 50%; height: min(540px, 39vw); width: auto; max-width: none; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; -webkit-mask-image: radial-gradient(ellipse 72% 88% at center, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 72% 88% at center, #000 68%, transparent 100%); will-change: transform; }
.hero-phone-green { left: 0; z-index: 1; transform: translateY(-50%) rotate(-2deg); animation: phone-drift-green 7s ease-in-out infinite; }
.hero-phone-purple { right: 0; z-index: 2; transform: translateY(-50%) rotate(2deg); animation: phone-drift-purple 7s ease-in-out infinite; }
@keyframes phone-drift-green { 0%,100% { transform: translateY(-50%) rotate(-2deg); } 50% { transform: translateY(calc(-50% - 9px)) rotate(-1deg); } }
@keyframes phone-drift-purple { 0%,100% { transform: translateY(-50%) rotate(2deg); } 50% { transform: translateY(calc(-50% + 7px)) rotate(1deg); } }
.glow-orb { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(204,55,255,.36), rgba(75,22,145,.03) 68%, transparent 72%); filter: blur(5px); }
.phone {
  width: min(340px, 82vw); aspect-ratio: 9/18.3; position: relative; z-index: 2;
  padding: 14px; border-radius: 44px; border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(145deg, #322058, #080514 40% 70%, #48236b);
  box-shadow: -35px 45px 80px rgba(0,0,0,.55), 0 0 70px rgba(181,49,255,.2), inset 0 0 0 3px rgba(255,255,255,.04);
  transform: rotateY(-13deg) rotateX(5deg) rotateZ(2deg);
  animation: float 6s ease-in-out infinite;
}
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(circle at 70% 12%, #32145d, transparent 35%), #080517; padding: 1rem; display: flex; flex-direction: column; }
.phone-top { display: flex; justify-content: space-between; align-items: center; color: #d5cae9; font-size: .72rem; font-weight: 800; }
.phone-logo { width: 105px; margin: 1.6rem auto 1rem; filter: drop-shadow(0 8px 30px rgba(255,55,190,.28)); }
.mini-player { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 1rem; padding: .75rem; font-size: .78rem; font-weight: 800; }
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); display: grid; place-items: center; }
.board { width: 100%; aspect-ratio: 1; margin: .8rem 0; border-radius: .8rem; overflow: hidden; display: grid; grid-template-columns: repeat(8,1fr); box-shadow: 0 18px 35px rgba(0,0,0,.4); }
.sq { position: relative; display: grid; place-items: center; }
.sq:nth-child(16n + 1),.sq:nth-child(16n + 3),.sq:nth-child(16n + 5),.sq:nth-child(16n + 7),.sq:nth-child(16n + 10),.sq:nth-child(16n + 12),.sq:nth-child(16n + 14),.sq:nth-child(16n + 16) { background: #d7bbef; }
.sq { background: #6c3997; }
.sq img { width: 88%; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.sq.last { box-shadow: inset 0 0 0 100px rgba(255,201,92,.34); }
.match-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: auto; }
.match-actions span { text-align: center; padding: .58rem; border-radius: .7rem; border: 1px solid rgba(255,255,255,.08); color: #d9cee8; font-size: .67rem; font-weight: 900; }
.floating-card { position: absolute; z-index: 3; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: rgba(22,13,50,.78); backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: .78rem; font-weight: 900; }
.floating-card.one { left: 0; top: 20%; }
.floating-card.two { right: -1rem; bottom: 18%; }
.floating-card strong { color: var(--gold); display: block; font-size: 1.1rem; }
@keyframes float { 0%,100% { transform: rotateY(-13deg) rotateX(5deg) rotateZ(2deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(3deg) rotateZ(1deg) translateY(-14px); } }

.section { padding: 6.5rem 0; }
.section-heading { max-width: 720px; margin-bottom: 2.6rem; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.055em; margin-bottom: 1rem; }
.section-heading p { color: var(--muted); font-size: 1.06rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 1.5rem; overflow: hidden; }
.stat { padding: 2rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.65rem; color: white; }
.stat span { color: var(--muted); font-size: .82rem; }
.showcase-frame { position: relative; padding: .45rem; border: 1px solid rgba(217,163,255,.24); border-radius: 2rem; background: linear-gradient(145deg, rgba(155,77,255,.25), rgba(255,57,183,.08)); box-shadow: 0 35px 90px rgba(0,0,0,.38), 0 0 70px rgba(155,77,255,.12); overflow: hidden; }
.showcase-frame img { width: 100%; border-radius: 1.6rem; }
.screen-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.screen-shot { margin: 0; padding: .5rem; border: 1px solid var(--line); border-radius: 1.55rem; background: linear-gradient(145deg, rgba(44,27,86,.9), rgba(11,7,29,.92)); box-shadow: 0 22px 55px rgba(0,0,0,.25); transition: transform .25s ease, border-color .25s ease; }
.screen-shot:nth-child(even) { margin-top: 2rem; }
.screen-shot:hover { transform: translateY(-6px); border-color: rgba(255,70,192,.55); }
.screen-shot img { width: 100%; border-radius: 1.15rem; aspect-ratio: 709/1536; object-fit: cover; object-position: top; }
.screen-shot figcaption { padding: .85rem .45rem .35rem; color: #e8ddf7; font-weight: 850; font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.card { position: relative; overflow: hidden; min-height: 270px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: linear-gradient(145deg, rgba(37,23,75,.86), rgba(14,9,34,.78)); box-shadow: 0 20px 50px rgba(0,0,0,.17); }
.card::after { content: ""; position: absolute; inset: auto -30% -55% 20%; height: 180px; background: radial-gradient(circle, var(--card-glow, rgba(154,77,255,.3)), transparent 67%); }
.card-number { color: #bda9db; font-size: .74rem; font-weight: 900; letter-spacing: .15em; }
.card h3 { font-size: 1.45rem; margin: 2.8rem 0 .8rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 1rem; background: linear-gradient(135deg, rgba(156,77,255,.3), rgba(255,57,183,.18)); border: 1px solid rgba(255,255,255,.12); font-size: 1.55rem; }
.mode-card { display: flex; flex-direction: column; justify-content: space-between; }
.mode-card .tag { align-self: flex-start; color: #e8dfff; padding: .35rem .65rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); font-size: .72rem; font-weight: 900; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-large { grid-row: span 2; min-height: 540px; }
.feature-visual { margin-top: 2rem; padding: 1.2rem; border-radius: 1.2rem; background: rgba(4,3,13,.55); border: 1px solid rgba(255,255,255,.08); }
.league-row { display: flex; align-items: center; gap: .8rem; padding: .7rem; margin-bottom: .6rem; border-radius: .8rem; background: rgba(255,255,255,.04); }
.league-row b { width: 26px; color: var(--gold); }
.league-row span { color: var(--muted); font-size: .84rem; }
.league-row em { margin-left: auto; font-style: normal; font-weight: 900; }
.offline-badge { display: inline-flex; gap: .5rem; align-items: center; color: var(--success); font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; counter-reset: step; }
.step { counter-increment: step; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step::before { content: "0" counter(step); color: var(--pink); font-weight: 900; letter-spacing: .12em; }
.step h3 { margin: .9rem 0 .5rem; }
.step p { color: var(--muted); }
.faq { max-width: 850px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); max-width: 720px; }
.cta { text-align: center; border: 1px solid rgba(200,151,255,.23); padding: clamp(2.3rem,7vw,5.5rem); border-radius: 2rem; background: radial-gradient(circle at 50% 100%, rgba(255,48,186,.22), transparent 55%), linear-gradient(135deg, rgba(78,28,139,.7), rgba(20,11,47,.9)); }
.cta h2 { font-size: clamp(2.5rem,6vw,5rem); letter-spacing: -.06em; margin-bottom: 1rem; }

.page-hero { padding: 7rem 0 3rem; max-width: 840px; }
.page-hero h1 { font-size: clamp(3rem,7vw,5.8rem); }
.page-hero p { color: var(--muted); font-size: 1.12rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0,760px); gap: 4rem; padding-bottom: 7rem; }
.legal-nav { position: sticky; top: 105px; height: fit-content; padding: 1.2rem; border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; }
.legal-nav a { display: block; padding: .45rem 0; color: var(--muted); text-decoration: none; font-size: .86rem; }
.legal-nav a:hover { color: white; }
.legal-content section { scroll-margin-top: 110px; margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.55rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content li { margin-bottom: .55rem; }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--pink); background: rgba(255,57,183,.07); border-radius: 0 .8rem .8rem 0; color: #e7def2; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding-bottom: 7rem; }
.post { text-decoration: none; min-height: 330px; display: flex; flex-direction: column; }
.post .post-meta { color: var(--pink); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.post h2 { margin: 3rem 0 1rem; font-size: 1.55rem; }
.post p { color: var(--muted); }
.post strong { margin-top: auto; color: #dfcfff; }
.article { max-width: 760px; padding-bottom: 7rem; }
.article h2 { margin-top: 3rem; font-size: 1.7rem; }
.article p, .article li { color: var(--muted); }
.article li { margin-bottom: .7rem; }
.article .back { color: #d7bcff; text-decoration: none; font-weight: 800; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 7rem; }
.support-card { min-height: 220px; }
.support-card h2 { margin-top: 1.6rem; }
.support-card a { color: #e2caff; }

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 4rem 0 2rem; background: rgba(3,2,12,.4); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 3rem; }
.footer-copy { max-width: 430px; color: var(--muted); }
.footer-links h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #d4c6e7; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; padding: .25rem 0; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; color: #8f859f; font-size: .8rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(5px); transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1), filter .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.visible { filter: blur(0); }
.card, .screen-shot, .button { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-8px); border-color: rgba(215,166,255,.38); box-shadow: 0 28px 70px rgba(0,0,0,.3), 0 0 45px rgba(155,77,255,.08); }

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; top: 74px; left: 1rem; right: 1rem; padding: 1rem; flex-direction: column; align-items: stretch; background: #120b2b; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero.shell { width: min(100% - 2rem, 760px); }
  .hero { grid-template-columns: 1fr; text-align: center; gap: .5rem; padding-top: 4rem; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-stage { min-height: 0; }
  .hero-phone-pair { width: min(720px, 100%); height: clamp(390px, 72vw, 520px); }
  .hero-phone-image { height: clamp(390px, 70vw, 510px); }
  .cards, .blog-grid { grid-template-columns: 1fr 1fr; }
  .screen-gallery { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-row: auto; min-height: 420px; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-nav { position: static; }
  .nav:not(:has(.menu-button)) .nav-links.open { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; background: transparent; border: 0; box-shadow: none; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 1.25rem,1180px); }
  .nav { min-height: 66px; }
  .nav-links { top: 66px; }
  .hero { min-height: 0; padding-bottom: 3rem; }
  .hero-stage { min-height: 0; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .hero-phone-pair { width: 108vw; height: 350px; margin-inline: -7vw; }
  .hero-phone-image { height: 350px; }
  .phone { width: 285px; }
  .floating-card.one { left: .2rem; top: 13%; }
  .floating-card.two { right: 0; bottom: 13%; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .blog-grid, .steps, .support-grid, .footer-grid { grid-template-columns: 1fr; }
  .screen-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .screen-shot { min-width: 76vw; scroll-snap-align: center; }
  .screen-shot:nth-child(even) { margin-top: 0; }
  .section { padding: 4.5rem 0; }
  .page-hero { padding-top: 4.5rem; }
  .footer-bottom { flex-direction: column; }
}
