/* 
========================================================================
  Reach AI Labs - Core Design & Styling System
  Theme: Cyber-Security Tech (Dark mode with Red & Cyan Accents)
========================================================================
*/

/* --- CSS Variables & Design System --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'Fira Code', monospace;

  /* Colors */
  --bg-main: #060608;
  --bg-deep: #0a0a0f;
  --bg-card: rgba(14, 14, 22, 0.55);
  --bg-card-hover: rgba(22, 22, 34, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --color-red: #FF3333;
  --color-red-glow: rgba(255, 51, 51, 0.35);
  --color-red-dim: #8b1d1d;
  
  --color-cyan: #00F0FF;
  --color-cyan-glow: rgba(0, 240, 255, 0.3);
  --color-cyan-dim: #0c8c94;
  
  --color-green: #00FF66;
  --color-green-glow: rgba(0, 255, 102, 0.25);
  
  --text-primary: #FFFFFF;
  --text-secondary: #9E9EB2;
  --text-muted: #64647A;

  /* Layout tokens */
  --header-height: 80px;
  --container-width: 1200px;
  --border-radius: 12px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-blur: blur(12px);
}

/* --- Global Resets & Scrollbars --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 51, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
}

/* Typography Selection */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

ul {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* --- Grid & Container Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Canvas Background */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red), #e62222);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 51, 51, 0.5);
  background: linear-gradient(135deg, #ff4c4c, var(--color-red));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 15px var(--color-cyan-glow);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.15);
}

.btn-danger:hover {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 0 20px var(--color-red-glow);
}

.btn-block {
  width: 100%;
}

/* Badge Utility */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 51, 51, 0.1);
  border: 1px solid rgba(255, 51, 51, 0.25);
  color: var(--color-red);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  gap: 8px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Terminal Console Wrapper */
.console-card {
  background: #0b0b10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.console-header {
  background: #11111a;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.console-header .dot.red { background-color: #ff5f56; }
.console-header .dot.yellow { background-color: #ffbd2e; }
.console-header .dot.green { background-color: #27c93f; }

.console-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px;
}

.console-content {
  padding: 20px;
}

/* --- Section Structure Header --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  color: var(--color-cyan);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}


/* ========================================================================
  Component Styles
======================================================================== */

/* --- Navigation Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: var(--transition-smooth);
}

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

.logo-svg {
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 110;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, #c4c4e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-cyan);
  text-shadow: 0 0 10px var(--color-cyan-glow);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Hero Visual Hologram Animation */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.hologram-core {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.cyber-shield-ring {
  position: absolute;
  border: 1.5px dashed var(--color-cyan);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate-hologram 15s linear infinite;
}

.ring-1 {
  width: 280px;
  height: 280px;
  border-color: rgba(0, 240, 255, 0.35);
  animation-duration: 20s;
}

.ring-2 {
  width: 220px;
  height: 220px;
  border-color: rgba(255, 51, 51, 0.3);
  border-style: solid;
  border-width: 1px;
  animation-direction: reverse;
  animation-duration: 12s;
}

.ring-3 {
  width: 160px;
  height: 160px;
  border-color: rgba(0, 240, 255, 0.5);
  border-width: 2px;
  animation-duration: 8s;
}

.brain-core {
  width: 110px;
  height: 110px;
  position: absolute;
  z-index: 2;
  animation: float-core 4s ease-in-out infinite;
}

.brain-svg {
  width: 100%;
  height: 100%;
}

.pulse-node {
  animation: pulse-node-glow 2s ease-in-out infinite;
}

@keyframes pulse-node-glow {
  0% { r: 8; fill: var(--color-red); filter: drop-shadow(0 0 2px var(--color-red)); }
  50% { r: 10; fill: #ff5e5e; filter: drop-shadow(0 0 8px var(--color-red)); }
  100% { r: 8; fill: var(--color-red); filter: drop-shadow(0 0 2px var(--color-red)); }
}

@keyframes rotate-hologram {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Scanning Sweep Laser */
.laser-scanner {
  position: absolute;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  left: -10%;
  top: 0%;
  opacity: 0.7;
  box-shadow: 0 0 10px var(--color-cyan);
  animation: laser-sweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes laser-sweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.hologram-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-cyan);
  letter-spacing: 3px;
  text-shadow: 0 0 5px var(--color-cyan-glow);
}


/* --- Playground / Sandbox Section --- */
.playground-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

/* Control Panel Card customization */
.select-panel .console-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.select-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.preset-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.preset-btn i {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.preset-btn.active {
  background: rgba(255, 51, 51, 0.05);
  border-color: rgba(255, 51, 51, 0.3);
}

.preset-btn.active i {
  color: var(--color-red);
}

.preset-text {
  display: flex;
  flex-direction: column;
}

.preset-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.preset-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.preset-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-area label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-area textarea {
  background: #07070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
}

.input-area textarea:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.15);
}

/* Diagnostic Scanner Terminal Card */
.scan-terminal {
  display: flex;
  flex-direction: column;
}

.scan-terminal .console-header {
  justify-content: space-between;
}

.scan-terminal .tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-cyan);
}

.system-status {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.diagnostic-logs {
  flex-grow: 1;
  background: #060609;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a4a4b2;
  overflow-y: auto;
  max-height: 380px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.log-line.system-line {
  color: #55556d;
}

.log-line.info-line {
  color: var(--color-cyan);
}

.log-line.warn-line {
  color: #ffd23f;
}

.log-line.danger-line {
  color: var(--color-red);
}

.log-line.success-line {
  color: var(--color-green);
}

/* Outcome Grid */
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.outcome-grid.evaluating {
  opacity: 0.3;
  pointer-events: none;
}

.outcome-card {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #09090e;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.outcome-card.active-state {
  transform: translateY(-2px);
}

.outcome-card.vulnerable.active-state {
  border-color: rgba(255, 51, 51, 0.5);
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.15);
}

.outcome-card.secured.active-state {
  border-color: rgba(0, 255, 102, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
}

.outcome-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vulnerable .outcome-header {
  background: rgba(255, 51, 51, 0.05);
  color: var(--color-red);
}

.secured .outcome-header {
  background: rgba(0, 255, 102, 0.03);
  color: var(--color-green);
}

.outcome-body {
  padding: 20px;
}

.outcome-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.code-output {
  min-height: 90px;
  padding: 14px;
  border-radius: 6px;
  background: #040406;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.vulnerable-text {
  color: #ffd9d9;
}

.secured-text {
  color: #dbffea;
}

.redacted-highlight {
  background: rgba(255, 51, 51, 0.2);
  border: 1px dashed var(--color-red);
  color: var(--color-red);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.secured-highlight {
  background: rgba(0, 255, 102, 0.15);
  color: var(--color-green);
  padding: 2px 6px;
  border-radius: 4px;
}


/* --- Features Section --- */
.features-section {
  padding: 80px 0;
  background: radial-gradient(circle at center, rgba(255, 51, 51, 0.02) 0%, rgba(0, 0, 0, 0) 80%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}

.feature-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
}

.feature-icon-wrapper.red-glow {
  background: rgba(255, 51, 51, 0.1);
  color: var(--color-red);
}
.feature-icon-wrapper.red-glow::after {
  border-color: rgba(255, 51, 51, 0.2);
}

.feature-icon-wrapper.cyan-glow {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-cyan);
}
.feature-icon-wrapper.cyan-glow::after {
  border-color: rgba(0, 240, 255, 0.2);
}

.feature-icon-wrapper.purple-glow {
  background: rgba(162, 0, 255, 0.1);
  color: #bf5eff;
}
.feature-icon-wrapper.purple-glow::after {
  border-color: rgba(162, 0, 255, 0.25);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.feature-specs li i {
  width: 16px;
  height: 16px;
  color: var(--color-cyan);
}


/* --- Cyber Threat Operations Dashboard --- */
.defense-center-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

/* Cyber Radar Map Visual */
.visual-map-card .console-header {
  justify-content: space-between;
}

.live-signal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-signal .ping {
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-red);
  animation: pulse-dot 1.2s infinite;
}

.map-wrapper {
  height: 380px;
  background-color: #060609;
  background-image: 
    radial-gradient(circle, rgba(0, 240, 255, 0.02) 20%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.radar-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.06), transparent 40%);
  transform-origin: 0 0;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: radar-spin 10s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.world-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.map-ping {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--color-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-red);
}

.map-ping::after {
  content: '';
  position: absolute;
  width: 300%;
  height: 300%;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  top: -100%;
  left: -100%;
  opacity: 0;
  animation: ping-wave 3s ease-out infinite;
}

.ping-1::after { animation-delay: 0.5s; }
.ping-2::after { animation-delay: 1.2s; }
.ping-3::after { animation-delay: 2s; }
.ping-4::after { animation-delay: 0s; }

@keyframes ping-wave {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; }
}

/* Security Logs Console Log */
.logs-console-card {
  display: flex;
  flex-direction: column;
}

.logs-console-card .console-header {
  justify-content: space-between;
}

.threat-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-green);
}

