/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg: #FAFAF8;
  --surface: #F2EFE9;
  --surface2: #E8E4DB;
  --ink: #1A1714;
  --ink-2: #5C5650;
  --ink-3: #9A9490;
  --accent: #E8500A;
  --accent-warm: #F5E6DC;
  --green: #1A6B45;
  --green-bg: #D4EDE0;
  --border: #DDD8D0;
}

/* ─── Base ─────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 600; line-height: 1.2; }

/* ─── Navbar ───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 400;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 96px 40px 80px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 440px;
}

/* Agent card */
.agent-card {
  background: var(--ink);
  color: #F0EDE8;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(26,23,20,0.18), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.status-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ADE80;
}
.agent-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.metric {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.metric-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.metric-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(240,237,232,0.55);
  margin-top: 2px;
}
.agent-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(240,237,232,0.7);
  line-height: 1.4;
}
.feed-icon {
  color: var(--accent);
  font-size: 0.6rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ─── What Section ─────────────────────────────────────── */
.what {
  padding: 96px 40px;
  border-bottom: 1px solid var(--border);
}
.what-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.what-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.what-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 28px;
}
.what-body {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 56px;
}
.what-shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.shift-col {
  padding: 32px 36px;
}
.shift-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.shift-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shift-col ul li {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.shift-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface2);
}
.shift-old ul li::before { background: #D4D0C8; }
.shift-new ul li::before { background: var(--green); }
.shift-new ul li { color: var(--ink); }
.shift-divider {
  width: 1px;
  background: var(--border);
}

/* ─── Dashboard Section ─────────────────────────────────── */
.dashboard-section {
  padding: 96px 40px;
  background: var(--ink);
  color: #F0EDE8;
}
.dashboard-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.dash-header { margin-bottom: 48px; }
.dash-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(240,237,232,0.4);
  margin-bottom: 12px;
}
.dash-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: #F0EDE8;
}

/* Dashboard mock */
.dash-mock {
  background: #2A2622;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  background: #1A1714;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mock-logo {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.mock-tabs {
  display: flex;
  gap: 4px;
}
.mock-tab {
  font-size: 0.72rem;
  color: rgba(240,237,232,0.4);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: default;
}
.mock-tab.active {
  background: rgba(255,255,255,0.1);
  color: rgba(240,237,232,0.85);
}
.mock-avatar {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
}
.mock-sidebar {
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-item {
  font-size: 0.75rem;
  color: rgba(240,237,232,0.45);
  padding: 7px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.sidebar-item.active {
  background: rgba(232,80,10,0.2);
  color: #E8906A;
}
.sidebar-icon { font-size: 0.7rem; }
.mock-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mock-kpi {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 0.68rem;
  color: rgba(240,237,232,0.45);
}
.kpi-delta {
  font-size: 0.68rem;
  font-weight: 600;
}
.kpi-delta.up { color: #4ADE80; }
.mock-chart {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 16px;
}
.chart-label {
  font-size: 0.68rem;
  color: rgba(240,237,232,0.4);
  margin-bottom: 12px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.bar {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.bar:last-child { opacity: 1; }
.mock-activity {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 14px 16px;
}
.activity-label {
  font-size: 0.68rem;
  color: rgba(240,237,232,0.4);
  margin-bottom: 10px;
}
.activity-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.activity-row:last-child { border-bottom: none; }
.act-time {
  color: rgba(240,237,232,0.35);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.act-text { color: rgba(240,237,232,0.7); }

/* ─── Features ─────────────────────────────────────────── */
.features {
  padding: 96px 40px;
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.features-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.feature-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.2s;
}
.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-child(n+4) { border-bottom: none; }
.feature-card:hover { background: var(--surface); }
.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ─── Closer ────────────────────────────────────────────── */
.closer {
  padding: 96px 40px;
  background: var(--surface);
}
.closer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.closer-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 800px;
  margin-bottom: 24px;
}
.closer-sub {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 580px;
  line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  padding: 40px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .what-shift { grid-template-columns: 1fr; }
  .shift-divider { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .feature-card:nth-child(n+5) { border-bottom: none; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 64px 24px 56px; }
  .what, .features, .closer { padding: 64px 24px; }
  .navbar { padding: 0 24px; }
  .footer { padding: 32px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .feature-card:last-child { border-bottom: none !important; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
}