/* ============================================================
   LIMITLESS LANDING — style.css
   Dark theme, system fonts, mobile-first
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand:      #2ac8c1;
  --brand-dim:  #007a8c;
  --brand-glow: rgba(0, 156, 177, 0.15);
  --bg:         #0d1117;
  --bg-alt:     #111820;
  --bg-card:    #161c26;
  --border:     rgba(255, 255, 255, 0.08);
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --text-dim:   #6e7681;
  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ---- Typography helpers ---- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dim);
  box-shadow: 0 0 20px rgba(0, 156, 177, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand-glow);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ---- NAV ---- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-img {
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

/* ---- HERO ---- */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 156, 177, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 30px rgba(0, 156, 177, 0.3));
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 156, 177, 0.12);
  border: 1px solid rgba(0, 156, 177, 0.3);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-ctas .btn-primary { padding: 0.8rem 2rem; font-size: 1rem; }
.hero-ctas .btn-ghost   { padding: 0.8rem 2rem; font-size: 1rem; }

.provider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.provider-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cascade-arrow {
  color: var(--brand);
  font-size: 1rem;
  opacity: 0.7;
}

/* ---- HOW IT WORKS ---- */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  counter-reset: steps;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.step-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-body p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.feature-card:hover {
  border-color: rgba(0, 156, 177, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--brand-glow);
  border: 1px solid rgba(0, 156, 177, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pricing-card--featured {
  border-color: var(--brand);
  background: linear-gradient(160deg, rgba(0, 156, 177, 0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px var(--brand), 0 16px 48px rgba(0, 156, 177, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}

/* ---- WAITLIST ---- */
.waitlist-section {
  text-align: center;
}

.waitlist-inner {
  max-width: 520px;
}

.waitlist-form {
  width: 100%;
}

.waitlist-fields {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.waitlist-fields input[type="email"] {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist-fields input[type="email"]::placeholder {
  color: var(--text-dim);
}

.waitlist-fields input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.waitlist-fields input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #f0666b;
}

.waitlist-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-logo-img {
  flex-shrink: 0;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-copy {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.65s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }
.fade-in:nth-child(4) { animation-delay: 0.35s; }
.fade-in:nth-child(5) { animation-delay: 0.45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger children in grids */
.feature-grid .reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.feature-grid .reveal.visible:nth-child(4) { transition-delay: 0.3s; }

.pricing-grid .reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid .reveal.visible:nth-child(3) { transition-delay: 0.2s; }

.steps .reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal.visible:nth-child(3) { transition-delay: 0.2s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }

  .hero { padding: 5rem 0 3.5rem; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; justify-content: center; }

  .step { flex-direction: column; gap: 1rem; }

  .waitlist-fields { flex-direction: column; }
  .waitlist-fields .btn { width: 100%; }

  .footer-inner { flex-direction: column; }
}

@media (min-width: 768px) {
  .steps {
    gap: 0;
  }

  .step {
    padding-bottom: 2.5rem;
    border-left: 1px solid var(--border);
    padding-left: 2.5rem;
    margin-left: 1.6rem;
    position: relative;
  }

  .step:last-child {
    border-left: none;
    padding-bottom: 0;
  }

  .step-number {
    position: absolute;
    left: -1.6rem;
    top: 0;
  }
}