.log-stream-content {
  background: #050508;
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #8c8ca0;
  overflow-y: auto;
  height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* --- FAQ / Threat Matrix Accordion --- */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(14, 14, 22, 0.4);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 22, 0.6);
}

.accordion-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.accordion-arrow {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-item.active {
  border-color: rgba(255, 51, 51, 0.25);
  box-shadow: 0 4px 20px rgba(255, 51, 51, 0.03);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--color-red);
}


/* --- Contact Section --- */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at bottom right, rgba(0, 240, 255, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
}

.contact-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 70px;
}

.contact-info .section-tag {
  color: var(--color-red);
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-block i {
  color: var(--color-red);
  margin-top: 4px;
}

.info-block h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Card Form */
.contact-card {
  padding: 40px;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group select option {
  background: var(--bg-deep);
  color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan-glow);
  background: rgba(255, 255, 255, 0.04);
}

/* Contact feedback */
.form-feedback {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fade-in 0.5s ease;
}

.hidden {
  display: none !important;
}

.success-icon {
  width: 48px;
  height: 48px;
  color: var(--color-green);
  filter: drop-shadow(0 0 8px var(--color-green-glow));
}

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


/* --- Footer Section --- */
footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.6fr);
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-brand .tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-column h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.footer-column a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-column a:hover {
  color: var(--color-red);
  padding-left: 4px;
}

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.secure-badge:hover {
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 10px var(--color-cyan-glow);
}

.secure-badge i {
  width: 12px;
  height: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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


/* ========================================================================
  Responsive Adjustments (Media Queries)
======================================================================== */

@media (max-width: 1024px) {
  /* Tables / Medium screens */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1; /* Place hologram visual above text on mobile/tablet */
  }
  
  .playground-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  /* Small Screens / Mobile Navigation */
  :root {
    --header-height: 70px;
  }
  
  header {
    background: rgba(6, 6, 8, 0.95);
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    padding: 40px 24px;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  nav.open {
    transform: translateX(0);
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 32px;
  }
  
  .nav-links a {
    font-size: 1.15rem;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .nav-cta {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .outcome-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
