/* =============================================
   DETACH — Landing Page Styles
   Palette inspired by autumn vineyard: warm amber,
   dusky grape, golden light, earthy cream
   ============================================= */

:root {
  --bg: #faf6f1;
  --bg-elevated: #ffffff;
  --bg-warm: #f0ebe3;
  --bg-dark: #2c2233;
  --text: #2c2233;
  --text-muted: #7a7080;
  --text-on-dark: #f5f0eb;
  --text-on-dark-muted: #bfb5a8;
  --accent: #b5713c;
  --accent-light: #f5e6d3;
  --accent-hover: #9a5e2f;
  --grape: #5c4a6b;
  --grape-light: #e8e0f0;
  --border: #e8e2d8;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(44, 34, 51, 0.05);
  --shadow-md: 0 8px 32px rgba(44, 34, 51, 0.08);
}

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

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

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

.noise {
  display: none;
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 48px;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(44, 34, 51, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav .logo {
  text-align: center;
  color: var(--text-on-dark);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.dot {
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 48px 100px;
  position: relative;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(44, 34, 51, 0.55) 0%,
      rgba(44, 34, 51, 0.45) 50%,
      rgba(44, 34, 51, 0.7) 100%
    ),
    url('N5V6I0L.jpeg') center / cover no-repeat;
  color: var(--text-on-dark);
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
  background: rgba(181, 113, 60, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(181, 113, 60, 0.25);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-on-dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.highlight {
  color: var(--accent);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Buttons ---- */
.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 113, 60, 0.25);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-warm);
  transform: translateY(-2px);
}

/* ---- Screen Time Counter ---- */
.screen-time {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  max-width: 400px;
  text-align: center;
}

.screen-time-label {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.screen-time-value {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.screen-time-caption {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-weight: 400;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: -60px auto 0;
  padding: 0 48px;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: inline;
  font-variant-numeric: tabular-nums;
  color: var(--grape);
}

.stat-unit {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--grape);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- Section Shared ---- */
.section-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px;
  text-align: center;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 56px;
}

.strikethrough {
  text-decoration: line-through;
  opacity: 0.35;
}

/* ---- Why Detach / Problem Section ---- */
.problem {
  background: var(--bg);
}

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

.problem-card {
  padding: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.problem-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.problem-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--grape);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Offering Section ---- */
.offering {
  background: var(--bg-warm);
}

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

.offering-card {
  padding: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.offering-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.offering-emoji {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.offering-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--grape);
}

.offering-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Social Proof ---- */
.proof {
  background: var(--bg);
}

.proof .section-content {
  display: flex;
  justify-content: center;
  text-align: center;
}

blockquote p {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
  max-width: 700px;
  margin-bottom: 16px;
  color: var(--grape);
}

blockquote cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 400;
}

/* ---- Waitlist ---- */
.waitlist {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.waitlist .section-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist .section-tag {
  color: var(--accent);
}

.waitlist h2 {
  color: var(--text-on-dark);
}

.waitlist-sub {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
  font-weight: 400;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 20px;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 100px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.waitlist-form input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.waitlist-form .btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.waitlist-form .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 113, 60, 0.3);
}

.waitlist-count {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-weight: 400;
}

#waitlistCount {
  font-weight: 600;
  color: var(--text-on-dark);
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  background: var(--bg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Form Success ---- */
.form-success {
  display: none;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  padding: 14px 0;
}

.form-success.show {
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  nav {
    padding: 20px 24px;
  }

  .hero {
    padding: 100px 24px 80px;
  }

  .stats {
    grid-template-columns: 1fr;
    padding: 0 24px;
    margin-top: -40px;
  }

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

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

  .section-content {
    padding: 80px 24px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1,
  .hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}
