/* ==========================================================================
   300Solutions Design System: Modern Autonomous Tech Aesthetic
   Theme: High-contrast Dark Slate with Cyan / Emerald / Indigo Accents
   ========================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-tertiary: #161c2d;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 54, 0.85);
  --bg-glass: rgba(12, 16, 26, 0.82);
  --bg-code: #0b0f19;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #00f0b5;
  --border-accent: rgba(0, 240, 181, 0.35);

  /* Typography Colors */
  --text-main: #f9fafb;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0a0d14;

  /* Accent Brand Colors */
  --accent-cyan: #00f0b5;
  --accent-cyan-glow: rgba(0, 240, 181, 0.18);
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-hero: radial-gradient(circle at 50% 0%, rgba(0, 240, 181, 0.15) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
  --grad-card-glow: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-accent: linear-gradient(135deg, #00f0b5 0%, #38bdf8 50%, #6366f1 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --grad-accent-text: linear-gradient(135deg, #00f0b5 0%, #38bdf8 100%);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Outfit", var(--font-sans);
  --font-mono: "JetBrains Mono", Consolas, Menlo, monospace;

  /* Layout */
  --container-width: 1200px;
  --container-narrow: 920px;
  --header-height: 74px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--accent-cyan-glow);

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-muted);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--grad-hero);
  background-size: 32px 32px, 100% 100%;
  background-position: 0 0, 0 0;
}

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

a:hover {
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1.2rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  list-style: none;
}

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

code, pre {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-wrapper {
  flex: 1;
  padding-top: var(--header-height);
}

.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 240, 181, 0.1);
  border: 1px solid rgba(0, 240, 181, 0.25);
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: default;
  user-select: none;
}

.brand-logo {
  width: 56px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid rgba(0, 240, 181, 0.28);
  box-shadow: 0 0 14px rgba(0, 240, 181, 0.14);
  background: #0e191e;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand-text-group:hover .brand-name {
  color: var(--accent-cyan);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

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

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.chevron {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  width: 250px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dropdown-menu .divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.35rem 0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  margin: 4px 0;
  transition: var(--transition);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: 0 2px 14px rgba(0, 240, 181, 0.25);
}

.btn-primary:hover {
  background: #22fcd0;
  color: #000;
  box-shadow: 0 4px 22px rgba(0, 240, 181, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 181, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 240, 181, 0.1);
  border-color: var(--accent-cyan);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill-cyan {
  background: rgba(0, 240, 181, 0.1);
  border-color: rgba(0, 240, 181, 0.25);
  color: var(--accent-cyan);
}

.pill-indigo {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  text-align: center;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.3);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 181, 0.15);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-about-artistic {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 50%, #00f0b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.2em;
  display: inline-block;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  color: #cbd5e1;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Stats / Velocity Bar */
.velocity-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
  box-shadow: var(--shadow-md);
}

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

.velocity-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.velocity-number span {
  color: var(--accent-cyan);
}

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

/* ==========================================================================
   Interactive Terminal & Code Mockup
   ========================================================================== */
.terminal-window {
  background: var(--bg-code);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.terminal-badge {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.term-line {
  margin-bottom: 0.5rem;
}

.term-prompt {
  color: var(--accent-cyan);
  margin-right: 0.5rem;
}

.term-cmd {
  color: #fff;
  font-weight: 600;
}

.term-comment {
  color: #64748b;
  font-style: italic;
}

.term-tag {
  background: rgba(0, 240, 181, 0.15);
  color: var(--accent-cyan);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.term-success {
  color: var(--accent-emerald);
}

.term-accent {
  color: var(--accent-blue);
}

/* ==========================================================================
   Human in the Middle (HITM) Framework Section
   ========================================================================== */
.hitm-interactive-wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
}

.hitm-steps-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hitm-step-btn {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  width: 100%;
}

.hitm-step-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.hitm-step-btn.active {
  background: rgba(0, 240, 181, 0.08);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 181, 0.12);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.hitm-step-btn.active .step-num {
  background: var(--accent-cyan);
  color: var(--text-inverse);
}

.step-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: inherit;
}

.step-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hitm-display-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
}

.hitm-panel-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.hitm-panel-title {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.hitm-panel-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.hitm-feature-bullets {
  margin-bottom: 1.75rem;
}

.hitm-feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.hitm-feature-bullets li::before {
  content: "✔";
  color: var(--accent-cyan);
  font-weight: bold;
}

/* ==========================================================================
   The 4 Core Pillars Grid
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0;
  transition: var(--transition);
}

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

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

.pillar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 240, 181, 0.1);
  border: 1px solid rgba(0, 240, 181, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.pillar-card-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.pillar-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pillar-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================================
   Comparison Table (Traditional vs Pure AI vs 300Solutions)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th, .comparison-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.comparison-table th.col-highlight,
.comparison-table td.col-highlight {
  background: rgba(0, 240, 181, 0.04);
  border-left: 1px solid rgba(0, 240, 181, 0.2);
  border-right: 1px solid rgba(0, 240, 181, 0.2);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.status-win {
  color: var(--accent-cyan);
  background: rgba(0, 240, 181, 0.1);
}

.status-warn {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
}

.status-lose {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

/* ==========================================================================
   Architecture Blueprints & Diagrams
   ========================================================================== */
.diagram-box {
  background: var(--bg-code);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.5;
  color: #cbd5e1;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.diagram-box pre {
  margin: 0;
  white-space: pre;
}

/* Split Content Layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.content-block h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.content-block p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Services & Sprints
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.service-tier-card.featured {
  border-color: var(--accent-cyan);
  background: rgba(18, 24, 38, 0.95);
  box-shadow: 0 0 35px rgba(0, 240, 181, 0.15);
}

.tier-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-cyan);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.tier-title {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.tier-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tier-timeline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.tier-features {
  margin-bottom: 2rem;
  flex: 1;
}

.tier-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tier-features li::before {
  content: "✔";
  color: var(--accent-cyan);
}

/* ==========================================================================
   Founder & About Profile
   ========================================================================== */
.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.founder-avatar-wrap {
  text-align: center;
}

.founder-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 181, 0.2);
  margin: 0 auto 1.25rem;
}

