/* ===== Theme ===== */
:root {
  --bg: #0a0b10;
  --bg-alt: #0f1118;
  --surface: #151824;
  --surface-2: #1c2030;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --muted: #9aa1b5;
  --accent: #4f9be6;
  --accent-light: #9fcbf5;
  --indigo: #7c83ff;
  --accent-grad: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 45%, var(--indigo) 100%);
  --danger: #ff6b6b;
  --success: #4ade80;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container--narrow { width: min(780px, 92%); }
.muted { color: var(--muted); }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #061424;
  box-shadow: 0 8px 30px rgba(79, 155, 230, 0.25);
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(79, 155, 230, 0.4); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--outline { background: transparent; border-color: rgba(79, 155, 230, 0.5); color: var(--accent-light); }
.btn--outline:hover { background: rgba(79, 155, 230, 0.1); }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.logo__img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: contain; }
.nav__menu { display: flex; align-items: center; gap: 1.8rem; }
.nav__menu a { white-space: nowrap; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 7rem 0 6rem; text-align: center; }
.hero__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 900px;
  background:
    radial-gradient(closest-side at 35% 50%, rgba(124, 131, 255, 0.22), transparent),
    radial-gradient(closest-side at 65% 45%, rgba(79, 155, 230, 0.16), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 1.2rem auto 2.2rem; }
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.badges {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.badges span { color: var(--accent); margin-right: 0.3rem; }

/* ===== Sections ===== */
.section { padding: 6.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(79, 155, 230, 0.35); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 155, 230, 0.15), rgba(124, 131, 255, 0.15));
  margin-bottom: 1.2rem;
}

/* ===== Pricing toggle ===== */
.toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 300px;
  margin: 0 auto 3rem;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.toggle__btn {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s;
}
.toggle__btn.is-active { color: #061424; }
.toggle__pill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transition: transform 0.3s ease;
}
.toggle[data-active="home"] .toggle__pill { transform: translateX(100%); }

/* ===== Pricing cards ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  animation: fadeUp 0.45s ease both;
}
.plan--featured {
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--accent-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-grad);
  color: #10121a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-size: 1.3rem; margin-bottom: 0.3rem; }
.plan__desc { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: 0.3rem; margin: 0.6rem 0 0.6rem; }
.plan__hours { display: inline-block; align-self: flex-start; margin: 0 0 1.4rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--accent-light); background: rgba(79, 155, 230, 0.12); border: 1px solid rgba(79, 155, 230, 0.3); }
.plan__price strong { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; }
.plan__price span { color: var(--muted); }
.plan__features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.plan__features li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; font-size: 0.95rem; }
.plan__features li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; }
}
.plan--featured { animation-name: fadeUpFeatured; }
@keyframes fadeUpFeatured {
  from { opacity: 0; transform: translateY(14px) scale(1.03); }
  to { opacity: 1; transform: scale(1.03); }
}

.plan__save { margin: -0.8rem 0 1.4rem; font-size: 0.85rem; color: var(--success); }

/* ===== Pay As You Go (non-subscription) ===== */
.payg {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 3.5rem auto 0;
  padding: 2rem 2.4rem;
  background: var(--surface);
  border: 1px dashed rgba(79, 155, 230, 0.45);
  border-radius: var(--radius);
}
.payg__info { flex: 1; }
.payg__info h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.payg__info p:last-child { margin: 0; }
.payg__tag {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(79, 155, 230, 0.12);
}
.payg__cta { flex: 0 0 220px; text-align: center; }
.payg__cta .plan__price { justify-content: center; margin: 0 0 1rem; }
.custom-note { text-align: center; color: var(--muted); margin: 2rem 0 0; }

@media (max-width: 760px) {
  .payg { flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.8rem; text-align: center; }
  .payg__cta { flex-basis: auto; }
}

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: none; }
.step { text-align: center; padding: 1rem; }
.step p { color: var(--muted); }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-light);
  border: 1.5px solid rgba(79, 155, 230, 0.45);
  background: rgba(79, 155, 230, 0.08);
  margin-bottom: 1.2rem;
}

/* ===== Why choose us ===== */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.reason { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: 1.8rem; }
.reason p { color: var(--muted); margin: 0; }

