/* ═══════════════════════════════════════════════════════════════════════
   SQUATCH - Welcoming, Clear, Human

   Design Principles:
   - Lead with clarity, not mysticism
   - Warm colors, not intimidating
   - Readable, not cryptic
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Warmer, more welcoming palette */
  --bg-dark: #1a1f2e;
  --bg-card: #242938;
  --bg-hover: #2d3344;
  --text-primary: #f0f2f5;
  --text-secondary: #a0a8b8;
  --text-dim: #6b7280;
  --accent: #10b981;        /* Friendly green */
  --accent-hover: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --border: #3d4455;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO - Clear and Inviting
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.logo-mark {
  font-size: 4rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

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

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  text-decoration: none;
  border-color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

section {
  margin: 5rem 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   PROBLEM SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.problem-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.problem-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.problem-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.problem-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   SOLUTION SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.solution-main {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
}

.solution-headline {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.solution-headline em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.solution-list {
  list-style: none;
}

.solution-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.solution-list strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   GATES SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.gates-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.gate-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gate {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.gate:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.gate-num {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
}

.gate-name {
  color: var(--text-primary);
  font-weight: 500;
}

.gate-why {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.gates-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--accent-soft);
  border-radius: 8px;
  text-align: center;
  color: var(--text-secondary);
}

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

/* ═══════════════════════════════════════════════════════════════════════
   DEMO SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.demo-box {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}

.demo-placeholder {
  margin-bottom: 1.5rem;
}

.demo-placeholder p:first-child {
  font-size: 1.25rem;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.demo-note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   AUDIENCE SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.audience-card {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.audience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.audience-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.audience-card li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
}

.audience-card li::before {
  content: '✓ ';
  color: var(--accent);
}

.audience-action {
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   TRUST SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* ═══════════════════════════════════════════════════════════════════════
   PHILOSOPHY SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.philosophy {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.philosophy-content {
  max-width: 600px;
}

.philosophy-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.philosophy blockquote {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-primary);
  font-style: italic;
}

.philosophy-deeper {
  margin-top: 1.5rem;
}

.philosophy-deeper a {
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-legal {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

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

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

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .gate-why {
    display: none;
  }

  section {
    margin: 3rem 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

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

.hero {
  animation: fadeInUp 0.6s ease-out;
}

section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.15s; }
section:nth-of-type(3) { animation-delay: 0.2s; }
section:nth-of-type(4) { animation-delay: 0.25s; }
section:nth-of-type(5) { animation-delay: 0.3s; }
section:nth-of-type(6) { animation-delay: 0.35s; }
section:nth-of-type(7) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════════════════════ */

::selection {
  background: var(--accent);
  color: #fff;
}
