/* ══════════════════════════════════════
   ARVIRAL — style.css
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --neon: #00FF00;
  --neon-dim: rgba(0, 255, 0, 0.2);
  --neon-glow: rgba(0, 255, 0, 0.5);
  --bg: #111315;
  --bg-glass: rgba(17, 19, 21, 0.65);
  --bg-glass-heavy: rgba(17, 19, 21, 0.82);
  --text: #e8eaed;
  --text-muted: rgba(255, 255, 255, 0.38);
  --text-faint: rgba(255, 255, 255, 0.2);
  --border-neon: rgba(0, 255, 0, 0.22);
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Inter', sans-serif;
  --header-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-mono); }

/* ══════════════════════════════════════
   BACKGROUND LAYERS
   ══════════════════════════════════════ */
.bg-image,
.bg-mask,
.bg-scanlines,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-image {
  z-index: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.28;
}

.bg-mask {
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(17,19,21,0.6) 0%,
      rgba(17,19,21,0.1) 35%,
      rgba(17,19,21,0.55) 75%,
      var(--bg) 100%
    ),
    linear-gradient(to right,
      rgba(17,19,21,0.65) 0%,
      transparent 30%,
      transparent 70%,
      rgba(17,19,21,0.65) 100%
    );
}

.bg-scanlines {
  z-index: 2;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 0, 0.012) 2px,
    rgba(0, 255, 0, 0.012) 4px
  );
}

.bg-glow {
  z-index: 2;
  background: radial-gradient(
    ellipse 55% 45% at 50% 62%,
    rgba(0, 255, 0, 0.06) 0%,
    transparent 70%
  );
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.1);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-phoenix {
  flex-shrink: 0;
  animation: phoenixGlow 3s ease-in-out infinite;
  transition: filter 0.3s ease;
}

@keyframes phoenixGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0,255,0,0.7)); }
  50%       { filter: drop-shadow(0 0 18px rgba(0,255,0,1)) drop-shadow(0 0 32px rgba(0,255,0,0.35)); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--neon);
  text-shadow: 0 0 18px var(--neon-glow);
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.logo:hover .logo-text {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.3);
}
.logo:hover .logo-phoenix {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.9)) brightness(10);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
  border: 1px solid var(--neon);
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(0,255,0,0.04);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  animation: pulseBorder 2.2s ease-in-out infinite;
}
.btn-cta:hover {
  animation: none;
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px #fff,
    0 0 18px 4px rgba(255,255,255,0.25),
    0 0 40px 8px rgba(255,255,255,0.08);
  transform: scale(1.05);
}
.btn-cta:hover .crown-icon path,
.btn-cta:hover .crown-icon rect,
.btn-cta:hover .crown-icon circle {
  fill: #ffffff;
  stroke: rgba(255,255,255,0.6);
}
.btn-cta:hover .crown-icon {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9));
}

.crown-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0,255,0,0.7));
  transition: filter 0.3s ease;
}
.crown-icon path,
.crown-icon rect,
.crown-icon circle {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,0,0); }
  50%       { box-shadow: 0 0 10px 3px rgba(0,255,0,0.28); }
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-neon);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
}
.mobile-menu.open {
  max-height: 300px;
  padding: 20px 24px;
  gap: 16px;
}
.mobile-menu .nav-link,
.mobile-menu .btn-cta {
  font-size: 13px;
  display: block;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
main {
  flex: 1;
  position: relative;
  z-index: 10;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 90px) 24px 80px;
}

/* Eyebrow tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(0,255,0,0.65);
  border: 1px solid rgba(0,255,0,0.2);
  background: rgba(0,255,0,0.05);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* Animated dot */
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  flex-shrink: 0;
  animation: blink 1.6s ease-in-out infinite;
}
.dot--sm {
  width: 5px; height: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* H1 */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #e8eaed 35%, var(--neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 28px rgba(0,255,0,0.14));
}

/* Subtitle */
.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 400px;
}

/* ══════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════ */
.search-wrap {
  width: 100%;
  max-width: 600px;
  margin-bottom: 0;
}

.search-inner {
  position: relative;
  border: 1px solid var(--border-neon);
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.search-inner:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 12px 2px rgba(255,255,255,0.1);
}

.search-inner.focused {
  border-color: #ffffff;
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px #fff,
    0 0 20px 4px rgba(255,255,255,0.2),
    0 0 40px 8px rgba(255,255,255,0.07);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  opacity: 0.28;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
  stroke: #00FF00;
}
.search-inner:hover .search-icon {
  opacity: 0.6;
  stroke: #ffffff;
}
.search-inner.focused .search-icon {
  opacity: 1;
  stroke: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 17px 126px 17px 50px;
  caret-color: var(--neon);
  border-radius: 999px;
}
.search-input::placeholder { color: var(--text-faint); }

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--neon);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.3s ease, color 0.3s ease;
}
.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 14px rgba(0,255,0,0.5);
}
.search-btn:active {
  transform: translateY(-50%) scale(0.97);
}
.search-inner:hover .search-btn {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 14px rgba(255,255,255,0.35);
}
.search-inner.focused .search-btn {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════
   PLATFORM PILLS
   ══════════════════════════════════════ */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  max-width: 520px;
}

.pill {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.32);
  background: rgba(17,19,21,0.5);
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  cursor: default;
  user-select: none;
}
.pill:hover {
  border-color: rgba(0,255,0,0.4);
  color: rgba(0,255,0,0.8);
  background: rgba(0,255,0,0.05);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-glass-heavy);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.18);
}

/* ══════════════════════════════════════
   ANIMATIONS D'ENTRÉE
   ══════════════════════════════════════ */
.anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .header { padding: 0 20px; }

  .nav { display: none; }
  .burger { display: flex; }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 60px;
  }

  .hero-title { font-size: clamp(32px, 10vw, 52px); }

  .search-input { font-size: 12px; padding: 14px 110px 14px 42px; }

  .footer { padding: 10px 20px; flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 18px; }
  .pills { gap: 6px; }
  .pill { font-size: 9px; padding: 4px 10px; }
}