/* ==========================================================================
   HYPERPULSEAI — STYLESHEET (V1 PRODUCTION)
   ========================================================================== */

/* ── FONTS IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Color Palette */
  --bg: #07090E;
  --bg-sec: #0D1017;
  --bg-ter: #121622;
  --card: #101420;
  --card-hover: #141A2B;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 229, 204, 0.2);
  --border-active: rgba(46, 134, 255, 0.4);
  
  --accent: #00E5CC;
  --accent-rgb: 0, 229, 204;
  --accent-dim: rgba(0, 229, 204, 0.1);
  --accent-glow: rgba(0, 229, 204, 0.15);
  
  --accent2: #2E86FF;
  --accent2-rgb: 46, 134, 255;
  --accent2-dim: rgba(46, 134, 255, 0.1);
  --accent2-glow: rgba(46, 134, 255, 0.15);

  --accent-purple: #8B5CF6;
  --accent-purple-dim: rgba(139, 92, 246, 0.1);

  --text: #F3F5F9;
  --text-muted: rgba(243, 245, 249, 0.65);
  --text-dim: rgba(243, 245, 249, 0.4);

  /* Spacing */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  /* Typography Stacks */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── RESET & BASE STYLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky nav */
}

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

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-ter);
  border: 2px solid var(--bg);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent2-dim);
}

/* ── LAYOUT CONTAINERS ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.divider {
  height: 1px;
  background: radial-gradient(circle, var(--border) 0%, transparent 80%);
  border: none;
}

/* ── TYPOGRAPHY SYSTEM ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
}

h4 {
  font-size: 16px;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.section-header {
  max-width: 650px;
  margin-bottom: 64px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  font-size: 18px;
  margin-top: 16px;
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay generations */
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #07090E;
  box-shadow: 0 4px 20px rgba(0, 229, 204, 0.15);
}

.btn-primary:hover {
  background: #00ffd5;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 229, 204, 0.3);
}

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

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-link svg {
  transition: transform 0.2s ease;
}

.btn-link:hover {
  color: #00ffd5;
  gap: 10px;
}

.btn-link:hover svg {
  transform: translateX(2px);
}

/* ── STICKY NAV BAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(7, 9, 14, 0.9);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.logo-favicon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 0 15px rgba(46, 134, 255, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-text span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

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

/* Mobile Nav Toggle */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  outline: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-sec);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-cta {
    display: none; /* Hidden on mobile header, placed in nav drawer */
  }

  .nav-links .mobile-cta {
    margin-top: 16px;
    display: block;
  }

  /* Hamburger transform when menu is open */
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 901px) {
  .nav-links .mobile-cta {
    display: none;
  }
}

/* ── HERO SECTION ── */
.hero {
  padding-top: 160px;
  padding-bottom: 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(circle, rgba(46, 134, 255, 0.06) 0%, rgba(0, 229, 204, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.status-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

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

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero Node Graph Illustration */
.hero-visual {
  background: radial-gradient(circle at center, rgba(16, 20, 32, 0.6) 0%, rgba(7, 9, 14, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  aspect-ratio: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.03) 0%, rgba(46, 134, 255, 0.03) 100%);
  pointer-events: none;
}

.node-graph-container {
  width: 100%;
  height: 100%;
}

/* Node graph svg rules */
.glow-pulse {
  animation: svg-pulse 3s ease-in-out infinite;
}

@keyframes svg-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.65; }
}


.center-node {
  animation: center-glow 4s ease-in-out infinite alternate;
}

@keyframes center-glow {
  0% { filter: drop-shadow(0 0 2px rgba(0, 229, 204, 0.3)); }
  100% { filter: drop-shadow(0 0 12px rgba(0, 229, 204, 0.6)); }
}

/* Connection line animation */
.dash-flow {
  stroke-dasharray: 8 8;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }
}

/* ── SOCIAL PROOF STRIP ── */
.social-strip {
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.social-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.social-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-ter);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.logo-pill svg {
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.logo-pill:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.logo-pill:hover svg {
  opacity: 1;
}

/* ── SERVICES SECTION ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 204, 0.03);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon.teal {
  background: var(--accent-dim);
  color: var(--accent);
}

.card-icon.blue {
  background: var(--accent2-dim);
  color: var(--accent2);
}

.card-icon.purple {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

.card-icon.gray {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card .btn-link {
  margin-top: auto;
}

/* Software Detail Row Cards */
.card.software-card {
  padding: 18px 20px;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.card.software-card .card-icon {
  width: 36px;
  height: 36px;
  margin: 0;
  flex-shrink: 0;
}

.card.software-card h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
}

.card.software-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .card.software-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 12px;
  }
}

/* ── DETAIL ROWS ── */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.detail-row.align-start {
  align-items: start;
}

.detail-row.reverse {
  direction: rtl;
}

.detail-row.reverse > * {
  direction: ltr; /* Reset text direction inside columns */
}

.detail-col {
  display: flex;
  flex-direction: column;
}