.founder-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Tenets Grid */
.tenets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.tenet-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.tenet-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 181, 0.1);
  border: 1px solid rgba(0, 240, 181, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 181, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

.footer-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top-grid {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 440px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo {
  width: 52px;
  height: 35px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid rgba(0, 240, 181, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 181, 0.1);
  background: #0e191e;
  flex-shrink: 0;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 380px;
}

.footer-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-list a:hover {
  color: var(--accent-cyan);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright a {
  color: var(--text-muted);
}

.footer-copyright a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Inline Explainer Popout (Screenshot Style)
   ========================================================================== */
.explain-popout-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}

.explain-trigger-underline {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(0, 240, 181, 0.7);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.explain-trigger-underline:hover,
.explain-trigger-underline:focus-visible {
  color: var(--accent-cyan);
  text-decoration-color: #fff;
  outline: none;
}

.explain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.35);
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: baseline;
  text-decoration: none;
}

.explain-pill:hover,
.explain-pill:focus-visible {
  background: rgba(0, 240, 181, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 181, 0.25);
  color: #fff;
  outline: none;
}

.explain-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.explain-pill:hover .explain-icon-circle {
  opacity: 1;
  transform: scale(1.1);
}

.explain-popout {
  display: block;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #141a24;
  border: 1px solid rgba(0, 240, 181, 0.35);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 181, 0.12);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  text-align: left;
  white-space: normal;
}

.explain-popout.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Caret / arrow pointing down to the pill */
.explain-popout::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #141a24 transparent transparent transparent;
}

.explain-popout::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px;
  border-style: solid;
  border-color: rgba(0, 240, 181, 0.35) transparent transparent transparent;
}

.explain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.explain-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #00f0b5;
  letter-spacing: -0.01em;
}

.explain-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.explain-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.explain-divider {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.65rem 0 0.8rem 0;
}

.explain-body {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .pillars-grid, .hitm-interactive-wrap, .split-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .services-grid, .tenets-grid {
    grid-template-columns: 1fr;
  }
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-quote {
    border-left: none;
    border-top: 3px solid var(--accent-cyan);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }
  .page-wrapper {
    padding-top: 64px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem 1.5rem;
    align-items: stretch;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .velocity-strip {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top-grid {
    flex-direction: column;
    gap: 2rem;
  }
}