/* ═══════════════════════════════════════════════════════════════
   Cashbak.io — Main Stylesheet
   The Multi-Asset Cashback Ecosystem
   ──────────────────────────────────────────────
   Version: 1.0.0
   Created: 2026-05-14
   Author: Cashbak Team
   ──────────────────────────────────────────────
   Contains: Reset + Variables + Topbar + Footer + Base
═══════════════════════════════════════════════════════════════ */

/* ==================== RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, Tahoma, sans-serif;
}

/* ==================== ROOT VARIABLES (Brand DNA) ==================== */
:root {
  /* === Brand Colors === */
  --green: #10b981;
  --green-dark: #047857;
  --green-soft: #ecfdf5;
  --green-light: #d1fae5;
  
  --gold: #f59e0b;
  --gold-soft: #fffbeb;
  --gold-dark: #b45309;
  
  --dark: #101828;
  --gray: #667085;
  --gray-light: #94a3b8;
  --line: #e4e7ec;
  --white: #ffffff;
  --bg-soft: #f8fafc;
  
  /* === Accent Colors === */
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --purple: #8b5cf6;
  --purple-soft: #f3e8ff;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --orange: #f97316;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --lime: #84cc16;
  
  /* === Dark Panel Colors === */
  --panel-dark-1: #111827;
  --panel-dark-2: #1f2937;
  --panel-dark-3: #064e3b;
  --panel-darker: #0a1018;
  
  /* === Typography === */
  --font-family: 'Inter', Arial, Tahoma, sans-serif;
  
  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 800;
  --fw-extra: 900;
  --fw-ultra: 950;
  
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 44px;
  --fs-5xl: 52px;
  --fs-6xl: 64px;
  
  /* === Spacing === */
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 22px;
  --space-lg: 32px;
  --space-xl: 44px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  
  /* === Border Radius === */
  --radius-pill: 999px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-3xl: 34px;
  --radius-4xl: 36px;
  
  /* === Shadows === */
  --shadow-sm: 0 4px 12px rgba(16,24,40,.04);
  --shadow-md: 0 12px 40px rgba(16,24,40,.06);
  --shadow-lg: 0 14px 44px rgba(16,24,40,.06);
  --shadow-xl: 0 24px 80px rgba(16,24,40,.08);
  --shadow-2xl: 0 24px 80px rgba(16,24,40,.18);
  --shadow-3xl: 0 32px 100px rgba(16,24,40,.20);
  --shadow-green: 0 14px 26px rgba(16,185,129,.24);
  --shadow-green-lg: 0 14px 34px rgba(16,185,129,.28);
  --shadow-gold: 0 14px 26px rgba(245,158,11,.28);
  --shadow-gold-lg: 0 24px 80px rgba(245,158,11,.25);
  
  /* === Container === */
  --container-max: 1240px;
  --container-padding: 24px;
  
  /* === Transitions === */
  --transition-fast: .2s;
  --transition-normal: .25s;
  --transition-slow: .35s;
}

/* ==================== BASE ==================== */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--dark);
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.14), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f3f8f6 45%, #eef6f2 100%);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: auto;
  padding: 0 var(--container-padding);
}

/* ==================== TOPBAR ==================== */
.topbar-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 24px;
}

.topbar {
  max-width: 1240px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-extra);
  font-size: 24px;
  color: var(--green-dark);
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(16,185,129,.25);
  font-weight: var(--fw-extra);
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--gray);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}

.nav a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav a:hover { color: var(--green-dark); }
.nav a.active { color: var(--green-dark); }

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--gray);
  font-weight: var(--fw-bold);
  margin: 24px 0 18px;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb span.active { color: var(--green-dark); }

/* ==================== SECTION HEADER ==================== */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-extra);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2 {
  font-size: var(--fs-4xl);
  letter-spacing: -1.5px;
  line-height: 1.15;
  font-weight: var(--fw-ultra);
  margin-bottom: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.section h2 .gold-text {
  color: var(--gold);
}

.section-sub {
  font-size: 17px;
  color: var(--gray);
  font-weight: 700;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--panel-darker);
  color: white;
  padding: 60px 24px 30px;
  margin-top: 80px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--green);
}

.footer-brand p {
  font-size: var(--fs-base);
  color: var(--gray-light);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-extra);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col a {
  font-size: var(--fs-base);
  color: var(--gray-light);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: #64748b;
  font-weight: 700;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: var(--fs-sm);
  color: var(--gray-light);
  text-decoration: none;
  font-weight: 700;
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.invisible { visibility: hidden; }

.fade-in { animation: fadeIn .5s ease; }
.slide-in { animation: slideInRight .5s ease; }
