/* ============================================================
   Phalanx Cyber — Enterprise Security Platform
   Dark theme, glassmorphic cards
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg:          #0A0E1A;
  --bg-surface:  #111827;
  --bg-card:     rgba(17, 24, 39, 0.6);
  --bg-glass:    rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.15);

  /* Text */
  --text:        #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted:  #6B7280;

  /* Accent gradient */
  --accent-1:    #00D4FF;
  --accent-2:    #7B61FF;
  --accent-3:    #A855F7;
  --gradient:    linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-subtle: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(123,97,255,0.15));

  /* Sizing */
  --nav-h:       72px;
  --container:   1240px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-sm:   8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}
.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--new {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

/* ---- SECTION UTILITIES ---- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1);
  border: 1px solid rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.08);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(10,14,26,0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav--scrolled {
  background: rgba(10,14,26,0.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}
.nav__logo-icon { width: 28px; height: 28px; }
.nav__logo-accent { color: var(--accent-1); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a:hover { color: var(--text); }

.nav__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav__dropdown:hover .nav__dropdown-panel,
.nav__dropdown.open .nav__dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
}
.nav__dropdown-col h4,
.nav__dropdown-col h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.nav__dropdown-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.nav__dropdown-col a:hover { color: var(--accent-1); }
.nav__dropdown-col--highlight {
  background: var(--bg-glass);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.nav__dropdown-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav__dropdown-card strong { font-size: 0.95rem; }
.nav__dropdown-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.link-arrow { color: var(--accent-1); font-size: 0.82rem; font-weight: 600; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile */
@media (max-width: 960px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav__dropdown-panel { display: none; }
  .nav__actions.open {
    display: flex;
    position: fixed;
    top: calc(var(--nav-h) + 200px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid-lines {
  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: 60px 60px;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(0,212,255,0.12);
  top: -100px;
  right: -100px;
}
.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(123,97,255,0.1);
  bottom: -100px;
  left: -100px;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-1);
  background: rgba(0,212,255,0.06);
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Terminal */
.hero__terminal {
  background: #0D1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #FF5F57; }
.dot--yellow { background: #FFBD2E; }
.dot--green { background: #28CA42; }
.hero__terminal-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hero__terminal-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
}
.term-line { white-space: nowrap; overflow: hidden; }
.term-prompt { color: #28CA42; }
.term-cmd { color: var(--accent-1); font-weight: 600; }
.term-flag { color: var(--accent-2); }
.term-dim { color: var(--text-muted); }
.term-pass { color: #28CA42; font-weight: 600; }
.term-fail { color: #FF5F57; font-weight: 600; }
.term-warn { color: #FFBD2E; font-weight: 600; }
.term-crit { color: #FF5F57; background: rgba(255,95,87,0.15); padding: 1px 6px; border-radius: 3px; font-size: 0.72rem; }
.term-high { color: #F97316; background: rgba(249,115,22,0.15); padding: 1px 6px; border-radius: 3px; font-size: 0.72rem; }
.term-result { color: var(--accent-1); }
.term-score { font-weight: 700; font-size: 1rem; color: #28CA42; }

@media (max-width: 960px) {
  .hero__inner { padding: 48px 0; }
}

/* ================================================================
   STATS
   ================================================================ */
.stats {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
}
.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stats__item {
  text-align: center;
  min-width: 140px;
}
.stats__number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats__plus {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats__label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.stats__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}
@media (max-width: 768px) {
  .stats__divider { display: none; }
  .stats__grid { gap: 24px; }
}

/* ================================================================
   PLATFORM PILLARS
   ================================================================ */
.pillars {
  padding: 120px 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s ease;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pillar-card:hover::before { opacity: 1; }

.pillar-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-1);
  margin-bottom: 20px;
}
.pillar-card__icon svg { width: 100%; height: 100%; }
.pillar-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar-card__desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.pillar-card__stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pillar-card__stats strong {
  color: var(--text);
}
.pillar-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tool-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent-1);
  background: rgba(0,212,255,0.06);
}
.pillar-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: gap 0.2s;
}
.pillar-card__link:hover { color: var(--accent-2); }

@media (max-width: 960px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PRODUCT SHOWCASE
   ================================================================ */
.showcase {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 50%, var(--bg) 100%);
}

/* Filter buttons */
.showcase__filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* Product grid */
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.product-card.hidden {
  display: none;
}
.product-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.product-card__icon {
  font-size: 1.4rem;
  color: var(--accent, var(--accent-1));
}
.product-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.product-card__version {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 4px;
}
.product-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}
.product-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__meta span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 1100px) {
  .showcase__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .showcase__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .showcase__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CAPABILITIES
   ================================================================ */
.capabilities {
  padding: 120px 0;
}
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.cap-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
}
.cap-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent-1);
  margin-bottom: 16px;
}
.cap-card__icon svg { width: 100%; height: 100%; }
.cap-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cap-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .capabilities__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   ARCHITECTURE
   ================================================================ */
.architecture {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
}
.architecture__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.arch-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.arch-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.arch-step__num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.arch-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.arch-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Diagram */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.arch-node {
  width: 100%;
  max-width: 280px;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.arch-node span { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.arch-node small { font-size: 0.78rem; color: var(--text-muted); }
.arch-node--source { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.2); }
.arch-node--engine {
  background: var(--gradient-subtle);
  border-color: rgba(123,97,255,0.3);
  padding: 32px;
}
.arch-node--output { background: rgba(40,202,66,0.08); border-color: rgba(40,202,66,0.2); }
.arch-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  animation: bounceArrow 2s infinite;
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 768px) {
  .architecture__layout { grid-template-columns: 1fr; gap: 48px; }
}

/* ================================================================
   COMPLIANCE
   ================================================================ */
.compliance {
  padding: 120px 0;
}
.compliance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.compliance__item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s;
}
.compliance__item:hover { border-color: var(--border-hover); }
.compliance__item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--accent-1);
}
.compliance__item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .compliance__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .compliance__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  padding: 120px 0;
}
.cta-section__inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
}
.cta-section__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 60%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}
.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand .nav__logo { margin-bottom: 12px; }
.footer__tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer__col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent-1); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ================================================================
   PAGE-LEVEL STYLES (products, platform, about)
   ================================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  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: 60px 60px;
  pointer-events: none;
}
.page-hero__glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.1), transparent 60%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Product detail cards */
.product-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.product-detail:hover { border-color: var(--border-hover); }
.product-detail__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.product-detail__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.product-detail__title {
  font-size: 1.4rem;
  font-weight: 800;
}
.product-detail__subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.product-detail__body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.product-detail__desc-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.product-detail__features {
  list-style: none;
}
.product-detail__features li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.product-detail__features li::before {
  content: '>';
  color: var(--accent-1);
  font-weight: 700;
  flex-shrink: 0;
}
.product-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-detail__stat {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.product-detail__stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-detail__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .product-detail__body { grid-template-columns: 1fr; }
  .product-detail { padding: 24px; }
}

