/* ==========================================================================
   DESAI IT SERVICES // SOFTWARE ENGINEERING STUDIO
   Design System & Master Stylesheet
   
   Palette:
     --bg-base: #090D12 (Obsidian slate)
     --bg-surface: #121720 (Primary card surface)
     --bg-surface-elevated: #1A212D (Hover / elevated surface)
     --text-primary: #E6EDF3 (Crisp off-white)
     --text-muted: #8B949E (Muted neutral)
     --border-hairline: #2B313A (Hairline structural border)
     --amber-accent: #F0A020 (Signal / in-progress state)
     --green-accent: #3FB950 (Verification pass / production state)
     --blue-accent: #58A6FF (Architecture / contract state)
   ========================================================================== */

:root {
  --bg-base: #090D12;
  --bg-surface: #121720;
  --bg-surface-elevated: #1A212D;
  --bg-surface-translucent: rgba(18, 23, 32, 0.92);
  
  --text-primary: #E6EDF3;
  --text-muted: #8B949E;
  --text-dim: #656D76;
  
  --border-hairline: #2B313A;
  --border-subtle: #1C222C;
  --border-hover: #444C56;
  --border-active: #58A6FF;
  
  --amber-accent: #F0A020;
  --amber-glow: rgba(240, 160, 32, 0.16);
  --amber-subtle: rgba(240, 160, 32, 0.08);
  
  --green-accent: #3FB950;
  --green-glow: rgba(63, 185, 80, 0.16);
  --green-subtle: rgba(63, 185, 80, 0.08);

  --blue-accent: #58A6FF;
  --blue-glow: rgba(88, 166, 255, 0.16);
  --blue-subtle: rgba(88, 166, 255, 0.08);
  
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* Prevent layout shift during mobile menu open */
body.mobile-nav-locked {
  overflow: hidden;
  touch-action: none;
}

/* Accessible Focus States */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--amber-accent);
  outline-offset: 3px;
}

/* Typography Utility Classes */
.font-display { font-family: var(--font-display); letter-spacing: -0.025em; }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-amber-accent { color: var(--amber-accent); }
.text-green-accent { color: var(--green-accent); }
.text-blue-accent { color: var(--blue-accent); }
.text-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Responsive Visibility Helpers */
.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline-flex !important;
  }
}

.show-mobile-only {
  display: inline-flex;
}

@media (min-width: 768px) {
  .show-mobile-only {
    display: none !important;
  }
}

.hide {
  display: none !important;
}

/* ==========================================================================
   TOP STATUS / AVAILABILITY BAR
   ========================================================================== */
.top-status-bar {
  background-color: #06090D;
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.45rem 0;
  font-size: 0.75rem;
  position: relative;
  z-index: 50;
  width: 100%;
}

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

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.status-indicator span {
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--green-accent);
  flex-shrink: 0;
}

