/* ===================================================
   SUPERSAGA - Global Design System
   All CSS variables, resets, utilities, animations
   =================================================== */

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

/* ---- CSS Variables / Tokens ---- */
:root {
  /* Brand Colors */
  --primary: #1a3c8f;
  --primary-dark: #0f2460;
  --primary-light: #2952b8;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8faff;
  --light-gray: #f1f5f9;
  --mid-gray: #e2e8f0;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0f2460 0%, #1a3c8f 40%, #2952b8 75%, #3b6fd4 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #f97316);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,60,143,0.08);
  --shadow-md: 0 8px 30px rgba(26,60,143,0.12);
  --shadow-lg: 0 20px 60px rgba(26,60,143,0.18);
  --shadow-xl: 0 30px 80px rgba(26,60,143,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --section-pad: 90px 0;
  --container-max: 1240px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-med: all 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.55s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-med);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(245,158,11,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245,158,11,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-primary-dark {
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---- Section Labels ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ---- Card Base ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-med);
  border: 1px solid rgba(226,232,240,0.8);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeUp {
  animation: fadeUp 0.7s ease forwards;
}
.animate-fadeUp.delay-1 { animation-delay: 0.15s; opacity: 0; }
.animate-fadeUp.delay-2 { animation-delay: 0.3s; opacity: 0; }
.animate-fadeUp.delay-3 { animation-delay: 0.45s; opacity: 0; }
.animate-fadeUp.delay-4 { animation-delay: 0.6s; opacity: 0; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-health  { background: #dcfce7; color: #16a34a; }
.badge-term    { background: #dbeafe; color: #1d4ed8; }
.badge-life    { background: #fef3c7; color: #d97706; }
.badge-claims  { background: #f3e8ff; color: #7c3aed; }
.badge-auto    { background: #fef3c7; color: #d97706; }
.badge-travel  { background: #e0f2fe; color: #0369a1; }

/* ---- Divider ---- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .section-title { font-size: 1.75rem; }
}
