/* Spades Hero marketing site. Casino-felt + gold theme, mirrored from the app
   (felt #0d4d33, dark felt #083324, gold #dbb55c, card red #c71f29). */

:root {
  --felt: #0d4d33;
  --felt-dark: #083324;
  --felt-deep: #051f15;
  --gold: #dbb55c;
  --gold-soft: #e7cd8e;
  --card: #faf7f0;
  --red: #c71f29;
  --ink: #1a1c21;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.05);
  --radius: 18px;
  --maxw: 1100px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 50% -10%, #11603f 0%, var(--felt) 40%, var(--felt-dark) 75%, var(--felt-deep) 100%)
    fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 31, 21, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.2px; }
.brand .spade { color: var(--gold); font-size: 1.5rem; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
/* Hamburger button: hidden on desktop, shown on narrow screens. */
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 6px;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a2208; box-shadow: 0 8px 24px rgba(219, 181, 92, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(219, 181, 92, 0.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.nav .btn { padding: 9px 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(219, 181, 92, 0.4);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lede { font-size: 1.22rem; color: var(--text-dim); margin: 22px 0 32px; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-faint); }

/* phone mock + cards */
.showcase { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.phone {
  position: relative; width: 260px; aspect-ratio: 9 / 19.5;
  border-radius: 38px; padding: 12px;
  background: linear-gradient(160deg, #2a2c31, #0c0d10);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255,255,255,0.06);
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #11603f, var(--felt-dark));
  display: flex; flex-direction: column; padding: 22px 18px; gap: 14px;
}
.ps-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.ps-sub { font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.ps-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ps-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); flex: none; color: #2a2208; font-weight: 700; font-size: 0.75rem; display: grid; place-items: center; }
.ps-row .name { font-size: 0.82rem; font-weight: 600; }
.ps-row .meta { font-size: 0.68rem; color: var(--text-faint); }
.ps-row .pill { margin-left: auto; font-size: 0.6rem; padding: 3px 8px; border-radius: 999px; background: rgba(219,181,92,0.18); color: var(--gold-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.ps-row .pill.live { background: rgba(80, 220, 130, 0.18); color: #79e6a4; }

.float-card {
  position: absolute; width: 92px; height: 128px; border-radius: 12px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; justify-content: space-between; padding: 10px; font-weight: 800;
  z-index: 3;
}
.float-card .corner { font-size: 1.15rem; line-height: 1; }
.float-card .pip { align-self: center; font-size: 2.6rem; line-height: 1; }
.float-card .corner.br { align-self: flex-end; transform: rotate(180deg); }
.float-card.spade { color: var(--ink); }
.float-card.red { color: var(--red); }
.float-card.c1 { top: 26px; left: 6px; transform: rotate(-13deg); }
.float-card.c2 { bottom: 30px; right: 0; transform: rotate(11deg); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.section-head h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0; line-height: 1.1; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(219,181,92,0.4); background: rgba(255,255,255,0.07); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(219,181,92,0.14); color: var(--gold); margin-bottom: 16px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 0.98rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: #2a2208;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.93rem; }

/* cta band */
.cta-band { text-align: center; }
.cta-card {
  background: linear-gradient(160deg, rgba(219,181,92,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(219,181,92,0.32); border-radius: 26px;
  padding: 56px 32px; max-width: 760px; margin: 0 auto;
}
.cta-card h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-card p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 28px; }
.cta-card .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 24px; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--gold-soft); }
.foot-copy { color: var(--text-faint); font-size: 0.88rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 6px; }
.legal .updated { color: var(--text-faint); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 { font-family: var(--serif); font-size: 1.5rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--gold-soft); text-decoration: underline; }
.back-home { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); margin-bottom: 28px; font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .showcase { order: -1; min-height: 380px; margin-bottom: 12px; }
  .hero { padding: 56px 0 40px; }
  .hero p.lede { max-width: none; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  /* Collapse the nav behind a hamburger; the full menu drops down when open. */
  .nav-toggle { display: block; }
  .nav .wrap { flex-wrap: wrap; }
  .nav-links {
    display: none; order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 6px 0 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; font-size: 1rem; }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 4px; }
}
@media (max-width: 560px) {
  .features, .steps { grid-template-columns: 1fr; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
  /* Keep the header on one line: smaller brand, tighter gaps and buttons. */
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 10px; }
  .brand { font-size: 1.1rem; gap: 7px; min-width: 0; }
  .brand .spade { font-size: 1.25rem; }
  .nav-links { gap: 8px; flex-shrink: 0; }
  .nav .btn { padding: 8px 13px; font-size: 0.85rem; }
}
@media (max-width: 380px) {
  .brand { font-size: 1rem; }
  .nav .btn { padding: 7px 11px; font-size: 0.8rem; }
}

/* ---------- Forms (waitlist + auth) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 14px; }
.field label { font-size: .82rem; color: var(--text-dim); font-weight: 600; }
.input {
  width: 100%; font: inherit; color: var(--text); background: rgba(255,255,255,.06);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color .15s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { border-color: var(--gold); }
.btn-block { width: 100%; justify-content: center; }
.form-msg { font-size: .92rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.ok { color: #79e6a4; }
.form-msg.err { color: #ff8f8f; }

.waitlist { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 460px; margin: 0 auto; }
.waitlist .input { flex: 1; min-width: 220px; }

.auth-card {
  max-width: 420px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px;
}
.auth-tabs { display: flex; gap: 6px; background: rgba(0,0,0,.2); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button {
  flex: 1; font: inherit; font-weight: 600; color: var(--text-dim); background: transparent;
  border: none; border-radius: 9px; padding: 9px; cursor: pointer;
}
.auth-tabs button.active { background: var(--gold); color: #2a2208; }
.tlist { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.tlist a { display: flex; align-items: center; justify-content: space-between; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tlist a:hover { border-color: rgba(219,181,92,.4); }

textarea.input { resize: vertical; min-height: 96px; }
