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

/* ============================================================
   DELTA — Design Tokens
   ============================================================ */
:root {
  /* Brand Colors */
  --primary:        #0049AC;
  --primary-dark:   #002F7A;
  --primary-light:  #3A7BD5;
  --primary-glow:   rgba(0, 73, 172, 0.45);
  --primary-subtle: rgba(0, 73, 172, 0.12);
  --accent:         #FFD700;
  --accent-glow:    rgba(255, 215, 0, 0.25);
  --accent-subtle:  rgba(255, 215, 0, 0.10);

  /* Backgrounds */
  --bg:     #050D1A;
  --bg-2:   #070F21;
  --bg-3:   #0A1428;
  --bg-4:   #0D1932;

  /* Glassmorphism */
  --glass-bg:           rgba(255, 255, 255, 0.04);
  --glass-bg-hover:     rgba(255, 255, 255, 0.08);
  --glass-border:       rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 73, 172, 0.55);
  --glass-blur:         20px;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted:     rgba(255, 255, 255, 0.35);
  --text-faint:     rgba(255, 255, 255, 0.18);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing Scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 100px;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 0 clamp(20px, 5vw, 48px);
  --section-py: clamp(72px, 10vw, 120px);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow:  0 0 40px rgba(0, 73, 172, 0.3);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-deep:  0 20px 60px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --t-fast:    0.15s;
  --t-base:    0.3s;
  --t-slow:    0.6s;
  --t-slower:  0.9s;
  --transition: all var(--t-base) var(--ease);

  /* Navbar */
  --navbar-h: 80px;
}

/* ============================================================
   Light Theme Overrides
   ============================================================ */
[data-theme="light"] {
  /* Backgrounds */
  --bg:     #F5F7FA;
  --bg-2:   #EDF0F5;
  --bg-3:   #E4E8EE;
  --bg-4:   #D9DDE5;

  /* Glassmorphism */
  --glass-bg:           rgba(0, 49, 120, 0.04);
  --glass-bg-hover:     rgba(0, 49, 120, 0.08);
  --glass-border:       rgba(0, 49, 120, 0.10);
  --glass-border-hover: rgba(0, 73, 172, 0.40);

  /* Text */
  --text-primary:   #0D1932;
  --text-secondary: rgba(13, 25, 50, 0.65);
  --text-muted:     rgba(13, 25, 50, 0.40);
  --text-faint:     rgba(13, 25, 50, 0.20);

  /* Shadows */
  --shadow-glow:  0 0 30px rgba(0, 73, 172, 0.12);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-deep:  0 20px 60px rgba(0, 0, 0, 0.12);

  /* Primary subtle — needs more opacity on light */
  --primary-subtle: rgba(0, 73, 172, 0.08);
  --primary-glow:   rgba(0, 73, 172, 0.15);

  /* Accent (darkened for contrast against white) */
  --accent:         #B46B00;
  --accent-subtle:  rgba(180, 107, 0, 0.12);
  --accent-glow:    rgba(180, 107, 0, 0.15);
}

/* Light theme: reduce noise grain */
[data-theme="light"] body::before {
  opacity: 0.012;
}

/* Light theme: scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg);
}

/* Light theme: selection */
[data-theme="light"] ::selection {
  background: var(--primary);
  color: #fff;
}

/* Light theme: page hero gradient */
[data-theme="light"] .page-hero-bg {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,73,172,0.12) 0%, transparent 70%);
}

/* Light theme: logo text */
[data-theme="light"] .navbar-logo-text {
  color: var(--text-primary);
}

/* Light theme: text-gradient adapts */
[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, #D4A900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .text-blue {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem);   font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

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

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue {
  background: linear-gradient(135deg, var(--primary-light), #6BA8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Section Header (shared pattern)
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 16px auto 0;
  line-height: 1.75;
}

/* ============================================================
   Dividers & Decorations
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin: 20px auto 0;
}

.divider-left {
  margin: 20px 0 0;
}

/* ============================================================
   Noise / Grain Overlay (Glassmorphism texture)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 1000;
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
}

/* ============================================================
   Selection
   ============================================================ */
::selection {
  background: var(--primary);
  color: white;
}

/* ============================================================
   Page Hero (shared across inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,73,172,0.35) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-hero-breadcrumb a:hover { color: var(--accent); }
.page-hero-breadcrumb span { color: var(--text-faint); }

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@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; }
  :root { --section-py: 72px; }
}

@media (max-width: 480px) {
  :root { --section-py: 56px; }
}
