/* ===============================================================
   NOVA Arcade — Landing Page Styles
   Sections: base / background / header / hero / games / features
             / cta / footer / responsive / motion
=============================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0c0710;
  --bg-2:      #22101d;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.11);
  --text:      #fbf3ef;
  --muted:     #c6a9b6;
  --brand:     #ff6a3d;
  --brand-2:   #ff2e93;
  --accent:    #ffc93c;
  --radius:    18px;
  --maxw:      1160px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Sora", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-ghost { background: var(--surface-2); border-color: var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.btn-primary {
  color: #fff; font-weight: 700;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 26px -12px rgba(255,46,147,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255,106,61,.8); }

/* ---------- Animated background ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb-1 { width: 46vw; height: 46vw; background: var(--brand);   top: -8vw;  left: -6vw;  animation: drift1 22s ease-in-out infinite; }
.orb-2 { width: 40vw; height: 40vw; background: var(--brand-2); top: 30vh;  right: -10vw; animation: drift2 26s ease-in-out infinite; }
.orb-3 { width: 34vw; height: 34vw; background: var(--accent);  bottom: -12vw; left: 20vw;  animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(6vw,4vh) scale(1.1)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-5vw,6vh) scale(1.08)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(4vw,-5vh) scale(1.12)} }

.grid-floor {
  position: absolute; inset: 55% -20% -30% -20%;
  background-image: linear-gradient(rgba(255,106,61,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,46,147,.16) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(420px) rotateX(62deg);
  mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  animation: floor 14s linear infinite;
}
@keyframes floor { from{background-position:0 0} to{background-position:0 46px} }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0; transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,7,20,.72); backdrop-filter: blur(14px);
  border-bottom-color: var(--border); padding: 15px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Orbitron", sans-serif; }
.brand-mark { display: grid; place-items: center; }
.brand-name { font-size: 1.15rem; font-weight: 900; letter-spacing: .04em; }
.brand-name span { color: var(--brand-2); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  position: relative; padding: 8px 14px; font-size: .95rem; font-weight: 500;
  color: var(--muted); border-radius: 100px; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }
.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: .9rem; }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section ---------- */
.section { padding: clamp(50px, 11vw, 60px) 0; position: relative; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 1000px; margin: 0 auto clamp(40px, 6vw, 45px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 12px; }
.section-head p { color: #fff; }
.grad-text {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 26px rgba(255,46,147,.35));
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(70px, 9vw, 120px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 5vw, 60px); }
.hero-title { font-family: "Orbitron", sans-serif; font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 900; margin-bottom: 30px; }
.hero-sub { color: #e6e6e6; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 30rem; margin-bottom: 30px; }

/* App store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-buttons.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 14px;
  background: #fff; color: #0b0714; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(255,106,61,.6);
}
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.05rem; }
.store-btn small { font-size: .68rem; font-weight: 500; opacity: .7; }
.store-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -12px rgba(255,46,147,.7); }

/* Subscribe form */
.subscribe { max-width: 480px; }
.subscribe-field {
  display: flex; gap: 8px; padding: 6px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, box-shadow .25s;
}
.subscribe-field:focus-within { border-color: rgba(255,46,147,.55); box-shadow: 0 0 0 4px rgba(255,46,147,.12); }
.subscribe-field input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 1rem; padding: 10px 8px 10px 18px;
}
.subscribe-field input::placeholder { color: var(--muted); }
.subscribe-field .btn { white-space: nowrap; }
.form-msg { min-height: 20px; margin-top: 12px; font-size: .9rem; font-weight: 500; padding-left: 6px; transition: color .2s; }
.form-msg.error { color: #ff8a8a; }
.form-msg.success { color: #4ade80; }

/* Hero stats + count-up */
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; list-style: none; }
.hero-stats strong { font-family: "Orbitron", sans-serif; font-size: 1.9rem; display: block; }
.hero-stats span { color: #fff; font-size: .82rem; }

/* Hero visual — floating phone */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(280px, 74vw); aspect-ratio: 9/19;
  background: linear-gradient(160deg, #2a1520, #120810);
  border-radius: 40px; padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.03);
  animation: floatY 6s ease-in-out infinite;
  transform-style: preserve-3d; transition: transform .3s var(--ease);
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 42%; height: 20px; background: #0b0714; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.float-badge {
  position: absolute; padding: 9px 15px; border-radius: 100px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid var(--border); font-size: .82rem; font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
}
.fb-1 { top: 12%; left: 5%; animation: floatY 5s ease-in-out infinite; }
.fb-2 { bottom: 16%; right: 12%; animation: floatY 5.5s ease-in-out .5s infinite; }

/* Scroll hint */
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--brand-2); border-radius: 4px; transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0%{opacity:0;top:8px} 40%{opacity:1} 100%{opacity:0;top:22px} }

