/* ============================================================
   Buy-In Boss — Promotional Website
   Look & feel: dark charcoal felt, gold + fiery-red metallic
   accents inspired by the app logo, red neon glow, poker suits.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #161412;
  --bg-2:          #1f1c19;
  --panel:         #211d1a;
  --panel-2:       #2a2521;
  --ink:           #f4ece0;
  --ink-dim:       #b6ab9c;
  --ink-faint:     #7d7468;
  --gold:          #f6c544;
  --gold-deep:     #e0a020;
  --red:           #e23b22;
  --red-bright:    #ff5a32;
  --red-glow:      rgba(226, 59, 34, 0.55);
  --line:          rgba(255, 255, 255, 0.08);
  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1140px;
  --shadow:        0 18px 50px rgba(0, 0, 0, 0.55);
  --font:          "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 760px at 50% -8%, rgba(226, 59, 34, 0.14), transparent 62%),
    radial-gradient(1000px 640px at 100% 4%, rgba(246, 197, 68, 0.08), transparent 58%),
    radial-gradient(900px 700px at 0% 100%, rgba(226, 59, 34, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.24), rgba(14, 12, 11, 0.30)),
    url("../img/bg-suits.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: cover, cover, cover, cover, 560px 560px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--red-bright); }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-dim); }

.text-gradient {
  background: linear-gradient(95deg, var(--gold) 0%, var(--gold-deep) 38%, var(--red-bright) 70%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-dim); max-width: 620px; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #2a1402;
  background: linear-gradient(180deg, #ffd766 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 10px 26px rgba(224, 160, 32, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { color: #2a1402; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224, 160, 32, 0.45); }

.btn-fire {
  color: #fff;
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 60%, #b62a16 100%);
  box-shadow: 0 10px 26px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-fire:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px var(--red-glow); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); background: rgba(246, 197, 68, 0.08); }

/* App Store badge button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.appstore-btn:hover { color: #fff; transform: translateY(-2px); border-color: var(--gold); }
.appstore-btn svg { width: 26px; height: 26px; flex: none; }
.appstore-btn .as-small { font-size: 0.68rem; color: #cfcfcf; line-height: 1; }
.appstore-btn .as-big { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 16, 14, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 52px;
  width: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand .brand-fallback { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-dim); font-weight: 600; font-size: 0.96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-logo { height: 84px; width: auto; margin-bottom: 26px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
.hero h1 { margin-bottom: 18px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .badges { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero .badge-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-faint); }
.hero .badge-item strong { color: var(--ink); font-weight: 700; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-mascot {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Phone / screenshot showcase ---------- */
.showcase { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25)); }
.phone-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.phone {
  position: relative;
  width: 248px;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #3a3a3a, #0f0f0f);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}
.phone.lift { margin-bottom: 32px; }
.phone:hover { transform: translateY(-8px); }
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(226,59,34,0.18), transparent 60%),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen img { width: 78%; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5)); }
.phone-caption {
  position: absolute;
  bottom: -30px; left: 0; right: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 197, 68, 0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(246,197,68,0.18), rgba(226,59,34,0.18));
  border: 1px solid var(--line);
}
.feature-card h3 { color: var(--ink); margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.96rem; }

/* ---------- About / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 380px;
}
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; color: var(--ink-dim);
}
.checklist li::before {
  content: "♠";
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.5;
  flex: none;
}

/* ---------- Variants ---------- */
.variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.variant {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.variant:hover { border-color: rgba(246,197,68,0.4); background: rgba(246,197,68,0.06); }
.variant img { width: 52px; height: 52px; flex: none; }
.variant .v-name { font-weight: 700; color: var(--ink); font-size: 1rem; }
.variant .v-tag { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num { font-size: 2.4rem; font-weight: 800; }
.stat .label { color: var(--ink-faint); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(226,59,34,0.18), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 60px 30px;
  box-shadow: var(--shadow);
}
.cta-banner img.bracelet { height: 64px; width: auto; margin: 0 auto 20px; filter: drop-shadow(0 8px 20px rgba(246,197,68,0.3)); }
.cta-banner .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Suit showcase band ---------- */
.suit-band { padding: 50px 0; }
.suit-tiles {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.suit-tile {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.suit-tile img { width: 100%; height: 100%; object-fit: cover; }
.suit-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(226, 59, 34, 0.30);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-dim); font-weight: 500; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-suits { display: flex; gap: 12px; }
.footer-suits img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-suits img:hover { opacity: 1; transform: translateY(-3px); }
.footer-suits.suits-lg { gap: 18px; }
.footer-suits.suits-lg img { width: 64px; height: 64px; border-radius: 14px; }

/* ---------- Generic content pages (privacy / terms / contact) ---------- */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}
.content h2 { font-size: 1.5rem; margin-top: 44px; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { color: var(--ink-dim); }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content .updated { color: var(--ink-faint); font-size: 0.9rem; }
.content a { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info .info-item { margin-bottom: 22px; }
.contact-info .info-item h4 { color: var(--ink); margin: 0 0 4px; font-size: 1rem; }
.contact-info .info-item p { margin: 0; }
.form-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f6c544' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.form-error { color: var(--red-bright); font-size: 0.82rem; margin-top: 5px; display: none; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }

/* ---------- Thanks page ---------- */
.thanks-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.thanks-hero img.bracelet { height: 90px; margin-bottom: 28px; filter: drop-shadow(0 10px 26px rgba(246,197,68,0.35)); }

/* ---------- Construction page animations ---------- */
.cx-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: cx-float 5s ease-in-out infinite, cx-glow 3.2s ease-in-out infinite;
}
@keyframes cx-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-2deg); }
}
@keyframes cx-glow {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 rgba(246, 197, 68, 0); }
  50%      { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 34px rgba(246, 197, 68, 0.45); }
}

/* Shimmer sweep across the gradient headline word */
.cx-shimmer {
  background-size: 220% 100%;
  animation: cx-shimmer 3.5s linear infinite;
}
@keyframes cx-shimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* Staggered floating suit tiles */
.cx-suits img { animation: cx-bob 3.6s ease-in-out infinite; }
.cx-suits img:nth-child(1) { animation-delay: 0s; }
.cx-suits img:nth-child(2) { animation-delay: 0.25s; }
.cx-suits img:nth-child(3) { animation-delay: 0.5s; }
.cx-suits img:nth-child(4) { animation-delay: 0.75s; }
@keyframes cx-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .cx-icon, .cx-shimmer, .cx-suits img { animation: none; }
}

.cx-footer {
  text-align: center;
  padding: 28px 24px 36px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.cx-footer a { color: var(--ink-dim); font-weight: 600; }
.cx-footer a:hover { color: var(--gold); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .cta-row, .hero .badges { justify-content: center; }
  .hero-art { order: -1; }
  .hero-mascot { max-width: 320px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .variants { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(18, 16, 14, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .features-grid, .variants { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
