/* =====================
   BASE TOKENS
   ===================== */
:root {
  --bg: #0c0c0e;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --fg: #f0ede8;
  --fg-2: #a09b93;
  --fg-3: #5e5a54;
  --accent: #ff6b2c;
  --accent-dim: rgba(255, 107, 44, 0.12);
  --accent-glow: rgba(255, 107, 44, 0.06);
  --border: rgba(240, 237, 232, 0.07);
  --border-2: rgba(240, 237, 232, 0.04);

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 7px;
}

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

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

body { background: var(--bg); }

::selection { background: var(--accent); color: var(--bg); }

/* =====================
   NAVBAR
   ===================== */
.navbar {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fg);
}
.nav-logo .dot { color: var(--accent); }
.nav-tagline {
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

/* =====================
   HERO
   ===================== */
.hero {
  padding: 80px 40px 90px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 44, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 44px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 28px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proof-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.proof-label {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Agent visual card */
.agent-visual {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-2);
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-display);
  font-weight: 500;
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-3);
}
.agent-dot.active {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}
.agent-feed { padding: 8px 0; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-2);
  transition: background 0.15s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item.live { background: rgba(255, 107, 44, 0.04); }
.feed-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.feed-icon.schedule { background: #3b82f6; }
.feed-icon.invoice { background: #8b5cf6; }
.feed-icon.followup { background: #f59e0b; }
.feed-icon.support { background: #22c55e; }
.feed-icon.inventory { background: #06b6d4; }
.feed-icon.thinking { background: var(--accent); }
.feed-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  font-family: var(--font-display);
}
.feed-detail {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 2px;
}

/* =====================
   SECTION SHARED
   ===================== */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg-2);
  max-width: 480px;
  line-height: 1.65;
  margin-top: 12px;
}

/* =====================
   HOW IT WORKS
   ===================== */
.howitworks {
  padding: 90px 40px;
  border-bottom: 1px solid var(--border);
}
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.hiw-inner .section-header { margin-bottom: 60px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.step-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: rgba(255, 107, 44, 0.25); }
.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.step-content p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.65;
}

/* =====================
   OPS STACK
   ===================== */
.opsstack {
  padding: 90px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.opsstack-inner { max-width: 1200px; margin: 0 auto; }
.opsstack-inner .section-header { margin-bottom: 60px; }
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ops-category {
  background: var(--bg-2);
  padding: 32px 28px;
  transition: background 0.2s;
}
.ops-category:hover { background: var(--bg-3); }
.ops-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  margin-bottom: 18px;
}
.ops-icon.customer { background: #3b82f6; }
.ops-icon.financial { background: #8b5cf6; }
.ops-icon.scheduling { background: #f59e0b; }
.ops-icon.inventory { background: #06b6d4; }
.ops-icon.sales { background: #22c55e; }
.ops-icon.hr { background: #ec4899; }
.ops-category h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}
.ops-category ul { list-style: none; }
.ops-category li {
  font-size: 13px;
  color: var(--fg-2);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}
.ops-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* =====================
   WHO IS IT FOR
   ===================== */
.whoisitfor {
  padding: 90px 40px;
  border-bottom: 1px solid var(--border);
}
.wif-inner { max-width: 1200px; margin: 0 auto; }
.wif-inner .section-header { margin-bottom: 60px; }
.wif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.wif-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.2s;
}
.wif-card:hover { border-color: rgba(255, 107, 44, 0.2); }
.wif-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.wif-icon.servicebiz { background: #3b82f6; }
.wif-icon.retailer { background: #8b5cf6; }
.wif-icon.professional { background: #f59e0b; }
.wif-icon.restaurant { background: #22c55e; }
.wif-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.wif-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.65;
}

/* =====================
   CLOSING
   ===================== */
.closing {
  padding: 100px 40px;
  background: var(--bg);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing-visual {
  margin-bottom: 48px;
}
.closing-clock {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}
.clock-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 44, 0.2);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.clock-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.closing-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-content p {
  font-size: 16px;
  color: var(--fg-2);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 16px;
}
.closing-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
  letter-spacing: -0.3px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
}
.footer-brand .dot { color: var(--accent); }
.footer-sep {
  font-size: 14px;
  color: var(--fg-3);
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-3);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
  .wif-grid { grid-template-columns: 1fr; }
  .navbar { padding: 16px 24px; }
  .hero { padding: 60px 24px 70px; }
  .howitworks, .opsstack, .whoisitfor { padding: 70px 24px; }
  .closing { padding: 70px 24px; }
}
@media (max-width: 600px) {
  .ops-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 16px; }
  .proof-num { font-size: 24px; }
  .nav-tagline { display: none; }
}

/* =====================
   DASHBOARD (app)
   ===================== */
.dashboard-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 10;
}
.dashboard-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media(max-width:768px){.dashboard-grid{grid-template-columns:1fr}}
.stat-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--fg); line-height: 1; }
.stat-sub { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.green { background: #22c55e; }
.status-dot.orange { background: var(--accent); }
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--fg); }
.email-item { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.email-from { font-size: 13px; font-weight: 600; color: var(--fg); }
.email-sub { font-size: 12px; color: var(--fg-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.email-action { font-size: 11px; color: var(--fg-2); margin-top: 4px; }
.rule-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; margin-bottom: 8px; }
.rule-name { font-size: 14px; font-weight: 500; color: var(--fg); }
.rule-query { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.result-box { background: var(--bg-3); border-radius: 8px; padding: 16px; font-size: 13px; color: var(--fg-2); }
.result-box pre { white-space: pre-wrap; word-wrap: break-word; margin-top: 8px; font-size: 12px; color: var(--fg-2); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 100%; max-width: 440px; }
.modal h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--fg); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--fg-2); margin-bottom: 4px; }
.form-group input, .form-group select { background: var(--bg-3); border: 1px solid var(--border); border-radius: 7px; padding: 8px 12px; color: var(--fg); width: 100%; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-row { display: flex; gap: 12px; }
.form-row .btn-primary, .form-row .btn-secondary { flex: 1; text-align: center; }
.delete-btn { background: none; border: none; color: var(--fg-3); cursor: pointer; font-size: 12px; padding: 4px 8px; }
.delete-btn:hover { color: #ef4444; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; display: block; }