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

:root {
  --bg: #0A1612;
  --bg-alt: #0F1F18;
  --fg: #F0EDE6;
  --fg-muted: #8A9A8E;
  --accent: #E8A44C;
  --accent-dim: rgba(232, 164, 76, 0.12);
  --card: #121E19;
  --card-border: rgba(232, 164, 76, 0.18);
  --text-primary: #F0EDE6;
  --text-secondary: #8A9A8E;
  --text-muted: #4A5E52;
  --border: rgba(240, 237, 230, 0.08);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  background: rgba(10, 22, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Section utilities */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-inner.centered { text-align: center; }

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

.section-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 64px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
}

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

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 28px;
}

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

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  font-weight: 300;
}

/* Inbox mockup */
.hero-inbox { display: flex; justify-content: center; }

.inbox-frame {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,164,76,0.08);
}

.inbox-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.inbox-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.inbox-dot.red { background: #FF5F57; }
.inbox-dot.yellow { background: #FFBD2E; }
.inbox-dot.green { background: #28CA41; }

.inbox-label {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.inbox-thread { padding: 12px; }

.email-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.email-item.handled { border-color: rgba(40, 202, 65, 0.25); }
.email-item.escalated { border-color: rgba(232, 164, 76, 0.3); background: rgba(232,164,76,0.05); }

.email-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.email-sender { font-size: 11px; font-weight: 600; color: var(--fg); }
.email-time { font-size: 11px; color: var(--text-muted); }
.email-subject { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }

.email-draft { display: flex; align-items: flex-start; gap: 8px; }

.draft-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(40, 202, 65, 0.15);
  color: #28CA41;
}

.draft-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; font-style: italic; }

.email-draft.escalated-badge { flex-direction: column; }
.escalate-tag { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: var(--accent-dim); color: var(--accent); width: fit-content; margin-bottom: 6px; }
.escalate-text { font-size: 12px; color: var(--text-secondary); }

.inbox-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-stat { font-size: 12px; color: var(--text-muted); }
.footer-stat strong { color: var(--fg); }
.footer-time { font-size: 11px; color: var(--text-muted); font-style: italic; }

/* How It Works */
.howitworks {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.step-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  padding: 40px 32px;
  background: var(--card);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-child(n+4) { border-bottom: none; }

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* Daily Report */
.dailyreport {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.report-frame {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.report-from { display: flex; align-items: center; gap: 12px; }

.report-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
}

.report-sender { font-size: 14px; font-weight: 600; color: var(--fg); }
.report-email { font-size: 12px; color: var(--text-muted); }

.report-time { font-size: 12px; color: var(--text-muted); }

.report-subject { padding: 16px 24px; font-size: 18px; font-family: var(--serif); font-style: italic; color: var(--fg); border-bottom: 1px solid var(--border); }

.report-body { padding: 24px; }
.report-greeting { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.report-stat-row {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.report-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--serif); font-size: 36px; color: var(--fg); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.report-section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.report-escalations { margin-bottom: 24px; }

.escalation-item {
  background: rgba(232,164,76,0.05);
  border: 1px solid rgba(232,164,76,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.escal-sender { font-size: 12px; font-weight: 600; color: var(--fg); display: block; margin-bottom: 2px; }
.escal-sub { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 6px; }
.escal-reason { font-size: 11px; color: var(--text-muted); font-style: italic; }

.report-summary { }
.report-summary p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Closing */
.closing { padding: 120px 0; }
.closing-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 28px;
}
.closing-sub { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; font-weight: 300; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--serif); font-size: 18px; color: var(--fg); }
.footer-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 100px 24px 60px; }
  .nav { padding: 16px 24px; }
  .section-inner { padding: 0 24px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--card-border); }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-child(n+4) { border-bottom: 1px solid var(--card-border); }
  .feature-card:nth-child(n+5) { border-bottom: none; }
  .report-stat-row { flex-wrap: wrap; gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none !important; border-bottom: 1px solid var(--card-border) !important; }
  .feature-card:last-child { border-bottom: none !important; }
  .inbox-frame { max-width: 100%; }
  .hero-headline { font-size: 44px; }
}