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

:root {
  --blue-50: hsl(214, 100%, 97%);
  --blue-100: hsl(214, 95%, 93%);
  --blue-200: hsl(213, 97%, 87%);
  --blue-400: hsl(213, 94%, 68%);
  --blue-500: hsl(217, 91%, 60%);
  --blue-600: hsl(221, 83%, 53%);
  --blue-700: hsl(224, 76%, 48%);
  --blue-900: hsl(224, 64%, 33%);

  --slate-50: hsl(210, 40%, 98%);
  --slate-100: hsl(210, 40%, 96%);
  --slate-200: hsl(214, 32%, 91%);
  --slate-300: hsl(213, 27%, 84%);
  --slate-400: hsl(215, 20%, 65%);
  --slate-500: hsl(215, 16%, 47%);
  --slate-600: hsl(215, 19%, 35%);
  --slate-700: hsl(215, 25%, 27%);
  --slate-800: hsl(217, 33%, 17%);
  --slate-900: hsl(222, 47%, 11%);

  --surface: hsl(210, 40%, 98%);
  --surface-2: hsl(214, 32%, 95%);
  --text-primary: hsl(222, 47%, 11%);
  --text-secondary: hsl(215, 25%, 22%); /* Darker for better contrast */
  --text-muted: hsl(215, 16%, 40%); /* Darker for better contrast */
  --border: hsl(214, 32%, 85%); /* Slightly more visible */
  --border-light: hsl(214, 40%, 90%);

  --primary: hsl(217, 91%, 60%);
  --primary-light: hsl(214, 100%, 97%);
  --primary-dark: hsl(221, 83%, 53%);

  --shadow-sm: 0 1px 2px 0 hsl(217 91% 60% / 0.05);
  --shadow-md:
    0 4px 16px -2px hsl(217 91% 60% / 0.1),
    0 2px 6px -1px hsl(222 47% 11% / 0.06);
  --shadow-lg:
    0 10px 40px -8px hsl(217 91% 60% / 0.18),
    0 4px 16px -4px hsl(222 47% 11% / 0.08);
  --shadow-xl: 0 24px 64px -12px hsl(217 91% 60% / 0.28);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Easing */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px; /* User requested base 16px */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue {
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

/* ============================================================
   NAVBAR
============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: hsl(210 40% 98% / 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px hsl(217 91% 60% / 0.4);
}

.nav-logo .logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mobile {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  box-shadow: 0 4px 16px hsl(217 91% 60% / 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsl(217 91% 60% / 0.45);
}

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

.btn-outline:hover {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--slate-300);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
============================================================ */
#hero {
  padding-top: 120px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% -20%,
      hsl(213 97% 87% / 0.5) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 30%,
      hsl(217 91% 60% / 0.08) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 20%,
    black 60%,
    transparent 100%
  );
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

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

/* Hero social proof */
.hero-proof {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.proof-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--blue-400);
}

/* ---- DASHBOARD PREVIEW ---- */
.mockup-wrap {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-preview-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow:
    0 20px 50px -12px hsl(222 47% 11% / 0.2),
    0 0 0 1px var(--border-light);
  overflow: hidden;
  position: relative;
}

.dashboard-preview-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.05);
}

/* ============================================================
   PAIN POINTS
============================================================ */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

#pain {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

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

.pain-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: transform;
}

.pain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  opacity: 0;
  transition: opacity 0.3s;
}

.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pain-icon svg {
  width: 24px;
  height: 24px;
}

.pain-icon.red {
  background: hsl(0 72% 51% / 0.08);
  stroke: hsl(0 72% 51%);
}
.pain-icon.amber {
  background: hsl(38 92% 50% / 0.08);
  stroke: hsl(38 92% 50%);
}
.pain-icon.violet {
  background: hsl(262 80% 60% / 0.08);
  stroke: hsl(262 80% 60%);
}

.pain-icon.red svg {
  stroke: hsl(0 72% 51%);
}
.pain-icon.amber svg {
  stroke: hsl(38 92% 50%);
}
.pain-icon.violet svg {
  stroke: hsl(262 80% 60%);
}

.pain-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pain-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.pain-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ============================================================
   FEATURES
============================================================ */
#features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feat-card {
  background: white;
  padding: 48px 40px;
  transition:
    transform 0.5s var(--ease-out),
    background 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feat-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px hsl(217 91% 60% / 0.1),
    0 0 0 1px hsl(217 91% 60% / 0.1);
  z-index: 10;
}

.feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    hsl(217 91% 60% / 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.feat-card:hover::after {
  opacity: 1;
}

.feat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-400);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--blue-100);
}

.feat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-600);
}

.feat-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feat-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.feat-list li::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-400);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ============================================================
   TABS (DEEP DIVE)
============================================================ */
#deepdive {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--blue-500);
  color: white;
  box-shadow: 0 2px 8px hsl(217 91% 60% / 0.35);
}

.tabs-content {
  position: relative;
  min-height: 320px;
}

.tab-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.tab-panel.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
}

.tab-panel-inner {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tab-panel-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tab-panel-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.tab-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.tab-feat-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--blue-100);
}

.tab-feat-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-600);
}

.tab-feat-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tab-feat-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.tab-visual {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-visual-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mini-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mini-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mini-stat-val {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.mini-stat-val.blue {
  color: var(--blue-600);
}
.mini-stat-val.green {
  color: hsl(142 70% 38%);
}
.mini-stat-val.red {
  color: hsl(0 72% 51%);
}
.mini-stat-val.amber {
  color: hsl(38 92% 42%);
}

/* ============================================================
   ARCHITECTURE
============================================================ */
#architecture {
  background: var(--slate-900);
  position: relative;
  overflow: hidden;
}

#architecture .hero-bg {
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 0%,
      hsl(217 91% 60% / 0.15) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 30% 30% at 80% 60%,
      hsl(217 91% 60% / 0.08) 0%,
      transparent 60%
    );
}

#architecture .section-eyebrow {
  color: var(--blue-400);
}
#architecture .section-eyebrow::before {
  background: var(--blue-400);
}

#architecture .section-title {
  color: white;
}
#architecture .section-subtitle {
  color: hsl(215 20% 85%);
} /* Much lighter for better contrast */

.arch-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

.arch-left {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 24px;
}

.arch-right {
  grid-row: span 2;
  height: 100%;
}

.glass-card {
  background: hsl(220 16% 20% / 0.6);
  border: 1px solid hsl(220 16% 30%);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.glass-card:hover {
  background: hsl(220 16% 24% / 0.7);
  border-color: hsl(217 91% 60% / 0.3);
  box-shadow: 0 0 40px hsl(217 91% 60% / 0.08);
}

.glass-card-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-card-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-400);
}

.tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: hsl(220 16% 14%);
  border: 1px solid hsl(220 16% 24%);
  border-radius: var(--radius-md);
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-dot.blue {
  background: var(--blue-400);
}
.tech-dot.green {
  background: hsl(142 70% 55%);
}
.tech-dot.amber {
  background: hsl(38 92% 60%);
}
.tech-dot.violet {
  background: hsl(262 80% 70%);
}
.tech-dot.pink {
  background: hsl(330 80% 65%);
}

.tech-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
  flex: 1;
}

.tech-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: hsl(220 16% 24%);
  color: hsl(215 20% 60%);
  font-family: var(--font-mono);
}

/* Folder structure */
.folder-tree {
  font-family: var(--font-mono);
  font-size: 14px; /* Increased from 12px */
  line-height: 1.8;
  color: hsl(215 20% 85%); /* Lighter for better contrast */
}

.ft-desc {
  font-size: 13px; /* Slightly larger */
  color: hsl(0, 0%, 100%); /* Very light for maximum contrast */
  margin-left: 12px;
  font-weight: 500;
  opacity: 1;
}

.folder-tree .folder {
  color: var(--blue-400);
  font-weight: 600;
}

.folder-tree .file {
  color: hsl(215 20% 80%); /* Lighter for better contrast */
}

.folder-tree .indent {
  padding-left: 16px;
}
.folder-tree .indent2 {
  padding-left: 32px;
}

.folder-tree .highlight {
  color: hsl(142 70% 55%);
}

