/* =====================================================
   Grid Genius — Landing Page Variation 10
   Premium Dark-Mode Conversion-Focused Design
   ===================================================== */

:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-card: #1A1F2E;
  --bg-card-hover: #222839;
  --accent: #6366F1;
  --accent-light: #818CF8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --green: #10B981;
  --amber: #F59E0B;
  --pink: #EC4899;
  --cyan: #06B6D4;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

.hidden {
  display: none !important;
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color .2s;
}

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

.nav-links .nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.nav-links .nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.mobile-menu {
  display: none;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

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

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-light), #a855f7, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .25s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-proof {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.proof-item svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

/* Phone frame */
.phone-wrapper {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #1e1e2e, #0d0d1a);
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  height: 560px;
  position: relative;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.app-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

.iframe-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.float-badge {
  position: absolute;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.float-badge.top-left {
  top: 10%;
  left: -40px;
  animation: float-a 5s ease-in-out infinite;
}

.float-badge.bottom-right {
  bottom: 15%;
  right: -40px;
  animation: float-b 6s ease-in-out infinite;
}

@keyframes float-a {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-b {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ── TRUST BAR ── */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

/* ── SECTION SHARED ── */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ── FEATURES ── */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px var(--accent-glow);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ── DAILY CHALLENGE ── */
.daily {
  padding: 100px 0;
}

.daily-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.daily h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.daily .section-sub-left {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
  max-width: none;
}

.daily-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
}

.daily-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.daily-feat svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex-shrink: 0;
}

.daily-visual {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.daily-visual .visual-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.daily-visual .visual-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.streak-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.streak-badge {
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
}

.leaderboard-mini {
  margin-top: 24px;
  text-align: left;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.lb-row:nth-child(1) {
  background: rgba(245, 158, 11, 0.08);
}

.lb-row:nth-child(2) {
  background: rgba(148, 163, 184, 0.06);
}

.lb-row:nth-child(3) {
  background: rgba(205, 127, 50, 0.06);
}

.lb-rank {
  font-weight: 700;
  width: 24px;
}

.lb-name {
  flex: 1;
  color: var(--text-secondary);
}

.lb-score {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* ── PRICING ── */
.pricing {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.billing-toggle-inner {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
}

.billing-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.billing-btn.active {
  background: var(--accent);
  color: #fff;
}

.billing-btn .save-tag {
  font-size: 0.7rem;
  color: var(--green);
  margin-left: 4px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all .3s;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-card .price-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-amount span[data-pricing-monthly],
.price-amount span[data-pricing-annual],
.price-amount span[data-pricing-plus-monthly],
.price-amount span[data-pricing-plus-annual] {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-save {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 20px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.price-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.price-features li svg.check {
  color: var(--green);
}

.price-features li svg.cross {
  color: var(--text-muted);
}

.price-features li.disabled {
  color: var(--text-muted);
}

.price-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.price-btn-outline {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.price-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.price-btn-filled {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.price-btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

/* ── FAQ ── */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-q svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-q.open svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a-inner {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── FINAL CTA ── */
.final-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── FOOTER ── */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.6;
}

footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color .2s;
}

footer ul a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── LIGHTBOX ── */
.lightbox-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 200;
  justify-content: center;
  align-items: center;
  transition: background .4s;
}

.lightbox-bg.active {
  display: flex;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .phone-wrapper {
    max-width: 280px;
    margin-top: 40px;
  }

  .phone-screen {
    height: 480px;
  }

  .float-badge {
    display: none;
  }

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

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

  .steps::before {
    display: none;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .trust-inner {
    gap: 24px;
  }
}