/* 
========================================================================
   KIBYTES - PREMIUM DARK CORPORATE LANDING DESIGN SYSTEM (VANILLA CSS)
========================================================================
   Author: Senior Frontend Developer & Designer Subagent
   Version: 1.0.0
   License: Corporate / Premium
========================================================================
*/

/* --- 1. FONTS IMPORT & INITIALIZATION --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;800&family=Geist+Mono:wght@300;400;500;700&display=swap');

/* --- 2. GLOBAL VARIABLES --- */
:root {
  /* Colors */
  --bg-deep: #0a0b0e;
  --bg-card: #111319;
  --bg-card-hover: #161922;
  --border-glow: rgba(255, 255, 255, 0.08);
  --border-glow-active: #ff5c35;
  
  --primary: #ffffff;
  --secondary: #8e97a4;
  --muted: #57606a;
  
  --accent-orange: #ff5c35;
  --accent-coral: #ff3554;
  --accent-green: #00e676;
  --accent-gradient: linear-gradient(135deg, #ff5c35, #ff3554);
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Geist Mono', Consolas, Monaco, 'Courier New', monospace;
  
  /* System Values */
  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* --- 3. CSS RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- 4. SLEEK SCROLLBAR STYLING --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: background var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) var(--bg-deep);
}

/* --- 5. TYPOGRAPHY & TEXT UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

p {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Gradient text */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }

/* --- 6. LAYOUT SYSTEM (GRID & FLEXBOX) --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

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

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Gap Utilities */
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- 7. CLEAN TECH CARD STYLING --- */
.card-glass {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4);
  transition: 
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    transform var(--transition-smooth);
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-active);
  box-shadow: 0 8px 30px rgba(255, 92, 53, 0.08), 0 0 1px 1px rgba(255, 92, 53, 0.08) inset;
  transform: translateY(-3px);
}

/* Featured / Active border style */
.card-featured {
  border-color: var(--accent-orange);
}

/* --- 8. BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: 
    transform var(--transition-fast),
    background var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth),
    color var(--transition-smooth);
  white-space: nowrap;
}

/* Solid Brand Button */
.btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
  border: 1px solid var(--accent-orange);
}

.btn-primary:hover {
  background: #e04b24;
  border-color: #e04b24;
  transform: translateY(-1px);
}

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

/* Outlined Technical Button */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

/* Text link button */
.btn-text {
  background: transparent;
  color: var(--accent-orange);
  padding: 0.5rem 0;
  border: none;
  font-weight: 500;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-orange);
  transform-origin: bottom right;
  transition: transform var(--transition-smooth);
}

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

.btn-text:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- 9. MICRO-COMPONENTS & BADGES --- */
.badge-cyber {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 92, 53, 0.06);
  border: 1px solid rgba(255, 92, 53, 0.2);
  color: #ffa085;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  width: fit-content;
}

.badge-cyber::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-orange);
}

/* --- 10. DECORATIVE ELEMENTS & LIGHTING --- */
/* Ambient Backdrop Spheres (Significantly toned down for a clean look) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-orange);
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.03 !important; /* Low opacity to be almost invisible, very clean */
}

.glow-1 {
  width: 350px;
  height: 350px;
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -150px;
}

/* Technical Grid Overlay */
.tech-grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255, 0.003) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255, 0.003) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}


/* --- 11. KEYFRAMES & ANIMATIONS --- */
@keyframes pulse-glow {
  0% {
    opacity: 0.08;
    transform: scale(1) translate(0, 0);
    filter: blur(100px);
  }
  50% {
    opacity: 0.18;
    transform: scale(1.1) translate(20px, -20px);
    filter: blur(120px);
  }
  100% {
    opacity: 0.08;
    transform: scale(1) translate(0, 0);
    filter: blur(100px);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animation utilities */
.animate-fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Delay modifiers */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- 12. RESPONSIVE DESIGN (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .grid-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .glow-1, .glow-2 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 1rem;
  }
  .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
  .flex {
    flex-direction: column;
  }
  /* Avoid breaking flex layout for inline widgets */
  .badge-cyber {
    align-self: flex-start;
  }
}

/* ========================================================================
   ADDITIONAL COMPONENT & MODULE CLASSES
   ======================================================================== */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

header.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding var(--transition-smooth), background var(--transition-smooth), backdrop-filter var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.header-sticky.scrolled {
  padding: 0.8rem 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo {
  height: 48px;
  width: auto;
  mix-blend-mode: screen;
  filter: invert(1) grayscale(1) brightness(2);
  transition: transform var(--transition-smooth);
}

.logo-container:hover .site-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  z-index: 101;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-links.active {
    right: 0;
  }
}

.hero-section {
  padding: 10rem 0 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  position: relative;
}

.hero-text-glow {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.section {
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
}

/* --- NEWS CAROUSEL --- */
.news-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.02) 50%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.news-carousel::before,
.news-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.news-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep) 0%, transparent 100%);
}
.news-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep) 0%, transparent 100%);
}

