/* ========================================
   KitchOS Landing Page — Custom Styles
   ======================================== */

:root {
  --bg: #FBF8F3;
  --bg-alt: #F2EDE4;
  --bg-dark: #0F0F0F;
  --fg: #1A1A1A;
  --fg-muted: #6B6560;
  --accent: #E8922A;
  --accent-dark: #C4771E;
  --white: #FFFFFF;
  --border: rgba(26,26,26,0.12);
}

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

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

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(251,248,243,0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,146,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,146,42,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(232,146,42,0.12) 0%, transparent 65%);
  filter: blur(80px);
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,146,42,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 120px;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
}

/* --- Section Shared --- */
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.section-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* --- How It Works --- */
.howitworks {
  padding: 7rem 2rem;
  background: var(--bg);
}

.howitworks .section-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.workflow {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.workflow-step {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--white);
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(232,146,42,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  flex-shrink: 0;
}

/* --- Agents --- */
.agents {
  padding: 7rem 2rem;
  background: var(--bg-dark);
}

.agents .section-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.agents .section-eyebrow { color: rgba(232,146,42,0.7); }
.agents .section-title { color: var(--white); }
.agents .section-sub { color: rgba(255,255,255,0.5); }

.agent-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
}

.agent-card {
  background: var(--bg-dark);
  padding: 2.5rem;
  position: relative;
}

.agent-card--primary {
  background: rgba(232,146,42,0.07);
  border: 1px solid rgba(232,146,42,0.2);
}

.agent-icon {
  margin-bottom: 1.5rem;
}

.agent-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.agent-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,146,42,0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
}

/* --- Manifesto --- */
.manifesto {
  padding: 7rem 2rem;
  background: var(--accent);
}

.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-style: normal;
  margin-bottom: 2rem;
}

.manifesto-body {
  font-size: 1rem;
  color: rgba(26,26,26,0.65);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.manifesto-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.manifesto-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26,26,26,0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: 0.06em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--bg-dark);
  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.85); }
}

/* --- Closing --- */
.closing {
  padding: 7rem 2rem;
  background: var(--bg-alt);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.closing-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.closing-detail {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  max-width: 640px;
}

.closing-detail p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* --- Footer --- */
.footer {
  background: var(--fg);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-head {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.25rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat { flex: 1; min-width: 80px; }

  .workflow { flex-direction: column; gap: 0; }
  .workflow-arrow { transform: rotate(90deg); padding: 0.5rem 0; justify-content: center; }
  .workflow-step { border-bottom: none; }
  .workflow-step:last-child { border-bottom: 1px solid var(--border); }

  .agent-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { flex-direction: column; gap: 2rem; }

  .howitworks, .agents, .manifesto, .closing {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.5rem; }
  .closing-headline { font-size: 2rem; }
}