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

/* ════════════════════════════════════════════════════════════
   GLM 5.2 — Premium Dark Theme for Affiliate Sites
   EmpireClaw Design System
   ════════════════════════════════════════════════════════════ */

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

:root {
  /* Core Palette — GLM 5.2 Dark */
  --accent: #ff6b35;
  --accent2: #f7c59f;
  --accent-glow: rgba(255,107,53,0.3);
  --dark: #0a0a0f;
  --dark2: #12121a;
  --dark3: #1a1a2e;
  --light: #f0f0f5;
  --muted: #8888a0;
  --muted2: #6e7681;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.15);
  --card-bg: rgba(255,255,255,0.03);
  --card-bg-hover: rgba(255,255,255,0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ════════════════════════════════════════════════════════════ */
.hero-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,53,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(247,197,159,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(100,80,255,0.06) 0%, transparent 50%),
    var(--dark);
  animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  100% { background-position: 100% 100%, 50% 50%, 25% 75%; }
}

#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   GLASSMORPHISM NAVBAR
   ════════════════════════════════════════════════════════════ */
header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto;
  padding: 1.2rem 2rem;
}

.logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}

.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  transition: color 0.3s; position: relative;
}

.nav-links a:hover { color: var(--light); }

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* ════════════════════════════════════════════════════════════
   HERO — Gradient Text + Animations
   ════════════════════════════════════════════════════════════ */
.hero {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}

.hero-content { max-width: 900px; position: relative; }

.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px;
  background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2);
  color: var(--accent2); font-size: 0.8rem; font-weight: 500; margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%; animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .tagline {
  font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto 2rem;
  line-height: 1.7; animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both; position: relative;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS — Premium Glow Effects
   ════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-block; padding: 1rem 2.5rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), #e85d2a); color: white;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.3s; text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255,107,53,0.35);
}

.btn-secondary {
  display: inline-block; padding: 1rem 2.5rem; border-radius: 50px;
  background: transparent; color: var(--light); border: 1px solid rgba(255,255,255,0.15);
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════════════════════════
   STATS BAR — Glassmorphism
   ════════════════════════════════════════════════════════════ */
.stats {
  display: flex; justify-content: center; gap: 4rem; padding: 3rem 2rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02); backdrop-filter: blur(10px);
  flex-wrap: wrap; position: relative;
}

.stat { text-align: center; }

.stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* ════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════ */
.section {
  padding: 5rem 2rem; max-width: var(--max-width); margin: 0 auto;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(255,107,53,0.02), transparent);
}

.section h2 {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; text-align: center;
  letter-spacing: -0.02em;
}

.section h2 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center; color: var(--muted); max-width: 500px;
  margin: 0 auto 4rem; font-size: 1.05rem; line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   GRID + CARDS — GLM 5.2 Feature Cards
   ════════════════════════════════════════════════════════════ */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}

.article-card {
  padding: 2.5rem; border-radius: 20px;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: all 0.4s; position: relative; overflow: hidden;
}

.article-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity 0.3s;
}

.article-card:hover {
  transform: translateY(-8px);
  background: var(--card-bg-hover);
  border-color: var(--border-light);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.article-card:hover::before { opacity: 1; }

.article-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.4;
}

.article-card h3 a {
  color: var(--light); text-decoration: none;
}

.article-card h3 a:hover { color: var(--accent); }

.article-card .meta {
  font-size: 0.75rem; color: var(--muted2); text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════
   AFFILIATE BANNER
   ════════════════════════════════════════════════════════════ */
.affiliate-banner {
  padding: 3rem 2rem; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(255,107,53,0.05), transparent);
  border: 1px solid rgba(255,107,53,0.15); border-radius: var(--radius);
  margin: 2rem 0; position: relative; overflow: hidden;
}

.affiliate-banner::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.affiliate-banner h3 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.affiliate-banner p {
  color: var(--muted); margin-bottom: 1.5rem; max-width: 600px;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}

.affiliate-banner a {
  display: inline-block; padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), #e85d2a); color: white;
  font-weight: 700; border-radius: 50px; text-decoration: none; margin: 0.5rem;
  transition: all 0.3s;
}

.affiliate-banner a:hover {
  transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,53,0.3);
}

/* ════════════════════════════════════════════════════════════
   ARTICLE PAGES
   ════════════════════════════════════════════════════════════ */
