/* ============================================================
   BOSAI — Shared Design System
   Elevated navy / cyan. Poppins display, Lato body.
   ============================================================ */

:root {
  /* Core palette */
  --navy-900: #03122E;
  --navy: #04193D;
  --navy-800: #071F49;
  --navy-mid: #0A2855;
  --navy-700: #0E3066;
  --blue: #0092D3;
  --blue-light: #29B5F0;
  --cyan: #00C6F0;
  --cyan-soft: #6FE3FF;
  --white: #FFFFFF;
  --off-white: #F4F7FC;
  --muted: #8FA3BC;
  --muted-dim: #5E739180;

  /* Functional */
  --border: rgba(0, 146, 211, 0.16);
  --border-soft: rgba(255, 255, 255, 0.07);
  --glass: rgba(10, 40, 85, 0.55);
  --ink-70: rgba(255, 255, 255, 0.7);
  --ink-60: rgba(255, 255, 255, 0.6);
  --ink-50: rgba(255, 255, 255, 0.5);

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: 48px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-blue: 0 24px 60px -20px rgba(0, 146, 211, 0.45);
  --shadow-deep: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; }

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

::selection { background: var(--cyan); color: var(--navy-900); }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--cyan);
  display: block;
}
.section-eyebrow.center { justify-content: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--cyan); }

.section-sub {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--ink-60);
  max-width: 600px;
  font-weight: 300;
}
.section-sub.center { margin-left: auto; margin-right: auto; }

.section-header { margin-bottom: 64px; max-width: 760px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 30px -12px rgba(0, 146, 211, 0.7);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(0, 146, 211, 0.85);
}
.btn-secondary {
  border: 1.5px solid rgba(0, 146, 211, 0.45);
  color: var(--white);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(0, 146, 211, 0.1);
  transform: translateY(-2px);
}
.btn-ghost { color: var(--white); background: transparent; padding-left: 0; padding-right: 0; }
.btn-ghost .arrow { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(5px); }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---- Pill / tag ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 198, 240, 0.08);
  border: 1px solid rgba(0, 198, 240, 0.22);
  padding: 7px 16px;
  border-radius: 100px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s var(--ease), border-color 0.3s, padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(4, 25, 61, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.site-nav .nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s var(--ease);
}
.site-nav.scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .nl-word { display: inline; }
.nav-logo .nl-word em { font-style: normal; color: var(--cyan); }
.nav-logo .mark {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 146, 211, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-cta {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(3, 18, 46, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a.active { color: var(--cyan); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .nav-logo { font-size: 1.5rem; margin-bottom: 18px; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
  font-weight: 300;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--ink-60);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--muted); font-size: 0.84rem; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Shared section flourishes
   ============================================================ */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
}
.divider-strip {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* grid backdrop */
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Cards (generic) ---- */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); }

/* ---- Stat ---- */
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 12, 30, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: linear-gradient(180deg, var(--navy-800), var(--navy));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-deep);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: var(--ink-70);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal p.modal-sub { color: var(--ink-60); font-size: 0.98rem; margin-bottom: 26px; font-weight: 300; }

/* ---- Form fields ---- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0, 146, 211, 0.06);
}
.field select { appearance: none; cursor: pointer; }
.field.error input, .field.error select, .field.error textarea { border-color: #ff6b81; }
.field .err-msg { color: #ff8da0; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }

.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 198, 240, 0.12);
  border: 1.5px solid var(--cyan);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.form-success h3 { margin-bottom: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  :root { --gutter: 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
