/* ═══════════════════════════════════════════════════════════════
   SemPKM Design System — Shared CSS for homepage + persona pages
   Dark theme · Orange/amber accents · Responsive
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ── */

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

:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border-subtle: #1e1e2e;

  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #6868808a;

  /* Accent */
  --accent-orange: #e8772e;
  --accent-amber: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #e8772e, #f59e0b);
  --accent-glow: rgba(232, 119, 46, 0.15);

  /* Typography */
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Comparison table */
  --strong: #22c55e;
  --medium: #f59e0b;
  --weak: #6b7280;
}

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

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

  /* Graph-paper background: fine minor grid + stronger major grid */
  background-image:
    linear-gradient(rgba(232, 119, 46, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 119, 46, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(152, 152, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 152, 176, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-amber);
}


/* ── Layout Utilities ── */

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

section {
  padding: 6rem 1.5rem;
  background: var(--bg-primary);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}


/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Persona dropdown in nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.65rem;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

/* invisible bridge across the gap so hover survives the mouse travel */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.85rem;
  left: 0;
  right: 0;
  height: 0.85rem;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: var(--accent-glow);
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* GitHub icon in nav */
.nav-github {
  display: flex;
  align-items: center;
}

.nav-github svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}


/* ── Hero ── */

.hero {
  padding: 10rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 119, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero backdrop + product shot (replaces the old animated network canvas) ── */

/* Retired: the body graph-paper background replaced the hero dot texture */
.hero-dotgrid {
  display: none;
  pointer-events: none;
}

.hero-shot {
  position: relative;
  max-width: 1240px;
  margin: 2.25rem auto -6rem;
  height: 580px;
  overflow: hidden;
}

.hero-shot::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(232, 119, 46, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-shot::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary) 92%);
  pointer-events: none;
}

.hero-frame {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-secondary);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(232, 119, 46, 0.07);
  overflow: hidden;
}

.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-frame-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a4a;
  flex-shrink: 0;
}

.hero-frame-url {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-frame-url span {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-primary);
  border-radius: 6px;
  padding: 4px 40px;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero-shot {
    height: 300px;
    margin-top: 2rem;
  }
}

/* ── Features showcase: tab rail + detail panel ── */

.features-showcase {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.feature-tab svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.feature-tab:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.feature-tab.feature-tab-active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent-orange);
}

.feature-tab.feature-tab-active svg {
  opacity: 1;
}

.feature-pane h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-pane > p {
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 3.4em;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.feature-shot {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature-shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  background-image:
    linear-gradient(rgba(152, 152, 176, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 152, 176, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.feature-shot-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.55;
}

/* Mirrored variant for the Mental Models showcase: panel left, rail right */
.models-showcase {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.model-tab-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.models-showcase .feature-tab.feature-tab-active {
  box-shadow: inset -2px 0 0 var(--accent-orange);
}

.model-shot-icon {
  font-size: 2rem;
  opacity: 0.55;
}

.feature-pane .kit-types {
  font-size: 0.85rem;
  color: var(--accent-orange);
  margin-bottom: 0.6rem;
}

/* ── Ecosystem diagram ── */

.ecosystem-scroll {
  overflow-x: auto;
  margin-top: 3rem;
  -webkit-overflow-scrolling: touch;
}

.ecosystem-svg {
  display: block;
  width: 100%;
  min-width: 880px;
  max-width: 1160px;
  height: auto;
  margin: 0 auto;
}

.ecosystem-svg a:hover text {
  fill: var(--accent-orange);
}

.eco-pulse {
  animation: eco-pulse 1.8s ease-in-out infinite;
}

@keyframes eco-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ecosystem-footnote {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ecosystem-footnote a {
  color: var(--accent-orange);
  text-decoration: none;
}

.ecosystem-footnote a:hover {
  text-decoration: underline;
}

/* ── Roadmap ── */

.roadmap-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.roadmap-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-gradient);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.roadmap-copy h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.roadmap-copy > p:not(.kit-types) {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.roadmap-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.roadmap-points svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.roadmap-points strong {
  color: var(--text-primary);
}

.roadmap-visual .feature-shot {
  aspect-ratio: 4 / 3;
  box-shadow: none;
  background-color: var(--bg-secondary);
}

.roadmap-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .roadmap-featured {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

@media (max-width: 900px) {
  .features-showcase {
    grid-template-columns: 1fr;
  }

  .feature-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .feature-tab {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
  }

  .feature-tab.feature-tab-active {
    box-shadow: none;
    border-color: var(--accent-orange);
  }

  .feature-tab svg {
    display: none;
  }

  .models-showcase .feature-tabs {
    order: -1;
  }

  .models-showcase .feature-tab.feature-tab-active {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Content layers sit above the fixed canvas */
section, footer {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.hero-note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}


/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 119, 46, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(232, 119, 46, 0.4);
  color: #fff;
}

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

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

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

.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}


/* ── Persona Selector (3-card grid) ── */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.persona-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.persona-card:hover {
  border-color: rgba(232, 119, 46, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(232, 119, 46, 0.1);
  color: inherit;
}

.persona-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.persona-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.persona-card .persona-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.persona-card ul {
  list-style: none;
  padding: 0;
}

.persona-card ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.persona-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 600;
}

.persona-card .persona-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-orange);
}


/* ── Competitive Comparison Table ── */

.comparison-wrapper {
  margin-top: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--bg-card);
}

.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.comparison-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-card);
}

.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-primary);
}

