/* ═══════════════════════════════════════════════════════════════
   SOUS - A website for chefs, not tech bros
   Warm, honest, gets to the point
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Warm, inviting palette */
  --cream: #FAF8F5;
  --warm-white: #FFFDF9;
  --charcoal: #1a1a1a;
  --charcoal-light: #2d2d2d;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  
  /* Accent - warm amber/orange like kitchen flames */
  --amber: #E67E22;
  --amber-light: #F39C12;
  --amber-bg: #FEF5E7;
  
  /* WhatsApp green */
  --wa-green: #25D366;
  --wa-dark: #075E54;
  --wa-light: #DCF8C6;
  --wa-bg: #E5DDD5;
  
  /* Utility */
  --border: #E8E4DF;
  --shadow: rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  
  /* Fonts */
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.nav-cta {
  background: var(--charcoal);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--charcoal-light);
}

/* ── Hero ───────────────────────────────────────────────────── */

/* Hero section wrapper for video background */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  min-height: 100vh;
  z-index: 2;
}

/* Hero video background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.8);
  transform: scale(1.1); /* Prevent blur edges showing */
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0.6) 0%,
    rgba(250, 248, 245, 0.7) 50%,
    rgba(250, 248, 245, 0.85) 100%
  );
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--amber);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--charcoal);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.05rem;
}

.btn-primary:hover {
  background: var(--charcoal-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background: var(--wa-green);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background: #20bd5a;
}

/* ── Phone Demo ─────────────────────────────────────────────── */
.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  width: 300px;
  background: var(--charcoal);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-speaker {
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 8px auto 12px;
}

.phone-screen {
  background: var(--wa-bg);
  border-radius: 28px;
  overflow: hidden;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--wa-dark);
  color: white;
}

.wa-back {
  font-size: 1.5rem;
  font-weight: 300;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.wa-contact {
  flex: 1;
}

.wa-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.wa-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.wa-messages {
  padding: 1rem 0.75rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.msg {
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
}

.msg p {
  margin-bottom: 0.25rem;
}

.msg p:last-of-type {
  margin-bottom: 0;
}

.msg.incoming {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.outgoing {
  background: var(--wa-light);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.msg-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: #999;
  margin-top: 0.3rem;
}

.wa-input {
  padding: 0.6rem 1rem;
  background: #F0F0F0;
  color: #999;
  font-size: 0.85rem;
}

.demo-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Social Proof ───────────────────────────────────────────── */
.proof {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--charcoal);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* ── Section Utilities ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 3rem;
}

/* ── Pain Points ────────────────────────────────────────────── */
.pain {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pain-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.pain-card:hover {
  box-shadow: 0 8px 30px var(--shadow);
}

.pain-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.pain-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.pain-card strong {
  color: var(--text);
}

/* ── Solution ───────────────────────────────────────────────── */
.solution {
  background: var(--charcoal);
  color: white;
  padding: 5rem 2rem;
}

.solution .section-title {
  color: white;
}

.solution .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.how-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.how-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.how-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.how-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Capabilities ───────────────────────────────────────────── */
.capabilities {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.cap-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.cap-item:hover {
  border-color: var(--amber);
}

.cap-icon {
  font-size: 1.5rem;
}

.cap-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Testimonial ────────────────────────────────────────────── */
.testimonial {
  background: var(--amber-bg);
  padding: 5rem 2rem;
  text-align: center;
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--charcoal);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.quote::before {
  content: '"';
}

.quote::after {
  content: '"';
}

.quote-author {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--amber);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
}

.author-role {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Start Steps ────────────────────────────────────────────── */
.start {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--charcoal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 150px;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ── Signup ─────────────────────────────────────────────────── */
.signup {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.signup-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 10px 40px var(--shadow);
}

.signup-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.signup-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--amber);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success */
.signup-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--wa-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.signup-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.success-id {
  background: var(--amber-bg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--amber);
}

/* ── Reassurance ────────────────────────────────────────────── */
.reassure {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  max-width: 1000px;
  margin: 0 auto;
}

.reassure-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reassure-item span:first-child {
  font-size: 1.5rem;
}

.reassure-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.reassure-item strong {
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: white;
}

.footer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer strong {
  color: var(--text);
}

.footer-small {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #c0392b;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 6rem;
    min-height: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .phone {
    width: 280px;
  }

  .proof-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 50px;
    height: 1px;
  }

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

  .how-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .reassure {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (max-width: 500px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .signup-box {
    padding: 2rem 1.5rem;
  }
}