.pulse-green {
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.status-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.status-stats a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.status-stats a:hover {
  color: var(--amber-accent);
}

.status-stats .separator {
  color: var(--border-hairline);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-surface-translucent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  transition: border-color var(--transition-fast);
  width: 100%;
}

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

@media (min-width: 768px) {
  .header-container {
    height: 4.5rem;
    gap: 1rem;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 0;
}

@media (min-width: 640px) {
  .brand-link {
    gap: 0.85rem;
  }
}

.brand-symbol {
  width: 30px;
  height: 30px;
  background: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--amber-accent);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-text {
    font-size: 1.15rem;
    gap: 0.35rem;
  }
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 640px) {
  .brand-sub {
    font-size: 0.75rem;
  }
}

.desktop-nav {
  display: none;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.85rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.active {
  color: var(--amber-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 0.85rem;
  }
}

/* Header button text adaptation on narrow screens */
.header-btn-text {
  display: inline;
}

@media (max-width: 480px) {
  .header-actions .btn-primary.btn-sm {
    padding: 0.45rem 0.65rem;
    font-size: 0.7rem;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.45rem;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  border-color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  border-radius: 1px;
}

.mobile-toggle[aria-expanded="true"] .hamburger-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: calc(4.15rem + 1px);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 13, 18, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 1.25rem 0 2rem 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 39;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}

@media (min-width: 768px) {
  .mobile-nav {
    top: calc(4.5rem + 1px);
  }
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--amber-accent);
  border-color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

.mobile-nav-link.highlight {
  color: #090D12;
  background-color: var(--amber-accent);
  border-color: var(--amber-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  justify-content: center;
  padding: 0.9rem;
  margin-top: 0.5rem;
}

.mobile-nav-link.highlight:hover {
  background-color: #f7b038;
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  font-size: 0.8125rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.mobile-action-btn:hover {
  border-color: var(--amber-accent);
  color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

.mobile-nav-footer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
}

.mobile-nav-footer a:hover {
  color: var(--amber-accent);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 42px;
  max-width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  min-height: 36px;
}

.btn-primary {
  background-color: var(--amber-accent);
  color: #090D12;
  border-color: var(--amber-accent);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #f7b038;
  border-color: #f7b038;
  box-shadow: 0 0 20px var(--amber-glow);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-hairline);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-outline-green {
  background-color: transparent;
  color: var(--green-accent);
  border-color: rgba(63, 185, 80, 0.4);
}

.btn-outline-green:hover {
  background-color: var(--green-subtle);
  border-color: var(--green-accent);
}

.btn-block {
  width: 100%;
}

.btn-nowrap {
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

@media (min-width: 640px) {
  .btn-nowrap {
    white-space: nowrap;
  }
}

.btn-icon {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   HERO SECTION & SIGNATURE LIFECYCLE PIPELINE
   ========================================================================== */
.hero-section {
  padding: 2.75rem 0 3.25rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
  background: radial-gradient(circle at 50% -15%, rgba(240, 160, 32, 0.08) 0%, rgba(9, 13, 18, 0) 65%);
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4.5rem 0 5rem 0;
  }
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-badge-wrap {
    margin-bottom: 1.5rem;
  }
}

.hero-system-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
  font-size: 0.7rem;
}

@media (min-width: 640px) {
  .hero-system-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
  }
}

.pill-prefix {
  color: var(--amber-accent);
  font-weight: 600;
  white-space: nowrap;
}

.pill-divider {
  color: var(--border-hairline);
}

.pill-text {
  word-break: break-word;
}

.hero-title {
  font-size: clamp(1.85rem, 6.5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  max-width: 980px;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 768px) {
  .hero-title {
    margin-bottom: 1.25rem;
  }
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .hero-subtitle {
    margin-bottom: 3.5rem;
  }
}

/* SIGNATURE LIFECYCLE PIPELINE COMPONENT */
.pipeline-section-wrapper {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  margin-bottom: 2.25rem;
  text-align: left;
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .pipeline-section-wrapper {
    padding: 1.75rem;
    margin-bottom: 3rem;
  }
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .pipeline-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
  }
}

.pipeline-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pipeline-header-title h2 {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  white-space: normal;
  word-break: break-word;
}

.pipeline-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 32px;
}

.btn-replay:hover {
  color: var(--text-primary);
  border-color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

.btn-replay:hover svg {
  transform: rotate(-45deg);
}

.pipeline-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--amber-accent);
  border-radius: 50%;
  animation: pulse-amber 1.5s infinite;
}

@keyframes pulse-amber {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Track & Rail */
.pipeline-container {
  position: relative;
  width: 100%;
}

.pipeline-rail {
  position: absolute;
  top: 48px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: var(--border-hairline);
  z-index: 1;
  display: none;
}

@media (min-width: 900px) {
  .pipeline-rail {
    display: block;
  }
}

.pipeline-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-accent) 0%, var(--amber-accent) 50%, var(--green-accent) 100%);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4 Stage Cards Grid */
.pipeline-stages {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 600px) {
  .pipeline-stages {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .pipeline-stages {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.pipeline-stage-card {
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
  min-width: 0;
}

@media (min-width: 640px) {
  .pipeline-stage-card {
    padding: 1.25rem;
  }
}

.pipeline-stage-card:hover {
  border-color: var(--border-hover);
  background-color: #0E131A;
  transform: translateY(-2px);
}

/* Mobile vertical connector indicator */
@media (max-width: 599px) {
  .pipeline-stage-card:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 1.5rem;
    width: 2px;
    height: 7px;
    background: var(--border-hairline);
    z-index: 1;
    transition: background-color var(--transition-fast);
  }
  .pipeline-stage-card.is-passed:not(:last-child)::after {
    background: var(--green-accent);
  }
  .pipeline-stage-card.is-active:not(:last-child)::after {
    background: var(--amber-accent);
  }
}

/* State highlights */
.pipeline-stage-card.is-active {
  border-color: var(--amber-accent);
  box-shadow: 0 0 20px var(--amber-glow);
}

.pipeline-stage-card.is-passed {
  border-color: var(--green-accent);
  box-shadow: 0 0 16px var(--green-glow);
}

.stage-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.stage-index {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
}

.stage-badge {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
}

.badge-complete {
  background-color: rgba(88, 166, 255, 0.12);
  color: var(--blue-accent);
  border: 1px solid rgba(88, 166, 255, 0.25);
}

.badge-amber {
  background-color: var(--amber-subtle);
  color: var(--amber-accent);
  border: 1px solid rgba(240, 160, 32, 0.3);
}

.badge-testing {
  background-color: rgba(240, 160, 32, 0.12);
  color: var(--amber-accent);
  border: 1px solid var(--amber-accent);
  animation: pulse-border 1.8s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(240, 160, 32, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(240, 160, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 160, 32, 0); }
}

.badge-shipped {
  background-color: var(--green-subtle);
  color: var(--green-accent);
  border: 1px solid rgba(63, 185, 80, 0.35);
  font-weight: 700;
}

/* Stage Node */
.stage-node {
  position: relative;
  width: 14px;
  height: 14px;
  margin-bottom: 0.75rem;
}

.node-circle {
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--border-hairline);
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.pipeline-stage-card.is-active .node-circle {
  background-color: var(--amber-accent);
}

.pipeline-stage-card.is-passed .node-circle {
  background-color: var(--green-accent);
}

.stage-body {
  margin-bottom: 1rem;
  flex-grow: 1;
  min-width: 0;
}

.stage-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.stage-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stage-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.output-label {
  color: var(--text-dim);
  font-size: 0.65rem;
}

.output-code {
  color: var(--text-primary);
  font-size: 0.7rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.pipeline-caption {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-hairline);
  line-height: 1.5;
}

.caption-icon {
  color: var(--amber-accent);
  flex-shrink: 0;
}

/* Hero Actions & Studio Specs */
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    gap: 1rem;
    margin-bottom: 3.5rem;
  }
}

