/* ========== CSS VARIABLES ========== */
:root {
  --primary: #0057FF;
  --primary-dark: #0040CC;
  --primary-light: #3D7FFF;
  --accent: #00D4FF;
  --bg: #FFFFFF;
  --bg-secondary: #F0F5FF;
  --bg-card: #FFFFFF;
  --text: #0A0F1E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #D6E4FF;
  --shadow: rgba(0, 87, 255, 0.12);
  --shadow-lg: rgba(0, 87, 255, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #0A0F1E;
  --footer-text: #A0AEC0;
  --gradient-1: linear-gradient(135deg, #0057FF 0%, #00D4FF 100%);
  --gradient-hero: linear-gradient(160deg, #EEF4FF 0%, #DBEAFE 50%, #EEF4FF 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #3D7FFF;
  --primary-dark: #0057FF;
  --primary-light: #60A5FA;
  --accent: #00D4FF;
  --bg: #060B18;
  --bg-secondary: #0D1626;
  --bg-card: #111827;
  --text: #F0F6FF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #1E2D4A;
  --shadow: rgba(61, 127, 255, 0.15);
  --shadow-lg: rgba(61, 127, 255, 0.3);
  --nav-bg: rgba(6, 11, 24, 0.95);
  --footer-bg: #030710;
  --footer-text: #64748B;
  --gradient-hero: linear-gradient(160deg, #060B18 0%, #0D1626 50%, #060B18 100%);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

section { padding: 100px 0; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title { margin-bottom: 16px; }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.text-center .section-label { margin: 0 auto 16px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--shadow);
  border-color: var(--primary-light);
}

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 87, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 87, 255, 0.2);
}

/* ========== PAGE HEADER ========== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,87,255,0.08) 0%, transparent 70%);
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

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

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

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.animate-fade-up { animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========== GRID HELPERS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .page-hero { padding: 130px 0 60px; }
}

/* ========== GLOBAL MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  h3 { font-size: 1.25rem; }

  .container { padding: 0 16px; }

  section { padding: 60px 0; }

  .page-hero { padding: 110px 0 56px; }
  .page-hero p { font-size: 1rem; }

  .btn { padding: 12px 22px; font-size: 0.9rem; }

  .card { padding: 22px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  .section-sub { font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  section { padding: 50px 0; }
  .page-hero { padding: 100px 0 48px; }
  .btn { padding: 11px 18px; font-size: 0.88rem; }
}
