/* Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-navy: #0F172A;
  --color-white: #FFFFFF;
  --color-orange: #F97316;
  --color-light-gray: #F3F4F6;
  --color-dark-gray: #374151;
  --color-text: #1F2937;
  --color-border: #E5E7EB;
  
  --font-primary: 'Inter', sans-serif;
  
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;
  
  /* Operations / Engineering feel */
  --border-radius: 2px;
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  color: var(--color-dark-gray);
}

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

a:hover {
  color: #c2410c;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-light {
  background-color: var(--color-light-gray);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section-navy h1, .section-navy h2, .section-navy h3, .section-navy p {
  color: var(--color-white);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

/* Grid splits for 2 column layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #ea580c;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn-outline:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
}

/* Header & Navigation */
.site-header {
  background-color: var(--color-navy);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-stack .name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.logo-stack .name strong {
  color: var(--color-white);
  font-weight: 800;
}

.logo-stack .title {
  color: var(--color-orange);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  transition: var(--transition);
}

.logo-stack:hover .title {
  color: #fb923c; /* slightly brightens */
}

/* System Signature */
.brand-workflow {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 160px;
  opacity: 0.7;
  transition: var(--transition);
}

.brand-workflow .node {
  width: 6px;
  height: 6px;
  background-color: #6B7280; /* muted gray */
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.brand-workflow .line {
  flex-grow: 1;
  height: 2px;
  background-color: #4B5563; /* darker muted gray */
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin: 0 -1px;
}

.brand-workflow .line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-orange);
  animation: workflow-flow 2s ease-in-out infinite;
}

.brand-workflow .accent-node {
  background-color: var(--color-orange);
}

.logo-stack:hover .brand-workflow {
  opacity: 1;
}

.logo-stack:hover .brand-workflow .node {
  background-color: #fb923c; /* softly illuminate */
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
}

.logo-stack:hover .brand-workflow .line {
  background-color: rgba(249, 115, 22, 0.2);
}

.logo-stack:hover .brand-workflow .line::after {
  animation-duration: 1s; /* speeds up on hover */
}

@keyframes workflow-flow {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.main-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.main-nav > a,
.main-nav .nav-item > a {
  color: var(--color-light-gray);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a:hover {
  color: var(--color-white);
}

.nav-item {
  position: relative;
  padding: var(--spacing-sm) 0;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  display: none;
  z-index: 100;
  min-width: 600px;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.dropdown-header-link {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: flex-start;
}

.dropdown-footer-link {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
}

.btn-view-all-services {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-orange);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-view-all-services:hover {
  background-color: var(--color-orange);
  color: var(--color-white) !important;
  text-decoration: none;
}

.dropdown-category {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-category h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.25rem;
}

.dropdown-category a {
  color: var(--color-dark-gray);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.25rem 0;
}

.dropdown-category a:hover {
  color: var(--color-orange);
}

/* Background Patterns */
.pattern-nodes {
  background-color: var(--color-navy);
  background-image: url('data:image/svg+xml;utf8,<svg width="320" height="320" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.03)"/><line x1="20" y1="20" x2="300" y2="20" stroke="rgba(255,255,255,0.005)" stroke-width="1"/><line x1="20" y1="20" x2="20" y2="300" stroke="rgba(255,255,255,0.005)" stroke-width="1"/></svg>');
  background-size: 320px 320px;
}

/*
  Circuit Board Trace Pattern — service page hero
  PCB-style right-angle traces with junction pads and faint orange accent nodes.
  Tiles at 200×200px. Designed to feel like an engineering schematic.
*/
.pattern-circuit {
  background-color: var(--color-navy);
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='rgba(255,255,255,0.055)' stroke-width='1' fill='none'%3E%3Cpath d='M0 50 H80 V20'/%3E%3Cpath d='M80 50 V110 H160 V80'/%3E%3Cpath d='M160 80 H200'/%3E%3Cpath d='M0 110 H40 V160 H100'/%3E%3Cpath d='M100 160 V200'/%3E%3Cpath d='M160 110 V200'/%3E%3Cpath d='M40 0 V50'/%3E%3Cpath d='M120 0 V20 H200'/%3E%3Cpath d='M120 20 V80 H160'/%3E%3Cpath d='M0 160 H40'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.09)'%3E%3Ccircle cx='80' cy='50' r='2.5'/%3E%3Ccircle cx='80' cy='110' r='2.5'/%3E%3Ccircle cx='160' cy='110' r='2.5'/%3E%3Ccircle cx='160' cy='80' r='2.5'/%3E%3Ccircle cx='40' cy='110' r='2.5'/%3E%3Ccircle cx='40' cy='160' r='2.5'/%3E%3Ccircle cx='100' cy='160' r='2.5'/%3E%3Ccircle cx='120' cy='20' r='2.5'/%3E%3Ccircle cx='120' cy='80' r='2.5'/%3E%3C/g%3E%3Cg fill='rgba(249,115,22,0.18)'%3E%3Ccircle cx='80' cy='110' r='3.5'/%3E%3Ccircle cx='120' cy='20' r='3'/%3E%3Ccircle cx='40' cy='160' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/*
  Matthew Kontos Accent Stripe Pattern
  45° segmented industrial chevron — Navy / Orange / Light Gray
  Segmented (//// ////) not continuous (///////////////)
  Rule: accent only — never more than 10-15% of visual space
*/
:root {
  /*
    The stripe tile is 36px wide so each segment group (//// gap ////)
    repeats cleanly. Hard color stops create crisp edges.
    stripe order: navy × 2 | orange × 2 | light-gray × 2 | transparent gap
  */
  --stripe-navy:      #0F172A;
  --stripe-orange:    #F97316;
  --stripe-gray:      #F3F4F6;
  --stripe-size:      36px;   /* controls stripe+gap width — adjust 8-12px per band */
}

/*
  Full-tile repeating chevron with edge-framing mask.
  
  The mask-image vignettes the stripe so it:
    - Is fully opaque at the far left/right edges
    - Dissolves to transparent in the center ~30–70% of width
    - Also fades top and bottom corners for a soft frame
  
  The stripes FRAME the content — they do not sit beneath it.
  Content feels illuminated; edges feel branded.
*/
.pattern-chevron {
  position: relative;
  overflow: hidden;
}

.pattern-chevron::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--stripe-navy)   0px,
    var(--stripe-navy)   8px,
    var(--stripe-orange) 8px,
    var(--stripe-orange) 16px,
    var(--stripe-gray)   16px,
    var(--stripe-gray)   24px,
    transparent          24px,
    transparent          36px
  );

  /*
    Horizontal framing mask:
    Opaque at left edge → fades out by 32% →
    invisible across the middle (32%–68%) →
    fades back in from 68% → opaque at right edge.

    Combined with a top/bottom vertical fade so the
    very corners carry the strongest visual weight.
  */
  -webkit-mask-image:
    linear-gradient(
      to right,
      black     0%,
      black     14%,
      transparent 36%,
      transparent 64%,
      black     86%,
      black     100%
    ),
    linear-gradient(
      to bottom,
      black     0%,
      rgba(0,0,0,0.5) 28%,
      rgba(0,0,0,0.5) 72%,
      black     100%
    );
  -webkit-mask-composite: source-in;          /* multiply both masks */
          mask-image:
    linear-gradient(
      to right,
      black     0%,
      black     14%,
      transparent 36%,
      transparent 64%,
      black     86%,
      black     100%
    ),
    linear-gradient(
      to bottom,
      black     0%,
      rgba(0,0,0,0.5) 28%,
      rgba(0,0,0,0.5) 72%,
      black     100%
    );
          mask-composite: intersect;

  opacity: 0.22;        /* raised — mask handles the center fade */
  pointer-events: none;
  z-index: 0;
}

/*
  Radial variant — for non-split layouts (interior pages, centered hero).
  Stripes emerge from all four edges, dissolve toward the center.
*/
.pattern-chevron-radial::before {
  -webkit-mask-image: radial-gradient(
    ellipse 65% 60% at center,
    transparent  0%,
    transparent 28%,
    rgba(0,0,0,0.55) 55%,
    black 100%
  );
          mask-image: radial-gradient(
    ellipse 65% 60% at center,
    transparent  0%,
    transparent 28%,
    rgba(0,0,0,0.55) 55%,
    black 100%
  );
  -webkit-mask-composite: unset;
          mask-composite: unset;
}

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

/*
  Accent Stripe Bar — the standalone thin bar used as a brand accent.
  Usage:  <div class="accent-stripe"></div>
  Apply to the bottom of cards, the footer top, email signatures, etc.
*/
.accent-stripe {
  height: 6px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--stripe-navy)   0px,
    var(--stripe-navy)   8px,
    var(--stripe-orange) 8px,
    var(--stripe-orange) 16px,
    var(--stripe-gray)   16px,
    var(--stripe-gray)   24px,
    var(--stripe-navy)   24px,
    var(--stripe-navy)   36px
  );
  display: block;
  flex-shrink: 0;
}

/* Wider variant for section dividers (footer top, hero bottom) */
.accent-stripe-lg {
  height: 10px;
}

/* Hero-specific stripe bar pinned to the bottom edge of the hero section */
.hero-stripe-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--stripe-navy)   0px,
    var(--stripe-navy)   8px,
    var(--stripe-orange) 8px,
    var(--stripe-orange) 16px,
    var(--stripe-gray)   16px,
    var(--stripe-gray)   24px,
    var(--stripe-navy)   24px,
    var(--stripe-navy)   36px
  );
  opacity: 0.85;
}