.article-header {
  padding: 8rem 2rem 4rem; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  border-bottom: 1px solid var(--border);
}

.article-header::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255,107,53,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; max-width: 900px;
  margin: 0 auto 1rem; line-height: 1.1; letter-spacing: -2px; position: relative;
}

.article-header h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%; animation: gradientMove 4s ease infinite;
}

.article-meta {
  font-size: 0.875rem; color: var(--muted); position: relative;
}

.article-body {
  max-width: 800px; margin: 0 auto; padding: 4rem 2rem; position: relative;
}

.article-body h2 {
  font-size: 1.75rem; font-weight: 800; margin: 2.5rem 0 1rem;
  color: var(--light); border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem; letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.article-body p {
  margin-bottom: 1.25rem; line-height: 1.8; color: var(--muted);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem; line-height: 1.7; color: var(--muted);
}

.article-body li::marker { color: var(--accent); }

/* Comparison Table */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--dark3); color: var(--light); padding: 1rem;
  text-align: left; font-weight: 600; border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 1rem; border-bottom: 1px solid var(--border); color: var(--muted);
}

.comparison-table tr:hover { background: var(--dark2); }

/* CTA Box */
.cta-box {
  background: rgba(255,107,53,0.08); border-left: 3px solid var(--accent);
  padding: 1.5rem; margin: 2rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cta-box strong { color: var(--accent); font-weight: 700; }

.cta-box a { color: var(--accent); font-weight: 700; text-decoration: none; }

.cta-box a:hover { text-decoration: underline; }

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: var(--dark2); border: 1px solid var(--border);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--muted2); margin: 2rem 0;
}

.affiliate-disclosure strong { color: var(--muted); }

/* Table of Contents */
.toc {
  background: var(--dark2); border: 1px solid var(--border);
  padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0;
}

.toc h3 { margin-top: 0; font-size: 1rem; font-weight: 700; color: var(--light); margin-bottom: 1rem; }

.toc ul { list-style: none; margin: 0; padding: 0; }

.toc li { margin: 0.5rem 0; color: var(--muted); }

.toc a { color: var(--accent); text-decoration: none; font-size: 0.9375rem; }

.toc a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  padding: 3rem 2rem; text-align: center; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; background: var(--dark2);
}

footer a { color: var(--muted); text-decoration: none; }

footer a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   PAGE CONTENT (Disclosure, etc.)
   ════════════════════════════════════════════════════════════ */
.page-content {
  max-width: 800px; margin: 0 auto; padding: 8rem 2rem 4rem; position: relative;
}

.page-content h1 {
  font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.page-content h2 {
  font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--accent); font-weight: 700;
}

.page-content p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--muted); }

.page-content ul { margin: 1rem 0 1.5rem 1.5rem; color: var(--muted); }

.page-content li { margin-bottom: 0.5rem; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   COOKIE BANNER
   ════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(18,18,26,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); padding: 1.25rem 2rem; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; font-size: 0.875rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.cookie-banner.hidden { display: none; }

.cookie-banner-content { flex: 1; min-width: 260px; }

.cookie-banner-content h4 { color: var(--light); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }

.cookie-banner-content p { color: var(--muted); line-height: 1.5; margin: 0; }

.cookie-banner-content a { color: var(--accent); text-decoration: none; }

.cookie-banner-content a:hover { text-decoration: underline; }

.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-btn {
  padding: 0.625rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem; cursor: pointer; border: none;
  transition: all 0.2s;
}

.cookie-btn-essential { background: var(--dark3); color: var(--light); border: 1px solid var(--border); }

.cookie-btn-essential:hover { background: var(--dark2); }

.cookie-btn-accept { background: linear-gradient(135deg, var(--accent), #e85d2a); color: white; }

.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,53,0.3); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { min-height: 50vh; padding: 6rem 1.5rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1rem; }
  .stats { gap: 2rem; padding: 2rem 1rem; }
  .stat-number { font-size: 2rem; }
  .section { padding: 3rem 1rem; }
  .section h2 { font-size: 1.75rem; }
  .grid { grid-template-columns: 1fr; }
  .article-header { padding: 6rem 1.5rem 2rem; }
  .article-header h1 { font-size: 1.75rem; }
  .article-body { padding: 2rem 1rem; }
  .navbar { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .page-content { padding: 6rem 1rem 2rem; }
  .cookie-banner { padding: 1rem; flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { animation: none; }
  .gradient-text { animation: none; }
}
