/* Foxhole Darts — public homepage preview (Bright Premium Product concept) */

:root {
  --ink: #141a2e;
  --ink-soft: #4a5170;
  --ink-faint: #8890a8;
  --paper: #ffffff;
  --paper-alt: #f6f7fa;
  --line: #e4e6ee;
  --line-strong: #d3d6e2;
  --accent: #2554e8;
  --accent-dark: #1638ad;
  --accent-tint: #eaf0ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(20, 26, 46, 0.04), 0 12px 28px -14px rgba(20, 26, 46, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(20, 26, 46, 0.05), 0 20px 40px -16px rgba(20, 26, 46, 0.22);
  --maxw: 1320px;
  font-size: 16px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

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

.section {
  padding: 108px 0;
}
.section--alt { background: var(--paper-alt); }
.section--tight { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 84, 232, 0.55);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 100px;
}
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy h1 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero-copy .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.product-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.product-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.product-frame__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.product-frame__img { width: 100%; display: block; }
.product-frame__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Games (editorial showcase) ---------- */
.games-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.games-head .section-head { margin-bottom: 0; }
.games-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding-bottom: 4px;
}
.games-link:hover { color: var(--accent-dark); }

.games-teaser-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.game-tile {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 26, 46, 0.04);
  aspect-ratio: 2 / 3;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.game-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(20, 26, 46, 0.22); }
.game-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Bots (compact roster row) ---------- */
.bots-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.bots-head .section-head { margin-bottom: 0; }
.bots-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding-bottom: 4px;
}
.bots-link:hover { color: var(--accent-dark); }

.bots-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 180px));
  gap: 18px;
  justify-content: center;
}
.bot-mini__portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bot-mini:hover .bot-mini__portrait { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.bot-mini__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  display: block;
}
.bot-mini__meta { margin-top: 10px; text-align: center; }
.bot-mini__name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.bot-mini__tier {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Two column (customize / player / hosts) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split__media { order: -1; }

.split__copy .eyebrow { margin-bottom: 14px; }
.split__copy h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.split__copy p { margin-top: 18px; font-size: 16.5px; color: var(--ink-soft); }

.feature-list {
  margin-top: 26px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}
.feature-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.wall-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

/* ---------- Badges ---------- */
.achievement-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.achievement-shot img { width: 100%; display: block; }
.achievement-shot__cap {
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* ---------- Reusable 16:10 screenshot / placeholder frame ---------- */
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot--sm { border-radius: var(--radius-md); }

/* ---------- Customize: asymmetric layout ---------- */
.customize-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 28px;
  margin-top: 48px;
}
.customize-layout__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.customize-layout__side .wall-grid { flex: 0 0 auto; }

/* ---------- Pricing ---------- */
.pricing-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 40px 36px;
}
.pricing-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pricing-card__badge {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.pricing-toggle {
  display: inline-flex;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.pricing-toggle__opt {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.pricing-toggle__opt.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-card); }
.pricing-toggle__save {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 7px;
  border-radius: 999px;
}

.pricing-card__price {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pricing-card__amount {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pricing-card__period { font-size: 15px; color: var(--ink-faint); font-weight: 500; }
.pricing-card__note { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.pricing-card__cta { margin-top: 24px; width: 100%; }

.pricing-card__list {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pricing-side { display: grid; gap: 28px; align-content: start; }
.pricing-side__item h3 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
}
.pricing-side__item p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA / footer ---------- */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); }
.cta-band p { color: #b9beda; margin-top: 8px; font-size: 15.5px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.cta-band .btn--ghost:hover { border-color: #fff; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--paper);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .wrap { padding: 0 28px; }
  .bots-row { grid-template-columns: repeat(3, minmax(0, 180px)); }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy .lede { max-width: none; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split__media { order: 0; }
  .section { padding: 76px 0; }
  .customize-layout { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .bots-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .games-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .games-teaser-row { grid-template-columns: repeat(4, 1fr); }
  .pricing-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .bots-row { grid-template-columns: repeat(2, minmax(0, 180px)); }
  .wall-grid { grid-template-columns: 1fr; }
  .header-actions .btn--ghost { display: none; }
  .cta-band { padding: 36px 28px; }
  .games-teaser-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-card { padding: 32px 24px 28px; }
  .pricing-card__amount { font-size: 38px; }
}

/* mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .header-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

/* ---------- Auth modal (Host Sign In / Player Sign In) ---------- */
.authm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 26, 46, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.authm-overlay.show { opacity: 1; }
.authm-overlay[hidden] { display: none; }

.authm-dialog {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 36px 32px 32px;
  position: relative;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}
.authm-overlay.show .authm-dialog { transform: translateY(0) scale(1); }

.authm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.authm-close:hover { border-color: var(--ink-faint); color: var(--ink); }
.authm-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.authm-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  padding-right: 40px;
}
.authm-title { font-size: 22px; font-weight: 700; padding-right: 40px; }
.authm-sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

.authm-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 8px;
}
.authm-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
}
.authm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.authm-btn {
  margin-top: 20px;
  width: 100%;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(37, 84, 232, 0.55);
  transition: background 0.15s ease, transform 0.15s ease;
}
.authm-btn:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.authm-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.authm-btn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

.authm-err {
  margin-top: 12px;
  font-size: 13.5px;
  color: #c0392b;
  display: none;
}
.authm-err.show { display: block; }

.authm-help { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-faint); }
.authm-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.authm-otp-boxes { display: flex; gap: 8px; margin-top: 22px; justify-content: space-between; }
.authm-otp-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
}
.authm-otp-box.filled { border-color: var(--accent); background: var(--accent-tint); }
.authm-otp-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.authm-links { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.authm-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
}
.authm-link-btn:disabled { color: var(--ink-faint); cursor: default; }

.authm-step[hidden] { display: none; }

.authm-signup-actions { margin-top: 24px; display: flex; gap: 12px; }
.authm-signup-actions .btn { flex: 1; }

body.authm-open { overflow: hidden; }

@media (max-width: 480px) {
  .authm-dialog { padding: 30px 20px 24px; max-width: none; }
  .authm-otp-boxes { gap: 6px; }
  .authm-otp-box { font-size: 17px; }
}
