@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- DESIGN TOKENS & VARIABLES --- */
:root {
  --bg-main: #070913;
  --bg-surface: #0f1225;
  --bg-card: rgba(22, 28, 55, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 210, 255, 0.3);
  
  /* Neon Status Colors */
  --neon-safe: #00ff66;
  --neon-warning: #ffaa00;
  --neon-danger: #ff3b30;
  --neon-tech: #00d2ff;
  --neon-purple: #9d4edd;
  
  /* Text Colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Fonts */
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shadow Glows */
  --glow-safe: 0 0 15px rgba(0, 255, 102, 0.3);
  --glow-tech: 0 0 15px rgba(0, 210, 255, 0.3);
  --glow-danger: 0 0 15px rgba(255, 59, 48, 0.3);
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Cyber Grid / Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(7, 9, 19, 0.8), rgba(7, 9, 19, 0.95)),
    radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.08) 0%, transparent 40%);
  z-index: -2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neon-tech);
  box-shadow: var(--glow-tech);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--neon-tech);
}

.header-btn {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--neon-tech);
  color: var(--neon-tech);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-btn:hover {
  background: var(--neon-tech);
  color: var(--bg-main);
  box-shadow: var(--glow-tech);
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0 60px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 992px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
  }
  .hero-content {
    flex: 1.2;
    padding-right: 40px;
  }
  .hero-visual {
    flex: 1;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--neon-safe);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-safe);
  box-shadow: var(--glow-safe);
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-tech) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.8rem;
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--neon-tech);
  color: var(--bg-main);
  box-shadow: var(--glow-tech);
  border: 1px solid var(--neon-tech);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Hero Visual Banner */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.banner-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: all 0.5s ease;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 550px;
}

.banner-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 9, 19, 0.6) 100%);
  pointer-events: none;
}

.banner-wrapper:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--neon-tech);
  box-shadow: 0 25px 50px rgba(0, 210, 255, 0.15);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Status Indicator on Banner */
.banner-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(7, 9, 19, 0.85);
  border: 1px solid var(--neon-tech);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-tech);
  font-family: var(--font-mono);
  backdrop-filter: blur(5px);
}

/* --- FEATURES GRID --- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--neon-tech);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Glassmorphic Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: rgba(22, 28, 55, 0.6);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-tech);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--neon-tech);
  color: var(--bg-main);
  box-shadow: var(--glow-tech);
}

/* Variations for Alert Cards */
.card-warning .card-icon {
  color: var(--neon-warning);
  background: rgba(255, 170, 0, 0.1);
  border-color: rgba(255, 170, 0, 0.2);
}
.card-warning:hover .card-icon {
  background: var(--neon-warning);
  color: var(--bg-main);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.card-danger .card-icon {
  color: var(--neon-danger);
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.2);
}
.card-danger:hover .card-icon {
  background: var(--neon-danger);
  color: var(--bg-main);
  box-shadow: var(--glow-danger);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- CONTROL DASHBOARD --- */
.controls-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 992px) {
  .controls-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .controls-desc {
    flex: 1;
  }
  .controls-visual {
    flex: 1.2;
  }
}

.controls-text-p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.keyboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(12, 14, 28, 0.5);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 20px;
}

.keyboard-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Custom 3D Keyboard Keys styling */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 8px;
  background: linear-gradient(180deg, #2a2e45 0%, #151829 100%);
  border: 1px solid #3c4262;
  border-radius: 8px;
  box-shadow: 
    0 4px 0 #0f111d,
    0 5px 10px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-tech);
  text-shadow: 0 0 5px rgba(0, 210, 255, 0.4);
  user-select: none;
  transition: all 0.1s ease;
}

.kbd.kbd-wide {
  min-width: 140px;
}

.kbd-action {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- TERMINAL / GUIDE --- */
.terminal {
  background: #080a14;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  margin-top: 30px;
}

.terminal-header {
  background: #111425;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.comment { color: var(--text-muted); }
.command { color: var(--neon-tech); }
.parameter { color: var(--neon-purple); }

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* --- DOWNLOAD SECTION --- */
.download-section {
  text-align: center;
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.04) 0%, transparent 60%);
}

.download-box {
  background: linear-gradient(135deg, rgba(22, 28, 55, 0.6) 0%, rgba(12, 14, 28, 0.6) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.download-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-tech), transparent);
}

.download-box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.file-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.file-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #00d2ff 0%, #9d4edd 100%);
  border: none;
  color: #ffffff;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-button 2s infinite;
}

.pulse-download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(157, 78, 221, 0.6);
  animation: none; /* Pause pulse on hover */
}

@keyframes pulse-button {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 210, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #04050a;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--neon-tech);
}

/* --- MOBILE RESPONSIVENESS PATCH --- */
@media (max-width: 768px) {
  /* Header adjustment */
  header {
    padding: 8px 0 !important;
  }
  .hero {
    padding: 20px 0 10px 0 !important;
    gap: 20px !important;
  }
  .header-container {
    padding: 0 10px;
    flex-wrap: wrap !important;
    row-gap: 8px !important;
  }
  #nav-menu {
    display: flex !important; /* Keep nav menu visible on mobile */
    width: 100% !important;
    justify-content: center !important;
    gap: 24px !important;
    order: 3 !important; /* Place under logo/button row */
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
  }
  #nav-menu a {
    font-size: 0.85rem !important;
  }
  .logo {
    font-size: 1.25rem !important;
    white-space: nowrap !important;
    gap: 6px !important;
  }
  .header-btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Keyboard controls responsiveness */
  .keyboard-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .kbd {
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
    padding: 0 4px;
    box-shadow: 0 2px 0 #0f111d, 0 3px 6px rgba(0,0,0,0.5);
  }
  .kbd.kbd-wide {
    min-width: 90px;
  }
  .kbd-action {
    font-size: 0.85rem;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 576px) {
  /* Download box padding */
  .download-box {
    padding: 40px 20px;
  }
  .file-info {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
  }
  .file-info span:nth-child(even) {
    display: none;
  }
  
  /* Hero typography */
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .btn {
    width: 100%; /* Make buttons full width on small mobile screens */
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.15rem;
  }
}
