/* GamingAutoM8 storefront stylesheet — navy/cyan/coral palette, self-hosted fonts. */
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #080f24;
  --navy2: #101b36;
  --panel: #111d39;
  --line: #2a3859;
  --cyan: #3ee9ee;
  --coral: #ff655e;
  --ink: #edf7ff;
  --muted: #aabbd4;
  --radius: 12px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 16px/1.55 "DM Sans", "Segoe UI", Arial, sans-serif;
}
button, input { font: inherit; }
button, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 15, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #263555;
}
.nav { height: 78px; display: flex; align-items: center; gap: 34px; }
.brand {
  font: 700 25px "Space Grotesk", Arial, sans-serif;
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.brand .b-cyan { color: var(--cyan); }
.brand .b-coral { color: var(--coral); }
.mark {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eafaff;
  color: #07132d;
  margin-right: 8px;
  font-size: 17px;
  vertical-align: 2px;
}
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { font-size: 14px; color: #b7c8df; }
.links a.active, .links a:hover { color: #fff; }
.nav .smallbtn { margin-left: 4px; }
.nav-toggle, .mobile-account-link { display: none; }
.nav-toggle:focus-visible, .links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 21px;
  font-weight: 700;
  background: var(--cyan);
  color: #08152b;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: #91f7f8; }
.btn.alt {
  background: #1c2b4a;
  color: #eef7ff;
  border: 1px solid #425475;
}
.btn.coral { background: var(--coral); color: #11172b; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.smallbtn { padding: 9px 15px; font-size: 14px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 35%, #1b5576 0, #10254d 27%, transparent 55%),
    linear-gradient(135deg, #101b38, #081024 70%);
}
.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 58px; line-height: 1.02; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p { color: var(--muted); font-size: 18px; max-width: 32rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual { position: relative; text-align: center; }
.hero-visual img { max-width: 100%; width: 380px; height: auto; }
.halo {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 233, 238, 0.16), transparent 65%);
}
.floating {
  position: absolute;
  right: 4%;
  bottom: 8%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}
.floating span { color: var(--cyan); font-weight: 700; }

/* Value strip */
.strip { background: var(--navy2); border-block: 1px solid var(--line); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 26px;
  text-align: center;
  color: var(--ink);
}
.strip-grid i { display: block; font-style: normal; color: var(--cyan); font-size: 20px; margin-bottom: 6px; }

/* Sections */
section { padding: 72px 0; }
section h2 { font-size: 34px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 34px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .card-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.textlink { color: var(--cyan); font-weight: 700; font-size: 14px; }
.textlink:hover { text-decoration: underline; }

.product-card .game-glyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), #1b8fa8);
  color: #07132d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 22px "Space Grotesk", Arial, sans-serif;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(62, 233, 238, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(62, 233, 238, 0.35);
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  padding: 18px 0 18px 64px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1c2b4a;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 16px "Space Grotesk", Arial, sans-serif;
  color: var(--cyan);
}
.steps li:last-child { border-bottom: none; }
.steps strong { display: block; font-size: 17px; }
.steps p { margin: 4px 0 0; color: var(--muted); }

/* Callout */
.callout {
  background: linear-gradient(135deg, #13233f, #0e1a33);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px;
  text-align: center;
}
.callout h2 { margin-top: 0; }
.callout p { color: var(--muted); max-width: 40rem; margin: 0 auto 22px; }

/* Risk */
.risk-banner {
  border: 1px solid var(--coral);
  background: rgba(255, 101, 94, 0.07);
  border-radius: 16px;
  padding: 28px;
}
.risk-banner h2, .risk-banner h3 { color: var(--coral); margin-top: 0; }
.risk-banner p, .risk-banner li { color: var(--ink); }
.risk-banner a { color: var(--cyan); font-weight: 700; }

/* Requirements */
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); }
.req-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
}
.req-list strong { color: var(--ink); }

/* Filter chips */
.chips { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}
.chip.active { background: var(--cyan); color: #08152b; border-color: var(--cyan); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state img { width: 120px; height: auto; opacity: 0.9; }

/* Product page layout */
.product-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 40px; align-items: start; }
.demo-panel {
  aspect-ratio: 16 / 9;
  background: var(--navy2);
  border: 1px dashed var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}
.buy-box {
  position: sticky;
  top: 100px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.buy-box h3 { margin-top: 0; }

/* Plans */
.plans-status { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  background: var(--navy2);
}
.plan.highlight { border-color: var(--cyan); }
.plan .plan-name { font: 700 17px "Space Grotesk", Arial, sans-serif; }
.plan .plan-badge {
  font-size: 11px;
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.plan .plan-price { color: var(--cyan); font-weight: 700; margin: 4px 0; }
.plan .plan-seats { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 14px; }
.plan li { color: var(--muted); font-size: 14px; padding: 3px 0 3px 20px; position: relative; }
.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
}
.plan input[type="email"], .login-card input[type="email"] {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 13px;
  margin-bottom: 10px;
  font-size: 14px;
}
.plan .btn { width: 100%; padding: 11px; font-size: 14px; }
.plan .plan-error { color: var(--coral); font-size: 13px; min-height: 1.2em; margin-top: 6px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 16px; margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--muted); }
details.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq-item summary::before { content: "+ "; color: var(--cyan); font-weight: 700; }
details.faq-item[open] summary::before { content: "– "; }

/* License / status */
.license-box {
  font-family: "Consolas", monospace;
  font-size: 17px;
  background: var(--navy);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 16px;
  word-break: break-all;
  color: var(--cyan);
}
.badge-coral { background: rgba(255, 101, 94, 0.12); color: var(--coral); border-color: rgba(255, 101, 94, 0.4); }
.portal-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.portal-head p { margin: 0 auto 0 0; color: var(--muted); }
.status-ok { color: var(--cyan); }
.status-warn { color: #ffd166; }
.status-err { color: var(--coral); }
.hidden { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 20px; }
.footer p { color: var(--muted); font-size: 13px; max-width: 30rem; }
.footer-links a { display: inline-block; margin: 0 18px 6px 0; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 40px; }
  .hero h1 { font-size: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .strip-grid { grid-template-columns: 1fr; }
  .nav { height: auto; min-height: 78px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; }
  .nav .account-link { display: none; }
  .nav .mobile-account-link { display: flex; }
  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .js .nav-toggle { display: inline-flex; }
  .js .nav .links { display: none; }
  .js .nav.menu-open .links { display: flex; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .hero h1 { font-size: 34px; }
  section { padding: 56px 0; }
  .card { padding: 20px; }
}
