/* =====================
   Design Tokens
   ===================== */
:root {
  --teal: #1B8A85;
  --blue: #2671C8;
  --gradient: linear-gradient(135deg, #1B8A85, #2671C8);
  --bg: #ffffff;
  --bg-soft: #F7F9FC;
  --text: #1C2B3A;
  --text-muted: #5A6B7A;
  --border: #E2E8F0;
  --radius: 12px;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   Layout
   ===================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

/* =====================
   Navigation
   ===================== */
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo svg,
.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a.nav-link:hover {
  color: var(--text);
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  opacity: 1;
}

/* =====================
   Hero
   ===================== */
.hero {
  background: var(--bg-soft);
  padding: 104px 0 96px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}

.hero .hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* =====================
   Section Headers
   ===================== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   How It Works — Steps
   ===================== */
.how-it-works {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-connector {
  display: none;
}

/* =====================
   Why Pesto AI — Value Props
   ===================== */
.why {
  background: var(--bg-soft);
}

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* =====================
   Final CTA Section
   ===================== */
.cta-section {
  background: var(--gradient);
  padding: 96px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  letter-spacing: -0.025em;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 14px auto 38px;
  max-width: 480px;
}

/* =====================
   Footer
   ===================== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-logo svg,
.footer-logo img {
  height: 22px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

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

/* =====================
   About Page — Hero
   ===================== */
.about-hero {
  background: var(--bg-soft);
  padding: 80px 0;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.photo-wrap {
  flex-shrink: 0;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  letter-spacing: -0.02em;
}

.about-hero-text .founder-name {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.about-hero-text .founder-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 18px;
}

.about-hero-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 440px;
}

/* =====================
   About Page — Bio
   ===================== */
.about-bio {
  background: var(--bg);
}

.bio-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.bio-inner p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 22px;
}

.bio-inner p:last-child {
  margin-bottom: 0;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 800px) {
  .steps,
  .value-props {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-hero-text p {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .nav-links .btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
