/* ===================================================================
   Last One Loses - Global Stylesheet
   Dark navy + neon cyan/coral aesthetic
   =================================================================== */

:root {
  --bg: #031439;
  --bg-deep: #010814;
  --surface: rgba(13, 34, 62, 0.74);
  --surface-strong: rgba(17, 43, 74, 0.9);
  --surface-hover: rgba(20, 50, 86, 0.85);
  --line: rgba(104, 232, 255, 0.18);
  --line-strong: rgba(104, 232, 255, 0.32);
  --cyan: #68e8ff;
  --cyan-soft: rgba(104, 232, 255, 0.18);
  --cyan-glow: rgba(104, 232, 255, 0.35);
  --coral: #ff6652;
  --coral-soft: rgba(255, 102, 82, 0.16);
  --coral-glow: rgba(255, 102, 82, 0.35);
  --ivory: #fff6e8;
  --muted: #b8c7d9;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Aptos", "Segoe UI", system-ui, sans-serif;
  --max-width: 1200px;
  --transition: 220ms ease;
}

/* --- Reset & Base --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 82% 18%, rgba(104, 232, 255, 0.14), transparent 42rem),
    radial-gradient(ellipse at 12% 72%, rgba(255, 102, 82, 0.09), transparent 36rem),
    linear-gradient(155deg, var(--bg-deep), var(--bg) 38%, #061f45);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(104, 232, 255, 0.14) 38% 40%, transparent 40% 100%),
    repeating-linear-gradient(145deg, transparent 0 78px, rgba(104, 232, 255, 0.06) 80px, transparent 84px);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 0.95;
}

/* --- Layout Shell --- */

.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.site-header nav a:hover {
  color: var(--cyan);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(104, 232, 255, 0.12);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 40px var(--cyan-glow);
}

/* Hamburger Menu */

.mobile-nav {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 32px;
}

.hero-copy {
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.07em;
}

.hero-subtitle {
  max-width: 560px;
  color: var(--cyan);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Store Badges */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 10px;
  transition: transform var(--transition);
}

.store-badge-link:hover {
  transform: translateY(-2px);
}

.badge-img {
  display: block;
  width: auto !important;
  height: 48px !important;
  object-fit: contain;
}

.store-badge-link:nth-child(2) .badge-img {
  height: 50px !important;
}


/* Hero Art / Phone Mockup */

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.phone {
  position: relative;
  width: min(300px, 74vw);
  margin: 0 auto;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  background: #06101e;
  box-shadow: 0 0 0 1px rgba(104, 232, 255, 0.14), 0 40px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: rotate(5deg);
}

.phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.floating-piece {
  position: absolute;
  border-radius: 50%;
}

.piece-one {
  right: 6px;
  bottom: 130px;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 35% 30%, #aaf9ff, #3bd2e9 65%, #1593aa);
  box-shadow: 0 0 46px rgba(104, 232, 255, 0.5);
}

.piece-two {
  left: 12px;
  bottom: 44px;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 35% 30%, #ff957f, #e64d3b);
  box-shadow: 0 0 36px rgba(255, 102, 82, 0.4);
}

/* --- Feature Cards Grid --- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 24px;
  transition: border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--cyan-soft);
  position: relative;
}

.feature-icon.coral-bg {
  background: var(--coral-soft);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon.coral-bg svg {
  stroke: var(--coral);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Stats Strip --- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line);
}

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat-value.cyan {
  color: var(--cyan);
}

.stat-value.coral {
  color: var(--coral);
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Strategy Section --- */

.strategy-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 80px 0;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, rgba(13, 34, 62, 0.7), rgba(1, 8, 20, 0.35));
}

.strategy-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  letter-spacing: -0.05em;
}

.strategy-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lesson-stack {
  display: grid;
  gap: 12px;
}

.lesson-card {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--transition);
}

.lesson-card:hover {
  border-color: var(--line-strong);
}

.lesson-num {
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.lesson-card h3 {
  margin: 6px 0 4px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.lesson-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Share / Streak Section --- */

.share-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 80px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, rgba(13, 34, 62, 0.7), rgba(1, 8, 20, 0.35));
}

