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

:root {
  --clr-bg: #faf8f5;
  --clr-bg-alt: #f0ebe4;
  --clr-text: #2d2a26;
  --clr-text-soft: #5c5650;
  --clr-accent: #b44d8c;
  --clr-accent-hover: #9a3d76;
  --clr-white: #ffffff;
  --clr-card-shadow: rgba(0, 0, 0, 0.04);
  --clr-card-shadow-hover: rgba(0, 0, 0, 0.08);
  --clr-border: rgba(0, 0, 0, 0.06);
  --clr-hero-start: #fdf6fa;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --max-w: 1080px;
}

[data-theme="dark"] {
  --clr-bg: #1a1a2e;
  --clr-bg-alt: #16213e;
  --clr-text: #e8e6e3;
  --clr-text-soft: #a8a4a0;
  --clr-accent: #d4699e;
  --clr-accent-hover: #e07db2;
  --clr-white: #242442;
  --clr-card-shadow: rgba(0, 0, 0, 0.2);
  --clr-card-shadow-hover: rgba(0, 0, 0, 0.35);
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-hero-start: #1e1e3a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 48px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
h4 { font-size: 1rem; margin-bottom: 12px; color: var(--clr-text); }

p { color: var(--clr-text-soft); }

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

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--clr-accent); }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--clr-text); }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle svg,
.nav-toggle [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--clr-text);
}

/* ── Dark Mode Toggle (in nav) ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--clr-bg-alt);
}

.theme-toggle svg,
.theme-toggle [data-lucide] {
  width: 18px;
  height: 18px;
  stroke: var(--clr-text-soft);
  fill: none;
  stroke-width: 2;
}

.theme-toggle .icon-moon,
.theme-toggle [data-lucide="moon"] { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle [data-lucide="sun"] { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle [data-lucide="moon"] { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--clr-accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--clr-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 77, 140, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
}
.btn-outline:hover {
  background: var(--clr-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 48px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(170deg, var(--clr-hero-start) 0%, var(--clr-bg) 100%);
}

.page-hero {
  text-align: center;
  padding: 80px 24px 64px;
  background: linear-gradient(170deg, var(--clr-hero-start) 0%, var(--clr-bg) 100%);
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 20px;
}

.hero h1, .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--clr-text);
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero h1 em, .page-hero h1 em {
  color: var(--clr-accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--clr-text-soft);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section {
  padding: 80px 24px;
}

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

.section-lead {
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: -20px auto 48px;
}

.section-action {
  text-align: center;
  margin-top: 40px;
}

/* ── Grid ── */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── Cards ── */
.card {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 16px var(--clr-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--clr-card-shadow-hover);
}

.card-compact { padding: 24px 20px; }

.card-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-alt);
  border-radius: 8px;
}

.card-icon svg,
.card-icon [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--clr-text-soft);
  fill: none;
  stroke-width: 2;
}

.card h3 { font-size: 1.1rem; color: var(--clr-text); margin-bottom: 8px; }
.card p { font-size: 0.9rem; }

/* ── Values ── */
.value {
  padding: 28px;
  border-left: 3px solid var(--clr-accent);
  background: var(--clr-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.value h3 { color: var(--clr-accent); }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

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

/* ── About / Story ── */
.about-content {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

.about-content p + p { margin-top: 16px; }

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 680px;
  margin: 0 auto;
}

.founder {
  text-align: center;
  padding: 32px 28px;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--clr-card-shadow);
}

.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.founder-avatar svg,
.founder-avatar [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--clr-text-soft);
  fill: none;
  stroke-width: 2;
}

.founder h3 { color: var(--clr-text); margin-bottom: 4px; }
.founder .founder-role { font-size: 0.8rem; color: var(--clr-accent); font-weight: 600; margin-bottom: 10px; }
.founder p:last-child { font-size: 0.9rem; }

/* ── Founders Photo Section ── */
.founders-photo-section {
  max-width: 720px;
  margin: 0 auto;
}

.founders-photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px var(--clr-card-shadow-hover);
}

.founders-bios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.founder-bio {
  padding: 24px;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--clr-card-shadow);
}

