/* ═══════════════════════════════════════════════════════════════
   AETHERSTORE — Black & White Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #000000;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.2);
  --text: #ffffff;
  --text2: rgba(255,255,255,0.5);
  --text3: rgba(255,255,255,0.25);
  --gradient-1: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.6));
  --gradient-2: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.4));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

::selection { background: rgba(255,255,255,0.15); color: white; }

/* ═══════════════════════════════════════════════════════════════
   STARFIELD CANVAS
   ═══════════════════════════════════════════════════════════════ */
#starfield {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   GLASS UTILITY
   ═══════════════════════════════════════════════════════════════ */
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.glass:hover { border-color: var(--border-hover); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
  overflow: hidden; isolation: isolate;
}
.btn-primary {
  background: var(--gradient-1); color: black;
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text2);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: var(--text); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.magnetic-btn { will-change: transform; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.9);
  box-shadow: 0 1px 30px rgba(0,0,0,0.8);
}
.navbar.hidden { transform: translateY(-100%); }
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; padding: 12px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; z-index: 1; }
.logo-text {
  font-size: 1.2rem; font-weight: 700;
  color: var(--text);
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  position: relative;
  color: var(--text2); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: white;
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--text2); cursor: pointer; padding: 4px; z-index: 1;
}
.nav-progress {
  position: absolute; bottom: -1px; left: 0;
  height: 1px; background: white;
  transition: width 0.1s linear;
  width: 0;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.97); backdrop-filter: blur(40px);
    gap: 24px; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-link { font-size: 1.3rem; }
  .mobile-menu-btn { display: block; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; overflow: hidden;
  isolation: isolate;
}

.hero-content {
  position: relative; text-align: center;
  max-width: 800px; z-index: 1;
}
.hero-badge {
  display: inline-flex; padding: 6px 18px; border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.08;
  margin-bottom: 20px; letter-spacing: -2px;
}
.gradient-text {
  color: var(--text);
  opacity: 0.8;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text2);
  line-height: 1.7; max-width: 600px;
  margin: 0 auto 32px;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }

/* ─── Hero Video ─── */
.hero-videos {
  display: flex;
  justify-content: center;
}
.hero-video-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 60px rgba(255,255,255,0.03);
  aspect-ratio: 16 / 9;
}
.hero-video-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-flex; padding: 5px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p { color: var(--text2); font-size: 1rem; }

.features, .pricing {
  position: relative;
  padding: 100px 24px;
  max-width: 1200px; margin: 0 auto;
  overflow: hidden;
}

.divider {
  position: relative;
  height: 80px; overflow: hidden;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--text2); stroke-width: 1.5; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
}
.pricing-card.featured {
  border-color: rgba(255,255,255,0.12);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: white;
  border-radius: var(--radius) var(--radius) 0 0;
}
.pricing-header {
  padding: 36px 32px 0;
}
.pricing-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.pricing-price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.pricing-price .currency { font-size: 1.5rem; vertical-align: super; color: var(--text2); }
.pricing-price .period { font-size: 0.9rem; font-weight: 400; color: var(--text3); }
.pricing-header p { font-size: 0.85rem; color: var(--text3); }
.pricing-features {
  list-style: none;
  padding: 24px 32px;
  margin: 0;
}
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border: none; }
.pricing-features li svg {
  width: 16px; height: 16px;
  color: var(--text2); flex-shrink: 0;
}
.pricing-btn { margin: 0 32px 32px; width: calc(100% - 64px); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all var(--transition);
}
.footer-links a:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  transform: translateY(-2px);
}
.footer-links a svg { width: 16px; height: 16px; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text3);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 40px 32px;
  margin: 20px;
}
.modal h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.modal-sub { font-size: 0.85rem; color: var(--text2); margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text2);
  font-size: 1.2rem; cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-input-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.modal-input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: rgba(255,255,255,0.3); }
.modal-input::placeholder { color: var(--text3); }
.modal-error { color: #ef4444; font-size: 0.8rem; margin-bottom: 12px; min-height: 20px; }
.modal-switch { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text2); }
.modal-switch a { color: var(--text); text-decoration: none; font-weight: 600; }
.modal-switch a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 100px 16px 60px; }
  .features, .pricing { padding: 60px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-actions .btn { font-size: 0.8rem; padding: 6px 14px; }
}
