:root{
  --bg:#0b1220;
  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;
  --line:rgba(15,23,42,.08);
  --brand:#2563eb;
  --brand2:#22c55e;
  --accent:#0ea5e9;
  --shadow:0 12px 30px rgba(2,6,23,.14);
  --radius:16px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:#f6f7fb;
  color:var(--text);
  line-height:1.5;
}

a{color:inherit}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* NAV */
.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
}
.logo img{width:34px;height:34px}

.nav-links{
  list-style:none;
  display:flex;
  gap:14px;
  margin:0;
  padding:0;
  align-items:center;
}
.nav-links a{
  text-decoration:none;
  color:rgba(15,23,42,.86);
  padding:10px 12px;
  border-radius:12px;
  font-weight:650;
}
.nav-links a:hover{background:rgba(37,99,235,.08)}
.nav-links .nav-cta{
  background:linear-gradient(135deg,var(--brand),var(--accent));
  color:#fff;
  box-shadow:0 10px 20px rgba(37,99,235,.18);
}
.nav-links .nav-cta:hover{background:linear-gradient(135deg,#1d4ed8,#0284c7)}

.hamburger{
  display:none;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:10px;
  border-radius:12px;
}
.hamburger:hover{background:rgba(2,6,23,.06)}
.hamburger span{
  display:block;
  width:26px;
  height:3px;
  background:#0f172a;
  margin:5px 0;
  border-radius:999px;
}

/* HERO */
.hero{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero--photo .hero-media{
  position:absolute;
  inset:0;
  background:url("assets/hero.jpg") center/cover no-repeat;
  transform:scale(1.02);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 20% 30%, rgba(15,23,42,.10), transparent 55%),
    linear-gradient(90deg, rgba(2,6,23,.68) 0%, rgba(2,6,23,.30) 55%, rgba(2,6,23,.10) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:780px;
  padding:90px 20px;
  margin-left:max(0px, calc((100vw - var(--max))/2));
}
.eyebrow{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  color:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.20);
  font-weight:700;
  letter-spacing:.3px;
  margin:0 0 14px;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height:1.05;
  color:#fff;
}
.subhead{
  margin:0 0 18px;
  font-size: clamp(16px, 1.4vw, 20px);
  color:rgba(255,255,255,.92);
  max-width:52ch;
}

.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.trust-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.trust-pill{
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.92);
  font-weight:650;
  font-size:14px;
}

/* BUTTONS */
.cta-button{
  border:0;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.2px;
}
.cta-button--primary{
  background:linear-gradient(135deg,var(--brand2),#16a34a);
  color:#fff;
  box-shadow:0 14px 26px rgba(34,197,94,.20);
}
.cta-button--primary:hover{filter:brightness(1.03)}
.cta-button--ghost{
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
}
.page-hero .cta-button--ghost{
  background:rgba(37,99,235,.08);
  color:rgba(15,23,42,.92);
  border:1px solid rgba(15,23,42,.10);
}
.page-hero .cta-button--primary{box-shadow:0 14px 26px rgba(34,197,94,.18)}

/* SECTIONS */
.section{padding:64px 0}
.section--light{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section--accent{
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(14,165,233,.12));
  border-top:1px solid rgba(37,99,235,.14);
  border-bottom:1px solid rgba(37,99,235,.14);
}

h2{font-size:32px; margin:0 0 10px}
.lead{color:var(--muted); font-size:18px; margin:0 0 22px; max-width:70ch}
.small{color:var(--muted); font-size:14px}
.center{text-align:center}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:22px;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.card img{height:200px; width:100%; object-fit:cover}
.card-body{padding:16px}
.card h3{margin:0 0 8px; font-size:20px}
.card p{margin:0 0 12px; color:var(--muted)}
.card-link{font-weight:800; text-decoration:none; color:var(--brand)}
.card-link:hover{text-decoration:underline}

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:start;
}
.split-media{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.split-media img{height:320px; width:100%; object-fit:cover}
.caption{padding:12px 14px; color:var(--muted); font-size:14px}

.steps{
  margin:0;
  padding-left:18px;
}
.steps li{margin:10px 0; color:rgba(15,23,42,.88)}
.inline-cta{margin-top:16px}
.inline-cta.center{display:flex; justify-content:center}

.banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.65);
  border:1px solid rgba(37,99,235,.16);
  box-shadow:var(--shadow);
}
.banner-actions{display:flex; gap:12px; flex-wrap:wrap}
.banner .cta-button--ghost{color:rgba(15,23,42,.92); background:rgba(255,255,255,.7); border:1px solid rgba(15,23,42,.08)}