.founder-bio h3 { color: var(--clr-text); margin-bottom: 4px; }
.founder-bio .founder-role { font-size: 0.8rem; color: var(--clr-accent); font-weight: 600; margin-bottom: 10px; }
.founder-bio p:last-child { font-size: 0.9rem; }

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

.story-block {
  padding: 32px 28px;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--clr-card-shadow);
}

.story-block-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.story-block-icon svg,
.story-block-icon [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--clr-text-soft);
  fill: none;
  stroke-width: 2;
}

.story-block h3 { color: var(--clr-text); margin-bottom: 8px; font-size: 1.1rem; }
.story-block p { font-size: 0.9rem; line-height: 1.7; }

/* ── Problem Cards ── */
.problem-card {
  padding: 32px 28px;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--clr-card-shadow);
}

.problem-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.problem-card-header svg,
.problem-card-header [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--clr-text-soft);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.problem-card-header h3 { margin-bottom: 0; color: var(--clr-text); font-size: 1.1rem; }

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem-list li {
  position: relative;
  padding-left: 16px;
  color: var(--clr-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.problem-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-accent);
}

/* ── Industry Tags ── */
.industry-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--clr-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--clr-card-shadow-hover);
}

.industry-tag svg,
.industry-tag [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--clr-text-soft);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.industry-tag span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-text);
}

/* ── Feature Blocks (subpages) ── */
.feature-block {
  padding: 32px 28px;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--clr-card-shadow);
  margin-bottom: 24px;
}

.feature-block:last-child { margin-bottom: 0; }

.feature-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feature-block-header svg,
.feature-block-header [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.feature-block-header h3 { margin-bottom: 0; color: var(--clr-text); }
.feature-block > p { font-size: 0.9rem; margin-bottom: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-item {
  padding: 16px;
  background: var(--clr-bg);
  border-radius: 8px;
}

.feature-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.feature-item span {
  font-size: 0.8rem;
  color: var(--clr-text-soft);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}

.feature-link svg,
.feature-link [data-lucide] {
  width: 14px;
  height: 14px;
}

/* ── Tags ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-list-center { justify-content: center; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--clr-bg);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-text-soft);
}

/* ── Check Lists ── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--clr-text-soft);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.check-list-x li::before {
  background: var(--clr-text-soft);
}

/* ── Contrast Cards (About: is/is not) ── */
.contrast-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--clr-white);
  box-shadow: 0 2px 16px var(--clr-card-shadow);
}

.contrast-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--clr-text);
}

.contrast-is h3 { color: var(--clr-accent); }

/* ── Code Blocks ── */
.code-block {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--clr-text-soft);
  overflow-x: auto;
  margin-top: 12px;
}

.code-inline {
  display: inline-block;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--clr-text-soft);
  margin-top: 12px;
}

.profile-includes {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

/* ── Flow Diagram ── */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.flow-step {
  padding: 10px 20px;
  background: var(--clr-bg);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
}

.flow-arrow svg,
.flow-arrow [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--clr-text-soft);
}

/* ── CLI Table ── */
.cli-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cli-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 16px 24px;
  background: var(--clr-white);
  align-items: center;
}

.cli-row code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--clr-accent);
}

.cli-row span {
  font-size: 0.9rem;
  color: var(--clr-text-soft);
}

/* ── CTA ── */
.section-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(170deg, var(--clr-hero-start) 0%, var(--clr-bg-alt) 100%);
}

.section-cta h2 { margin-bottom: 16px; }
.section-cta .section-lead { margin-bottom: 40px; }

/* ── Footer ── */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--clr-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--clr-text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--clr-text-soft);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--clr-text-soft);
  font-weight: 500;
}
.footer-links a:hover { color: var(--clr-accent); }

.footer-copy p {
  font-size: 0.8rem;
  color: var(--clr-text-soft);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }

  .cli-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flow-diagram { flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 20px 48px; }
  .page-hero { padding: 48px 20px 40px; }
  .section { padding: 56px 20px; }
  .card { padding: 24px 20px; }
  .founder { padding: 24px 20px; }
  .story-block { padding: 24px 20px; }
  .problem-card { padding: 24px 20px; }
  .industry-tag { padding: 16px 20px; }
  .feature-block { padding: 24px 20px; }
}