.comparison-table tbody tr:hover td {
  background: var(--bg-card);
}

.comparison-table tbody tr:hover td:first-child {
  background: var(--bg-card);
}

/* SemPKM column highlight */
.comparison-table th.col-highlight {
  background: linear-gradient(135deg, rgba(232, 119, 46, 0.15), rgba(245, 158, 11, 0.1));
  color: var(--accent-orange);
}

.comparison-table td.col-highlight {
  background: rgba(232, 119, 46, 0.04);
}

.comparison-table tbody tr:hover td.col-highlight {
  background: rgba(232, 119, 46, 0.1);
}

/* Strength indicators */
.str-strong {
  color: var(--strong);
  font-weight: 600;
}

.str-medium {
  color: var(--medium);
}

.str-weak {
  color: var(--weak);
}

.str-none {
  color: var(--weak);
  opacity: 0.5;
}


/* ── Domain Kits (Mental Models) ── */

.kits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.kits-grid .kit-card {
  flex: 1 1 260px;
  max-width: 320px;
}

.kit-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}

.kit-card:hover {
  border-color: rgba(232, 119, 46, 0.2);
  transform: translateY(-2px);
}

.kit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.kit-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.kit-types {
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.kit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── Feature Overview Grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 119, 46, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── CTA Section ── */

.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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


/* ── Footer ── */

.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

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

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--accent-orange);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}


/* ── Animations ── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── Responsive: Tablet ── */

@media (max-width: 768px) {
  section {
    padding: 4rem 1.25rem;
  }

  .hero {
    padding: 8rem 1.25rem 4rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .persona-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kits-grid .kit-card {
    flex-basis: calc(50% - 0.625rem);
    max-width: none;
  }

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

  /* Nav mobile menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .nav-toggle {
    display: block;
  }

  /* Dropdown as flat list on mobile */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-dropdown > a::after {
    display: none;
  }

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

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


/* ── Responsive: Small Mobile ── */

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .kits-grid .kit-card {
    flex-basis: 100%;
  }

  .comparison-table {
    font-size: 0.82rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.65rem 0.85rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Persona Page Components — Step Cards, Pain Cards, Before/After
   ═══════════════════════════════════════════════════════════════ */

/* ── Pain Point Cards ── */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.pain-card {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid #ef4444;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  transition: border-color 0.2s, transform 0.2s;
}

.pain-card:hover {
  border-left-color: #f87171;
  transform: translateY(-2px);
}

.pain-card strong {
  color: var(--text-primary);
  font-weight: 600;
}


/* ── Step Cards (Migration / Onboarding) ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  counter-reset: step-counter;
}

.step-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
  counter-increment: step-counter;
}

.step-card:hover {
  border-color: rgba(232, 119, 46, 0.3);
  transform: translateY(-2px);
}

.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── Before / After Comparison ── */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.before-col,
.after-col {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.before-col h3,
.after-col h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.before-col h3 {
  color: var(--weak);
}

.after-col h3 {
  color: var(--accent-orange);
}

.before-col ul,
.after-col ul {
  list-style: none;
  padding: 0;
}

.before-col li,
.after-col li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.before-col li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 600;
}

.after-col li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--strong);
  font-weight: 600;
}


/* ── Persona Components: Responsive ── */

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

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

  .before-after {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pain-card {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  .step-card {
    padding: 1.5rem 1.25rem;
  }

  .step-number {
    font-size: 1.75rem;
  }
}


/* ── Contact forms ── */

.contact-layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  text-align: left;
}

.contact-copy .section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.contact-copy .section-subtitle {
  margin: 0;
}

.contact-privacy {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.contact-form {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(28, 28, 40, 0.96), rgba(18, 18, 26, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field > span,
.contact-consent span {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid #2b2b3d;
  border-radius: var(--radius-sm);
  outline: none;
  background: #0f0f17;
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #66667c;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #3a3a50;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent-orange);
  background: #12121b;
  box-shadow: 0 0 0 3px rgba(232, 119, 46, 0.13);
}

.contact-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
  cursor: pointer;
}

.contact-consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent-orange);
  flex: 0 0 auto;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.15rem;
}

.contact-form-footer .btn {
  flex: 0 0 auto;
}

.contact-form-status {
  min-height: 1.4em;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.4;
}

.contact-form-status.is-success {
  color: var(--strong);
}

.contact-form-status.is-error {
  color: #f87171;
}

.contact-form.is-submitting {
  opacity: 0.82;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-field-full,
  .contact-consent {
    grid-column: auto;
  }

  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-footer .btn {
    justify-content: center;
    width: 100%;
  }
}
