/* ============================================================
   SECRET DOORS MEDIA — SOVEREIGN DARK DESIGN SYSTEM v3.0
   ============================================================ */

[hidden] { display: none !important; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #050814;
  --bg-surface: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --purple: #c084fc;
  --purple-glow: rgba(192, 132, 252, 0.25);
  --green: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: all var(--transition); }
a:hover { color: #7dd3fc; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img, .brand svg { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { opacity: 0.9; }

nav a:not(.brand), nav button {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}
nav a:not(.brand):hover, nav button:hover { color: #fff; }

.nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
  transition: all var(--transition);
}
.nav-portal:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(192, 132, 252, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.mob-toggle { display: none !important; }
.mob-menu { display: none; }

@media (max-width: 860px) {
  nav { gap: 10px; }
  nav a:not(.brand):not(.nav-portal), nav button.nav-btn { display: none; }
  .mob-toggle {
    display: flex !important;
    margin-left: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }
  .mob-menu.open {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    background: #080d1a;
    border-bottom: 1px solid var(--border);
  }
  .mob-menu a {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* ============================================================
   HERO WITH MODERN MOTION GRAPHICS
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #0f1d3a 0%, #050814 80%);
  min-height: 520px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 30% 60%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
  animation: heroPulse 10s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-inner h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 auto 20px;
  max-width: 840px;
  color: #fff;
}
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-inner .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5);
  color: #fff;
}

.btn-portal {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #c084fc;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}
.btn-portal:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }

/* ============================================================
   SECTIONS & GRIDS
   ============================================================ */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-label::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: #fff;
}
.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ============================================================
   DARK GLASS CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--accent); }
.card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: all var(--transition);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.cat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cat-card p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.meta { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price { font-size: 20px; font-weight: 800; color: #fff; }
.fmt { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  gap: 4px;
  text-transform: uppercase;
}
.filters input, .filters select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  background: #0b1120;
  color: #fff;
  transition: border-color var(--transition);
}
.filters input:focus, .filters select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   CHANNELS & REVIEWS
   ============================================================ */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
  color: #fff;
  transition: all var(--transition);
}
.channel-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.channel-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-card b { display: block; font-size: 14px; font-weight: 700; }
.channel-card span { display: block; font-size: 11px; color: var(--text-muted); }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.review-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card blockquote {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 14px;
}
.review-card cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ============================================================
   CTA & FOOTER
   ============================================================ */
.cta-section {
  background: radial-gradient(circle at 50% 50%, #0f1d3a 0%, #050814 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 72px 24px;
}

footer {
  background: #03050c;
  color: var(--text-muted);
  padding: 48px 24px 32px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--text-secondary); }
footer a:hover { color: #fff; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
}
.copy { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* Micro-animations */
.particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; background: rgba(56, 189, 248, 0.25); border-radius: 50%; animation: drift linear infinite; }
@keyframes drift {
  0% { transform: translateY(100vh); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-10vh); opacity: 0; }
}
