/* =========================================
   PulseOS Landing Page
   ========================================= */

:root {
  --bg: #faf8f4;
  --fg: #1a2e1a;
  --accent: #c97d2a;
  --accent-warm: #f0a500;
  --accent-green: #2d6a4f;
  --text-muted: #6b7c65;
  --border: #d8e0d4;
  --card-bg: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

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

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fg);
  color: var(--accent-warm);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 64px 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
}

/* Dashboard Mock */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-mock {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(26, 46, 26, 0.10), 0 4px 16px rgba(26, 46, 26, 0.06);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--fg);
  color: white;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.mock-dots span:first-child { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }

.mock-title { font-size: 12px; font-weight: 500; opacity: 0.7; }

.mock-body {
  display: grid;
  grid-template-columns: 40px 1fr;
  height: 260px;
}

.mock-sidebar {
  background: #f4f7f2;
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.sidebar-item.active { background: var(--accent-green); width: 70%; }

.mock-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.metric-label {
  height: 6px;
  width: 60%;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
}

.metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 9px;
  color: var(--accent-green);
  font-weight: 500;
}

.chart-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  padding: 0 4px;
}

.chart-bar {
  flex: 1;
  height: var(--h, 50%);
  background: var(--accent-green);
  border-radius: 3px 3px 0 0;
  opacity: 0.25;
  transition: opacity 0.2s;
}

.chart-bar.highlight {
  background: var(--accent);
  opacity: 1;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f0f7ef;
  border-radius: 6px;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.activity-text { font-size: 10px; color: var(--accent-green); font-weight: 500; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 60px;
  padding: 32px 64px;
  background: var(--fg);
  border-radius: 20px 20px 0 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 0 32px;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-warm);
}

.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---- Features ---- */
.features {
  padding: 96px 64px;
  background: white;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}

.section-sub { font-size: 17px; color: var(--text-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 36px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f2;
  border-radius: 10px;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---- How It Works ---- */
.how {
  padding: 96px 64px;
  background: var(--bg);
}

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

.how-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.how-headline {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 56px;
  color: var(--fg);
}

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

.step { padding: 0; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
}

.step-connector::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border);
}

/* ---- Closing ---- */
.closing {
  padding: 96px 64px;
  background: var(--fg);
  color: white;
  position: relative;
  overflow: hidden;
}

.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.closing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-warm);
  border: 1px solid rgba(240,165,0,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.closing-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.closing-body {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.closing-visual {
  display: flex;
  justify-content: center;
}

.signal-lines {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.signal-line {
  width: 4px;
  background: var(--accent-warm);
  border-radius: 2px;
  opacity: 0.4;
}

.signal-line:nth-child(1) { height: 30%; animation: rise 1.4s ease-in-out infinite; }
.signal-line:nth-child(2) { height: 50%; animation: rise 1.4s ease-in-out 0.15s infinite; }
.signal-line:nth-child(3) { height: 70%; animation: rise 1.4s ease-in-out 0.3s infinite; }
.signal-line:nth-child(4) { height: 55%; animation: rise 1.4s ease-in-out 0.45s infinite; }
.signal-line:nth-child(5) { height: 40%; animation: rise 1.4s ease-in-out 0.6s infinite; }

@keyframes rise {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ---- Footer ---- */
.footer {
  padding: 48px 64px;
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.7; }

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

  .hero { padding: 48px 24px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .dashboard-mock { max-width: 100%; }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 20px;
    margin: 40px 24px 0;
  }

  .stat { padding: 0; text-align: center; }
  .stat-divider { display: none; }

  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }

  .how { padding: 64px 24px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step-connector::after { display: none; }

  .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric-card:last-child { display: none; }
  .hero-headline { font-size: 36px; }
}