.hero-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 920px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  text-align: left;
}

@media (min-width: 768px) {
  .hero-specs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 2rem;
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.spec-label {
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}

.spec-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

@media (min-width: 640px) {
  .spec-value {
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   SHARED SECTION HEADINGS
   ========================================================================== */
.section-heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

@media (min-width: 768px) {
  .section-heading {
    margin-bottom: 3rem;
  }
}

.section-kicker {
  color: var(--amber-accent);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.section-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ==========================================================================
   2. WHAT WE BUILD (SERVICES SECTION)
   ========================================================================== */
.services-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-hairline);
  width: 100%;
}

@media (min-width: 768px) {
  .services-section {
    padding: 5rem 0;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

@media (min-width: 640px) {
  .service-card {
    padding: 1.75rem;
  }
}

.service-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  gap: 0.5rem;
}

.service-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--amber-accent);
  flex-shrink: 0;
}

.service-tag {
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.service-bullets li {
  overflow-wrap: break-word;
}

/* ==========================================================================
   3. OUR EXPERTISE (STUDIO CAPABILITY PILLARS)
   ========================================================================== */
.expertise-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background-color: #070B10;
  width: 100%;
}

@media (min-width: 768px) {
  .expertise-section {
    padding: 5rem 0;
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

@media (min-width: 640px) {
  .pillar-card {
    padding: 2rem;
  }
}

.pillar-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pillar-card.highlight-qa {
  border-color: rgba(240, 160, 32, 0.35);
  background: linear-gradient(180deg, rgba(240, 160, 32, 0.03) 0%, var(--bg-surface) 100%);
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pillar-meta {
  min-width: 0;
}

.pillar-role {
  color: var(--amber-accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .pillar-title {
    font-size: 1.45rem;
  }
}

.pillar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  white-space: nowrap;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-accent);
  flex-shrink: 0;
}

.status-indicator-dot.qa-dot {
  background-color: var(--amber-accent);
}

.pillar-summary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.stack-block {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-hairline);
}

.stack-label {
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tag {
  display: inline-block;
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  max-width: 100%;
  word-break: break-word;
}

.stack-tag:hover {
  border-color: var(--amber-accent);
  color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

/* ==========================================================================
   4. HOW WE WORK (IN-HOUSE STUDIO ADVANTAGE)
   ========================================================================== */
.workflow-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-hairline);
  width: 100%;
}

@media (min-width: 768px) {
  .workflow-section {
    padding: 5rem 0;
  }
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .workflow-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 3.5rem;
  }
}

.workflow-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  position: relative;
  transition: border-color var(--transition-fast);
  min-width: 0;
}

