:root {
  --bg: #F7F4EF;
  --fg: #1C1C1C;
  --accent: #C4622D;
  --accent-light: #E8855A;
  --green: #1C2B1C;
  --green-light: #2D4A2D;
  --muted: #6B6560;
  --border: #E0D9D0;
  --white: #FFFFFF;
  --low: #E8855A;
  --ok: #4A7C4E;
  --critical: #C4622D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 80vh;
  align-items: center;
  padding: 80px 60px 60px;
}
.hero-inner {
  padding-right: 60px;
}
.hero-stat {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stat-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 20px;
  font-style: italic;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
}

/* Store mock */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.store-mock {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(28,43,28,0.08);
}
.mock-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.mock-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-item .item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}
.mock-item .item-status {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mock-item.low { border-left: 3px solid var(--low); }
.mock-item.low .item-status { color: var(--low); }
.mock-item.ok { border-left: 3px solid var(--ok); }
.mock-item.ok .item-status { color: var(--ok); }
.mock-item.critical { border-left: 3px solid var(--critical); background: #FDF3EE; }
.mock-item.critical .item-status { color: var(--critical); }

.mock-order {
  margin-top: 8px;
}
.order-bubble {
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 20px;
  display: inline-block;
}

/* Problem section */
.problem {
  background: var(--white);
  padding: 80px 60px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.problem-card {
  border-top: 2px solid var(--border);
  padding-top: 24px;
}
.problem-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* How it works */
.howitworks {
  padding: 80px 60px;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.hiw-step {
  position: relative;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.hiw-step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}
.hiw-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Features */
.features {
  background: var(--green);
  padding: 80px 60px;
}
.features .section-label {
  color: rgba(255,255,255,0.5);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}
.feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.feature p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* Testimonial */
.testimonial {
  background: var(--bg);
  padding: 80px 60px;
  text-align: center;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 32px;
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 28px;
}
.attribution {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Closing */
.closing {
  background: var(--accent);
  padding: 100px 60px;
  text-align: center;
}
.closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.closing p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--fg);
  padding: 40px 60px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .navbar { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 48px; }
  .hero-inner { padding-right: 0; }
  .hero-stat { font-size: 48px; }
  .hero-headline { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { order: -1; }
  .store-mock { max-width: 100%; }
  .problem { padding: 60px 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .hiw-steps { grid-template-columns: 1fr; gap: 36px; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 60px 24px; }
  .quote-mark { font-size: 80px; }
  blockquote { font-size: 20px; }
  .closing { padding: 60px 24px; }
  .closing h2 { font-size: 36px; }
  .footer { padding: 32px 24px; }
  .nav-tagline { display: none; }
}

@media (max-width: 375px) {
  .hero-headline { font-size: 32px; }
  .hero-stat { font-size: 40px; }
  .closing h2 { font-size: 28px; }
}

/* Nav updates */
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 20px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--green); text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: background 0.15s; }
.nav-link:hover { background: var(--border); }

/* Dashboard */
.dashboard-page { min-height: 100vh; background: var(--bg); }
.dashboard-header { padding: 40px 60px 0; }
.dashboard-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--green); font-style: italic; margin-bottom: 4px; }
.dashboard-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; color: var(--fg); line-height: 1; }
.stat-value.accent { color: var(--accent); }
.stat-value.warn { color: var(--low); }

/* Product table */
.table-section { padding: 0 60px 60px; }
.table-section h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; }
.product-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.product-table { width: 100%; border-collapse: collapse; }
.product-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.product-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td { background: rgba(247,244,239,0.5); }
.product-name { font-weight: 600; color: var(--fg); font-size: 15px; }
.product-sku { font-size: 11px; color: var(--muted); font-family: monospace; margin-top: 2px; }
.product-supplier { font-size: 13px; color: var(--muted); }
.stock-cell { font-weight: 600; font-size: 15px; }
.stock-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stock-ok { background: #EAF2EA; color: var(--ok); }
.stock-low { background: #FDF3EE; color: var(--low); }
.stock-critical { background: #FDEAE4; color: var(--critical); }
.velocity-cell { font-size: 14px; color: var(--fg); }
.velocity-num { font-weight: 600; }
.velocity-unit { color: var(--muted); font-size: 12px; }
.days-left { font-weight: 600; font-size: 14px; }
.days-ok { color: var(--ok); }
.days-warn { color: var(--low); }
.days-danger { color: var(--critical); }
.reorder-badge { background: var(--critical); color: var(--white); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.reorder-safe { font-size: 12px; color: var(--ok); font-weight: 500; }
.category-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Add product form */
.add-section { margin-bottom: 24px; }
.btn-add { background: var(--green); color: var(--white); border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-add:hover { background: var(--green-light); }

/* Mobile */
@media (max-width: 900px) {
  .dashboard-header { padding: 24px 24px 0; }
  .stats-row { grid-template-columns: 1fr; gap: 12px; }
  .table-section { padding: 0 24px 40px; }
  .product-table-wrap { overflow-x: auto; }
  .product-table { min-width: 700px; }
}