/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: #0b1020;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: #0b1020;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #00aaff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Header ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(15, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: 55px;
  border-radius: 7px;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #00aaff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00aaff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 10px;
    flex-direction: column;
    background: rgba(10, 15, 30, 0.95);
    width: 220px;
    border-radius: 10px;
    padding: 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ddd;
}

.btn {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary {
  background: #00aaff;
  color: #fff;
}

.btn-primary:hover {
  background: #0090dd;
}

.btn-tertiary {
  background: transparent;
  border: 2px solid #00aaff;
  color: #00aaff;
}

.btn-tertiary:hover {
  background: #00aaff;
  color: #fff;
}

/* Subscribe button with sleek flashing color */
.btn-secondary {
  background: linear-gradient(45deg, #ff6b6b, #fca5a5, #ff6b6b);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.btn-secondary:hover {
  transform: scale(1.05);
}

.hero-desktop-download {
  margin-top: 18px;
  text-align: center;
}

.btn-download {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #042033;
  font-weight: 700;
  min-width: 320px;
  padding: 14px 24px;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.25);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.35);
}

.download-note {
  margin-top: 10px;
  color: #c7d2fe;
  font-size: 0.9rem;
}

.subscribe-text {
  display: inline-block;
  transform: scale(1.59);
  transform-origin: center;
}

@keyframes pulseGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

.activation-panel {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(8px);
  display: none;
}

.activation-panel.show {
  display: block;
}

.activation-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #9ad7ff;
}

.activation-panel p {
  color: #dbeafe;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.activation-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.activation-form input {
  width: 220px;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.98rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.activation-form input:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2);
}

.activation-message {
  margin-top: 12px;
  min-height: 22px;
  font-weight: 600;
  color: #fbbf24;
}

.activation-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.activation-actions .btn {
  padding: 10px 20px;
}

.activation-message.success {
  color: #22c55e;
}

.activation-message.error {
  color: #f87171;
}

/* ===== Features ===== */
.features {
  background: #10172a;
  padding: 80px 0;
  text-align: center;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px 20px;
  width: 280px;
  transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #00aaff;
  margin-bottom: 10px;
}

/* ===== Footer ===== */
.footer {
  background: #0a0f1f;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 768px) {
  .activation-form {
    flex-direction: column;
  }

  .activation-form input,
  .activation-form .btn {
    width: 100%;
  }

  .btn-download {
    min-width: 100%;
  }

  .activation-actions .btn {
    width: 100%;
  }
}