/* Operational Dashboard styling for workflow graphic */
.workflow-dashboard {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  font-family: monospace;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9CA3AF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

.dashboard-label {
  color: var(--color-orange);
  font-size: 0.75rem;
  font-weight: 700;
}

.dashboard-body {
  display: flex;
  flex-direction: column;
}

.dashboard-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1F2937;
  border: 1px solid #374151;
  padding: 1rem;
  border-radius: 2px;
  transition: var(--transition);
}

.dashboard-step:hover {
  border-color: #4B5563;
  background: #27303F;
}

.dashboard-step.active-step {
  border-color: var(--color-orange);
  box-shadow: inset 0 0 4px rgba(249, 115, 22, 0.2);
}

.step-icon {
  background: #111827;
  border: 1px solid #374151;
  color: #9CA3AF;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.dashboard-step.active-step .step-icon {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.step-content {
  flex-grow: 1;
}

.step-title {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.step-meta {
  color: #9CA3AF;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.step-badge {
  font-size: 0.7rem;
  background: #374151;
  color: #D1D5DB;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-weight: 600;
}

.step-badge.active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.dashboard-connector {
  display: flex;
  justify-content: center;
  height: 35px;
  margin: 0.25rem 0;
}

.connector-line {
  height: 100%;
}

/* Horizontal Flowchart (How it Works) */
.flowchart-horizontal {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: var(--spacing-md);
}

.flowchart-step {
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  border-left: 4px solid var(--color-navy);
}

.flowchart-step h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-dark-gray);
  margin-bottom: 0.25rem;
}