/* Platform page pillar sections */
.pillar-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.pillar-section:last-child { border-bottom: none; }
.pillar-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pillar-section:nth-child(even) .pillar-section__inner {
  direction: rtl;
}
.pillar-section:nth-child(even) .pillar-section__inner > * {
  direction: ltr;
}
.pillar-section__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.pillar-section__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.pillar-section__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.pillar-section__tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.pillar-tool-item:hover { border-color: var(--border-hover); }
.pillar-tool-item__name { font-weight: 600; font-size: 0.9rem; }
.pillar-tool-item__meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .pillar-section__inner { grid-template-columns: 1fr; }
  .pillar-section:nth-child(even) .pillar-section__inner { direction: ltr; }
}

/* About page */
.about-section { padding: 80px 0; }
.about-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.about-card__number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.about-card h4 { margin-bottom: 8px; }
.about-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent-1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select option { background: var(--bg-surface); }

@media (max-width: 768px) {
  .about-section__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   EXECUTIVE SECTIONS (index.html redesign)
   ================================================================ */
.exec-section {
  padding: 100px 0;
}

/* Executive Brief cards */
.exec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.exec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.exec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.exec-card--problem::before {
  background: linear-gradient(90deg, #EF4444, #F97316);
}
.exec-card--solution::before {
  background: linear-gradient(90deg, #10B981, #00D4FF);
}
.exec-card__icon {
  margin-bottom: 20px;
}
.exec-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.exec-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.exec-card__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exec-card__points li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.exec-card--problem .exec-card__points li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: #EF4444;
  font-weight: 700;
}
.exec-card--solution .exec-card__points li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 700;
}

@media (max-width: 768px) {
  .exec-grid { grid-template-columns: 1fr; }
  .exec-card { padding: 28px; }
}

/* AI Advantage grid */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}
.ai-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.ai-card__number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}
.ai-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.ai-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ai-grid { grid-template-columns: 1fr; }
}

/* TCO Table */
.tco-table-wrapper {
  overflow-x: auto;
  margin-bottom: 32px;
}
.tco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tco-table th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}
.tco-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.tco-table tbody tr {
  transition: background 0.2s;
}
.tco-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.tco-commercial {
  color: #EF4444 !important;
  font-weight: 600;
}
.tco-oss {
  color: #10B981 !important;
  font-weight: 700;
  font-size: 1.1rem;
}
.tco-total {
  font-size: 1.15rem !important;
}
.tco-table tfoot td {
  border-top: 2px solid var(--border);
  border-bottom: none;
  padding-top: 20px;
}

