:root {
  /* Color Palette */
  --bg-primary: #08090d;
  --bg-secondary: #0f111a;
  --bg-tertiary: #161826;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.15);
  --accent-green: #00ff66;
  --accent-green-glow: rgba(0, 255, 102, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.15);
  
  --border-color: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(0, 240, 255, 0.25);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan-glow) var(--bg-primary);
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* Animations */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes move-right {
  0% { left: 0%; opacity: 1; }
  100% { left: 100%; opacity: 0.2; }
}

@keyframes move-left {
  0% { left: 100%; opacity: 1; }
  100% { left: 0%; opacity: 0.2; }
}

/* Layout Styles */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.logo-text {
  color: #fff;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 6rem 4rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem 2rem 2rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.badge {
  align-self: flex-start;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 6px var(--accent-green);
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.glow-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.glow-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.2));
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.glow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-graphic-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.05);
}

.main-graphic {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.main-graphic:hover {
  opacity: 1;
}

.graphic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(8, 9, 13, 0.9));
  pointer-events: none;
}

.scanline-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 240, 255, 0.04) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 4px, 6px 100%;
  opacity: 0.15;
  pointer-events: none;
}

/* Section Wrapper */
.section {
  padding: 5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 2rem;
  }
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

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

/* Cyber Card base styling */
.cyber-card {
  background: rgba(15, 17, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cyber-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.cyber-card:hover::after {
  transform: translateX(100%);
}

/* Simulator/Console layout */
.dashboard-simulator {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 1024px) {
  .dashboard-simulator {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(8, 9, 13, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.control-item:hover {
  background: rgba(8, 9, 13, 0.85);
  border-color: rgba(0, 240, 255, 0.2);
}

.control-item.active {
  background: rgba(0, 240, 255, 0.04);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
  color: #fff !important;
}

.control-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.control-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: 28px;
}

.console-terminal {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #030406;
  border: 1px solid rgba(0, 240, 255, 0.25);
  min-height: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background: rgba(15, 17, 26, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.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-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.console-body {
  flex-grow: 1;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a7f3d0;
  overflow-y: auto;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

/* Capabilities panel structure */
.capabilities-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

@media (max-width: 1024px) {
  .capabilities-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Protocol hand-off sequence grid */
.protocol-sequence-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
