/* Arrow Buddy - marketing site
   Palette lifted straight from the game's own dark theme (lib/theme/app_skin.dart)
   so the site and the app feel like the same product. */

:root {
  --bg: #0c1017;
  --surface: #1b2230;
  --surface-muted: #232c3c;
  --border: #2c3646;
  --text: #f1f4fa;
  --text-dim: #8c99b2;
  --accent: #5aa0ff;
  --accent-strong: #7fb4ff;
  --blue: #5b9dff;
  --teal: #2ee6c6;
  --pink: #ff6b8e;
  --orange: #ff9a4d;
  --violet: #a98bff;
  --max-width: 1100px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Background glow: a soft trio of blurred colour fields, echoing the game's
   own arrow palette, sitting fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% -10%, rgba(91, 157, 255, 0.16), transparent 60%),
    radial-gradient(500px circle at 90% 10%, rgba(169, 139, 255, 0.14), transparent 60%),
    radial-gradient(700px circle at 50% 120%, rgba(46, 230, 198, 0.08), transparent 60%);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 16, 23, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a:not(.btn) {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

/* ------------------------------------------------------------------ btn */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #06101f;
}

.btn-primary:not(.is-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(90, 160, 255, 0.35);
}

.btn-primary.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
  filter: grayscale(0.15);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 84px 0 60px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 18px 0 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-copy .accent-word {
  background: linear-gradient(120deg, var(--blue), var(--violet) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.lede {
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art .phone {
  width: 78%;
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  transform: rotate(-2deg);
}

.hero-art .phone.behind {
  position: absolute;
  right: -2%;
  top: 8%;
  width: 52%;
  transform: rotate(9deg);
  opacity: 0.85;
  filter: saturate(0.9) brightness(0.92);
  z-index: -1;
}

/* -------------------------------------------------------------- sections */

section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 10px 0 12px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- showcase */

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.showcase-strip img {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------------ rules */

.rules-list {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.rules-list li {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  list-style: none;
  color: var(--text-dim);
}

.rules-list li strong {
  color: var(--text);
}

.rules-list .num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- cta */

.cta-band {
  background: linear-gradient(135deg, rgba(91, 157, 255, 0.14), rgba(169, 139, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* -------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer .brand {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* -------------------------------------------------------------- legal */

.legal {
  padding: 56px 0 90px;
}

.legal .wrap {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  color: var(--accent-strong);
}

.legal p,
.legal li {
  color: #d7dded;
  font-size: 1rem;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  word-break: break-word;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------ misc */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 154, 77, 0.18);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy p.lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    margin-top: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-strip {
    grid-template-columns: 1fr 1fr;
  }

  .site-header nav a:not(.btn) {
    display: none;
  }
}

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

  .showcase-strip {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
