/* =========================================
   LOCALOS — AI Business Operating System
   Design: Editorial, warm, confident
   ========================================= */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F0EC;
  --surface: #FFFFFF;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --fg-subtle: #9A9A9A;
  --accent: #F59E0B;
  --accent-dark: #B45309;
  --accent-light: #FEF3C7;
  --border: #E5E2DC;
  --chat-bg: #111111;
  --chat-fg: #F4F4F4;
  --chat-savannah: #F59E0B;
  --chat-user: #2563EB;
  --section-pad: 100px 24px;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  padding: 90px 24px 80px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-headline em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 2px;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-note {
  font-size: 0.82rem;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}

/* Chat Window */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-window {
  background: var(--chat-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.06);
}
.chat-header {
  background: #1E1E1E;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-dots {
  display: flex;
  gap: 5px;
}
.chat-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.chat-title {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.chat-status {
  font-size: 0.72rem;
  color: #22C55E;
  background: rgba(34,197,94,0.1);
  padding: 3px 9px;
  border-radius: 100px;
}
.chat-messages {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.msg-user {
  background: var(--chat-user);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-savannah {
  background: rgba(245,158,11,0.15);
  color: var(--chat-fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border-left: 2px solid var(--chat-savannah);
}
.msg-savannah.done {
  background: rgba(34,197,94,0.1);
  border-left-color: #22C55E;
}
.msg p { margin: 0; }

/* Dashboard chips */
.dashboard-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chip-orders { border-left: 3px solid #2563EB; }
.chip-inventory { border-left: 3px solid #16A34A; }
.chip-staff { border-left: 3px solid #9333EA; }
.chip-marketing { border-left: 3px solid #F59E0B; }
.chip-icon {
  width: 18px;
  height: 18px;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.chip-icon svg { width: 100%; height: 100%; }

/* ---- STATS ---- */
.stats-row {
  background: var(--fg);
  color: var(--bg);
  padding: 48px 24px;
}
.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.stat { text-align: center; padding: 0 32px; }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(250,250,248,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.12);
}

/* ---- PROBLEMS ---- */
.problems {
  padding: var(--section-pad);
  background: var(--bg);
}
.problems-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.section-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 20px;
}
.section-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 56px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}
.problem-icon svg { width: 22px; height: 22px; }
.problem-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: var(--section-pad);
  background: var(--fg);
  color: var(--bg);
}
.hiw-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.hiw-inner .section-label { color: var(--accent); }
.hiw-inner .section-headline { color: var(--bg); }
.hiw-inner .section-body {
  color: rgba(250,250,248,0.6);
  margin-bottom: 64px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step {
  padding: 32px 28px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
}
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.step-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(250,250,248,0.55);
}
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  padding-top: 48px;
}
.step-connector::after {
  content: '';
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
}

/* ---- FEATURES ---- */
.features {
  padding: var(--section-pad);
  background: var(--bg);
}
.features-inner { max-width: 1160px; margin: 0 auto; }
.features .section-headline { margin-bottom: 56px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(245,158,11,0.08);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  margin-bottom: 14px;
  transition: background 0.2s, color 0.2s;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--fg);
}
.feature-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: var(--section-pad);
  background: var(--bg-alt);
}
.test-inner { max-width: 1160px; margin: 0 auto; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.test-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  font-style: italic;
  flex: 1;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg);
}
.author-role {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  margin-top: 2px;
}

/* ---- BUILT FOR ---- */
.built-for {
  padding: var(--section-pad);
  background: var(--accent);
}
.bf-inner { max-width: 1160px; margin: 0 auto; }
.built-for .section-label { color: var(--accent-dark); }
.built-for .section-headline { color: var(--fg); }
.vertical-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.vertical {
  background: rgba(26,26,26,0.08);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(26,26,26,0.12);
  transition: background 0.2s;
  cursor: default;
}
.vertical:hover {
  background: rgba(26,26,26,0.15);
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  background: var(--fg);
  color: var(--bg);
}
.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.closing .section-label { color: var(--accent); }
.closing-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250,250,248,0.6);
  margin-bottom: 32px;
}
.closing-promise {
  font-size: 0.78rem;
  color: rgba(250,250,248,0.4);
  letter-spacing: 0.03em;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-subtle);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-divider { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 20px 48px; }
  .stats-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
}