.detail-col h2 {
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Capability List */
.capability-list {
  list-style: none;
  margin-top: 32px;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

.capability-list li:first-child {
  border-top: 1px solid var(--border);
}

.cap-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Impact Grid */
.impact-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.impact-card {
  background: var(--bg-ter);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.impact-card:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateX(2px);
}

.impact-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

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

@media (max-width: 900px) {
  .detail-row, .detail-row.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── ARTIFICIAL INTELLIGENCE DETAIL ── */
.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.ai-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

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

.ai-card h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.ai-card.teal h4 { color: var(--accent); }
.ai-card.blue h4 { color: var(--accent2); }

.ai-card p {
  font-size: 13px;
  line-height: 1.5;
}

/* AI Stepper timeline */
.stepper-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.stepper-sub {
  font-size: 14px;
  margin-bottom: 28px;
}

.stepper {
  position: relative;
  padding-left: 20px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 31px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  position: relative;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-ter);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg);
  transition: all 0.3s ease;
}

.step:hover .step-num {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 10px rgba(0, 229, 204, 0.4), 0 0 0 4px var(--bg);
}

.step-content h4 {
  font-size: 15px;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.step:hover .step-content h4 {
  color: var(--accent);
}

.step-content p {
  font-size: 13px;
  line-height: 1.5;
}


/* ── SOFTWARE DEVELOPMENT (IDE PANEL) ── */
.ide-panel {
  background: #0B0E17;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
}

.ide-header {
  background: #111522;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.ide-controls {
  display: flex;
  gap: 6px;
}

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

.ide-dot.red { background: #FF5F56; }
.ide-dot.yellow { background: #FFBD2E; }
.ide-dot.green { background: #27C93F; }

.ide-tabs {
  display: flex;
  gap: 2px;
  margin-left: 20px;
  height: 100%;
}

.ide-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 11px;
  color: var(--text-dim);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  height: 100%;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.ide-tab.active {
  background: #0B0E17;
  color: var(--text);
  border-bottom-color: var(--accent);
}

.ide-title-bar {
  font-size: 11px;
  color: var(--text-dim);
}

.ide-body {
  padding: 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
  color: #ABB2BF;
  flex-grow: 1;
  display: none;
}

.ide-body.active {
  display: block;
}

.ide-line {
  display: flex;
}

.line-num {
  width: 28px;
  color: rgba(255, 255, 255, 0.15);
  text-align: right;
  padding-right: 12px;
  user-select: none;
  flex-shrink: 0;
}

.line-content {
  white-space: pre;
}

/* Syntax Highlighting */
.keyword { color: #C678DD; }
.string  { color: #98C379; }
.comment { color: #5C6370; font-style: italic; }
.func    { color: #61AFEF; }
.class   { color: #E5C07B; }
.number  { color: #D19A66; }
.tag     { color: #E06C75; }
.attr    { color: #D19A66; }

/* ── STAFF AUGMENTATION ── */
.flex-engagement-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.flex-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

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

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.checklist-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.role-categories-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  transition: all 0.25s ease;
}

.role-card:nth-child(2) { border-left-color: var(--accent2); }
.role-card:nth-child(3) { border-left-color: var(--accent); }
.role-card:nth-child(4) { border-left-color: var(--accent-purple); }

.role-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
}

.role-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.role-card p {
  font-size: 13px;
}

/* ── TECH STACK ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tech-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s ease;
}

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

.tech-block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.tech-block-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-tag {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-tag::before {
  content: '→';
  color: var(--accent2);
  font-size: 12px;
}

.tech-block.double-width {
  grid-column: span 2;
}

.tech-block.double-width .tech-block-tools {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 28px;
}

/* Metrics strip styling */
.metrics-strip {
  display: flex;
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.metric:last-child {
  border-right: none;
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-block.double-width {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    padding: 12px;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .hero-actions {
    margin-bottom: 36px;
  }
  .ai-cards-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .ide-title-bar {
    display: none;
  }
  .ide-tabs {
    margin-left: 10px;
  }
  .ide-tab {
    padding: 0 8px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .tech-block.double-width {
    grid-column: span 1;
  }
  .metrics-strip {
    flex-direction: column;
  }
  .metric {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
  }
  .metric:last-child {
    border-bottom: none;
  }
}

/* ── WHY HYPERPULSE ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s ease;
}

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

.why-card-icon {
  color: var(--accent);
  margin-bottom: 18px;
}

.why-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.6;
}

.pullquote {
  text-align: center;
  max-width: 700px;
  margin: 64px auto 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  padding: 32px;
  background: var(--bg-ter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .pullquote {
    font-size: 16px;
    padding: 24px;
  }
}

/* ── CONTACT & FORM SECTION ── */
.cta-section {
  background: radial-gradient(100% 100% at 50% 100%, rgba(0, 229, 204, 0.03) 0%, rgba(46, 134, 255, 0.01) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 96px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

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

.contact-info p {
  font-size: 18px;
  margin-bottom: 36px;
}

.contact-email {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 16px;
}

.contact-email a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-email a:hover {
  color: #00ffd5;
  text-decoration: underline;
}

.contact-microcopy {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Form Styling */
.contact-form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(0, 229, 204, 0.1);
}

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

.form-alert {
  font-size: 12px;
  color: #FF5F56;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 6px;
}

.form-alert.visible {
  display: flex;
}

/* Success Modal Overlay */
.submit-status-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.submit-status-container.visible {
  display: flex;
}

.submit-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 229, 204, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 204, 0.2);
}

.submit-status-container h3 {
  margin-bottom: 12px;
}

.submit-status-container p {
  font-size: 15px;
  max-width: 320px;
}

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

@media (max-width: 600px) {
  .contact-form-container {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── FOOTER ── */
footer {
  background: var(--bg-sec);
  border-top: 1px solid var(--border);
  padding: 80px 0 48px;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-email svg {
  color: var(--accent);
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

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

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
  padding-left: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── REDUCED MOTION PREFERENCE ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .dash-flow {
    animation: none !important;
  }
}
