/* ============================================================
   SuprPlay Games — Studio Site
   Design system + sections
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy:        #0B1020;
  --navy-deep:   #070A14;
  --navy-panel:  #0F1630;
  --blue:        #3B82F6;
  --blue-bright: #5B9CFF;
  --red:         #EF4444;
  --red-bright:  #FF6363;
  --white:       #FFFFFF;
  --ink-1:       rgba(255,255,255,0.94);
  --ink-2:       rgba(255,255,255,0.66);
  --ink-3:       rgba(255,255,255,0.42);

  --glass:        rgba(255,255,255,0.045);
  --glass-strong: rgba(255,255,255,0.07);
  --hair:         rgba(255,255,255,0.10);
  --hair-soft:    rgba(255,255,255,0.06);

  --grad-brand: linear-gradient(100deg, var(--blue) 0%, #7C5CFF 48%, var(--red) 100%);
  --grad-text:  linear-gradient(100deg, var(--blue-bright) 0%, #B98CFF 50%, var(--red-bright) 100%);

  --shadow-card: 0 24px 60px -28px rgba(0,0,0,0.85);
  --shadow-glow-blue: 0 0 64px -8px rgba(59,130,246,0.55);
  --shadow-glow-red:  0 0 64px -8px rgba(239,68,68,0.50);

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--ink-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(59,130,246,0.4); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 9px 16px; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--hair);
  backdrop-filter: blur(12px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 12px var(--blue);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section-head { max-width: 660px; margin-bottom: clamp(48px, 6vw, 76px); }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); margin: 22px 0 0; }
.section-head p { margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  letter-spacing: 0.01em; padding: 16px 30px; border-radius: 14px; border: 0;
  color: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); box-shadow: 0 14px 40px -14px rgba(59,130,246,0.7); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -16px rgba(124,92,255,0.85); }
.btn-primary:hover::after { transform: translateX(130%); }

.btn-ghost {
  background: var(--glass-strong); border: 1px solid var(--hair);
  backdrop-filter: blur(12px); color: var(--ink-1);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.22); }

/* ============================================================
   Background atmosphere
   ============================================================ */
#particles {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.9;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.page { position: relative; z-index: 1; }

.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.orb-blue { background: radial-gradient(circle, rgba(59,130,246,0.55), transparent 65%); }
.orb-red  { background: radial-gradient(circle, rgba(239,68,68,0.45), transparent 65%); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,11,22,0.72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-name b { color: var(--blue-bright); }
.brand-name i { color: var(--red-bright); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 10px 16px;
  border-radius: 10px; transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--white); background: var(--glass); }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14.5px; }

.nav-toggle { display: none; background: var(--glass); border: 1px solid var(--hair); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 80px; overflow: hidden; }
.hero .orb-blue { width: 620px; height: 620px; top: -160px; left: -180px; }
.hero .orb-red  { width: 560px; height: 560px; bottom: -220px; right: -160px; }

.hero-inner { position: relative; z-index: 2; text-align: center; margin-inline: auto; max-width: 920px; }
.hero-logo {
  width: clamp(180px, 26vw, 320px); margin: 0 auto 30px;
  animation: floaty 7s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(40px, 7.2vw, 92px); margin: 26px 0 0;
  text-wrap: balance;
}
.hero h1 .line2 { display: block; }
.hero-sub {
  margin: 26px auto 0; max-width: 620px;
  font-size: clamp(16.5px, 1.6vw, 21px); color: var(--ink-2); text-wrap: pretty;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--hair); border-radius: 14px; position: relative; }
.scroll-hint .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 3px; background: var(--blue-bright); animation: wheel 1.7s infinite; }

/* ============================================================
   Featured Game — Ludo Clash
   ============================================================ */
.featured { overflow: hidden; }
.featured .orb-red { width: 440px; height: 440px; top: 36%; right: -200px; left: auto; opacity: 0.7; }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.fg-copy .badge-game {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-bright);
  padding: 7px 14px; border-radius: 100px; background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.28);
}
.fg-icon { width: 96px; height: 96px; border-radius: 24px; margin: 26px 0 4px; box-shadow: var(--shadow-card); border: 1px solid var(--hair); }
.fg-copy h2 { font-size: clamp(36px, 4.6vw, 60px); margin: 18px 0 0; }
.fg-copy .tagline { color: var(--blue-bright); font-weight: 700; font-size: 17px; margin-top: 10px; font-family: var(--font-display); }
.fg-copy p.desc { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 480px; }