.share-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-width: 220px;
}

.share-card .streak-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.hot-dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 22px var(--coral-glow);
  flex-shrink: 0;
}

.share-card .streak-number {
  color: var(--coral);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-serif);
}

.share-card .streak-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.week-row span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(104, 232, 255, 0.14);
}

.week-row .won {
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral-glow);
}

.share-copy h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.share-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Footer --- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-footer nav a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ===================================================================
   Legal Pages (Privacy / Terms)
   =================================================================== */

.legal-shell {
  width: min(920px, calc(100% - 48px));
}

.legal-page {
  margin: 48px 0 64px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.legal-page h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin-bottom: 8px;
  letter-spacing: -0.06em;
}

.legal-page .legal-updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.legal-page .legal-intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-page h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ivory);
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 8px 0 16px 0;
  padding-left: 0;
}

.legal-page li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal-page li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.legal-page a {
  color: var(--cyan);
  font-weight: 700;
  transition: opacity var(--transition);
}

.legal-page a:hover {
  opacity: 0.8;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ===================================================================
   Support Page
   =================================================================== */

.support-page {
  padding-bottom: 0;
}

.support-hero {
  margin: 48px 0 40px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.support-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.support-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 28px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(104, 232, 255, 0.12);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.primary-link:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 40px var(--cyan-glow);
}

/* FAQ Section Heading */

.faq-section-heading {
  text-align: center;
  margin: 0 0 28px;
}

.faq-section-heading .eyebrow {
  margin-bottom: 10px;
}

.faq-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

/* FAQ Grid */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.faq-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--transition);
}

.faq-card:hover {
  border-color: var(--line-strong);
}

.faq-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.faq-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Contact Strip */

.contact-strip {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 16px;
}

.contact-strip p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.contact-strip .primary-link {
  margin-top: 8px;
}

/* ===================================================================
   Responsive - Tablet (max-width: 920px)
   =================================================================== */

@media (max-width: 920px) {
  .site-header nav.desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile nav overlay */
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(1, 8, 20, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }

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

  .mobile-nav a {
    color: var(--ivory);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: color var(--transition);
  }

  .mobile-nav a:hover {
    color: var(--cyan);
  }

  .mobile-nav .mobile-cta {
    margin-top: 12px;
    min-height: 52px;
    padding: 0 36px;
    border: 1.5px solid var(--cyan);
    border-radius: 999px;
    color: var(--cyan);
    font-weight: 900;
    font-size: 1.1rem;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .strategy-section,
  .share-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
    gap: 36px;
  }

  .hero-art {
    min-height: auto;
  }

  .phone {
    transform: none;
  }

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

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .strategy-section {
    padding: 28px;
  }

  .share-section {
    padding: 28px;
  }

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

/* ===================================================================
   Responsive - Mobile (max-width: 620px)
   =================================================================== */

@media (max-width: 620px) {
  .site-shell,
  .legal-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .brand span {
    font-size: 0.72rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero {
    gap: 28px;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.8rem);
  }

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

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item:not(:last-child)::after {
    right: 20%;
    top: auto;
    bottom: 0;
    width: 60%;
    height: 1px;
  }

  .strategy-section,
  .share-section {
    padding: 20px;
    margin: 48px 0;
  }

  .share-section {
    margin-bottom: 48px;
  }

  .legal-page,
  .support-hero {
    padding: 22px;
  }

  .legal-page h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .support-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer nav {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* ===================================================================
   Responsive - Very small (max-width: 380px)
   =================================================================== */

@media (max-width: 380px) {
  .site-shell,
  .legal-shell {
    width: calc(100% - 16px);
  }

  .brand span {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .store-badge-link {
    width: auto;
    height: auto;
    padding: 0;
  }

  .badge-img {
    height: 42px !important;
  }

  .store-badge-link:nth-child(2) .badge-img {
    height: 43px !important;
  }

  .board-preview {
    gap: 5px;
    padding: 10px;
  }
}
