/* 🗺️ AffiliatesAtlas Premium Glassmorphism Design System CSS */

:root {
  --bg-dark: #070913;
  --bg-deep: #03040a;
  --bg-elev: rgba(18, 22, 41, 0.65);
  --accent-purple: #8e2de2;
  --accent-purple-glow: rgba(142, 45, 226, 0.4);
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.4);
  --text-main: #f3f4f6;
  --text-dim: #9ca3af;
  --glass-border: rgba(142, 45, 226, 0.25);
  --font-family: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 10% 20%, rgba(142, 45, 226, 0.15) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.12) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.75);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 22px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  color: var(--accent-purple);
  text-shadow: 0 0 12px var(--accent-purple-glow);
}

.logo span {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(142, 45, 226, 0.1);
  border: 1px solid var(--accent-purple);
  border-radius: 999px;
  font-size: 13px;
  color: #c084fc;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Glass Card styles */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.glass-card {
  background: var(--bg-elev);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.08);
}

.card-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  opacity: 0.8;
}

.card-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.card-text {
  font-size: 14px;
  color: var(--text-dim);
}

/* Case Study Content Layout */
.case-study {
  background: linear-gradient(135deg, rgba(18, 22, 41, 0.4) 0%, rgba(3, 4, 10, 0.9) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .case-study {
    padding: 30px 20px;
  }
}

.case-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.case-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.case-title {
  font-size: 32px;
  margin-bottom: 16px;
  color: #fff;
}

.case-body p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 20px;
}

.case-body a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3);
  transition: all 0.3s ease;
}

.case-body a:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.metrics-row {
  display: flex;
  gap: 30px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.metric-card {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-purple);
  display: block;
}

.metric-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Call To Action */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #4a00e0 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(142, 45, 226, 0.6);
}

/* Footer Links */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-deep);
  padding: 60px 0 30px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo i {
  color: var(--accent-purple);
}

.footer-links h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  font-size: 11px;
}

.footer-bottom a {
  color: var(--accent-cyan);
  text-decoration: none;
}
