/* ===== Game Companion marketing site =====
   Design tokens intentionally mirror the actual desktop app's palette
   (violet/cyan on near-black) so the site feels continuous with the
   product people are about to download - not a generic SaaS template
   wrapped around it. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0B0B12;
  --surface: #15151F;
  --surface-2: #101018;
  --border: #28283A;
  --violet: #7C3AED;
  --violet-hover: #6D28D9;
  --cyan: #22D3EE;
  --text-main: #EDEDF5;
  --text-dim: #8C8CA0;
  --success: #22C55E;
  --danger: #F87171;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text-main); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); }
.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(124,58,237,0.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(34,211,238,0.10), transparent 60%),
    linear-gradient(180deg, #0B0B12 0%, #0B0B12 70%, #0d0d16 100%);
}
.hero-bg::after {
  /* distant mountain silhouette - grounds the "open-world at dusk" feel
     without using any copyrighted game imagery */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 220px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,11,18,0.6) 100%);
  clip-path: polygon(0% 100%, 0% 55%, 8% 40%, 18% 58%, 30% 22%, 42% 50%, 55% 15%,
    68% 48%, 78% 28%, 90% 52%, 100% 35%, 100% 100%);
  background-color: rgba(21,21,31,0.9);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--cyan);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.eyebrow .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { font-size: 46px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--violet); }
.hero p.lede {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--text-dim); }
.hero-note kbd {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
}

/* ---- signature panel recreation ---- */
.panel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.demo-panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(124,58,237,0.35), 0 10px 30px rgba(0,0,0,0.5);
  transform: rotate(-2deg);
  animation: float 5s ease-in-out infinite;
  overflow: hidden;
}
@keyframes float {
  0%, 100% { transform: rotate(-2deg) translateY(0px); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}
.demo-stripe { height: 3px; background: var(--violet); }
.demo-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 14px;
}
.demo-tier {
  font-size: 10px; font-weight: 700; color: var(--cyan);
  background: rgba(34,211,238,0.1);
  padding: 2px 7px; border-radius: 5px;
}
.demo-game { font-size: 11px; color: var(--violet); padding: 0 16px; margin-top: 2px; }
.demo-tabs { display: flex; gap: 6px; padding: 10px 16px 0; }
.demo-tab {
  font-size: 11px; padding: 5px 12px; border-radius: 6px; color: var(--text-dim);
}
.demo-tab.active { background: var(--violet); color: #fff; }
.demo-body { padding: 14px 16px 18px; }
.demo-mode { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.demo-mode b { color: var(--text-main); font-weight: 500; }
.demo-q {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-main);
  min-height: 64px;
}
.demo-cursor {
  display: inline-block; width: 6px; height: 13px; background: var(--cyan);
  margin-left: 2px; animation: blink 0.9s step-end infinite; vertical-align: text-bottom;
}
.demo-hotkey-badge {
  position: absolute;
  bottom: -18px; right: 18px;
  background: var(--bg);
  border: 1px solid var(--violet);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

/* ---- section shells ---- */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--violet); }
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ---- how it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--surface);
}
.step .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 16px;
  display: block;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---- features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-cell {
  background: var(--surface);
  padding: 26px 24px;
}
.feature-cell .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: block;
}
.feature-cell h3 { font-size: 16px; margin-bottom: 8px; }
.feature-cell p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

/* ---- pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.tier-free { padding-bottom: 28px; }
.price-card.tier-pro {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet), 0 20px 50px -20px rgba(124,58,237,0.5);
  padding-top: 40px; padding-bottom: 40px;
  position: relative;
}
.price-card.tier-squad { padding-top: 48px; padding-bottom: 48px; }
.price-badge {
  position: absolute; top: -13px; left: 26px;
  background: var(--violet); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
}
.price-name { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-family: 'IBM Plex Mono', monospace; }
.price-amount { font-size: 38px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 4px; }
.price-amount span { font-size: 14px; color: var(--text-dim); font-weight: 500; font-family: 'Inter', sans-serif; }
.price-desc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-features li {
  font-size: 13.5px; padding: 8px 0; border-top: 1px solid var(--border);
  display: flex; gap: 10px; color: var(--text-main);
}
.price-features li:first-child { border-top: none; }
.price-features li .check { color: var(--success); flex-shrink: 0; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 13px;
}
footer .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer .links { display: flex; gap: 22px; }
footer a:hover { color: var(--text-main); }

/* ---- auth pages (signup/login/account) ---- */
.auth-shell {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.field input:focus { outline: none; border-color: var(--violet); }
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: -6px 0 16px;
  min-height: 1em;
}
.auth-switch { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-dim); }
.auth-switch a { color: var(--cyan); font-weight: 500; }

/* ---- account page ---- */
.account-shell { padding: 56px 0 100px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.account-card h3 { font-size: 15px; margin-bottom: 14px; }
.usage-bar-track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.usage-bar-fill { height: 100%; background: var(--violet); }
.plan-pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 600;
  color: var(--cyan);
  background: rgba(34,211,238,0.1);
  padding: 4px 10px; border-radius: 6px;
  margin-bottom: 4px;
}
.plan-pill-large {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--violet);
  background: var(--surface-2);
  border: 2px solid var(--violet);
  padding: 10px 20px; border-radius: 10px;
}

/* ---- simple status pages (billing success/canceled) ---- */
.status-shell {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px;
}
.status-card { max-width: 440px; }
.status-icon { font-size: 40px; margin-bottom: 18px; }
.status-card h1 { font-size: 26px; margin-bottom: 12px; }
.status-card p { color: var(--text-dim); margin-bottom: 28px; }

/* ---- get-started page ---- */
.gs-shell { padding: 64px 0 100px; }
.gs-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.gs-step h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.gs-step h3 .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--cyan);
  border: 1px solid var(--border); border-radius: 999px; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.gs-step p { color: var(--text-dim); font-size: 14px; margin: 0 0 4px; }
.gs-step code, .gs-step pre {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12.5px;
  color: var(--cyan);
}
.gs-step pre { display: block; padding: 12px 14px; overflow-x: auto; margin: 10px 0 0; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .steps, .features-grid, .pricing-grid, .account-grid { grid-template-columns: 1fr; }
  .price-card.tier-pro, .price-card.tier-squad { padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { font-size: 34px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .demo-panel, .eyebrow .blink, .demo-cursor { animation: none; }
}

/* ---- focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