.fg-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fg-features span {
  font-size: 13.5px; font-weight: 600; color: var(--ink-1); white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; background: var(--glass); border: 1px solid var(--hair);
}

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px;
  border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--hair);
  backdrop-filter: blur(12px); transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.store-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .st { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .st small { font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.store-btn .st strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; }

/* phone showcase */
.fg-shots { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  position: relative; width: 248px; aspect-ratio: 9 / 19.5; border-radius: 38px;
  background: linear-gradient(160deg, #1c2540, #0a0f1e);
  border: 2px solid rgba(255,255,255,0.14); padding: 9px;
  box-shadow: var(--shadow-card), 0 0 60px -22px rgba(59,130,246,0.5);
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 78px; height: 20px; border-radius: 12px; background: #05070e; z-index: 3; }
.phone .screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #131b35, #0b1224);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.p-back { position: absolute; transform: rotate(8deg) translate(72px, -8px) scale(0.94); z-index: 1; filter: brightness(1.12) opacity(0.95); }
.phone.p-front { position: relative; z-index: 2; transform: translateX(-30px); }

/* ============================================================
   Why SuprPlay — feature cards
   ============================================================ */
.why .orb-blue { width: 520px; height: 520px; top: -120px; right: -160px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 36px 32px 40px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--hair); backdrop-filter: blur(14px);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px;
  background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); background: var(--glass-strong); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(59,130,246,0.18), rgba(239,68,68,0.12));
  border: 1px solid var(--hair); margin-bottom: 24px;
}
.card .ic svg { width: 30px; height: 30px; }
.card h3 { font-size: 23px; }
.card p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.card .num { position: absolute; top: 26px; right: 30px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-3); }

/* ============================================================
   Studio
   ============================================================ */
.studio { position: relative; overflow: hidden; }
.studio-panel {
  position: relative; border-radius: 30px; overflow: hidden;
  background: linear-gradient(150deg, rgba(59,130,246,0.10), rgba(239,68,68,0.06));
  border: 1px solid var(--hair); padding: clamp(48px, 7vw, 88px);
  text-align: center; backdrop-filter: blur(10px);
}
.studio-panel .orb-blue { width: 460px; height: 460px; top: -200px; left: -120px; }
.studio-panel .orb-red  { width: 420px; height: 420px; bottom: -240px; right: -120px; }
.studio-panel .inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.studio-panel h2 { font-size: clamp(32px, 4.4vw, 54px); margin-top: 22px; }
.studio-panel p { margin-top: 24px; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); }
.studio-stats { display: flex; justify-content: center; gap: clamp(30px, 6vw, 70px); margin-top: 48px; flex-wrap: wrap; }
.studio-stats .stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); }
.studio-stats .stat span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer { position: relative; border-top: 1px solid var(--hair-soft); background: var(--navy-deep); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 52px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: var(--ink-2); font-size: 15px; padding: 7px 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--white); transform: translateX(4px); }
.footer-blurb { color: var(--ink-2); font-size: 15px; max-width: 300px; margin-top: 18px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--hair); transition: .3s; }
.footer-social a:hover { background: var(--glass-strong); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair-soft); color: var(--ink-3); font-size: 13.5px; flex-wrap: wrap; }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .links a:hover { color: var(--white); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes wheel { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 18px; } }
@keyframes orbDrift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
.orb-blue { animation: orbDrift 16s ease-in-out infinite; }
.orb-red  { animation: orbDrift 19s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; }
  .fg-shots { order: -1; min-height: 480px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer .brand-block { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 28px; }
  .hero-actions .btn { flex: 1; min-width: 140px; font-size: 14px; }
  .featured-grid { gap: 30px; }
  .fg-shots { min-height: 400px; }
  .phone { width: 180px; }
  .phone.p-front { transform: translateX(-16px); }
  .phone.p-back { transform: rotate(6deg) translate(40px, -4px) scale(0.88); }
  .fg-copy h2 { font-size: 28px; }
  .store-buttons { flex-direction: column; }
  .store-btn { width: 100%; }
}
  .nav.open .nav-links {
    display: flex; position: absolute; top: 78px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: rgba(10,14,26,0.96); border: 1px solid var(--hair); border-radius: 18px;
    backdrop-filter: blur(20px);
  }
  .nav.open .nav-links a { padding: 14px 16px; }
  .nav.open .nav-cta { margin: 6px 0 0; }
  .nav.open .nav-cta .btn { width: 100%; }
  .hero { text-align: center; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
  .phone { width: 200px; }
  .phone.p-front { transform: translateX(-22px); }
  .phone.p-back { transform: rotate(7deg) translate(52px, -6px) scale(0.9); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.footer-address { margin-top: 20px; font-style: normal; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.footer-address strong,
.footer-address a,
.footer-address span { display: block; }
.footer-address strong { font-family: var(--font-display); color: var(--ink-1); letter-spacing: 0.03em; font-size: 13px; }
.footer-address a { color: var(--blue-bright); }
.footer-address a:hover { text-decoration: underline; }
