/* ============================================================
   BACON-AI -- Dark-mode design system
   Shared across all pages
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #09090b;
  --bg-secondary: #0a0a0a;
  --bg-card: #111113;
  --bg-card-hover: #18181b;
  --bg-surface: #1a1a1e;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;
  --accent-coral: #fc5185;
  --accent-indigo: #673de6;
  --gradient-brand: linear-gradient(135deg, #f97316, #ef4444, #a855f7);
  --gradient-brand-h: linear-gradient(90deg, #f97316, #ef4444, #a855f7);
  --gradient-accent: linear-gradient(135deg, #673de6, #a855f7);
  --gradient-warm: linear-gradient(135deg, #f97316, #fc5185);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.15) 0%, transparent 60%);
  --accent-warm: #e8956a;
  --accent-forest: #4a9e6f;
  --accent-gold: #d4a843;
  --bg-warm: #12110f;
  --gradient-community: linear-gradient(135deg, #e8956a, #d4a843, #4a9e6f);
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  --shadow-glow: 0 0 40px rgba(168,85,247,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

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

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

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

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

ul { list-style: none; }

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

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.gradient-text {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168,85,247,0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(168,85,247,0.4);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  -webkit-text-fill-color: initial;
}

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

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

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

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

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a .chevron-down {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown:hover > a .chevron-down,
.nav-dropdown:focus-within > a .chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

/* Mobile Nav (hidden on desktop) */
.mobile-nav {
  display: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) { opacity: 0; }

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links, .nav-cta {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(9,9,11,0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
  }

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

  /* Mobile dropdown accordion */
  .mobile-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: color var(--transition);
  }

  .mobile-dropdown-toggle:hover { color: var(--text-primary); }

  .mobile-dropdown-toggle .chevron-down {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
  }

  .mobile-dropdown-toggle.active .chevron-down {
    transform: rotate(180deg);
  }

  .mobile-dropdown-items {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
  }

  .mobile-dropdown-items.open {
    display: flex;
  }

  .mobile-dropdown-items a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, rgba(249,115,22,0.04) 40%, transparent 70%);
  pointer-events: none;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 48px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168,85,247,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(168,85,247,0); }
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(9,9,11,0.5);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 88px;
  text-shadow: 0 1px 8px rgba(9,9,11,0.6);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

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

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   ABOUT / VISION
   ============================================================ */
.about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-visual-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(249,115,22,0.12), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(168,85,247,0.12), transparent 50%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.about-visual-code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  background: rgba(9,9,11,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.code-line { display: block; }
.code-keyword { color: var(--accent-purple); }
.code-string { color: var(--accent-orange); }
.code-fn { color: #60a5fa; }
.code-comment { color: var(--text-muted); }

.about-text h2 { margin-bottom: 24px; }

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-of-type { margin-bottom: 32px; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.about-highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(168,85,247,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-highlight-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-purple);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual { max-width: 100%; aspect-ratio: 4/3; }
  .about-highlights { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURES / SERVICES
   ============================================================ */
.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-subtitle { margin: 0 auto; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.feature-icon--purple { background: rgba(168,85,247,0.1); }
.feature-icon--purple svg { stroke: var(--accent-purple); }

.feature-icon--orange { background: rgba(249,115,22,0.1); }
.feature-icon--orange svg { stroke: var(--accent-orange); }

.feature-icon--coral { background: rgba(252,81,133,0.1); }
.feature-icon--coral svg { stroke: var(--accent-coral); }

.feature-icon--indigo { background: rgba(103,61,230,0.1); }
.feature-icon--indigo svg { stroke: var(--accent-indigo); }

.feature-icon--red { background: rgba(239,68,68,0.1); }
.feature-icon--red svg { stroke: var(--accent-red); }

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-header .section-subtitle { margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: var(--border);
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.how-step-number::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  z-index: -1;
}

.how-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; gap: 48px; }
  .how-steps::before { display: none; }
}

/* ============================================================
   FRAMEWORK (12-Phase)
   ============================================================ */
.framework-header {
  text-align: center;
  margin-bottom: 64px;
}

.framework-header .section-subtitle { margin: 0 auto; }

.framework-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
}

.phase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.phase-number {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.phase-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.phase-card--active {
  border-color: rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.05);
}

.phase-card--active .phase-number { color: var(--accent-purple); }

@media (max-width: 1024px) {
  .framework-timeline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .framework-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .framework-timeline { grid-template-columns: 1fr; }
}

/* ============================================================
   TEAM / FOUNDER
   ============================================================ */
.team {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.team-header .section-subtitle { margin: 0 auto; }

.founder-card {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.founder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-brand);
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
}

.founder-info h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.founder-role {
  font-size: 0.9375rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 16px;
}

.founder-info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.founder-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.founder-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.founder-social a:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.founder-social svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

@media (max-width: 768px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  .founder-social { justify-content: center; }
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-purple);
}

.contact-channel-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-channel-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-channel-value a:hover { color: var(--accent-purple); }

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--accent-purple);
  background: rgba(168,85,247,0.08);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill var(--transition);
}

