/* ======================================
   TONDE — Landing Page Stylesheet
   ====================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FBF5E8;
  --bg-alt: #F4EDD8;
  --teal: #0D3B3E;
  --teal-light: #1A5C52;
  --amber: #FFB627;
  --amber-light: #FFD96A;
  --dark: #1A1A2E;
  --muted: #6B6B6B;
  --white: #FFFFFF;
  --border: rgba(13,59,62,0.12);
}

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

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--teal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ======================================
   NAVIGATION
   ====================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  background: rgba(251,245,232,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.nav-tagline {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 600px) {
  .nav-tagline { display: none; }
  .nav { padding: 14px 20px; }
}

/* ======================================
   HERO
   ====================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: var(--teal);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 60px 80px 40px;
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  font-family: 'Syne', sans-serif;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--teal);
  margin-bottom: 24px;
}

.headline-accent {
  color: var(--amber);
}

.hero-lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 400;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 7px 16px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
  font-family: 'Syne', sans-serif;
}

/* Hero Visual (Chat Scene) */
.hero-visual {
  position: relative;
  z-index: 1;
  padding: 80px 40px 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-scene {
  background: var(--bg);
  border: 2px solid rgba(255,182,39,0.25);
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 32px 80px rgba(13,59,62,0.18), 0 0 0 1px rgba(13,59,62,0.05);
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 85%;
}

.chat-bubble--incoming {
  align-self: flex-start;
}

.chat-bubble--outgoing {
  align-self: flex-end;
}

.chat-text {
  background: var(--white);
  color: var(--teal);
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  line-height: 1.45;
}

.chat-bubble--outgoing .chat-text {
  background: var(--teal);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--muted);
  padding-left: 4px;
}

/* Typing bubble */
.chat-bubble.typing {
  background: none;
  padding: 0;
  align-self: flex-start;
}

.chat-bubble.typing .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 4px;
  animation: bounce-dot 1.4s ease-in-out infinite;
}

.chat-bubble.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-8px); opacity: 1; }
}

/* Stock card */
.stock-card {
  background: linear-gradient(135deg, #FFF8E7, #FFF3CC);
  border: 1.5px solid rgba(255,182,39,0.4);
  border-radius: 16px;
  padding: 16px 18px;
  align-self: flex-start;
  margin-top: 4px;
}

.stock-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
}

.stock-card-body {
  font-size: 0.875rem;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 500;
}

.stock-card-time {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ======================================
   HOW IT WORKS
   ====================================== */
.howitworks {
  padding: 100px 40px;
  background: var(--bg);
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--teal);
  max-width: 640px;
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 1000px;
}

.step {
  padding: 32px 24px;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,182,39,0.15);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--amber), transparent);
  height: 120px;
  margin-top: 60px;
  flex-shrink: 0;
}

/* ======================================
   FEATURES
   ====================================== */
.features {
  padding: 100px 40px;
  background: var(--bg-alt);
}

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

.feature {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--amber);
  opacity: 0.06;
  border-radius: 100% 0 0 0;
}

.feature--tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature--wide {
  grid-column: span 2;
}

.feature--accent {
  background: var(--teal);
}

.feature--accent .feature-title,
.feature--accent .feature-body,
.feature--accent .feature-badge {
  color: var(--white);
}

.feature--accent .feature-badge {
  background: var(--amber);
  color: var(--dark);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,182,39,0.12);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.06em;
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
}

/* ======================================
   MANIFESTO
   ====================================== */
.manifesto {
  padding: 100px 40px;
  background: var(--teal);
  color: var(--white);
}

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

.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.manifesto-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
}

/* ======================================
   STATS
   ====================================== */
.stats {
  padding: 80px 40px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  text-align: center;
  padding: 0 60px;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 500;
  max-width: 180px;
  line-height: 1.4;
  margin: 0 auto;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(13,59,62,0.15);
  flex-shrink: 0;
}

/* ======================================
   CLOSING
   ====================================== */
.closing {
  padding: 120px 40px;
  background: var(--dark);
  text-align: center;
}

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

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 48px;
}

.closing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.closing-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
  padding: 48px 40px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  max-width: 400px;
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin-top: 4px;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
  }
  .hero::before {
    display: none;
  }
  .hero-content {
    padding: 60px 24px 40px;
  }
  .hero-visual {
    padding: 0 24px 60px;
  }
  .chat-scene {
    max-width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature--wide {
    grid-column: span 2;
  }
  .feature--tall {
    grid-row: span 1;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-connector { display: none; }
  .step { border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .stats {
    flex-direction: column;
    gap: 40px;
  }
  .stat-divider { display: none; }
  .stat { padding: 0; }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature--wide {
    grid-column: span 1;
  }
  .howitworks, .features, .manifesto, .closing {
    padding-left: 20px;
    padding-right: 20px;
  }
  .stat-number { font-size: 3rem; }
  .hero-headline { font-size: 2rem; }
  .manifesto-quote { font-size: 1.25rem; }
}