/* ==========================================================================
   Baller AI — landing page styles
   ========================================================================== */

:root {
  --bg: #060806;
  --bg-elev: #0d100d;
  --card: #10130f;
  --card-border: rgba(255, 255, 255, 0.07);
  --green: #37e35c;
  --green-bright: #4dff77;
  --green-dim: #1c8f37;
  --green-glow: rgba(55, 227, 92, 0.35);
  --text: #f5f7f5;
  --text-dim: #9aa39a;
  --text-faint: #626a62;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 8%, rgba(55, 227, 92, 0.12), transparent 55%),
    radial-gradient(500px circle at 85% 25%, rgba(55, 227, 92, 0.08), transparent 55%),
    radial-gradient(700px circle at 50% 95%, rgba(55, 227, 92, 0.07), transparent 55%);
}

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

section {
  position: relative;
  padding: 110px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

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

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 16px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #04220d;
  box-shadow: 0 8px 24px -6px var(--green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px var(--green-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.btn-outline-green {
  background: rgba(55, 227, 92, 0.08);
  border-color: rgba(55, 227, 92, 0.4);
  color: var(--green-bright);
}

.btn-outline-green:hover {
  background: rgba(55, 227, 92, 0.16);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Apple badge button */
.btn-apple {
  background: #fff;
  color: #060806;
  padding: 12px 24px 12px 20px;
}

.btn-apple:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

.btn-apple .apple-glyph {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-apple .apple-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-apple .apple-text small {
  font-size: 10px;
  font-weight: 500;
  color: #5a5a5a;
}

.btn-apple .apple-text span {
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
  background: rgba(6, 8, 6, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--card-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 99;
  background: rgba(6, 8, 6, 0.98);
  backdrop-filter: blur(16px);
  padding: 32px 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 16px 4px;
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--card-border);
}

.mobile-menu .btn {
  margin-top: 24px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(95deg, var(--green-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.hero-rating .stars {
  color: var(--green-bright);
  letter-spacing: 2px;
  font-size: 15px;
}

.hero-rating strong {
  color: var(--text);
}

/* Phone mockup (built in CSS, no external screenshot assets needed) */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 612px;
  background: #000;
  border-radius: 46px;
  border: 3px solid #1c211c;
  box-shadow:
    0 0 0 8px #08090a,
    0 30px 70px -20px rgba(0, 0, 0, 0.8),
    0 0 90px -10px var(--green-glow);
  padding: 10px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #060806, #0a0d0a 40%);
  border-radius: 36px;
  overflow: hidden;
  padding: 30px 16px 16px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

.phone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
}

.phone-sub {
  font-size: 11px;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 16px;
}

.mini-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.mini-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mini-card .row:last-child {
  margin-bottom: 0;
}

.mini-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--green-bright);
  background: rgba(55, 227, 92, 0.12);
  border: 1px solid rgba(55, 227, 92, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
}

.mini-dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(55, 227, 92, 0.15);
  border: 1px solid rgba(55, 227, 92, 0.4);
  color: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.mini-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 8px;
}

.mini-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green-bright));
  border-radius: 4px;
}

.mini-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #04220d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-play svg {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

.phone-tabbar {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  background: rgba(15, 18, 15, 0.9);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 10px 14px;
}

.phone-tabbar .tab {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-tabbar .tab.active {
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-glow);
}

.phone-float-badge {
  position: absolute;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}

.phone-float-badge.top {
  top: 26px;
  left: -30px;
  animation-delay: 0.4s;
}

.phone-float-badge.bottom {
  bottom: 80px;
  right: -28px;
  animation-delay: 0.9s;
}

.phone-float-badge .flame {
  color: #ff9142;
}

/* ---------- Logos / trust strip ---------- */

.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.trust-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--green-bright);
}

.trust-item span {
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Feature grid ---------- */

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 227, 92, 0.35);
  background: #12160f;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(55, 227, 92, 0.1);
  border: 1px solid rgba(55, 227, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 26px 26px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #04220d;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 14.5px;
}

.step-connector {
  display: none;
}

/* ---------- Showcase ---------- */

.showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.showcase .phone {
  width: 250px;
  height: 510px;
}

.showcase .phone.mid {
  width: 280px;
  height: 572px;
  z-index: 2;
}

.showcase .phone.side {
  opacity: 0.55;
  filter: saturate(0.7);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, #0d150f, #0a0d0a);
  border: 1px solid rgba(55, 227, 92, 0.25);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% 0%, rgba(55, 227, 92, 0.2), transparent 70%);
}

.cta-banner > * {
  position: relative;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 16px;
}

.cta-banner .hero-ctas {
  justify-content: center;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--card-border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--green-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Simple pages (privacy/terms) ---------- */

.legal {
  padding: 168px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 26px;
  margin-bottom: 10px;
}

.legal p, .legal li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.legal a {
  color: var(--green-bright);
  text-decoration: underline;
}

.legal .intro {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal .disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  font-size: 13.5px;
  color: var(--text-faint);
  font-style: italic;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal th {
  text-align: left;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.legal td {
  color: var(--text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}

.legal tr:last-child td {
  border-bottom: none;
}

/* ---------- Responsive ---------- */

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

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

  .hero-ctas, .hero-rating {
    justify-content: center;
  }

  .phone-stage {
    margin-top: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 140px;
  }

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

  .showcase {
    flex-wrap: wrap;
  }

  .showcase .phone.side {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .phone {
    width: 260px;
    height: 530px;
  }

  .phone-float-badge.top {
    left: 0;
    top: 6px;
  }

  .phone-float-badge.bottom {
    right: 0;
    bottom: 60px;
  }
}
