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

:root {
  /* Light theme palette — anchored on brand navy (#003366) */
  --bg-primary: #f4f7fb;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #eef3f9;
  --bg-muted: #e6edf5;
  --bg-hero: linear-gradient(135deg, #d6e4f0 0%, #f4f7fb 50%, #c8d9eb 100%);

  --accent: #003366;
  --accent-light: #4a7ab5;
  --accent-dark: #002244;
  --accent-glow: rgba(0, 51, 102, 0.15);
  --accent-bg: rgba(0, 51, 102, 0.1);

  --text-primary: #001a33;
  --text-secondary: #334d66;
  --text-muted: #5c7085;
  --text-on-accent: #ffffff;

  --border-subtle: #ccd9e6;
  --border-accent: rgba(0, 51, 102, 0.35);

  --navy: #003366;
  --teal: #003366;
  --teal-dark: #002244;
  --teal-light: #d6e8f5;
  --gold: #c4920a;
  --slate: #334d66;

  --font-display: "Inter", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --text-scale: 1;
  --font-size-base: 1.275rem;

  --nav-bar-height: 80px;
  --header-offset: var(--nav-bar-height);

  --container-max: 1200px;
  --section-pad: 96px;

  --shadow-sm: 0 1px 3px rgba(0, 26, 51, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 26, 51, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 26, 51, 0.1);

  --nav-bg: rgba(244, 247, 251, 0.85);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
  --hero-section-gradient: linear-gradient(135deg, #d6e4f0 0%, #f4f7fb 100%);
  --hero-overlay: linear-gradient(
    to right,
    rgba(244, 247, 251, 0.95) 0%,
    rgba(244, 247, 251, 0.88) 40%,
    rgba(244, 247, 251, 0.6) 70%,
    rgba(244, 247, 251, 0.35) 100%
  );

  color-scheme: light;
}

[data-theme="dark"] {
  --bg-primary: #0d1520;
  --bg-white: #151f2e;
  --bg-card: #1a2638;
  --bg-card-hover: #243044;
  --bg-muted: #1e2d42;
  --bg-hero: linear-gradient(135deg, #0f1a28 0%, #0d1520 50%, #152238 100%);

  --accent: #5a9fd4;
  --accent-light: #7eb8e8;
  --accent-dark: #9ecef5;
  --accent-glow: rgba(90, 159, 212, 0.25);
  --accent-bg: rgba(90, 159, 212, 0.12);

  --text-primary: #e8eef5;
  --text-secondary: #b8c5d6;
  --text-muted: #8a9bb0;
  --text-on-accent: #ffffff;

  --border-subtle: #2a3d56;
  --border-accent: rgba(90, 159, 212, 0.4);

  --navy: #003366;
  --teal: #5a9fd4;
  --teal-dark: #3d7ab0;
  --teal-light: #1a3050;
  --gold: #d4a84a;
  --slate: #5c7085;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);

  --nav-bg: rgba(13, 21, 32, 0.9);
  --nav-bg-scrolled: rgba(21, 31, 46, 0.97);
  --hero-section-gradient: linear-gradient(135deg, #152238 0%, #0d1520 100%);
  --hero-overlay: linear-gradient(
    to right,
    rgba(13, 21, 32, 0.96) 0%,
    rgba(13, 21, 32, 0.9) 40%,
    rgba(13, 21, 32, 0.65) 70%,
    rgba(13, 21, 32, 0.4) 100%
  );

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  font-size: calc(87.5% * var(--text-scale));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1.194rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-bg);
}

/* Section utilities */
.section { padding: var(--section-pad) 0; }
.text-accent { color: var(--accent-dark); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Section tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-tag .num {
  font-size: 1.113rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.section-tag .line {
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.section-tag .text {
  font-size: 0.956rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.6s ease-out both;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  :root { --section-pad: 56px; }
  .container { padding: 0 20px; }
}
