/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-color: #00f2ff;
  --secondary-color: #7000ff;
  --accent-color: #ff0055;
  --bg-dark: #050505;
  --bg-panel: rgba(20, 20, 25, 0.7);
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-code: "JetBrains Mono", monospace;
  --gradient-main: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- BACKGROUND ANIMATION LAYER --- */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}

/* --- TYPOGRAPHY & UTILITIES --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 100px 0;
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: var(--glass-border);
  padding: 20px 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.btn-nav {
  border: 1px solid var(--primary-color);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.9rem;
}
.btn-nav:hover {
  background: rgba(0, 242, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
}

.status-badge {
  display: inline-block;
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.typing-effect {
  font-family: var(--font-code);
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 40px;
  min-height: 1.6em;
}

.cursor {
  display: inline-block;
  width: 8px;
  background-color: var(--accent-color);
  animation: blink 1s infinite;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  padding: 15px 40px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 15px 40px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

/* --- FEATURES GRID --- */
.features {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-panel);
  border: var(--glass-border);
  padding: 30px;
  border-radius: 15px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- PREVIEW/ASSETS SECTION --- */
.preview-section {
  background: linear-gradient(180deg, var(--bg-dark), #0a0a10);
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
}

.showcase-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.showcase-text {
  flex: 1;
  min-width: 300px;
}
.showcase-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.showcase-text p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.check-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}
.check-list i {
  color: var(--secondary-color);
}

.showcase-visual {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.app-mockup {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
  /* Using a generic tech terminal look since we can't load local assets dynamically without CORS issues in a pure file, 
       but we place the img tag as requested for the user to swap if needed. */
  background: #000;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-mockup img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  transition: 0.5s;
}

.app-mockup:hover img {
  transform: scale(1.02);
  opacity: 1;
}

/* --- DOWNLOAD SECTION --- */
.download-section {
  text-align: center;
}

.platform-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.platform-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  transition: 0.3s;
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.platform-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.platform-ver {
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: block;
}

.btn-download {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-download:hover {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 0 15px var(--secondary-color);
}

/* --- INSTALLATION TIPS --- */
.installation-tips {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
  text-align: left;
}

.tip-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.tip-box h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-terminal {
  background: #0a0a0a;
  border: 1px solid #222;
  padding: 15px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #00ff00; /* Classic terminal green */
  line-height: 1.5;
  overflow-x: auto;
}

.code-terminal code {
  white-space: nowrap;
}

/* --- FOOTER --- */
footer {
  background: #020202;
  padding: 50px 0 20px;
  border-top: 1px solid #111;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

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

.license-box {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid #111;
  padding-top: 20px;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 242, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --- VIDEO SHOWCASE --- */
.feature-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.feature-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-btn i {
  font-size: 1rem;
}
.feature-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.feature-btn.active {
  background: rgba(0, 242, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.video-container {
  background: #000;
  border-radius: 12px;
  border: 1px solid #333;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.window-controls {
  background: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

#feature-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#showcase-desc h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
}

#showcase-desc p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.video-animation {
  animation: fade-scale 0.5s ease-out;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  } /* Simplified for this demo */
  .showcase-container {
    flex-direction: column;
  }
}
