/* ========================================
   SWELL — Landing Page Stylesheet
   ======================================== */

/* --- Tokens --- */
:root {
  --bg: #f4f0e8;
  --bg-alt: #ece7dd;
  --fg: #0e0e0c;
  --fg-muted: #6b6760;
  --accent: #e8830a;
  --accent-dark: #c66e08;
  --white: #ffffff;
  --border: rgba(14,14,12,0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8vw;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,131,10,0.18) 0%, transparent 70%);
  top: -100px;
  right: 10%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,131,10,0.1) 0%, transparent 70%);
  bottom: 0;
  left: 30%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,14,12,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,14,12,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(232,131,10,0.3);
  border-radius: 100px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.05;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.hero-platforms .sep {
  color: rgba(14,14,12,0.3);
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 32px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(232,131,10,0.35);
  letter-spacing: -0.01em;
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Calendar Widget */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}

.calendar-widget {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(14,14,12,0.08), 0 4px 16px rgba(14,14,12,0.04);
  border: 1px solid var(--border);
}

.cw-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cw-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 20px;
}

.cw-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.2s;
}

.cw-day.cw-today {
  background: rgba(232,131,10,0.08);
}

.cw-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cw-post {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  width: 100%;
  justify-content: center;
}

.cw-post-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.cw-published { background: #e8f5e9; color: #2e7d32; }
.cw-published .cw-post-dot { background: #2e7d32; }

.cw-queued { background: rgba(232,131,10,0.12); color: var(--accent-dark); }
.cw-queued .cw-post-dot { background: var(--accent); }

.cw-generating { background: rgba(14,14,12,0.06); color: var(--fg-muted); }
.cw-generating .cw-post-dot {
  background: var(--fg-muted);
  animation: pulse-dot 1.5s infinite;
}

.cw-planned { background: rgba(14,14,12,0.04); color: var(--fg-muted); font-style: italic; }

.cw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cw-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
}

.cw-stat-label {
  font-size: 11px;
  color: var(--fg-muted);
}

/* --- FEATURES --- */
.features {
  background: var(--fg);
  color: var(--white);
  padding: 120px 8vw;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.features-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--white);
  margin-bottom: 64px;
  max-width: 600px;
}

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

.feature-card {
  padding: 40px 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: background 0.3s;
}

.feature-card:hover {
  background: rgba(255,255,255,0.07);
}

.feature-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: rgba(232,131,10,0.3);
  margin-bottom: 20px;
  line-height: 1;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(232,131,10,0.15);
  color: var(--accent);
  border: 1px solid rgba(232,131,10,0.2);
}

/* --- HOW IT WORKS --- */
.howitworks {
  padding: 120px 8vw;
  background: var(--bg);
}

.hiw-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hiw-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 64px;
}

.hiw-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hiw-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--fg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-step-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.hiw-step-content p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.hiw-step-arrow {
  display: flex;
  align-items: center;
  padding-top: 20px;
  color: var(--fg-muted);
}

/* --- MANIFESTO --- */
.manifesto {
  background: var(--accent);
  padding: 120px 8vw;
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.manifesto-quote {
  position: relative;
}

.mq-mark {
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  line-height: 0.8;
  color: rgba(14,14,12,0.15);
  position: absolute;
  top: -20px;
  left: -10px;
}

.manifesto-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  position: relative;
}

.manifesto-body h2 {
  font-size: 28px;
  color: var(--fg);
  margin-bottom: 20px;
}

.manifesto-body p {
  font-size: 15px;
  color: rgba(14,14,12,0.7);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* --- FOOTER --- */
.footer {
  background: var(--fg);
  padding: 48px 8vw;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-sep {
  color: rgba(255,255,255,0.2);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 6vw;
    text-align: center;
  }

  .hero-inner {
    padding: 80px 0 40px;
    max-width: 100%;
  }

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

  .hero-headline {
    font-size: 42px;
  }

  .hero-sub {
    max-width: 100%;
  }

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

  .hero-visual {
    padding: 40px 0 60px;
  }

  .calendar-widget {
    max-width: 360px;
  }

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

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

  .hiw-step-arrow {
    display: none;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 5vw;
  }

  .hero-headline {
    font-size: 36px;
  }

  .features, .howitworks, .manifesto {
    padding: 80px 5vw;
  }

  .manifesto-quote p {
    font-size: 20px;
  }
}