/* ========================================================================
   Gameoona — one page responsive site
   ======================================================================== */

:root {
  --orange:      #F15A24;
  --orange-dark: #d9481a;
  --blue:        #2563EB;
  --navy:        #0e1b2e;
  --navy-2:      #12233b;
  --ink:         #0f1b2d;
  --gray:        #5b6472;
  --gray-light:  #8a93a2;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fc;
  --card:        #ffffff;
  --border:      #e7edf4;
  --radius:      16px;
  --radius-lg:   22px;
  --shadow-sm:   0 4px 18px rgba(15, 27, 45, .06);
  --shadow-md:   0 18px 50px rgba(15, 27, 45, .10);
  --maxw:        1200px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section       { padding: 90px 0; }
.section-tight { padding: 52px 0; }

.dot { color: var(--orange); }
.dot-blue   { color: var(--blue); }
.dot-orange { color: var(--orange); }
.text-blue  { color: #4f9dff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn .arrow { font-size: 1.05em; line-height: 1; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(241, 90, 36, .28); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 14px 30px rgba(241, 90, 36, .34); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfd8e3; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef2f7; }

.btn-navy { background: var(--navy); color: #fff; padding: 13px 22px; }
.btn-navy:hover { background: #1c3050; }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 27, 45, .06); border-color: var(--border); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.28rem; font-weight: 800; letter-spacing: .5px; }
.brand-text small { font-size: .58rem; letter-spacing: 2.5px; color: var(--gray); font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-weight: 600; font-size: .96rem; color: var(--gray);
  position: relative; padding: 6px 0; transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 22px; height: 2.5px; background: var(--orange); border-radius: 2px;
}

.btn-cta { padding: 12px 22px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% -8%, #fdf1ea 0%, rgba(253,241,234,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  padding: 40px 0 70px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: .8rem; margin-bottom: 22px;
}
.eyebrow-line { width: 34px; height: 2px; background: var(--orange); display: inline-block; }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -1.5px;
}
.hero-lead { color: var(--gray); font-size: 1.08rem; max-width: 460px; margin: 26px 0 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-location {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray); font-weight: 500; margin-top: 34px;
}
.hero-location .pin { display: grid; place-items: center; width: 30px; height: 30px; background: #fdeee7; border-radius: 50%; }

.hero-art { position: relative; }
.hero-art-frame {
  position: relative;
  aspect-ratio: 5 / 4.4;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* fallback fantasy gradient behind the image */
  background:
    radial-gradient(120% 90% at 70% 15%, #ffd9a3 0%, #f3a06b 30%, #b25b8a 62%, #4a3b7a 100%);
  clip-path: polygon(14% 0, 100% 0, 100% 78%, 86% 100%, 0 100%, 0 22%);
}
.hero-art-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.hero-art-frame img.img-missing { opacity: 0; }

/* Decorative "Air Battle" composition — auto-hidden once a real image loads */
.hero-art-frame.has-img .hero-deco { display: none; }
.hero-deco {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 20px;
}
.deco-emblem {
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  animation: float 5s ease-in-out infinite;
}
.deco-title {
  margin-top: 20px; font-weight: 800; font-size: 1.8rem;
  letter-spacing: 5px; text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.deco-sub {
  margin-top: 4px; font-size: .66rem; font-weight: 700; letter-spacing: 3.5px;
  color: rgba(255, 255, 255, .85);
}
.deco-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  color: #fff; font-size: .78rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.chip-top { top: 16%; left: 12%; animation: float 6s ease-in-out infinite; }
.chip-bottom { bottom: 15%; right: 10%; animation: float 5.5s ease-in-out infinite reverse; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFF9B; box-shadow: 0 0 8px #7CFF9B; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.deco-star {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; opacity: .8; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8);
  animation: twinkle 3s ease-in-out infinite;
}
.deco-star.s1 { top: 22%; right: 24%; animation-delay: .2s; }
.deco-star.s2 { top: 60%; left: 20%; width: 4px; height: 4px; animation-delay: 1.1s; }
.deco-star.s3 { bottom: 30%; right: 30%; width: 5px; height: 5px; animation-delay: .7s; }
.deco-star.s4 { top: 38%; left: 32%; width: 3px; height: 3px; animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ========================================================================
   ABOUT
   ======================================================================== */
.about {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 22%, var(--bg-soft) 100%);
}
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }

.section-eyebrow {
  color: var(--blue); font-weight: 700; letter-spacing: 2px; font-size: .82rem; margin-bottom: 18px;
}
.eyebrow-underline { display: block; width: 30px; height: 2.5px; background: var(--blue); margin-top: 8px; border-radius: 2px; }

.about h2, .game-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -.6px; }
.section-lead { color: var(--gray); margin-top: 22px; max-width: 420px; font-size: 1.03rem; }

.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon-blue   { background: #e8f0fe; color: #2563EB; }
.icon-green  { background: #e6f6ee; color: #1fa463; }
.icon-orange { background: #fdece2; color: #F15A24; }
.icon-purple { background: #efeafe; color: #7c5cff; }
.feature-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: .95rem; }

/* ---------- Game teaser (split showcase) ---------- */
.game-teaser {
  position: relative;
  margin-top: 70px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  color: #fff;
  background: linear-gradient(135deg, #0e1b2e 0%, #16294300 100%), var(--navy);
  box-shadow: var(--shadow-md);
}
.game-teaser-content { position: relative; z-index: 2; padding: 54px 50px; }
.game-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: 2px; font-size: .78rem; color: #9fb2cc; margin-bottom: 20px;
}
.eyebrow-line.light { width: 40px; height: 1.5px; background: rgba(255,255,255,.35); display: inline-block; }

.coming-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79, 157, 255, .14); color: #6db1ff;
  border: 1px solid rgba(79, 157, 255, .35);
  padding: 7px 15px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 18px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4f9dff; box-shadow: 0 0 0 0 rgba(79,157,255,.7); animation: blink 1.8s infinite; }
@keyframes blink {
  0%   { box-shadow: 0 0 0 0 rgba(79,157,255,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(79,157,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,157,255,0); }
}

.game-title { color: #fff; }
.game-lead { color: #c3cede; margin: 16px 0 22px; max-width: 440px; }

.game-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.game-meta li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: #d7e0ee; padding: 8px 14px; border-radius: 10px;
  font-size: .84rem; font-weight: 600;
}
.game-meta svg { color: #6db1ff; }

.game-teaser-media {
  position: relative; overflow: hidden; min-height: 340px;
  background: linear-gradient(140deg, #17263f 0%, #24405f 45%, #3f6b96 100%);
}
.game-teaser-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.game-teaser:hover .game-teaser-media img { transform: scale(1.06); }
.game-teaser-media img.img-missing { opacity: 0; }
.media-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,27,46,.9) 0%, rgba(14,27,46,.25) 22%, rgba(14,27,46,0) 45%),
    radial-gradient(120% 80% at 80% 20%, rgba(79,157,255,.25) 0%, rgba(79,157,255,0) 55%);
}
.media-tag {
  position: absolute; z-index: 2; right: 26px; bottom: 24px;
  font-weight: 800; letter-spacing: 3px; font-size: 1.15rem;
  color: rgba(255, 255, 255, .92); text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

/* ========================================================================
   STATS
   ======================================================================== */
.stats { background: #fff; border-top: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.stat-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #eef4ff; display: grid; place-items: center; }
.stat strong { display: block; font-size: 1.02rem; font-weight: 700; margin-bottom: 3px; }
.stat p { color: var(--gray); font-size: .9rem; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer { background: #eef3f9; color: var(--ink); padding-top: 66px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { color: var(--gray); margin: 18px 0 20px; max-width: 300px; font-size: .95rem; }
.footer-brand-text small { color: var(--gray); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }

.footer-col h4 { font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; color: var(--ink); }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: var(--gray); font-size: .96rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }

.footer-subscribe p { color: var(--gray); font-size: .95rem; margin-bottom: 16px; }
.footer-email {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--navy); font-weight: 600; font-size: .95rem; margin-bottom: 18px;
  transition: color .2s;
}
.footer-email:hover { color: var(--orange); }
.footer-subscribe .btn-navy { width: 100%; justify-content: center; }

.footer-bottom { border-top: 1px solid #dbe3ec; padding: 22px 0; }
.footer-bottom p { text-align: center; color: var(--gray); font-size: .9rem; }

/* ========================================================================
   LEGAL PAGE
   ======================================================================== */
.legal-page {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: 60px 0 90px;
}
.legal-inner { max-width: 820px; }
.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800;
  letter-spacing: -.6px; line-height: 1.15; margin-bottom: 10px;
}
.legal-updated { color: var(--gray-light); font-weight: 600; font-size: .92rem; margin-bottom: 30px; }
.legal-page h2 {
  font-size: 1.28rem; font-weight: 700; margin: 34px 0 12px; color: var(--ink);
}
.legal-page p { color: var(--gray); margin-bottom: 14px; font-size: 1.02rem; }
.legal-page ul { padding-left: 22px; margin: 4px 0 14px; list-style: disc; }
.legal-page li { color: var(--gray); margin-bottom: 9px; font-size: 1.02rem; }
.legal-page li strong, .legal-page p strong { color: var(--ink); }
.legal-page a { color: var(--blue); font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }
.legal-contact {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); line-height: 1.9;
}
.legal-back { margin-top: 36px; }
.legal-back a { color: var(--orange); }

/* ========================================================================
   CONTACT MODAL
   ======================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(9, 17, 30, .55); backdrop-filter: blur(3px);
  animation: fade .25s var(--ease);
}
.modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px 38px 34px;
  box-shadow: 0 30px 80px rgba(9, 17, 30, .35);
  max-height: calc(100vh - 48px); overflow-y: auto;
  animation: pop .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 10px; border: 0;
  background: var(--bg-soft); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.modal-close:hover { background: #e3e9f1; }

.modal-eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: .75rem; margin-bottom: 10px; }
.modal-dialog h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.4px; }
.modal-sub { color: var(--gray); margin: 8px 0 22px; font-size: .96rem; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.contact-form input,
.contact-form textarea {
  padding: 12px 14px; border: 1px solid #d7dfe9; border-radius: 11px;
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: #fff;
  width: 100%; resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.contact-submit { justify-content: center; margin-top: 4px; }
.contact-submit:disabled { opacity: .7; cursor: default; transform: none; }
.contact-msg { font-size: .86rem; font-weight: 600; min-height: 1em; }
.contact-msg.ok  { color: #1fa463; }
.contact-msg.err { color: #e14b4b; }

@media (max-width: 480px) {
  .modal-dialog { padding: 34px 22px 26px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ========================================================================
   TOAST
   ======================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-md);
  z-index: 200; opacity: 0; transition: transform .35s var(--ease), opacity .35s;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

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

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-lead { max-width: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 26px; }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .main-nav, .btn-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: block;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
    margin-left: 0; z-index: 70;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .main-nav li { border-bottom: 1px solid var(--bg-soft); }
  .main-nav a { display: block; padding: 15px 0; font-size: 1rem; }
  .main-nav a.active::after { display: none; }

  .hero { padding-top: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-lead { max-width: none; }

  .feature-cards { grid-template-columns: 1fr 1fr; }

  .game-teaser { grid-template-columns: 1fr; }
  .game-teaser-media { order: -1; min-height: 240px; }
  .game-teaser-content { padding: 34px 28px; }
  .game-lead { max-width: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .brand-text small { display: none; }
  .feature-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn, .btn-light { width: 100%; justify-content: center; }
  .subscribe-form button { width: 100%; }
}

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