/* ================================================================
   style.css — PolyCop Inner Pages Shared Stylesheet
   Used by: /fees/ /referral/ /support/ /copy-trade/
            /best-settings/ /is-polycop-safe/ /how-it-works/
            /leaderboard/
   ================================================================ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --bg-deep:       #030407;
  --bg-card:       rgba(20, 25, 35, 0.65);
  --bg-glass:      rgba(255, 255, 255, 0.03);

  --primary:       #2AABEE;
  --primary-glow:  rgba(42, 171, 238, 0.35);
  --accent:        #bc13fe;
  --accent-glow:   rgba(188, 19, 254, 0.35);
  --accent-hover:  rgba(42, 171, 238, 0.3);

  --text-primary:  #ffffff;
  --text-muted:    #94a3b8;

  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(42, 171, 238, 0.3);

  --font-main:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', monospace;
  --ease-out:      cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.07), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(42, 171, 238, 0.07), transparent 28%);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #5bc8f5; }
code {
  font-family: var(--font-mono);
  color: var(--primary);
  background: rgba(42, 171, 238, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  border: 1px solid rgba(42, 171, 238, 0.2);
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0;
}
p { color: var(--text-muted); font-size: 1rem; line-height: 1.78; margin: 0; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

/* ── Header / Nav ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(3, 4, 7, 0.97);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-logo img { border-radius: 8px; }
.nav-logo span { color: var(--text-primary); }

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--text-primary); }

/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s var(--ease-out);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #030407;
  font-weight: 800;
}
.btn-primary:hover {
  background: #5bc8f5;
  color: #030407;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(42, 171, 238, 0.4);
  color: var(--text-primary);
  background: rgba(42, 171, 238, 0.05);
}
.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: 10px; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 14px; }

/* ── Hero (inner pages) ──────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.13) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.05),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}
.card:hover { border-color: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.card:hover::after { opacity: 1; }

/* ── Section divider ─────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 72px 0;
}

/* ── Reveal animations (JS IntersectionObserver) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer (inner pages) ────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(3, 4, 7, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 99;
  }
  nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  nav a { font-size: 1rem; }
  .btn-sm { padding: 10px 20px; }

  .hero { padding: 60px 0 40px; }
  section { padding: 56px 0; }
  .section-divider { margin: 48px 0; }
}
