/* ============================================
   VIRA — Shared Design System
   Brand palette, typography, navigation, footer,
   buttons, and utility patterns used across pages.
   ============================================ */

:root {
  /* VIRA Brand Palette */
  --vira-navy: #283149;
  --vira-navy-deeper: #1E2538;
  --vira-teal: #33647F;
  --vira-teal-deep: #19303D;
  --vira-teal-light: #5B8FA8;
  --vira-teal-pale: #7BB3CC;
  --vira-black: #020C22;
  --vira-gray-light: #9C9CA1;
  --vira-gray-mid: #6B6E74;
  --vira-gray-dark: #49494C;
  --vira-gray-warm: #454143;

  /* Working tokens */
  --navy-950: var(--vira-teal-deep);
  --navy-900: var(--vira-navy);
  --navy-800: var(--vira-navy-deeper);
  --slate-50: #F7F8FA;
  --slate-100: #EFF1F4;
  --slate-200: #DDE0E5;
  --slate-300: #C2C6CC;
  --slate-400: var(--vira-gray-light);
  --slate-500: var(--vira-gray-mid);
  --slate-600: #565962;
  --slate-800: #2A2E38;
  --slate-900: #1A1D26;
  --blue-500: var(--vira-teal-light);
  --blue-600: var(--vira-teal);
  --blue-700: #295367;
  --cyan-400: var(--vira-teal-pale);
  --white: #FFFFFF;
  --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(40, 49, 73, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  display: block;
  height: 28px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--vira-teal-pale);
  margin-top: 4px;
}
.nav-cta {
  background: var(--vira-teal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }

/* ============ BUTTONS ============ */
.btn-primary, .btn-secondary, .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1;
}
.btn-primary {
  background: var(--vira-teal);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px -8px rgba(51, 100, 127, 0.55);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

.btn-light {
  background: var(--white);
  color: var(--vira-navy);
  border: 1px solid var(--slate-200);
}
.btn-light:hover { background: var(--slate-50); transform: translateY(-1px); }

.arrow {
  width: 16px; height: 16px;
  transition: transform 0.2s ease;
}
.btn-primary:hover .arrow, .btn-secondary:hover .arrow,
.btn-light:hover .arrow,
.path-card:hover .arrow,
a:hover > .arrow { transform: translateX(4px); }

/* ============ HERO PATTERNS ============ */
.hero {
  position: relative;
  min-height: 78vh;
  background: var(--vira-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--vira-teal-deep) 0%, rgba(40, 49, 73, 0.78) 50%, rgba(40, 49, 73, 0.4) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(91, 143, 168, 0.16);
  border: 1px solid rgba(123, 179, 204, 0.35);
  border-radius: 999px;
  color: var(--vira-teal-pale);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--vira-teal-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--vira-teal-light);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--white);
  font-weight: 700;
  max-width: 1000px;
  margin-bottom: 24px;
}
.hero h1 .accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--vira-teal-pale);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-paths {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ SECTIONS ============ */
.section { padding: 120px 0; }
.section-eyebrow {
  color: var(--vira-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--slate-900);
  max-width: 760px;
  margin-bottom: 24px;
}
.section-title .accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--vira-teal);
}
.section-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-600);
  max-width: 620px;
  margin-bottom: 60px;
}

.section.dark { background: var(--vira-navy); color: var(--white); position: relative; overflow: hidden; }
.section.dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(51, 100, 127, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(123, 179, 204, 0.08) 0%, transparent 50%);
}
.section.dark > .container { position: relative; z-index: 2; }
.section.dark .section-eyebrow { color: var(--vira-teal-pale); }
.section.dark .section-title { color: var(--white); }
.section.dark .section-title .accent { color: var(--vira-teal-pale); }
.section.dark .section-sub { color: rgba(255, 255, 255, 0.7); }

.section.muted { background: var(--slate-50); }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--vira-navy);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(51, 100, 127, 0.35) 0%, transparent 55%);
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.cta-band h2 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.cta-band h2 .accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--vira-teal-pale);
}
.cta-band p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--vira-teal-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand .logo img { height: 32px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
  margin-top: 20px;
}
.footer h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer ul a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--vira-teal); color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 20px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-paths { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary, .btn-light { justify-content: center; }
}