.social-link:hover svg { fill: var(--text-primary); }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-purple);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

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

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(168,85,247,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

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

.footer-brand .logo { margin-bottom: 16px; display: inline-block; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

/* ============================================================
   WHO WE SERVE (Homepage section)
   ============================================================ */
.serve-header {
  text-align: center;
  margin-bottom: 64px;
}

.serve-header .section-subtitle { margin: 0 auto; }

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

.serve-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.serve-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

.serve-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.serve-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.serve-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.serve-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.serve-card .btn {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   MISC & SCROLLBAR
   ============================================================ */
::selection {
  background: rgba(168,85,247,0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent-purple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================================
   COMMUNITY COMPONENTS
   ============================================================ */

/* --- Community Cards (Who We Help) --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-community);
  opacity: 0;
  transition: opacity var(--transition);
}

.community-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(232,149,106,0.08);
}

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

.community-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.community-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.community-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.community-card .btn { align-self: flex-start; }

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(74,158,111,0.12);
  border: 1px solid rgba(74,158,111,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-forest);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Project Showcase Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.project-card-body {
  padding: 28px;
}

.project-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

/* ============================================================
   SLIDESHOW VIEWER (Framework page)
   ============================================================ */
.slide-viewer {
  position: relative;
  max-width: 960px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.slide-viewer-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.slide-viewer-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.slide-viewer-display img.active { display: block; }

.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(9,9,11,0.7);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
  backdrop-filter: blur(8px);
}

.slide-nav-btn:hover {
  background: rgba(9,9,11,0.9);
  border-color: var(--border-hover);
}

.slide-nav-btn--prev { left: 16px; }
.slide-nav-btn--next { right: 16px; }

.slide-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.slide-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: center;
}

.slide-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.slide-dot.active {
  background: var(--accent-warm);
  box-shadow: 0 0 8px rgba(232,149,106,0.4);
}

.slide-dot:hover {
  background: var(--text-muted);
}

/* --- Framework Content Sections --- */
.fw-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.fw-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.fw-section-header:hover { color: var(--accent-warm); }

.fw-section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-warm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 12px;
}

.fw-section-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.fw-section.open .fw-section-chevron {
  transform: rotate(180deg);
}

.fw-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fw-section.open .fw-section-body {
  max-height: 600px;
}

.fw-section-content {
  padding: 0 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   IMAGE GALLERY (Admin Library)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-card-info {
  padding: 16px;
}

.gallery-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gallery-card-prompt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-actions {
  display: flex;
  gap: 8px;
}

.gallery-card-actions .btn {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* --- Filter Buttons --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.gallery-filter {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.gallery-filter.active {
  background: rgba(232,149,106,0.1);
  border-color: rgba(232,149,106,0.3);
  color: var(--accent-warm);
}
