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

:root {
  --bg: #ffffff;
  --bg-surface: #f8f9fc;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.15);
  --accent-hover: #6366f1;
  --border: rgba(79, 70, 229, 0.12);
  --radius: 12px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-hover);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.12em;
}
.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
  text-decoration: none;
}
.nav-login {
  color: var(--text) !important;
  font-weight: 500;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  margin-right: -6px;
  transition: color 0.2s;
}
.nav-toggle:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  nav.nav-open {
    display: flex;
  }
  nav a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  nav a:last-child {
    border-bottom: none;
  }
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 100px 0 80px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 auto 16px;
  max-width: 800px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.subtitle {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* === Soul Feed === */
.soul-feed {
  max-width: 720px;
  margin: 36px auto 0;
  background: #1a1a2e;
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: left;
  height: 480px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.18);
}

.soul-feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.soul-feed-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: feedPulse 2s ease-in-out infinite;
}

@keyframes feedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.soul-feed-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.soul-feed-messages {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  height: calc(100% - 45px);
  overflow: hidden;
}

.soul-msg {
  opacity: 0;
  transform: translateY(8px);
  animation: msgAppear 0.5s ease forwards;
}

.msg-name {
  font-weight: 700;
  color: #fff;
}
.msg-badge {
  display: inline-block;
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0px 4px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 2px;
  line-height: 1.4;
}
.badge-soul {
  background: rgba(79, 70, 229, 0.3);
  color: #a5b4fc;
}
.badge-teammate {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.soul-msg-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.soul-msg-text .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #6366f1;
  margin-left: 2px;
  vertical-align: -2px;
  animation: cursorBlink 0.8s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

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

/* === Hero Pills === */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-pill svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* === Problem Section === */
.problem-section {
  padding: 80px 0;
  background: var(--bg);
}
.problem-section h3 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.problem-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 10px;
}
.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* === How it works === */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-surface);
}

.how-it-works h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

.steps {
  list-style: none;
  display: grid;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.steps strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--text);
}

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

/* === Features === */
.features {
  padding: 80px 0;
}

.features h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

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

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.feature-icon {
  margin-bottom: 12px;
  color: var(--accent);
}

.feature-icon svg {
  display: block;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card > p:last-child {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* === Pricing === */
.pricing-section {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-surface);
}

.pricing-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s;
}

.pricing-card:hover {
  border-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.pricing-card--recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.pricing-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card--recommended .pricing-card-tag {
  color: var(--accent);
}

.pricing-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.pricing-card-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}

.pricing-card-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 2;
}

.pricing-card-cta {
  display: inline-block;
  width: 100%;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.pricing-card-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.pricing-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Comparison === */
.compare {
  padding: 80px 0;
}

.compare h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.compare-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.compare-table {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.compare-row:last-child {
  border-bottom: none;
}

.compare-header {
  background: var(--bg-surface);
}

.compare-col-head {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text);
}

.compare-label {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.compare-cell {
  padding: 12px 16px;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.compare-cell.good {
  color: #059669;
  font-weight: 600;
}

.compare-cell.bad {
  color: #dc2626;
}

.compare-cell.neutral {
  color: var(--text-muted);
}

.soulroom-col {
  color: #059669;
  font-weight: 600;
}

.compare-row:nth-child(even) {
  background: rgba(79, 70, 229, 0.02);
}

@media (max-width: 640px) {
  .compare-table {
    overflow-x: auto;
  }
  .compare-row {
    min-width: 900px;
  }
}

/* === CTA Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  text-decoration: none;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

footer a:hover {
  color: var(--accent);
}

/* === Responsive === */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

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

  .soul-feed {
    margin-left: 8px;
    margin-right: 8px;
  }
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
  .feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }
  .feature-card:nth-child(1) { animation-delay: 0.05s; }
  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.15s; }
  .feature-card:nth-child(4) { animation-delay: 0.2s; }
  .feature-card:nth-child(5) { animation-delay: 0.25s; }
  .feature-card:nth-child(6) { animation-delay: 0.3s; }
  .feature-card:nth-child(7) { animation-delay: 0.35s; }
  .feature-card:nth-child(8) { animation-delay: 0.4s; }

  .steps li {
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeRight 0.4s ease forwards;
  }
  .steps li:nth-child(1) { animation-delay: 0.1s; }
  .steps li:nth-child(2) { animation-delay: 0.2s; }
  .steps li:nth-child(3) { animation-delay: 0.3s; }
}

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

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === Legal pages (privacy, terms) === */
.article { padding: 60px 0 80px; }
.article h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}
.article .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  text-decoration: none;
}
.back-link:hover { color: var(--accent-hover); text-decoration: none; }
.legal-effective {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 48px;
}
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}
.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 20px;
  color: var(--text);
}
.legal-section p,
.legal-section li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-section ul li { margin-bottom: 8px; }
.legal-section a { color: var(--accent-hover); }

/* === Waitlist Modal === */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.waitlist-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.waitlist-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.waitlist-overlay.active .waitlist-modal {
  transform: translateY(0);
}
.waitlist-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.waitlist-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}
.waitlist-modal > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
#waitlist-form {
  display: flex;
  gap: 8px;
}
#waitlist-email {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
#waitlist-email:focus {
  border-color: var(--accent);
}
#waitlist-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
#waitlist-form button:hover {
  background: var(--accent-hover);
}
#waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.waitlist-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.4em;
}
@media (max-width: 480px) {
  #waitlist-form {
    flex-direction: column;
  }
}