/* ---------- Games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transform-style: preserve-3d; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.game-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  -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 .3s;
}
.game-card:hover { box-shadow: 0 30px 60px -28px var(--c1); }
.game-card:hover::after { opacity: 1; }
.game-art { aspect-ratio: 4/3; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.game-card:hover .game-art img { transform: scale(1.08); }
.game-body { padding: 18px 18px 22px; }
.game-body h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.game-body p { color: #e8e8e8; font-size: .9rem; }
.tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 30px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(255,46,147,.42); }
.feature-icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(140deg, rgba(255,106,61,.3), rgba(255,201,60,.2)); margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: #dcdcdc; font-size: .92rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.review:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(255,201,60,.4); }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.quote { color: var(--text); font-size: 1rem; line-height: 1.65; margin-bottom: 22px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 50%; font-weight: 700; font-size: .9rem; color: #12060c;
  background: linear-gradient(140deg, var(--a, var(--brand)), rgba(255,255,255,.25));
}
.who { display: flex; flex-direction: column; line-height: 1.2; }
.who small { color: var(--muted); font-size: .8rem; }

/* ---------- CTA ---------- */
.cta-inner {
  text-align: center; padding: clamp(44px, 6vw, 74px) 26px;
  border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(255,106,61,.24), rgba(255,46,147,.16));
  border: 1px solid var(--border);
}
.cta-inner::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: conic-gradient(from 0deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  filter: blur(40px); opacity: .35; animation: spin 12s linear infinite;
}
a.brand {
    width: 25%;
}

@keyframes spin { to { transform: rotate(360deg); } }
.cta-inner h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 12px; }
.cta-inner p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 50px !important; border-top: 1px solid var(--border); padding: 40px 0; background: rgba(0,0,0,.25); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: #fff; transition: transform .25s var(--ease), color .25s, background .25s; }
.social a:hover { transform: translateY(-3px); color: #fff; background: var(--brand); }
.copy { color: var(--muted); font-size: .85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===============================================================
   RESPONSIVE
=============================================================== */
/* Mobile navigation */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column;
    align-items: stretch; gap: 4px; padding: 25px 10px 20px;
    background: rgba(12,7,16,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%); transition: transform .35s var(--ease);
    z-index: 40;
  }
  .phone {
    position: relative;
    width: min(280px, 50vw);
  }
  .hero {
    padding: 50px 15px 91px 15px !important;
    position: relative;
}
  .nav-toggle {
    width: 36px;
    height: 36px;
  }
  .nav.open { top: 70px; transform: translateY(0); }
  .nav-link { 
    padding: 3px 0px;
        font-size: 16px !important;
        font-weight: 400;
    }
  .nav-link::after { display: none; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .subscribe { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
.fb-1 { left: 21%; } .fb-2 { right: 21%; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .games-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .float-badge { font-size: .72rem; }
  .fb-1 { left: -30%; } .fb-2 { right: -10%; }
.hero-title {
    font-size: 32px !important;
    font-weight: 900;
    margin-bottom: 17px;
}
.section-head h2 {
    font-size: 24px !important;
    margin-bottom: 12px;
}
.section-head {

    margin-bottom: 20px;
}
.section-head p {
    color: #fff;
    font-size: 15px !important;
}
.container {
    padding-inline: 15px;
}
.hero-grid {
    gap: clamp(0px, 2vw, 55px);
}
.hero-grid {
    display: flex;
    flex-direction: column !important;
}
.feature {
    padding: 20px 15px;
}
.feature-icon {
    font-size: 24px;
    width: 45px;
    height: 45px;
}
.section {
    padding: clamp(20px, 7vw, 54px) 0;
    position: relative;
}
.reviews-grid {
    grid-template-columns: repeat(1, 1fr);
}
a.brand {
    width: 50%;
}
}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