@media (min-width: 640px) {
  .workflow-card {
    padding: 1.75rem;
  }
}

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

.workflow-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.workflow-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.workflow-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Comparison Table Panel */
.comparison-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background-color: #0B0F15;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .comparison-header {
    padding: 0.85rem 1.5rem;
  }
}

.comparison-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--amber-accent);
  font-size: 0.6875rem;
}

@media (min-width: 768px) {
  .comparison-hint {
    display: none;
  }
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 560px;
}

.comparison-table th, 
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

@media (min-width: 640px) {
  .comparison-table th, 
  .comparison-table td {
    padding: 1rem 1.5rem;
  }
}

.comparison-table th {
  background-color: rgba(9, 13, 18, 0.7);
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #0C1117;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4);
}

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

.comparison-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

/* ==========================================================================
   5. PORTFOLIO / SELECTED WORK
   ========================================================================== */
.portfolio-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background-color: #070B10;
  width: 100%;
}

@media (min-width: 768px) {
  .portfolio-section {
    padding: 5rem 0;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 2.5rem;
  }
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  min-width: 0;
}

@media (min-width: 640px) {
  .project-card {
    padding: 1.75rem;
  }
}

.project-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-wrap: break-word;
}

.project-scope-label {
  color: var(--amber-accent);
  font-weight: 600;
  font-size: 0.65rem;
}