.flowchart-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
  color: var(--color-navy);
}

.flowchart-arrow {
  color: var(--color-orange);
  font-size: 1.5rem;
  font-weight: bold;
}

/* ─── Workflow Graphic (vertical flow diagram used on service pages) ─── */
.workflow-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: var(--font-primary);
}

.workflow-graphic .node {
  width: 100%;
  background: #1F2937;
  border: 1px solid #374151;
  color: #F9FAFB;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-radius: 2px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.workflow-graphic .node:hover {
  border-color: #4B5563;
  background: #27303F;
}

.workflow-graphic .arrow {
  color: var(--color-orange);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0;
  user-select: none;
}

/* Light variant — for use on white/light-gray backgrounds */
.workflow-graphic.light {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.workflow-graphic.light .node {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
}

.workflow-graphic.light .node:hover {
  border-color: var(--color-dark-gray);
  background: #F9FAFB;
}

.workflow-graphic.light .arrow {
  color: var(--color-orange);
}

/* ─── Problem/Solution visual panels (light background) ─── */
.problem-solution-panel {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
  max-width: 460px;
}

/* ─── Service Hero Panel ─── */
.service-hero-panel {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.service-hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), #fb923c);
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.875rem;
  margin-bottom: 1.25rem;
}

.hero-panel-title {
  color: #9CA3AF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: monospace;
}