.newsletter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(34,197,94,.10), rgba(37,99,235,.10));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.newsletter-form{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.newsletter-form input{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  min-width:280px;
  font-size:16px;
}
.form-note{margin:10px 0 0; color:var(--muted); font-size:13px}

/* SERVICES */
.page-hero{
  padding:54px 0 26px;
  background:linear-gradient(180deg, rgba(37,99,235,.10), rgba(246,247,251,0));
}
.service-split{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:22px;
  align-items:center;
}
.service-split.reverse{grid-template-columns:1.1fr .9fr}
.service-split.reverse .service-media{order:2}
.service-media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.service-media img{height:360px; width:100%; object-fit:cover}
.service-copy h2{margin:0 0 10px}
.bullets{margin:0; padding-left:18px; color:rgba(15,23,42,.86)}
.bullets li{margin:10px 0}

/* ABOUT */
.promise-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.promise-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.promise-card h3{margin:0 0 8px}
.promise-card p{margin:0; color:var(--muted)}

/* TESTIMONIALS */
.testimonial-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
.testimonial{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.testimonial img{
  width:88px;height:88px;border-radius:50%;
  object-fit:cover;
  border:3px solid rgba(37,99,235,.16);
  margin-bottom:12px;
}
.quote{margin:0 0 10px; color:rgba(15,23,42,.88); font-weight:650}
.byline{margin:0; color:var(--muted); font-size:14px}

/* CONTACT */
.contact-grid{
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap:18px;
  align-items:start;
}
.contact-card, .form-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.field{display:flex; flex-direction:column; gap:8px; margin-bottom:14px}
label{font-weight:750}
input, textarea{
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  padding:12px 12px;
  font-size:16px;
}
textarea{min-height:130px; resize:vertical}

/* GAME */
.game-wrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.game-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
#gameCanvas{
  width:100%;
  height:auto;
  display:block;
  background:#0b1220;
}
.game-ui{padding:14px 16px}
.game-ui-row{display:flex; gap:10px; flex-wrap:wrap}
.game-stats{display:flex; gap:10px; flex-wrap:wrap; margin:12px 0}
.stat{
  padding:8px 10px;
  background:rgba(37,99,235,.08);
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  font-weight:800;
  color:rgba(15,23,42,.88);
}
.game-side{
  padding:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.callout{
  margin-top:14px;
  padding:14px;
  border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(34,197,94,.10), rgba(14,165,233,.10));
  border:1px solid rgba(15,23,42,.08);
}
.callout h3{margin:0 0 6px}
.callout p{margin:0; color:var(--muted)}

/* FOOTER */
footer{
  background:#0b1220;
  color:#e2e8f0;
  padding:34px 0 16px;
}
.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.footer-left p{margin:8px 0 0; color:rgba(226,232,240,.82); max-width:52ch}
.footer-right{display:flex; gap:12px; flex-wrap:wrap}
.footer-right a{color:#e2e8f0; text-decoration:none; font-weight:700; padding:8px 10px; border-radius:12px}
.footer-right a:hover{background:rgba(226,232,240,.10)}
.footer-bottom{
  max-width:var(--max);
  margin:18px auto 0;
  padding:0 20px;
  color:rgba(226,232,240,.70);
  font-size:13px;
}

/* RESPONSIVE */
@media (max-width: 960px){
  .cards{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .service-split, .service-split.reverse{grid-template-columns:1fr}
  .service-split.reverse .service-media{order:0}
  .promise-grid{grid-template-columns:1fr}
  .testimonial-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .game-wrap{grid-template-columns:1fr}
  .banner{flex-direction:column; align-items:flex-start}
  .newsletter{flex-direction:column; align-items:flex-start}
  .hero-content{padding:78px 20px; margin-left:0}
}

@media (max-width: 820px){
  .hamburger{display:inline-block}
  .nav-links{
    position:absolute;
    top:62px;
    right:16px;
    left:16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:12px;
    background:rgba(255,255,255,.96);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
  }
  .nav-links.active{display:flex}
  .nav-links a{padding:12px 12px}
}


.hidden{display:none !important;}


/* Legal pages */
.legal-section{
  padding: 2.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,123,255,0.08), rgba(40,167,69,0.06));
}
.legal-card{
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  text-align: left;
}
.legal-card h1{
  margin-top: 0;
}
.legal-card h2{
  margin-top: 1.5rem;
}
.legal-card ul{
  padding-left: 1.25rem;
}
.footer-inner{
  display:flex;
  gap:2rem;
  justify-content:space-between;
  align-items:flex-start;
  max-width:1100px;
  margin:0 auto;
  padding: 0.5rem 1rem;
}
.footer-links{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-links a{
  color:white;
  text-decoration:none;
  opacity:0.92;
}
.footer-links a:hover{
  opacity:1;
  text-decoration:underline;
}
.footer-brand p{
  margin: .35rem 0;
  max-width: 520px;
}
.footer-small{
  opacity:0.85;
  font-size: 0.9rem;
}
@media (max-width: 768px){
  .footer-inner{flex-direction:column;}
  .footer-links{justify-content:flex-start;}
}


/* --- Game: responsive + mobile controls --- */
.game-wrap {
  position: relative;
}

#gameCanvas {
  max-width: 100%;
  height: auto;
  touch-action: none; /* prevent page scroll while playing */
}

.game-toast{
  margin-top: 12px;
  font-size: 14px;
  color: #0f172a;
  background: #eef2ff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}

.game-toast.show{ display:block; }

.mobile-controls{
  display: none;
  position: relative;
  max-width: 820px;
  margin: 14px auto 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 35px rgba(15,23,42,.12);
}

.mobile-controls .mc-row{
  display:flex;
  justify-content:center;
  gap: 12px;
  margin: 8px 0;
}

.mobile-controls .mc-btn{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: #ffffff;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
}

.mobile-controls .mc-btn:active{
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
}

.mobile-controls .mc-shoot{
  width: 84px;
  background: #16a34a;
  border-color: rgba(22,163,74,.35);
  color: white;
  font-size: 26px;
}

.mobile-controls .mc-pause{
  width: 84px;
}

.mobile-controls .mc-hint{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15,23,42,.75);
  text-align:center;
}

/* Only show on-screen controls on touch/mobile */
@media (max-width: 900px) {
  .mobile-controls{ display:block; }
}

/* --- V13: iOS-tappable mobile controls --- */
.mobile-controls{ z-index:9999 !important; pointer-events:auto !important; }
.mobile-controls *{ pointer-events:auto !important; }
.mc-btn{ touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select:none; }
#gameCanvas{ position:relative; z-index:1; touch-action:none; }

.game-toast{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  padding:10px 14px; border-radius:999px;
  background:rgba(15,23,42,.88); color:#fff; font-weight:800; font-size:14px;
  opacity:0; pointer-events:none; transition: opacity .2s ease, transform .2s ease;
  z-index:30;
}
.game-toast.show{ opacity:1; transform:translateX(-50%) translateY(2px); }

/* --- V13: Newsletters --- */
.hero-slim{ padding:42px 0; background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.page{ background:#f6f8fb; min-height:60vh; }
.container{ width:min(1050px, 92%); margin:0 auto; }
.card{ background:#fff; border-radius:18px; padding:18px; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.sub{ color:#334155; max-width:820px; }
.muted{ color:#64748b; }
.input{ padding:12px 14px; border-radius:12px; border:1px solid #e2e8f0; background:#fff; }
.year-grid{ display:flex; gap:10px; flex-wrap:wrap; }
.year-pill{ display:inline-flex; padding:10px 14px; border-radius:999px; border:1px solid #e2e8f0; text-decoration:none; color:#0f172a; background:#f8fafc; font-weight:800; }
.year-pill:hover{ background:#eef2ff; }
.post-list{ display:flex; flex-direction:column; gap:10px; }
.post-row{ display:flex; gap:14px; padding:12px; border-radius:14px; border:1px solid #eef2f7; text-decoration:none; color:inherit; }
.post-row:hover{ background:#f8fafc; }
.post-date{ min-width:120px; font-weight:900; color:#0f172a; }
.post-title{ font-weight:900; }
.post-excerpt{ color:#475569; margin-top:4px; }
.callout{ margin-top:18px; padding:16px; border-radius:16px; border:1px solid #e2e8f0; background: linear-gradient(180deg, rgba(22,163,74,.08), rgba(11,94,215,.06)); }
.pager{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 14px; border-radius:14px; border:1px solid #e2e8f0; background:#fff; cursor:pointer; font-weight:900; }
.btn.primary{ background:#16a34a; color:#fff; border-color:transparent; text-decoration:none; }

/* --- V17 Conversion & Mobile UX --- */
.logo-link{ display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }

.sticky-cta{
  position:fixed; left:0; right:0; bottom:0;
  display:none; gap:10px; padding:10px 12px;
  background: rgba(2,6,23,.86); backdrop-filter: blur(10px);
  z-index: 9999;
}
.sticky-cta__btn{
  flex:1; text-align:center; font-weight:900;
  padding:12px 12px; border-radius:14px;
  background:#16a34a; color:#fff; text-decoration:none;
  touch-action: manipulation;
}
.sticky-cta__btn.secondary{ background:#0ea5e9; }

@media (max-width: 820px){
  .sticky-cta{ display:flex; }
  body{ padding-bottom:72px; }
}

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.field{ text-align:left; margin-top:14px; }
.field label{ display:block; font-weight:800; margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 12px; border-radius:12px; border:1px solid #cbd5e1; background:#fff;
}
.checks{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.checks label{ display:flex; align-items:center; gap:8px; background:#f8fafc; border:1px solid #e2e8f0; padding:10px 12px; border-radius:999px; font-weight:800; }
.form-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px; }
.cta-link{ font-weight:900; text-decoration:none; color:#0ea5e9; }

.hidden{ display:none; }

@media (max-width: 768px){
  .form-grid{ grid-template-columns: 1fr; }
}

/* How it works */
.how-it-works{ padding:2rem; text-align:center; background: linear-gradient(180deg, #ffffff, #f1f5f9); }
.how-grid{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-top:14px; }
.how-card{ width:320px; background:#fff; border-radius:18px; padding:16px; box-shadow:0 12px 30px rgba(15,23,42,.08); text-align:left; }
.how-num{ width:34px; height:34px; border-radius:999px; background:#0ea5e9; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:900; }
.trust-row{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:16px 0; }
.trust-pill{ background:#0f172a; color:#fff; padding:10px 12px; border-radius:999px; font-weight:900; }

/* Game UI alignment */
.game-hud .hud-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
#scoreDisplay{ font-weight:900; }
button.secondary{ background:#ffffff; color:#0f172a; border:1px solid #e2e8f0; padding:12px 14px; border-radius:14px; font-weight:900; cursor:pointer; }


/* Contact form: professional review selection grid */
.review-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:10px;
}
.review-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.55);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  cursor:pointer;
  user-select:none;
  min-height:56px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.review-card:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 14px 34px rgba(15,23,42,.09);
}
.review-card input{
  width:18px;
  height:18px;
  accent-color: #22c55e;
  flex: 0 0 auto;
}
.review-card span{
  font-weight:800;
  color:#0f172a;
  line-height:1.15;
}
.review-card input:checked + span{
  color:#0b3b1d;
}
.review-card:has(input:checked){
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.45);
}
@media (max-width: 900px){
  .review-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .review-grid{ grid-template-columns: 1fr; }
}
