/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
    Consolas, 'Liberation Mono', monospace;

  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-text: #111111;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-accent: #059669;
  --color-accent-hover: #047857;
  --color-accent-light: #d1fae5;

  --max-width: 1200px;
  --max-width-narrow: 720px;
  --radius: 6px;
  --radius-sm: 4px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ============================
   UTILITIES
   ============================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--color-text-muted); font-size: 0.9rem; }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-bg-alt); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ============================
   HEADER / NAV
   ============================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 60px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.75rem;
  padding: 7px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.hero-h1 {
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #000000;
}

.hero-sub {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.5;
  max-width: 520px;
}

.hero-highlight {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.35rem;
  background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-trust {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  padding: 5px 12px;
  background: #f3f4f6;
  border-radius: 100px;
  letter-spacing: -0.01em;
}

.hero-demo {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================
   CHAT MOCKUP
   ============================ */
.chat-mockup {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 8px solid #1f1f1f;
}

.chat-header {
  background: #075e54;
  padding: 0.75rem 1rem;
}

.chat-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.chat-contact-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.chat-contact-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.chat-messages {
  background: #e5ddd5;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
  padding: 1.25rem 1rem;
  min-height: 420px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  display: flex;
  justify-content: flex-start;
  animation: slideIn 0.3s ease-out;
}

.chat-message-user {
  justify-content: flex-end;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.chat-message-user .chat-bubble {
  background: #dcf8c6;
  color: #111111;
}

.chat-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.375rem;
}

.chat-text:last-of-type {
  margin-bottom: 0.5rem;
}

.chat-time {
  font-size: 0.7rem;
  color: #667781;
  text-align: right;
  margin-top: 0.25rem;
}

.chat-message-user .chat-time {
  color: #667781;
}

/* ============================
   STEPS
   ============================ */
.section-center {
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  margin-top: 3rem;
}

.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ============================
   FEATURES
   ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: left;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #374151;
}

.feature-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================
   PRICING
   ============================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: box-shadow 0.2s;
  background: var(--color-bg);
}

.pricing-card:hover {
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
  border-color: var(--color-accent-light);
}

.pricing-card-featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
  background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-features li {
  font-size: 0.9rem;
  color: #374151;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.plan-features li:last-child { border-bottom: none; }

.pricing-note {
  background: var(--color-accent-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

/* ============================
   ROADMAP
   ============================ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.roadmap-column {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.roadmap-header {
  padding: 1.25rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roadmap-header h3 {
  font-size: 1rem;
  margin: 0;
  color: #fff;
}

.roadmap-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.roadmap-list {
  padding: 1.5rem;
}

.roadmap-list li {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.roadmap-list li:last-child { border-bottom: none; }

.roadmap-shipped li {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.roadmap-shipped li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
}

.roadmap-building li::before {
  content: '◉';
  color: var(--color-accent);
  font-weight: 700;
}

.roadmap-planned li::before {
  content: '○';
  color: var(--color-text-muted);
  font-weight: 700;
}

/* ============================
   FOUNDER STORY
   ============================ */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-header {
  text-align: center;
  margin-bottom: 3rem;
}

.story-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--color-border);
}

.story-article {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.story-section {
  margin-bottom: 2.5rem;
}

.story-section:last-child {
  margin-bottom: 0;
}

.story-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--color-text);
  border-radius: 2px;
}

.story-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1rem;
}

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

.story-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.story-cta h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.story-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.story-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.cta-inner .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-accent-hover);
}

.cta-subtext {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

.footer-col a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.15s;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 24px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }

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

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-headline { font-size: 2.75rem; }

  .hero-sub {
    font-size: 1.15rem;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links, .nav-actions {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links.open, .nav-actions.open { display: flex; }
  .nav-actions.open { top: auto; border-bottom: none; padding-top: 0; }

  .nav-toggle { display: flex; }

  header .container { position: relative; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }

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

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

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

@media (max-width: 480px) {
  .hero { padding: 50px 0 40px; }
  .hero-grid { gap: 2rem; }
  .hero-headline { font-size: 2.25rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-eyebrow { font-size: 0.7rem; padding: 6px 12px; }
  .trust-item { font-size: 0.75rem; padding: 4px 10px; }

  .chat-mockup {
    max-width: 100%;
    border-width: 6px;
  }

  .chat-messages {
    min-height: 360px;
    max-height: 360px;
  }

  .story-article {
    padding: 1.5rem;
  }
}