.hero-panel-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #10B981;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.hero-panel-badge-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #10B981; }
  50% { opacity: 0.6; box-shadow: 0 0 4px #10B981; }
}

.hero-panel-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-flow-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #1F2937;
  border: 1px solid #374151;
  padding: 0.875rem 1rem;
  border-radius: 2px;
  transition: var(--transition);
}

.hero-flow-step.is-active {
  border-color: var(--color-orange);
  background: rgba(249, 115, 22, 0.04);
  box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.08);
}

.hero-flow-step:hover {
  border-color: #4B5563;
  background: #27303F;
}

.hero-flow-step.is-active:hover {
  border-color: var(--color-orange);
  background: rgba(249, 115, 22, 0.07);
}

.hero-flow-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 2px;
  color: #6B7280;
}

.hero-flow-step.is-active .hero-flow-icon {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.hero-flow-text {
  flex-grow: 1;
}

.hero-flow-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #F9FAFB;
  margin-bottom: 0;
  line-height: 1.3;
}

.hero-flow-sublabel {
  font-size: 0.7rem;
  color: #6B7280;
  margin-top: 0.15rem;
  font-family: monospace;
}

.hero-flow-status {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-flow-status.status-done {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-flow-status.status-running {
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero-flow-status.status-queued {
  background: rgba(107, 114, 128, 0.1);
  color: #6B7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.hero-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0;
  color: #374151;
  font-size: 0.875rem;
}

.hero-flow-connector svg {
  opacity: 0.5;
}

/* Hero Section */
.hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

/* Cards (Strict, Operational) */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-md) var(--spacing-lg);
  transition: var(--transition);
  display: block;
}

.card:hover {
  border-color: var(--color-dark-gray);
}

.card:hover .card-screenshot {
  transform: scale(1.04);
}

.card h3 {
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
}

.card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.card-placeholder {
  border: 1px dashed var(--color-dark-gray);
  background-color: transparent;
  color: var(--color-dark-gray);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: monospace;
}

/* Footer */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='120' viewBox='0 0 1200 120'%3E%3Cg fill='none' stroke='rgba%28255, 255, 255, 0.035%29' stroke-width='1.5'%3E%3Cpath d='M0 20 h1200 M0 60 h1200 M0 100 h1200' /%3E%3Cpath d='M100 0 v120 M300 0 v120 M500 0 v120 M700 0 v120 M900 0 v120 M1100 0 v120' /%3E%3Cpath d='M50 60 h150 l30 -30 h100 l20 20 h80 l30 -30 h150 l20 20 h200 l40 -40 h150' stroke='rgba%28249, 115, 22, 0.09%29' stroke-width='2' /%3E%3Ccircle cx='230' cy='30' r='5' fill='rgba%28249, 115, 22, 0.12%29' stroke='rgba%28249, 115, 22, 0.2%29' /%3E%3Ccircle cx='350' cy='50' r='4' fill='rgba%28255, 255, 255, 0.05%29' /%3E%3Ccircle cx='480' cy='20' r='6' fill='rgba%28249, 115, 22, 0.12%29' stroke='rgba%28249, 115, 22, 0.25%29' /%3E%3Ccircle cx='650' cy='40' r='4' fill='rgba%28255, 255, 255, 0.05%29' /%3E%3Ccircle cx='850' cy='40' r='5' fill='rgba%28249, 115, 22, 0.1%29' /%3E%3Crect x='120' y='40' width='40' height='50' rx='2' /%3E%3Cline x1='120' y1='55' x2='160' y2='55' /%3E%3Cline x1='120' y1='70' x2='160' y2='70' /%3E%3Crect x='520' y='30' width='50' height='60' rx='3' /%3E%3Ccircle cx='545' cy='45' r='3' /%3E%3Ccircle cx='545' cy='60' r='3' /%3E%3Ccircle cx='545' cy='75' r='3' /%3E%3Crect x='760' y='50' width='60' height='40' rx='2' /%3E%3Cpath d='M770 70 h40' /%3E%3Cpath d='M920 30 l-10 10 l10 10 M950 30 l10 10 l-10 10' stroke='rgba%28255, 255, 255, 0.05%29' stroke-width='2' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 1200px 120px;
  background-repeat: repeat-x;
  background-position: center bottom;
  pointer-events: none;
  z-index: 1;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.site-footer a {
  color: var(--color-light-gray);
  margin: 0 var(--spacing-sm);
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--color-orange);
}