.news-track {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.news-track:hover {
  animation-play-state: paused;
}

.news-card {
  width: 350px;
  flex-shrink: 0;
  padding: 1.5rem;
  background: rgba(20, 24, 38, 0.6);
  border-left: 3px solid var(--accent-cyan);
}

.news-source {
  font-family: var(--font-header);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.news-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate by exactly half of the track */
    transform: translateX(calc(-50% - 1rem));
  }
}

/* --- SERVICES SECTOR --- */
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: rgba(255, 92, 53, 0.05);
  border: 1px solid rgba(255, 92, 53, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-orange);
  transition: all var(--transition-smooth);
}

.card-glass:hover .service-icon {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: none;
  transform: scale(1.02);
}

.service-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- METHODOLOGY TIMELINE --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-orange), var(--accent-coral), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 3rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 1.7rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-orange);
  z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

.timeline-card {
  background: rgba(17, 19, 25, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--transition-smooth);
  position: relative;
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 20px rgba(255, 92, 53, 0.06);
  transform: translateY(-2px);
}

.timeline-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 13px;
    right: auto;
  }
}

/* --- SIMULATOR LAYOUT --- */
.simulator-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .simulator-panel {
    grid-template-columns: 1fr;
  }
}

.terminal-window {
  height: 380px;
  background: #0a0b0e;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a9b2c3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #111319;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glow);
}

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

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

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

.terminal-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
}

.log-system {
  color: #64748b;
}

.log-warning {
  color: #fbbf24;
}

.log-error {
  color: #f87171;
}

.log-success {
  color: #34d399;
}

.log-intercept {
  color: #ffa085;
  font-weight: bold;
  border-left: 2px solid var(--accent-orange);
  padding-left: 0.5rem;
  margin: 0.25rem 0;
}

.simulator-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.metric-label {
  color: var(--secondary);
  font-size: 0.9rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
}

.metric-value.glowing-green {
  color: var(--accent-green);
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-orange);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.hitl-gate-panel {
  display: none;
  background: rgba(255, 92, 53, 0.02);
  border: 1px dashed rgba(255, 92, 53, 0.25);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

.hitl-gate-panel.active {
  display: block;
  border-color: var(--accent-orange);
}

.hitl-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.hitl-desc {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.hitl-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hitl-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.hitl-approve {
  background: #10b981;
  color: #ffffff;
  border: none;
}

.hitl-approve:hover {
  background: #059669;
}

.hitl-reject {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hitl-reject:hover {
  background: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
}

/* --- BLOG SYSTEM --- */
.filter-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--accent-orange);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: transparent;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.blog-card {
  cursor: pointer;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  margin: 0.5rem 0 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.blog-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.blog-card-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--secondary);
}

.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  opacity: 0;
  transition: opacity var(--transition-smooth) ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.blog-modal.active {
  display: block;
  opacity: 1;
}

.blog-modal-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-modal-close {
  position: sticky;
  top: 1.5rem;
  float: right;
  z-index: 10;
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.blog-modal-close:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: rotate(90deg);
}

.blog-modal-header {
  margin-top: 4rem;
  margin-bottom: 2.5rem;
}

.blog-modal-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-modal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.blog-modal-content {
  color: #d1d5db;
  font-size: 1.15rem;
  line-height: 1.85;
}

.blog-modal-content p {
  margin-bottom: 1.75rem;
  color: #d1d5db;
}

.blog-modal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1.25rem;
}

.blog-modal-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.blog-modal-content blockquote {
  border-left: 4px solid var(--accent-cyan);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #9ca3af;
}

.blog-modal-content code {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
  color: #c084fc;
}

.blog-modal-content pre {
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-modal-content pre code {
  background: transparent;
  padding: 0;
  color: #a9b2c3;
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-modal-content ul, .blog-modal-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}

.blog-modal-content li {
  margin-bottom: 0.75rem;
}

/* --- CONTACT FORM --- */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1rem 0.8rem;
  background: rgba(12, 12, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(20, 20, 25, 0.8);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--muted);
  pointer-events: none;
  transition: all var(--transition-smooth);
  font-size: 1rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: 0.3rem;
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.form-status.success {
  display: flex;
  color: #34d399;
}

.form-status.sending {
  display: flex;
  color: var(--accent-cyan);
}

/* --- FOOTER SYSTEM --- */
footer.footer {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-logo .site-logo {
  height: 36px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent-cyan);
}

/* ========================================================================
   6. METRICS & BOLD STATEMENTS SECTION
   ======================================================================== */
.metrics-section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.metrics-large-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.metric-large-card {
  padding: 2.5rem 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.metric-large-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.metric-large-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow-active);
}