/* ===== FAQ ===== */
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
}
.faq__q span { color: var(--accent); font-size: 1.5rem; transition: transform 0.3s; }
.faq__q[aria-expanded="true"] span { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq__a > p { overflow: hidden; margin: 0; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: 1.4rem; }

/* ===== CTA band ===== */
.cta-band {
  padding: 6rem 0;
  text-align: center;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(124, 131, 255, 0.18), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
}
.cta-band__inner { max-width: 760px; }
.cta-band p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 4rem 0 0; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.footer p { margin: 0 0 0.4rem; color: var(--muted); }
.footer a:not(.logo) { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .logo { margin-bottom: 1rem; }
.footer__bottom { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0; font-size: 0.85rem; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 10, 0.75); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.4rem;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { border-color: var(--accent); }

.summary {
  background: var(--surface-2);
  border: 1px solid rgba(79, 155, 230, 0.3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.summary label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.4rem; }
.summary__price { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.92rem; }
.summary__price strong { color: var(--text); font-size: 1.1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.35rem; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}
select { cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="date"] { color-scheme: dark; }
.field.has-error input { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.8rem; min-height: 1.1em; margin-top: 0.25rem; }
.fineprint { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 0.9rem 0 0; }

.confirm { text-align: center; padding: 1rem 0; }
.confirm__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 50%;
  color: #0a0b10;
  background: var(--accent-grad);
}
.confirm p { color: var(--muted); margin-bottom: 1.8rem; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services, .reasons { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 2rem; }
  .plan--featured { transform: none; animation-name: fadeUp; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 4%;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .nav__menu .btn { margin-top: 1rem; }
  .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); }
}

@media (max-width: 760px) {
  .hero { padding: 4.5rem 0 4rem; }
  .services, .reasons { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal__dialog { padding: 2rem 1.4rem; }
}

/* ===== Game page ===== */
.nav__menu a.nav__game { color: var(--accent-light); }
.nav__menu a.is-current { color: var(--text); }
.game-section { padding: 3.5rem 0 5rem; }
.game-section .section__head { margin-bottom: 2rem; }
.game-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.3;
  color: var(--accent-light);
  text-shadow: 4px 4px 0 #0b0e16, 0 0 30px rgba(79, 155, 230, 0.45);
}
.game-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border: 3px solid rgba(79, 155, 230, 0.45);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 60px rgba(79, 155, 230, 0.15);
}
.game-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 192;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  text-align: center;
  background: rgba(6, 8, 16, 0.8);
  font-family: "Press Start 2P", monospace;
}
.game-overlay[hidden] { display: none; }
.game-panel { max-width: 600px; }
.game-panel__logo { width: clamp(36px, 7vw, 64px); height: auto; border-radius: 12px; background: #fff; margin-bottom: 1rem; }
.game-overlay h2 {
  font-size: clamp(0.95rem, 3.4vw, 2rem);
  line-height: 1.4;
  color: var(--accent-light);
  text-shadow: 3px 3px 0 #0b0e16, 0 0 20px rgba(79, 155, 230, 0.6);
  margin-bottom: 1rem;
}
.game-overlay p { font-size: clamp(0.5rem, 1.4vw, 0.8rem); line-height: 1.9; margin: 0 auto 1rem; }
.game-overlay .game-score { color: #ffd23f; }
.game-overlay .btn { font-family: inherit; font-size: clamp(0.5rem, 1.3vw, 0.75rem); border-radius: 6px; padding: 0.8em 1.2em; }
.game-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.game-hint { color: var(--muted); }
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 960px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.keys { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 0; }
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0.15em 0.45em;
  margin-right: 0.2em;
  font-family: inherit;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
}
.game-buttons { display: flex; gap: 0.6rem; }

.enemy-guide { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 960px; margin: 2rem auto 0; }
.enemy-guide__item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; font-size: 0.88rem; }
.enemy-guide__item strong { display: block; color: var(--accent-light); margin-bottom: 0.2rem; }
.enemy-guide__item span { color: var(--muted); }

.touch-controls { display: none; justify-content: space-between; max-width: 960px; margin: 1rem auto 0; user-select: none; -webkit-user-select: none; }
.touch-group { display: flex; gap: 0.8rem; }
.touch-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(79, 155, 230, 0.5);
  background: var(--surface-2);
  color: var(--text);
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.touch-btn--a { background: rgba(79, 155, 230, 0.25); }
.touch-btn--b { background: rgba(255, 210, 63, 0.15); border-color: rgba(255, 210, 63, 0.5); font-size: 0.65rem; }
.touch-btn.is-down { transform: scale(0.94); background: rgba(79, 155, 230, 0.5); }
@media (pointer: coarse) {
  .touch-controls { display: flex; }
  .keys { display: none; }
}
@media (max-width: 960px) {
  .enemy-guide { grid-template-columns: repeat(2, 1fr); }
}