/* NDA Callout Banner */
.nda-callout-card {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 860px) {
  .nda-callout-card {
    padding: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.nda-callout-content {
  min-width: 0;
}

.nda-badge {
  color: var(--amber-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
}

.nda-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

@media (min-width: 640px) {
  .nda-title {
    font-size: 1.25rem;
  }
}

.nda-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.nda-action {
  flex-shrink: 0;
}

.nda-action .btn {
  width: 100%;
}

@media (min-width: 860px) {
  .nda-action .btn {
    width: auto;
  }
}

/* ==========================================================================
   6. CONTACT / START A PROJECT
   ========================================================================== */
.contact-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background: radial-gradient(circle at 80% 20%, rgba(240, 160, 32, 0.04) 0%, rgba(9, 13, 18, 0) 60%);
  width: 100%;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 5rem 0;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr 1.25fr;
    gap: 3.5rem;
    align-items: flex-start;
  }
}

.contact-info {
  min-width: 0;
}

.contact-headline {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
}

.contact-lead {
  font-size: clamp(0.9375rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .contact-lead {
    margin-bottom: 2rem;
  }
}

/* Direct Studio Contact Cards */
.contact-direct-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .contact-direct-box {
    padding: 1.5rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

.direct-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-width: 0;
  min-height: 44px;
}

@media (min-width: 640px) {
  .direct-contact-item {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
}

.direct-contact-item:hover {
  border-color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

.contact-icon {
  color: var(--amber-accent);
  flex-shrink: 0;
}

.direct-contact-item > div {
  min-width: 0;
  overflow: hidden;
}

.contact-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.6875rem;
}

.contact-val {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  word-break: break-all;
  display: block;
}

@media (min-width: 480px) {
  .contact-val {
    font-size: 0.875rem;
  }
}

.contact-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .contact-specs {
    padding: 1.5rem;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }
}

.contact-spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

@media (min-width: 480px) {
  .contact-spec-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

.spec-k {
  color: var(--text-dim);
  flex-shrink: 0;
}

.spec-v {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}

.highlight-link {
  color: var(--amber-accent);
  text-decoration: none;
  font-weight: 600;
}

.highlight-link:hover {
  text-decoration: underline;
}

.security-note {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.4;
}

.sec-dot {
  color: var(--green-accent);
  flex-shrink: 0;
}

/* Contact Form Styling */
.contact-form-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
}

@media (min-width: 640px) {
  .contact-form-container {
    padding: 2rem;
  }
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.form-label {
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}

.required {
  color: var(--amber-accent);
}

.form-input, 
.form-select, 
.form-textarea {
  width: 100%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  color: var(--text-primary);
  font-size: 1rem; /* 16px to prevent iOS Safari auto-zoom */
  line-height: 1.4;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

@media (min-width: 640px) {
  .form-input, 
  .form-select, 
  .form-textarea {
    padding: 0.75rem 1rem;
  }
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:focus, 
.form-select:focus, 
.form-textarea:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 1px var(--border-active), 0 0 12px var(--blue-glow);
}

.form-input.is-invalid, 
.form-select.is-invalid, 
.form-textarea.is-invalid {
  border-color: #F85149;
}

.form-error {
  color: #F85149;
  font-size: 0.75rem;
  min-height: 1rem;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.2rem;
}

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

.form-actions {
  margin-top: 0.25rem;
}

.form-toast {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.form-toast.success {
  background-color: rgba(63, 185, 80, 0.12);
  border: 1px solid var(--green-accent);
  color: var(--green-accent);
}

.form-toast.error {
  background-color: rgba(248, 81, 73, 0.12);
  border: 1px solid #F85149;
  color: #F85149;
}

/* Spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(9, 13, 18, 0.3);
  border-top-color: #090D12;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #05070B;
  padding: 2.5rem 0 1.5rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 4rem 0 2rem 0;
  }
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-hairline);
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.35fr;
  }
}

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

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.5;
}

.footer-col-title {
  color: var(--text-dim);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.15rem 0;
}

.footer-links a:hover {
  color: var(--amber-accent);
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.footer-contact-details a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  word-break: break-all;
}

.footer-contact-details a:hover {
  color: var(--amber-accent);
}

.footer-system-status {
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.mt-2 {
  margin-top: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

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

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.back-to-top {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
}

.back-to-top:hover {
  color: var(--amber-accent);
}

/* ==========================================================================
   INTERACTIVE SIGNATURE: QA & LLM EVALUATION SANDBOX
   ========================================================================== */
.qa-sandbox-panel {
  margin-top: 3rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  width: 100%;
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background-color: #0A0E14;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sandbox-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.t-red { background-color: #F85149; }
.t-yellow { background-color: #D29922; }
.t-green { background-color: #3FB950; }

.sandbox-title {
  font-size: clamp(0.6875rem, 2vw, 0.75rem);
  white-space: normal;
  word-break: break-word;
}

.sandbox-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sandbox-tab-btn {
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sandbox-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.sandbox-tab-btn.active {
  color: var(--amber-accent);
  border-color: var(--amber-accent);
  background-color: var(--amber-subtle);
  font-weight: 600;
}

.sandbox-body {
  padding: 1.25rem 1rem;
}

@media (min-width: 640px) {
  .sandbox-body {
    padding: 1.5rem 1.25rem;
  }
}

.sandbox-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sandbox-mode-info {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mode-badge {
  background-color: rgba(88, 166, 255, 0.12);
  color: var(--blue-accent);
  border: 1px solid rgba(88, 166, 255, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mode-badge.ai-mode {
  background-color: var(--amber-subtle);
  color: var(--amber-accent);
  border-color: rgba(240, 160, 32, 0.3);
}

.sandbox-progress-wrap {
  width: 100%;
  height: 4px;
  background-color: var(--bg-base);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-hairline);
}

.sandbox-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-accent) 0%, var(--amber-accent) 50%, var(--green-accent) 100%);
  transition: width 0.3s ease;
}

.sandbox-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background-color: #0B0F15;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .sandbox-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.sandbox-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.stat-k {
  font-size: 0.65rem;
}

.stat-v {
  font-size: 0.8125rem;
  word-break: break-word;
}

.sandbox-terminal-screen {
  background-color: #06090D;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.terminal-log-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  animation: fadeInLog 180ms ease forwards;
  word-break: break-word;
}

@keyframes fadeInLog {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-tag {
  font-size: 0.6875rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.log-tag-pass { background-color: rgba(63, 185, 80, 0.18); color: var(--green-accent); border: 1px solid rgba(63, 185, 80, 0.3); }
.log-tag-warn { background-color: rgba(240, 160, 32, 0.18); color: var(--amber-accent); border: 1px solid rgba(240, 160, 32, 0.3); }
.log-tag-info { background-color: rgba(88, 166, 255, 0.18); color: var(--blue-accent); border: 1px solid rgba(88, 166, 255, 0.3); }

.log-text {
  flex-grow: 1;
  color: var(--text-primary);
}

.log-meta {
  color: var(--text-dim);
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.sandbox-footer {
  padding: 0.85rem 1.25rem;
  background-color: #0A0E14;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.45;
}

/* ==========================================================================
   PROJECT CARD ACTION BUTTONS & BLUEPRINT MODAL
   ========================================================================== */
.project-actions {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-hairline);
}

.btn-inspect-blueprint {
  color: var(--amber-accent) !important;
  border-color: rgba(240, 160, 32, 0.3) !important;
  background-color: rgba(240, 160, 32, 0.04) !important;
  font-size: 0.75rem !important;
  padding: 0.5rem 0.85rem !important;
}

.btn-inspect-blueprint:hover {
  background-color: var(--amber-accent) !important;
  color: #090D12 !important;
  border-color: var(--amber-accent) !important;
  box-shadow: 0 0 16px var(--amber-glow) !important;
}

/* Global Blueprint Modal Dialog */
.blueprint-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.blueprint-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.blueprint-modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(12px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.blueprint-modal-backdrop.open .blueprint-modal-dialog {
  transform: translateY(0) scale(1);
}

@media (max-width: 767px) {
  .blueprint-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .blueprint-modal-dialog {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  .blueprint-modal-backdrop.open .blueprint-modal-dialog {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background-color: #0A0E14;
  border-bottom: 1px solid var(--border-hairline);
  gap: 1rem;
}

.modal-header-left {
  min-width: 0;
}

.modal-domain-tag {
  color: var(--amber-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.modal-close-btn {
  background: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

.modal-tabs-nav {
  display: flex;
  background-color: #080C11;
  border-bottom: 1px solid var(--border-hairline);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.5rem;
  gap: 0.25rem;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.modal-tab-btn:hover {
  color: var(--text-primary);
}

.modal-tab-btn.active {
  color: var(--amber-accent);
  border-bottom-color: var(--amber-accent);
  font-weight: 600;
}

.modal-body-scroll {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
  min-height: 260px;
}

@media (max-width: 640px) {
  .modal-body-scroll {
    padding: 1.15rem 1rem;
  }
}

/* Modal Content Modules */
.blueprint-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInModalPane 200ms ease;
}

@keyframes fadeInModalPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.topology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .topology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topology-node-card {
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color var(--transition-fast);
}

.topology-node-card:hover {
  border-color: var(--amber-accent);
  background-color: var(--bg-surface-elevated);
}

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

.node-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-protocol {
  font-size: 0.65rem;
  color: var(--blue-accent);
  background-color: rgba(88, 166, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid rgba(88, 166, 255, 0.25);
}

.node-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.qa-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background-color: var(--bg-base);
}

.qa-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.75rem;
  min-width: 500px;
}

.qa-table th, .qa-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.qa-table th {
  background-color: #0A0E14;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.code-container {
  background-color: #05080C;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #0B0F15;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-dim);
}

.code-content {
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: #C9D1D9;
}

.metrics-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .metrics-row-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-box {
  background-color: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-lbl {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #0A0E14;
  border-top: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal-confidentiality-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* ==========================================================================
   MOTION PREFERENCES & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pulse-green,
  .badge-testing,
  .live-dot {
    animation: none !important;
  }
}
