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

:root {
  --bg: #FFF8F0;
  --fg: #1A100A;
  --accent: #E8720A;
  --accent-light: #FDF0E4;
  --accent-mid: #F4A261;
  --sage: #6B8F71;
  --muted: #8A7560;
  --border: #E8DDD0;
  --card-bg: #FFFFFF;
  --footer-bg: #1A100A;
  --footer-fg: #FFF8F0;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

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

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* === HERO === */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 114, 10, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.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: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Hero Visual — Geometric Illustration */
.hero-visual {
  position: relative;
  width: 100%;
  height: 420px;
}
.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(232, 114, 10, 0.2);
}
.geo-circle-1 {
  width: 320px; height: 320px;
  top: 50px; left: 50%;
  transform: translateX(-50%);
  border-color: rgba(232, 114, 10, 0.15);
  background: radial-gradient(circle at 40% 40%, rgba(232, 114, 10, 0.06) 0%, transparent 60%);
}
.geo-circle-2 {
  width: 200px; height: 200px;
  top: 110px; left: 50%;
  transform: translateX(-50%);
  border-color: var(--accent);
  border-width: 1.5px;
  opacity: 0.25;
}
.geo-circle-3 {
  width: 80px; height: 80px;
  top: 170px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  opacity: 0.12;
}
.geo-line {
  position: absolute;
  background: rgba(232, 114, 10, 0.15);
}
.geo-line-1 {
  width: 2px; height: 120px;
  top: 110px; left: calc(50% + 100px);
}
.geo-line-2 {
  width: 80px; height: 2px;
  top: 200px; left: calc(50% + 100px);
}
.geo-badge {
  position: absolute;
  top: 60px;
  right: 40px;
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.geo-badge-icon { font-size: 1rem; }
.geo-task-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(26, 16, 10, 0.08);
  max-width: 200px;
}
.geo-task-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.geo-task-1 { bottom: 160px; right: 20px; }
.geo-task-2 { bottom: 100px; right: 60px; }
.geo-task-3 { bottom: 40px; right: 10px; }

/* === WHAT === */
.what {
  padding: 100px 40px;
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.what-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.what-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.what-statement {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* === FEATURES === */
.features {
  padding: 100px 40px;
  background: var(--bg);
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.features-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.features-header p {
  color: var(--muted);
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 16, 10, 0.1);
}
.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* === PROOF === */
.proof {
  padding: 100px 40px;
  background: var(--fg);
  color: var(--bg);
}
.proof-inner { max-width: 1200px; margin: 0 auto; }
.proof-header {
  text-align: center;
  margin-bottom: 64px;
}
.proof-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.proof-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 64px;
}
.proof-stat {
  text-align: center;
}
.proof-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.proof-label {
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.6);
  max-width: 140px;
  line-height: 1.4;
}
.proof-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 248, 240, 0.15);
}
.proof-quote {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.proof-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 248, 240, 0.85);
  margin-bottom: 20px;
}
.proof-quote cite {
  font-size: 0.82rem;
  color: rgba(255, 248, 240, 0.4);
  font-style: normal;
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  background: var(--accent-light);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.closing > .closing-inner > p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.7;
}
.closing-vision {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
}
.vision-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.closing-vision p:last-child {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.75;
}

/* === FOOTER === */
.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 0.82rem;
  color: rgba(255, 248, 240, 0.5);
}
.footer-note {
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.4);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .proof-stats { flex-direction: column; gap: 32px; }
  .proof-divider { width: 60px; height: 1px; }
  .nav-tagline { display: none; }
}

@media (max-width: 600px) {
  .hero, .what, .features, .proof, .closing { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav { padding: 0 24px; }
}

/* ===== VENDOR COORDINATION APP ===== */
.app-wrap { min-height: 100vh; }
.app-header {
  padding: 1.25rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.app-subtitle { font-size: 0.78rem; color: var(--muted); }

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem; }

section { margin-bottom: 2.5rem; }
section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-draft { background: var(--surface2); color: var(--muted); }
.badge-pending { background: #2a2a1a; color: var(--yellow); }
.badge-sent { background: #1a2a2a; color: var(--green); }
.badge-responded { background: #1a2a2a; color: #38bdf8; }
.badge-confirmed { background: #1a3a2a; color: var(--green); }
.badge-declined { background: #3a1a1a; color: var(--red); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-group { margin-bottom: 0.75rem; }
label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 72px; }

button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #0d0d12; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.btn-danger { background: var(--red); color: #0d0d12; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.outreach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.6rem;
}
.outreach-card .vendor-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.outreach-card .subject { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.outreach-card .meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.4rem; }
.outreach-card .email-body {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  max-height: 72px;
  overflow: hidden;
  white-space: pre-wrap;
}

.vendor-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.vendor-check-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.4rem; border-radius: 6px; cursor: pointer; transition: background 0.1s; }
.vendor-check-item:hover { background: var(--surface); }
.vendor-check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }
.vendor-check-item .vname { font-size: 0.85rem; font-weight: 500; }
.vendor-check-item .vcat { font-size: 0.72rem; color: var(--muted); }

.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ai-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: #2a1a3a; color: #c4b5fd; padding: 0.15rem 0.45rem; border-radius: 99px; font-size: 0.7rem; font-weight: 600; }

.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--surface2); border: 1px solid var(--accent); color: var(--text); padding: 0.65rem 1rem; border-radius: 10px; font-size: 0.85rem; z-index: 9999; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; width: 480px; max-width: 95vw; }
.modal h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

.stat-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.stat-box { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .app-header { padding: 1rem; }
  .container { padding: 1rem; }
}