.tco-note {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 900px;
  margin: 0 auto;
}
.tco-note p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.tco-note strong {
  color: var(--accent-1);
}

/* Vendor Lock-in grid */
.lockin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lockin-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.lockin-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
}
.lockin-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.lockin-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .lockin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lockin-grid { grid-template-columns: 1fr; }
}

/* Pillar "replaces" label */
.pillar-card__replaces {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Board-level questions */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}
.board-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.board-card__who {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient-subtle);
  color: var(--accent-1);
  border: 1px solid rgba(0,212,255,0.2);
  margin-bottom: 16px;
}
.board-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
  color: var(--text);
}
.board-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .board-grid { grid-template-columns: 1fr; }
}

/* Industry context stats */
.context-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.context-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.context-card:hover {
  border-color: var(--border-hover);
}
.context-card__stat {
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.context-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .context-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .context-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FOUNDER PROFILE & TIMELINE (about.html)
   ================================================================ */
.founder-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}
.founder-profile__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.founder-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 60px rgba(0,212,255,0.25);
}
.founder-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.founder-social .btn {
  justify-content: center;
}

@media (max-width: 768px) {
  .founder-profile {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .founder-profile__left {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .founder-avatar {
    width: 120px;
    height: 120px;
    font-size: 2.2rem;
  }
  .founder-social {
    flex-direction: row;
    width: auto;
  }
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), var(--accent-3));
  opacity: 0.3;
}
.timeline__item {
  position: relative;
  margin-bottom: 48px;
}
.timeline__item:last-child {
  margin-bottom: 0;
}
.timeline__marker {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 16px rgba(0,212,255,0.4);
}
.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}
.timeline__content:hover {
  border-color: var(--border-hover);
}
.timeline__period {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gradient-subtle);
  color: var(--accent-1);
  border: 1px solid rgba(0,212,255,0.2);
  margin-bottom: 12px;
}
.timeline__content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline__location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.timeline__content > p:last-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Repository links */
.repo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.repo-list a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}
.repo-list a:hover {
  color: var(--accent-1);
}
.repo-list a::before {
  content: '>';
  color: var(--accent-1);
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.75rem;
}

/* Certification badges row */
.cert-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.cert-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}
.cert-badge:hover {
  border-color: var(--border-hover);
}
.cert-badge__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-badge strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cert-badge span:not(.cert-badge__icon) {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .cert-badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cert-badges { grid-template-columns: 1fr; }
}

/* ================================================================
   ANIMATIONS (scroll reveal)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* Terminal typing animation */
.hero__terminal-body .term-line {
  opacity: 0;
  animation: termFadeIn 0.3s ease forwards;
}
.hero__terminal-body .term-line:nth-child(1)  { animation-delay: 0.3s; }
.hero__terminal-body .term-line:nth-child(2)  { animation-delay: 0.7s; }
.hero__terminal-body .term-line:nth-child(3)  { animation-delay: 1.1s; }
.hero__terminal-body .term-line:nth-child(4)  { animation-delay: 1.5s; }
.hero__terminal-body .term-line:nth-child(5)  { animation-delay: 1.9s; }
.hero__terminal-body .term-line:nth-child(6)  { animation-delay: 2.3s; }
.hero__terminal-body .term-line:nth-child(7)  { animation-delay: 2.7s; }
.hero__terminal-body .term-line:nth-child(8)  { animation-delay: 3.1s; }
.hero__terminal-body .term-line:nth-child(9)  { animation-delay: 3.5s; }
.hero__terminal-body .term-line:nth-child(10) { animation-delay: 3.9s; }
.hero__terminal-body .term-line:nth-child(11) { animation-delay: 4.2s; }
.hero__terminal-body .term-line:nth-child(12) { animation-delay: 4.3s; }
.hero__terminal-body .term-line:nth-child(13) { animation-delay: 4.4s; }
.hero__terminal-body .term-line:nth-child(14) { animation-delay: 4.5s; }