.footer-copy {
  margin-top: var(--spacing-lg);
  font-size: 0.75rem;
  color: var(--color-dark-gray);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-md) var(--spacing-lg);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--color-orange);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex-grow: 1;
  padding-right: var(--spacing-lg);
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-content p {
  color: var(--color-white);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.cookie-close {
  background: transparent;
  border: none;
  color: var(--color-light-gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 var(--spacing-sm);
  transition: var(--transition);
}

.cookie-close:hover {
  color: var(--color-orange);
}

/* Mobile Responsive Overrides */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  /* Header & Navigation */
  .site-header .container {
    flex-wrap: wrap;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-wrapper {
    display: none;
    width: 100%;
    background-color: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-sm);
  }
  
  .nav-wrapper.is-open {
    display: block;
  }
  
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .nav-item {
    width: 100%;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-item:hover .dropdown {
    display: none; /* Disable hover on mobile */
  }
  
  .dropdown {
    position: static;
    transform: none;
    min-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: var(--spacing-md) 0 0 0;
    background: transparent;
    display: none;
  }
  
  .nav-item.is-expanded .dropdown {
    display: block;
  }
  
  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .dropdown-header-link {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }
  
  .btn-view-all-services {
    color: var(--color-orange) !important;
  }
  
  .btn-view-all-services:hover {
    color: var(--color-white) !important;
  }
  
  .dropdown-category h4 {
    color: rgba(255,255,255,0.8);
    border-bottom-color: rgba(255,255,255,0.1);
  }
  
  .dropdown-category a {
    color: rgba(255,255,255,0.6);
  }
  
  .dropdown-category a:hover {
    color: var(--color-orange);
  }

  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  
  /* Workflow Dashboard */
  .workflow-dashboard {
    padding: 1rem;
    max-width: 100%;
  }
  
  .dashboard-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .step-icon {
    margin-bottom: 0.25rem;
  }

  /* Flowchart Horizontal Mobile */
  .flowchart-horizontal {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    gap: var(--spacing-sm);
  }
  
  .flowchart-arrow {
    transform: rotate(90deg);
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 1;
    height: 1.5rem;
  }
}

/* Card Glow Outline Animation */
.card-glow-container {
  position: relative;
}

.card-glow-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}

.card-glow-outline .glow-path {
  stroke: #10B981;
  stroke-width: 2px;
  stroke-linecap: round;
  /* Dash of 100% length (100 out of 100) to trace and fully draw the entire outline */
  stroke-dasharray: 100;
  rx: var(--border-radius, 2px);
  ry: var(--border-radius, 2px);
  /* Apply neon drop-shadow glow */
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.8)) drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
  animation: trace-and-glow-anim 5s ease-in-out infinite;
}

@keyframes trace-and-glow-anim {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.6));
    stroke-width: 2px;
  }
  5% {
    opacity: 1;
  }
  75% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.8)) drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
    stroke-width: 2px;
  }
  /* Pause at the fully drawn state, flare up the glow of the entire outline */
  75%, 90% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 1)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.8));
    stroke-width: 3px;
  }
  95%, 100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}