.mvc-explanation {
  grid-column: 1 / -1;
  background: hsl(220 16% 20% / 0.6);
  border: 1px solid hsl(220 16% 30%);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mvc-item {
  text-align: center;
}

.mvc-letter {
  font-size: 48px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.mvc-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.mvc-desc {
  font-size: 13px;
  color: hsl(215 20% 55%);
  line-height: 1.6;
}

.mvc-divider {
  width: 1px;
  background: hsl(220 16% 28%);
  margin: auto;
}

/* Enhanced folder tree */
.folder-tree {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  color: hsl(215 20% 65%);
}
.folder-tree .folder {
  color: var(--blue-400);
  font-weight: 600;
  cursor: default;
}
.folder-tree .ft-toggle {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.folder-tree .ft-toggle:hover {
  color: hsl(213 97% 78%);
}
.folder-tree .file {
  color: hsl(215 20% 60%);
}
.folder-tree .file.muted {
  color: hsl(215 20% 60%);
}
.folder-tree .highlight {
  color: hsl(142 70% 55%);
}
.folder-tree .indent {
  padding-left: 16px;
}
.folder-tree .indent2 {
  padding-left: 32px;
}

.ft-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid hsl(220 16% 16%);
}
.ft-row:last-child {
  border-bottom: none;
}
.ft-group {
  padding: 5px 0;
  border-bottom: 1px solid hsl(220 16% 16%);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ft-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: hsl(215 20% 60%);
  font-style: italic;
  white-space: normal;
  word-break: break-word;
}
.ft-children {
  overflow: hidden;
  max-height: 1200px;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  opacity: 1;
}
.ft-children.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ============================================================
   FAQ
============================================================ */
#faq {
  background: white;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.faq-item.open {
  border-color: var(--blue-200);
  box-shadow: 0 2px 16px hsl(217 91% 60% / 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--blue-500);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FINAL CTA
============================================================ */
#cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(0 0% 100% / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 17px;
  color: hsl(214 100% 90%);
  line-height: 1.65;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--blue-700);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsl(222 47% 11% / 0.25);
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 2px solid hsl(214 100% 90% / 0.5);
}

/* Footer Form */
.footer-form-col {
  min-width: 300px;
}

.footer-form-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-contact-form {
  position: relative;
}

.footer-input-group {
  display: flex;
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  transition: all 0.3s var(--ease-soft);
  box-shadow: var(--shadow-sm);
}

.footer-input-group:focus-within {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px hsl(217 91% 60% / 0.1);
  transform: translateY(-1px);
}

.footer-input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.footer-btn {
  background: var(--blue-500);
  color: white;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
}

.footer-btn:hover {
  background: var(--blue-600);
  transform: scale(1.05);
}

.footer-btn:active {
  transform: scale(0.95);
}

@media (max-width: 991px) {
  .footer-form-col {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-form-col {
    max-width: 100%;
  }
}

.btn-white-outline:hover {
  background: hsl(0 0% 100% / 0.1);
  border-color: white;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--slate-900);
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo .logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.footer-tagline {
  font-size: 13px;
  color: hsl(215 20% 50%);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: hsl(220 16% 18%);
  border: 1px solid hsl(220 16% 26%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-link:hover {
  background: hsl(220 16% 24%);
  border-color: var(--blue-500);
}

.social-link svg {
  width: 16px;
  height: 16px;
  stroke: hsl(215 20% 55%);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: hsl(215 20% 50%);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid hsl(220 16% 18%);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: hsl(215 20% 40%);
}

.footer-copy a {
  color: hsl(215 20% 50%);
}
.footer-copy a:hover {
  color: white;
}

.footer-credit {
  font-size: 12px;
  color: hsl(215 20% 40%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-credit .heart {
  color: hsl(0 72% 60%);
}

/* ============================================================
   SCROLL ANIMATION INIT
============================================================ */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(32px);
}

.gsap-fade-in {
  opacity: 0;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }
  .arch-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .glass-card {
    padding: 24px;
  }
  .mvc-explanation {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .mvc-divider {
    width: 60%;
    height: 1px;
    margin: 8px auto;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .section-eyebrow {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Architecture Mobile Fixes */
  .arch-grid {
    gap: 16px;
  }
  .glass-card {
    padding: 20px;
  }
  .ft-desc {
    white-space: normal;
    font-size: 11px;
    line-height: 1.4;
    max-width: 100%;
  }
  .ft-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsl(222 47% 2% / 0.98);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition:
      transform 0.4s cubic-bezier(0.85, 0, 0.15, 1),
      opacity 0.4s ease;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .nav-mobile.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-mobile a {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    transition: all 0.2s;
    opacity: 0.8;
  }

  .nav-mobile a:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--blue-400);
  }

  .nav-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: hsl(0 0% 100% / 0.05);
    border: 1px solid hsl(0 0% 100% / 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }

  .nav-close:hover {
    background: hsl(0 0% 100% / 0.1);
    transform: rotate(90deg);
  }

  .nav-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .tab-panel-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero-proof {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
  }

  .db-sidebar {
    display: none;
  }
  .db-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .db-content-row {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .tabs-nav {
    gap: 2px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