@keyframes termFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- AI DIAGRAMS ---- */
.diagram-container {
  max-width: 900px;
  margin: 0 auto 64px;
  position: relative;
}
.diagram-container--wide {
  max-width: 1100px;
}
.diagram-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Diagram animations */
@keyframes diagramPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes diagramDash {
  to { stroke-dashoffset: -20; }
}
@keyframes diagramGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(0,212,255,0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(0,212,255,0.6)); }
}
@keyframes diagramNodePulse {
  0%, 100% { r: 4; opacity: 0.6; }
  50% { r: 6; opacity: 1; }
}
@keyframes diagramFlowDot {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes diagramOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive diagrams */
@media (max-width: 768px) {
  .diagram-container { margin: 0 auto 40px; }
  .diagram-container--wide { max-width: 100%; }
}

/* =================================================================
   TOOL CATALOGUE — search, filters, cards, detail panels
   ================================================================= */

.catalogue {
  padding: 100px 0 120px;
}

/* Search */
.catalogue__search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 32px;
}
.catalogue__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.catalogue__search {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalogue__search::placeholder { color: var(--text-muted); }
.catalogue__search:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Filters */
.catalogue__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}
.filter-btn__count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  font-size: 0.72rem;
  font-weight: 700;
}
.filter-btn.active .filter-btn__count {
  background: rgba(255,255,255,0.2);
}

/* Card Grid */
.catalogue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Empty state */
.catalogue__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Tool Card */
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.tool-card.hidden {
  display: none;
}

.tool-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.tool-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  flex-shrink: 0;
}
.tool-card__icon svg {
  width: 22px;
  height: 22px;
}
.tool-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.tool-card__version {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-1);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 4px;
}
.tool-card__badge--coming-soon {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
}

.tool-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

.tool-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tool-stat {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tool-tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(123, 97, 255, 0.1);
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 600;
}

.tool-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Small button variant */
.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 10px;
  gap: 6px;
}

/* Detail Panel (inline expansion) */
.tool-detail {
  grid-column: 1 / -1;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hover);
  background: var(--bg-surface);
  margin-bottom: 8px;
  animation: fadeInUp 0.3s ease;
}
.tool-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tool-detail__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.tool-detail__close {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-detail__close:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.tool-detail__body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
}
.tool-detail__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tool-detail__highlights li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.tool-detail__highlights li:last-child { border-bottom: none; }
.tool-detail__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.tool-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-detail__meta {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.tool-detail__meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tool-detail__meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.tool-detail__github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tool-detail__github-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

/* Stats section adjustments */
.stats {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stats__number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats__number--special {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10B981, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Responsive for catalogue */
@media (max-width: 960px) {
  .catalogue__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .tool-detail__body { grid-template-columns: 1fr; }
  .stats__grid { gap: 32px; }
  .hero__inner[style*="grid-template-columns"] { grid-template-columns: 1fr !important; text-align: center !important; }
  .hero__text[style*="align-items"] { align-items: center !important; }
  .hero__title[style*="text-align"] { text-align: center !important; }
  .hero__subtitle[style*="text-align"] { text-align: center !important; }
  .hero__terminal { max-width: 540px; margin: 0 auto; }
  .arch-hex-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .catalogue__grid { grid-template-columns: 1fr; }
  .catalogue__filters { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 0.78rem; }
  .stats__grid { gap: 24px; }
  .stats__number, .stats__number--special { font-size: 1.6rem; }
  .arch-hex-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FRAMEWORKS STRIP  —  infinite scrolling marquee
   ═══════════════════════════════════════════════════════════════ */
.frameworks-strip {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.frameworks-strip__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.frameworks-strip__track {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.frameworks-strip__scroll {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.fw-pill {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.3s;
}
.fw-pill:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   WHY OPEN SOURCE  —  comparison table
   ═══════════════════════════════════════════════════════════════ */
.why-oss {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.comparison-table-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}
.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table__them {
  color: #EF4444 !important;
  text-align: center !important;
}
.comparison-table__us {
  background: rgba(0,212,255,0.06) !important;
  color: var(--accent-1) !important;
  text-align: center !important;
}
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.comparison-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}
.comparison-table__check {
  text-align: center;
  color: #10B981 !important;
  font-weight: 600;
}
.comparison-table__check::before {
  content: "\2713  ";
  color: #10B981;
}
.comparison-table__cost {
  text-align: center;
  color: #EF4444 !important;
  font-weight: 700;
}
.comparison-table__free {
  text-align: center;
  color: #10B981 !important;
  font-weight: 800;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   PLATFORM ARCHITECTURE  —  hex grid overview
   ═══════════════════════════════════════════════════════════════ */
.platform-arch {
  padding: 100px 0;
}
.arch-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.arch-hex-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.arch-hex-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--accent-1)), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.arch-hex-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.arch-hex-card:hover::before { opacity: 1; }
.arch-hex-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--accent) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.arch-hex-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.arch-hex-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.arch-hex-card__count {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1);
  opacity: 0.7;
}
.arch-hex-card--center {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(0,212,255,0.08));
  border-color: rgba(168,85,247,0.2);
}
.arch-hex-card--center:hover {
  border-color: rgba(168,85,247,0.4);
}