.metric-large-card:hover::before {
  opacity: 1;
}

.metric-value-hero {
  font-family: var(--font-header);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.3));
}

.metric-label-bold {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.metric-desc-text {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.5;
}

.comparison-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  margin-bottom: 1rem;
}

.comparison-badge.violet {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ========================================================================
   7. SECTOR IMPACT SELECTOR
   ======================================================================== */
.sector-section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.sector-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  padding: 0.35rem;
  gap: 0.25rem;
  margin: 2rem auto 3rem;
}

.sector-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--secondary);
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.sector-tab-btn.active {
  background: var(--accent-orange);
  color: var(--primary);
  box-shadow: none;
}

.sector-content-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  animation: fadeIn 0.5s ease;
}

@media (max-width: 992px) {
  .sector-content-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

.sector-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sector-pain-box {
  background: rgba(255, 53, 84, 0.03);
  border-left: 3px solid var(--accent-coral);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
}

.sector-pain-box p {
  font-size: 0.95rem;
  color: #ffa8b5;
}

.sector-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #34d399;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.sector-agents-list {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 1.5rem;
}

.sector-agents-list h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.agent-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.agent-code-tag {
  font-family: var(--font-mono);
  color: var(--accent-orange);
  background: rgba(255, 92, 53, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 92, 53, 0.15);
}

.agent-desc {
  font-size: 0.85rem;
  color: var(--secondary);
}

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

/* ========================================================================
   8. VISUAL AGENT DASHBOARD SIMULATOR
   ======================================================================== */
.visual-simulator-grid.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1200px) {
  .visual-simulator-grid.dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border: 1px solid var(--border-glow);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.human-director {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 92, 53, 0.05);
  border: 2px solid var(--accent-orange);
  color: var(--primary);
  position: relative;
  transition: all var(--transition-smooth);
}

.human-director svg {
  width: 24px;
  height: 24px;
}

.human-label {
  position: absolute;
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-orange);
  white-space: nowrap;
}

.mission-objective {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-glow);
  padding: 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--secondary);
}

.agent-lanes-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.agent-lane {
  display: grid;
  grid-template-columns: 140px 1fr 130px;
  align-items: center;
  gap: 1rem;
  background: #111319;
  border: 1px solid var(--border-glow);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.agent-lane.active {
  background: rgba(255, 92, 53, 0.03);
  border-color: var(--accent-orange);
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  transition: color var(--transition-smooth);
}

.agent-lane.active .agent-info {
  color: var(--accent-orange);
}

.agent-info svg {
  width: 20px;
  height: 20px;
}

.agent-name {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.lane-progress-area {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.lane-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-orange);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.lane-progress-bar.fast {
  background: var(--accent-gradient);
}

.skill-slot {
  height: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-glow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  transition: all 0.2s ease-in-out;
}

.skill-slot.equipped {
  background: rgba(255, 92, 53, 0.08);
  border: 1px solid var(--accent-orange);
  color: #ffa085;
  font-weight: 600;
  transform: scale(1.02);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .agent-lane {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  .skill-slot {
    margin-top: 0.5rem;
  }
}

.explanation-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glow);
  padding: 1.25rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.explanation-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-orange);
  margin-bottom: 0.25rem;
}

.explanation-text {
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 1.5;
}

/* Activity Log System */
.activity-log {
  scrollbar-width: thin;
}

.log-entry {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid transparent;
  animation: fadeIn 0.3s ease;
}

.log-entry.system { border-left-color: var(--muted); }
.log-entry.arch { border-left-color: var(--accent-orange); color: #ffa085; }
.log-entry.dev { border-left-color: var(--accent-coral); color: #ffc2cd; }
.log-entry.sec { border-left-color: #ef4444; color: #fecaca; }
.log-entry.qa { border-left-color: #f59e0b; color: #fef3c7; }
.log-entry.infra { border-left-color: #10b981; color: #d1fae5; }
.log-entry.skill { 
  border-left-color: var(--accent-orange); 
  background: rgba(255, 92, 53, 0.05);
  font-weight: 500;
}
.log-entry.success { border-left-color: #10b981; color: #10b981; font-weight: 600; }

/* --- 13. LEGAL / LONG-FORM TEXT PAGES --- */
.legal-content h2 {
  font-size: 1.55rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--secondary);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content strong {
  color: var(--primary);
}



