/* ============================================
   HYDRACKER.CLUB — Main Stylesheet
   Dark Theme | Red Accent | Modern UI
   ============================================ */

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

/* ── Variables ─────────────────────────────── */
:root {
  --red:        #CC0000;
  --red-bright: #ff1a1a;
  --red-dark:   #8a0000;
  --red-glow:   rgba(204, 0, 0, 0.35);
  --bg:         #0a0a0e;
  --bg2:        #111117;
  --bg3:        #18181f;
  --card:       rgba(255,255,255,0.04);
  --border:     rgba(255,255,255,0.08);
  --border-red: rgba(204,0,0,0.4);
  --text:       #f0f0f5;
  --muted:      #888899;
  --white:      #ffffff;
  --radius:     14px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

/* ── Noise Overlay ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Ambient Glow ──────────────────────────── */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite alternate;
}
.ambient-1 { width: 600px; height: 600px; background: rgba(204,0,0,0.12); top: -200px; right: -100px; }
.ambient-2 { width: 400px; height: 400px; background: rgba(204,0,0,0.07); bottom: 100px; left: -150px; animation-delay: -6s; }

@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,20px) scale(1.05); } }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: rgba(10,10,14,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform var(--transition);
}
.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.1);
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.user-icon { font-size: 0.9rem; }
.user-pill:hover { border-color: var(--border-red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-red); }

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-red:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 28px rgba(255,26,26,0.45);
  transform: translateY(-1px);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 99px; transition: all var(--transition); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 4rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-red);
  background: rgba(204,0,0,0.08);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--red); }
.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 0%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-lg { padding: 0.75rem 1.8rem; font-size: 1rem; border-radius: 11px; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.stat h3 span { color: var(--red); }
.stat p { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ── Chat Widget Panel ─────────────────────── */
.chat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chat-frame {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(204,0,0,0.12),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(204,0,0,0.08);
  transition: box-shadow var(--transition);
}
.chat-frame:hover {
  box-shadow:
    0 0 0 1px rgba(204,0,0,0.25),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(204,0,0,0.15);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(204,0,0,0.08);
  border-bottom: 1px solid var(--border-red);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.chat-header-left .icon {
  font-size: 1.1rem;
}
.chat-header-left strong {
  font-size: 0.9rem;
  font-weight: 600;
}
.chat-online {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 500;
}
.chat-online .dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.chat-body {
  padding: 0;
  line-height: 0;
  min-height: 420px;
}
#chat-widget-container iframe,
#chat-widget-container script {
  display: block;
  width: 100% !important;
  height: 420px !important;
}
#chat-widget-container script {
  display: none !important; /* Forces script to stay hidden while the iframe is injected */
}
#chat-widget-container iframe {
  border: none;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,0,0,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(204,0,0,0.1);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 46px; height: 46px;
  background: rgba(204,0,0,0.12);
  border: 1px solid var(--border-red);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   RULES SECTION
   ============================================ */
.rules-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.rule-item:hover {
  border-color: var(--border-red);
  background: rgba(204,0,0,0.04);
}
.rule-num {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.rule-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.rule-item p { font-size: 0.825rem; color: var(--muted); line-height: 1.5; }

.rules-image {
  position: sticky;
  top: 90px;
}
.rules-visual {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}
.rules-visual .big-icon { font-size: 4rem; margin-bottom: 1rem; }
.rules-visual h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.rules-visual p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  z-index: 1;
  margin: 0 4rem 5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(204,0,0,0.15) 0%, rgba(10,10,14,0) 100%);
  border: 1px solid var(--border-red);
  padding: 4rem;
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 250px;
  background: rgba(204,0,0,0.2);
  filter: blur(80px);
  border-radius: 50%;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  position: relative;
}
.cta-section .btn { position: relative; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
}
.footer-logo span { color: var(--red); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,14,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  border: none; background: transparent;
  transition: color var(--transition);
}
.mobile-close:hover { color: var(--red); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 5rem 2.5rem 3rem; }
  .hero-content { max-width: 580px; margin: 0 auto; text-align: center; }
  .hero-desc { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .chat-panel { max-width: 540px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .rules-wrapper { grid-template-columns: 1fr; }
  .rules-image { display: none; }
  .section { padding: 4rem 2.5rem; }
  .cta-section { margin: 0 2.5rem 4rem; padding: 3rem 2rem; }
  footer { padding: 2rem 2.5rem; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 1.25rem 2rem; }
  .section { padding: 3rem 1.25rem; }
  .cta-section { margin: 0 1.25rem 3rem; padding: 2.5rem 1.5rem; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1.25rem; text-align: center; }
}
