/* Nyx Page Styling - Separated from HTML */

/* ===== CSS Variables ===== */
:root {
  --nyx-neon: #00f6ff;
  --nyx-accent: #39ff14;
  --nyx-dark: #0a0a0a;
  --nyx-purple: #2a004f;
  --nyx-dark-purple: #1a0033;
  --nyx-text: #b3b3b3;
  --nyx-border: rgba(0, 246, 255, 0.2);
  --nyx-gradient: linear-gradient(135deg, #00f6ff 0%, #39ff14 100%);

  --font-space: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== Header ===== */
.nyx-header {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--nyx-purple) 0%,
    var(--nyx-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.nyx-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 246, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.5;
  }
}

.logo-section {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.nyx-logo-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 40px rgba(0, 246, 255, 0.6));
}

.nyx-title {
  font-family: var(--font-space);
  font-size: 4.5rem;
  background: var(--nyx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.nyx-tagline {
  font-family: var(--font-space);
  font-size: 1.4rem;
  color: var(--nyx-neon);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.nyx-hero-img {
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow:
    0 20px 60px rgba(0, 246, 255, 0.3),
    0 0 80px rgba(57, 255, 20, 0.2);
  position: relative;
  z-index: 1;
}

/* ===== Badges ===== */
.nyx-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
  position: relative;
  z-index: 1;
}

.nyx-badges img {
  height: 20px;
}

/* ===== CTA Buttons ===== */
.nyx-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
  position: relative;
  z-index: 1;
}

.nyx-btn {
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-space);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.nyx-btn img {
  height: 24px;
  width: auto;
}

.nyx-btn-primary {
  background: var(--nyx-gradient);
  color: var(--nyx-dark);
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.4);
}

.nyx-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(0, 246, 255, 0.6),
    0 0 40px rgba(57, 255, 20, 0.4);
}

.nyx-btn-secondary {
  background: transparent;
  color: var(--nyx-neon);
  border: 2px solid var(--nyx-neon);
}

.nyx-btn-secondary:hover {
  background: rgba(0, 246, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.3);
}

/* Firefox button specific styling */
.nyx-btn-firefox {
  background: linear-gradient(135deg, #E66000 0%, #FF9500 100%);
  color: white;
  border: none;
}

.nyx-btn-firefox:hover {
  background: linear-gradient(135deg, #CC5500 0%, #E68500 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(230, 96, 0, 0.6);
}

/* ===== Sections ===== */
.nyx-section {
  padding: 60px 0;
}

.nyx-section-alt {
  background: linear-gradient(
    180deg,
    var(--nyx-dark) 0%,
    var(--nyx-purple) 100%
  );
}

.nyx-section-title {
  font-family: var(--font-space);
  font-size: 2.8rem;
  color: var(--nyx-neon);
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 246, 255, 0.5);
}

/* ===== Features Grid ===== */
.nyx-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.nyx-feature {
  background: linear-gradient(
    135deg,
    var(--nyx-purple) 0%,
    var(--nyx-dark-purple) 100%
  );
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--nyx-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nyx-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(0, 246, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nyx-feature:hover {
  border-color: var(--nyx-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.3);
}

.nyx-feature:hover::before {
  opacity: 1;
}

.nyx-feature h3 {
  color: var(--nyx-accent);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-family: var(--font-space);
  position: relative;
  z-index: 1;
}

.nyx-feature p {
  position: relative;
  z-index: 1;
}

/* Platform download buttons in features */
.platform-download-btn {
  margin-top: 15px !important;
  padding: 10px 20px !important;
  background: var(--nyx-gradient) !important;
  border: none !important;
  border-radius: 6px !important;
  color: var(--nyx-dark) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: var(--font-space) !important;
  font-size: 0.9rem !important;
  width: 100% !important;
}

.platform-download-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 246, 255, 0.4) !important;
}

/* ===== Platforms ===== */
.nyx-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.nyx-platform {
  background: linear-gradient(
    135deg,
    var(--nyx-purple) 0%,
    var(--nyx-dark-purple) 100%
  );
  padding: 12px 24px;
  border-radius: 24px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  color: var(--nyx-neon);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nyx-platform:hover {
  border-color: var(--nyx-accent);
  color: var(--nyx-accent);
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

/* ===== Code Block ===== */
.nyx-code {
  background: var(--nyx-dark-purple);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--nyx-neon);
  margin: 20px 0;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.2);
}

.nyx-code code {
  color: var(--nyx-accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* ===== Download Package Section ===== */
.download-package {
  background: linear-gradient(
    135deg,
    var(--nyx-dark-purple) 0%,
    var(--nyx-purple) 100%
  );
  border: 2px dashed var(--nyx-neon);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}

.download-package h3 {
  color: var(--nyx-accent);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.package-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.package-feature {
  text-align: center;
  padding: 20px;
}

.package-feature .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.package-feature h4 {
  color: var(--nyx-neon);
  margin-bottom: 10px;
}

/* Firefox addon image */
.firefox-addon-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.firefox-addon-img:hover {
  transform: scale(1.05);
}

/* ===== Footer ===== */
.nyx-footer {
  background: var(--nyx-purple);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--nyx-border);
}

.nyx-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.alsania-logo {
  width: 60px;
  height: auto;
}

.nyx-footer p {
  color: var(--nyx-text);
}

.nyx-footer a {
  color: var(--nyx-neon);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===== Browser Compatibility Messages ===== */
.browser-warning,
.firefox-message {
  border-radius: 8px;
  padding: 10px 15px;
  margin: 20px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.browser-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid #ffc107;
  color: #ffc107;
}

.firefox-message {
  background: rgba(0, 246, 255, 0.1);
  border: 1px solid #00F6FF;
  color: #00F6FF;
}

.browser-warning a,
.firefox-message a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nyx-title {
    font-size: 3rem;
  }

  .nyx-tagline {
    font-size: 1.1rem;
  }

  .nyx-cta {
    flex-direction: column;
    align-items: center;
  }

  .nyx-btn {
    width: 100%;
    max-width: 300px;
  }

  .nyx-section-title {
    font-size: 2.2rem;
  }

  .package-features {
    grid-template-columns: 1fr;
  }

  .nyx-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nyx-title {
    font-size: 2.5rem;
  }

  .nyx-section {
    padding: 40px 0;
  }

  .nyx-platforms {
    gap: 10px;
  }

  .nyx-platform {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .download-package {
    padding: 20px;
  }

  .nyx-badges img {
    height: 16px;
  }
}