/* ─── Base ─────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-secondary);
  background-color: var(--navy-950);
  line-height: 1.6;
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  line-height: 1.15;
}

h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.05; }
h2 { font-size: var(--text-2xl);  font-weight: 700; }
h3 { font-size: var(--text-xl);   font-weight: 700; }
h4 { font-size: var(--text-lg);   font-weight: 600; }

p { line-height: 1.7; }

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

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

section {
  padding: var(--section-pad-v) var(--section-pad-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--blue-300);
  padding: 0.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--blue-300);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-ghost-lg {
  padding: 0.85rem 2rem;
  font-size: 0.88rem;
}

/* ─── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 15, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(3, 15, 39, 0.98);
  box-shadow: 0 1px 0 var(--border-bright);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-mark {
  display: flex;
  align-items: center;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.nav__wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-300);
  transition: width 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 68px;
  background: rgba(3, 15, 39, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  font-family: 'Syne', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__mobile a:hover {
  color: var(--blue-300);
}

.nav__mobile .btn-primary {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--navy-900);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--section-pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-secondary);
}

.footer__email {
  color: var(--blue-300) !important;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__linkedin:hover {
  color: var(--blue-300) !important;
}

/* ─── CTA Section ──────────────────────────────────────── */
.cta-section {
  background: #f5f6f8;
  max-width: none;
  margin: 0;
  padding: 5rem 0;
  border-top: 1px solid rgba(42,92,170,0.12);
}

.cta-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta-section__label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1.25rem;
}

.cta-section__heading {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f2147;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-section__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #4a5e78;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 3.5rem;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cta-section__divider {
  width: 1px;
  height: 60px;
  background: rgba(42,92,170,0.2);
  margin: 0 4rem;
  flex-shrink: 0;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cta-action__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue-400);
  transition: color 0.2s;
  text-decoration: none;
}

.cta-action__link:hover {
  color: var(--blue-500);
}

.cta-action__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2a5caa, #5243d6);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 1rem 3rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.cta-action__btn:hover {
  box-shadow: 0 8px 30px rgba(82, 67, 214, 0.4);
  transform: translateY(-2px);
}

.cta-action__note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #7a91aa;
  text-align: center;
}

.cta-action__email {
  color: var(--blue-400);
  transition: color 0.2s;
}

.cta-action__email:hover {
  color: var(--blue-500);
}

/* ─── Contact Modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 15, 39, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.28s ease;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

/* Close button — circular */
.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.modal__close:hover {
  background: #e2e8f0;
  color: #0a1a3a;
}

/* Eyebrow pill */
.modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8f0fe;
  color: #2a5caa;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  margin-bottom: 0;
}

.modal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a5caa;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.modal__heading {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0a1a3a;
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.15;
}

.modal__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #6b7a99;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Form */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal__field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a1a3a;
}

.modal__req {
  color: #2a5caa;
  margin-left: 0.15em;
}

.modal__opt {
  color: #9aadbe;
  font-weight: 400;
  font-size: 0.78rem;
}

.modal__field input,
.modal__field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #0a1a3a;
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}

.modal__field textarea {
  min-height: 100px;
}

.modal__field input::placeholder,
.modal__field textarea::placeholder {
  color: #a8bccf;
}

.modal__field input:focus,
.modal__field textarea:focus {
  border-color: #2a5caa;
  background: #ffffff;
  outline: none;
}

.modal__field input.error,
.modal__field textarea.error {
  border-color: #e05555;
}

/* Submit button */
.modal__submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #2a5caa, #5243d6);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 0.25rem;
}

.modal__submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Error message */
.modal__error {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #c0392b;
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.modal__error a {
  color: #c0392b;
  text-decoration: underline;
}

/* Shared result screen (success + error) */
.modal__result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.modal__result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__result-icon--success { background: #e8f5e9; }
.modal__result-icon--error   { background: #fdecea; }

.modal__result-divider {
  width: 60px;
  border: none;
  border-top: 1.5px solid #e2e8f0;
  margin: 1.5rem auto;
}

.modal__result-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0a1a3a;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.modal__result-line1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #0a1a3a;
  margin: 0;
  line-height: 1.5;
}

.modal__result-line2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #6b7a99;
  margin: 0.5rem 0 0;
  max-width: 320px;
  line-height: 1.6;
}

.modal__result-link {
  color: var(--blue-300);
  transition: color 0.2s;
}

.modal__result-link:hover {
  color: var(--blue-200);
}

/* Result buttons */
.modal__result-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.modal__result-btn {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.modal__result-btn--primary {
  background: linear-gradient(135deg, #2a5caa, #5243d6);
  color: #ffffff;
  margin-top: 2rem;
}

.modal__result-btn--danger {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  color: #ffffff;
}

.modal__result-btn--ghost {
  background: transparent;
  color: #0a1a3a;
  border: 1.5px solid #cbd5e1;
}

.modal__result-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.modal__result-btn--ghost:hover {
  border-color: #0a1a3a;
  opacity: 1;
}

@media (max-width: 560px) {
  .modal { padding: 2rem 1.5rem; border-radius: 12px; }
  .modal__row { grid-template-columns: 1fr; }
  .modal__heading { font-size: 1.6rem; }
}

@media (max-width: 767px) {
  .cta-section__heading { font-size: 1.9rem; }
  .cta-section__sub br { display: none; }
  .cta-section__actions { flex-direction: column; gap: 2.5rem; }
  .cta-section__divider { width: 60px; height: 1px; margin: 0; }
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links {
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
