/* ===========================
   VisionAI Solutions LLC
   Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Colors — refined corporate blue palette */
  --ink: #0A1628;
  --ink-soft: #1A2A44;
  --ink-muted: #4A5A78;
  --paper: #FDFCFA;
  --paper-warm: #F5F2EC;
  --paper-cool: #EEF2F7;
  --line: #D8DEE8;
  --line-soft: #E8ECF2;

  --blue: #1B4DA0;
  --blue-deep: #0E2F66;
  --blue-bright: #2E6BD8;
  --blue-soft: #DCE6F5;
  --gold: #B8924A;
  --gold-soft: #E8D9B8;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Spacing */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 2px 6px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06), 0 12px 32px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.08), 0 24px 80px rgba(10, 22, 40, 0.08);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

/* === Background Texture === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(27, 77, 160, 0.04), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(184, 146, 74, 0.03), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
  font-weight: 500;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.italic {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--blue);
}

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

section {
  padding: clamp(64px, 10vw, 120px) 0;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--blue); }

.nav-links a.active {
  color: var(--blue);
  font-weight: 500;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--blue);
}

.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a.nav-cta:hover {
  background: var(--blue-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* === Eyebrow / Tag === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--blue);
}

/* === Footer === */
.footer {
  background: var(--ink);
  color: var(--paper-cool);
  padding: 80px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  color: var(--paper);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(253, 252, 250, 0.6);
  max-width: 320px;
  font-size: 0.9375rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(253, 252, 250, 0.5);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(253, 252, 250, 0.75);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(253, 252, 250, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(253, 252, 250, 0.5);
  font-family: var(--font-mono);
}

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

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

.fade-up {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }

/* === Section header === */
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 20px;
}

.section-head p {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
