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

:root {
  --black: #060608;
  --deep: #0a0a10;
  --marine: #0d1f3c;
  --marine-mid: #112d54;
  --marine-light: #1a4a7a;
  --purple: #3d1f8a;
  --purple-mid: #5a2fb0;
  --purple-light: #7c4fd4;
  --neon: #a78bfa;
  --neon-marine: #38bdf8;
  --text: #e8e8f0;
  --muted: #8888aa;
  --border: rgba(120, 80, 255, 0.15);
  --border-marine: rgba(56, 189, 248, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* =================== NAV =================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(6,6,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(120,80,255,0.15);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, #a78bfa 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li { display: flex; align-items: center; }

.nav-links a {
  color: #8888aa;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  padding: 0;
}

.nav-links a:hover { color: #e8e8f0; }

.nav-links a.active { color: #fff; font-weight: 500; }

.nav-links a.active:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  height: 2px;
  background: #a78bfa;
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #5a2fb0, #1a4a7a) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.2s !important;
  line-height: 1 !important;
}
.nav-cta:hover { opacity: 0.85 !important; color: #fff !important; }
.nav-cta.active { opacity: 1 !important; box-shadow: 0 0 0 1.5px rgba(167,139,250,0.5); }
.nav-cta.active::after { display: none !important; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e8e8f0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV OVERLAY */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #a78bfa;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* TABLET */
@media (max-width: 960px) {
  nav { padding: 0 1.75rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-cta { font-size: 0.8rem !important; padding: 0.45rem 0.9rem !important; }
}

/* MOBILE */
@media (max-width: 680px) {
  nav { padding: 0 1.25rem; height: 56px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0; right: 0;
    width: 70%;
    max-width: 260px;
    height: 100vh;
    background: rgba(6,6,8,0.98);
    border-left: 0.5px solid rgba(120,80,255,0.2);
    padding: 72px 0 2rem;
    z-index: 99;
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.875rem;
    color: #8888aa;
    border-bottom: 0.5px solid rgba(120,80,255,0.07);
  }
  .nav-links a:hover { color: #fff; background: rgba(167,139,250,0.04); }
  .nav-links a.active { color: #fff; background: rgba(167,139,250,0.06); }
  .nav-links a.active:not(.nav-cta)::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    display: block !important;
    margin: 1.25rem 1.25rem 0 !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.875rem !important;
    border-bottom: none !important;
  }
}
/* =================== END NAV =================== */

/* PAGE HERO (non-home pages) */
.page-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(90,47,176,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* SECTIONS */
.section {
  position: relative;
  padding: 5rem 2rem;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1rem;
  font-weight: 500;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}

h1 span {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-marine) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--marine-light) 100%);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  border: 0.5px solid rgba(167,139,250,0.3);
  color: var(--neon);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.5); }

/* DIVIDER */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}

/* CARDS */
.card {
  background: linear-gradient(135deg, rgba(13,31,60,0.6) 0%, rgba(10,10,16,0.8) 100%);
  border: 0.5px solid var(--border-marine);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.card:hover { border-color: rgba(56,189,248,0.25); transform: translateY(-2px); }
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.2), transparent);
}

/* FEATURE ICON */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(61,31,138,0.5), rgba(13,31,60,0.8));
  border: 0.5px solid rgba(167,139,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--neon);
  flex-shrink: 0;
}

/* FORM CARD */
.form-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(120,80,255,0.35);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.form-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-fields input, .form-fields textarea {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(120,80,255,0.25);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  height: 44px;
  transition: border-color 0.2s;
}

.form-fields input::placeholder, .form-fields textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-fields input:focus, .form-fields textarea:focus { border-color: var(--neon); }

.success-msg {
  color: var(--neon);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: none;
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
  margin-top: 0.5rem;
}
.footer-linkedin:hover { color: #fff; }
.footer-linkedin svg { width: 15px; height: 15px; fill: currentColor; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.5;
}

/* ANIMATE ON SCROLL */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PULSE */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.9rem;
  border: 0.5px solid rgba(167,139,250,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(61,31,138,0.15);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse 2s infinite;
}

/* CALC */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

.calc-inputs { display: flex; flex-direction: column; gap: 1.25rem; }

.calc-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(120,80,255,0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.calc-input-wrap:focus-within { border-color: var(--neon); }

.calc-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  height: 44px;
}
.calc-input-wrap input::placeholder { color: var(--muted); opacity: 0.6; }

.calc-unit {
  padding: 0 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  background: rgba(255,255,255,0.03);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-left: 0.5px solid rgba(120,80,255,0.2);
}
.calc-input-wrap.prefix .calc-unit {
  border-left: none;
  border-right: 0.5px solid rgba(120,80,255,0.2);
  order: -1;
}

.calc-error { font-size: 0.8rem; color: rgba(255,100,100,0.8); min-height: 1.2em; margin-top: 0.25rem; }

.calc-outputs {
  background: linear-gradient(135deg, rgba(13,31,60,0.6) 0%, rgba(10,10,16,0.8) 100%);
  border: 0.5px solid var(--border-marine);
  border-radius: 16px;
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.calc-result-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.calc-result-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.calc-result-card.primary {
  border-color: rgba(167,139,250,0.3);
  background: linear-gradient(135deg, rgba(61,31,138,0.2), rgba(13,31,60,0.3));
}

.calc-result-title {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.calc-result-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 30%, var(--neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.calc-result-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0.875rem 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  footer { padding: 2rem 1.5rem; }
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-outputs { position: static; }
  .nav-links { gap: 1.25rem; }
}

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.78rem; }
}

@media (max-width: 640px) {
  nav {
    padding: 0.875rem 1.25rem;
    min-height: 56px;
  }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; right: 0;
    width: 72%;
    max-width: 280px;
    height: 100vh;
    background: rgba(6,6,8,0.98);
    border-left: 0.5px solid var(--border);
    padding: 5rem 0 2rem;
    z-index: 99;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 0.5px solid rgba(120,80,255,0.08);
    white-space: nowrap;
  }
  .nav-links li a.active { color: #fff; }
  .nav-links li a.active::after { display: none; }
  .nav-links li a.nav-cta {
    margin: 1rem 1.25rem 0;
    display: block;
    text-align: center;
    border-bottom: none;
    border-radius: 6px;
  }
  .section { padding: 2.5rem 1.25rem; }
  .page-hero { padding: 7rem 1.25rem 3rem; }
  footer { padding: 2rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem; }
  .form-card { padding: 1.5rem; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
}

/* FOOTER CONSISTENCY */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* HERO FORM CARD (for shared pages that need it) */
.hero-form-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(120,80,255,0.35);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 460px;
  margin: 2rem auto 0;
  text-align: left;
}

.hero-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-form-fields input {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(120,80,255,0.25);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  transition: border-color 0.2s;
}

.hero-form-fields input::placeholder { color: var(--muted); opacity: 0.6; }
.hero-form-fields input:focus { border-color: var(--neon); }

.hero-meta {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

.success-msg {
  color: var(--neon);
  font-size: 0.875rem;
  display: none;
}

/* STRONGER MOBILE */
@media (max-width: 480px) {
  .hero-form-card { padding: 1.25rem; margin: 1.5rem 1rem 0; }
  .hero-form-fields input { height: 44px; font-size: 0.875rem; }
  .btn-primary { padding: 0.85rem 1.25rem; font-size: 0.875rem; }
  .page-hero { padding: 6rem 1.25rem 2.5rem; }
  footer { gap: 1rem; }
  .footer-links { gap: 0.75rem; }
  .mission-strip { padding: 1.75rem 1.25rem; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
}
