@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(../assets/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../assets/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../assets/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../assets/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

:root {
  --blue: #0A4DA6;
  --navy: #061E46;
  --navy-2: #0B2C63;
  --yellow: #FFD23F;
  --red: #E01B22;
  --ink: #10233F;
  --muted: #51627C;
  --paper: #F4F6FA;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font: 500 17px/1.6 Montserrat, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--navy); }
img, canvas, svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 5vw, 52px); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.eyebrow--red { color: var(--red); }
.eyebrow--blue { color: var(--blue); }
.head { margin-bottom: 52px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 2px solid transparent; border-radius: 10px; font: 700 16px Montserrat, sans-serif; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-3px); }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 5px 0 #C99A10; }
.btn--yellow:hover { box-shadow: 0 8px 0 #C99A10; }
.btn--yellow:active { transform: translateY(3px); box-shadow: 0 2px 0 #C99A10; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h); display: flex; align-items: center; gap: 32px; padding: 0 max(20px, calc((100% - 1180px) / 2)); background: rgba(6,30,70,.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__logo img { height: 62px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; opacity: .85; }
.nav__links a:hover { opacity: 1; color: var(--yellow); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; background: radial-gradient(60% 75% at 72% 48%, #114FAB 0%, #0B2C63 45%, var(--navy) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { position: absolute; right: 8%; top: 50%; width: min(38vw, 440px); transform: translateY(-50%); }
.hero__copy { position: relative; z-index: 2; width: min(1180px, 100% - 40px); margin: 0 auto; padding-top: var(--nav-h); pointer-events: none; }
.hero__copy > * { max-width: 560px; }
.hero__copy a { pointer-events: auto; }
.hero__copy > h1 { max-width: none; font-size: clamp(40px, 5vw, 72px); }
.hero h1 span { color: var(--yellow); }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: #D7E2F3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 30px; height: 48px; margin-left: -15px; border: 2px solid rgba(255,255,255,.5); border-radius: 16px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Services */
.services { padding: 104px 0; background: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1400px; }
.card { --rx: 0deg; --ry: 0deg; position: relative; padding: 18px 28px 32px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 #E2E7F0, 0 18px 40px -22px rgba(10,50,110,.35); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s; }
.card:hover { box-shadow: 0 1px 0 #E2E7F0, 0 30px 50px -22px rgba(10,50,110,.5); }
.card__stage { position: relative; width: min(240px, 100%); aspect-ratio: 1; margin: 0 auto 10px; transform: translateZ(36px); }
.card__stage::before { content: ""; position: absolute; inset: 5%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE993, var(--yellow)); }
.card__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card h3 { font-size: 22px; transform: translateZ(24px); }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--muted); transform: translateZ(14px); }
.ban { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: rotate(-90deg); transform-origin: center; }
.ban circle, .ban line { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-dasharray: 1.02 1.02; stroke-dashoffset: 1.02; transition: stroke-dashoffset .8s ease; }
.ban line { stroke-width: 3.5; transition-delay: .45s; transition-duration: .35s; opacity: .95; transform: rotate(90deg); transform-origin: center; }
.card.is-in .ban circle, .card.is-in .ban line { stroke-dashoffset: 0; }

/* How */
.how { padding: 104px 0; background: var(--yellow); color: var(--navy); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; }
.steps li { position: relative; padding: 30px 28px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 8px 10px 0 var(--blue); transition: transform .25s; }
.steps li:hover { transform: translateY(-6px) rotateX(5deg); }
.steps b { display: block; font-size: 64px; line-height: 1; color: var(--yellow); margin-bottom: 14px; text-shadow: 3px 3px 0 var(--blue); }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 8px; font-size: 15.5px; color: #D7E2F3; }

/* Contact */
.contact { padding: 104px 0; color: #fff; background: radial-gradient(70% 90% at 15% 20%, #0B3A85, var(--navy)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.details { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.details li { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.details span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9FB6D8; }
.details a { text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.form { padding: 32px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px #000; }
.form h3 { font-size: 24px; }
.form__note { margin: 6px 0 22px; font-size: 14.5px; color: var(--muted); }
.form label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.form input, .form select { display: block; width: 100%; height: 50px; margin-top: 6px; padding: 0 14px; border: 1.5px solid #C7D1E0; border-radius: 9px; background: #fff; font: 500 16px Montserrat, sans-serif; color: var(--ink); }
.form input:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form .btn { width: 100%; margin-top: 8px; }

/* Footer and mobile dock */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px max(20px, calc((100% - 1180px) / 2)); background: #04152F; color: #9FB6D8; font-size: 14px; }
.footer img { height: 70px; width: auto; }
.dock { display: none; }

@media (max-width: 960px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .nav__links { display: none; }
  .nav > .btn { margin-left: auto; }
}

/* Stacked hero: the 3D shield sits above the text */
@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-bottom: 44px; background: radial-gradient(90% 45% at 50% 28%, #114FAB 0%, #0B2C63 55%, var(--navy) 100%); }
  .hero__copy { padding-top: 0; }
  .hero__fallback { right: auto; left: 50%; top: 26%; width: min(62vw, 300px); transform: translate(-50%, -50%); }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; padding-bottom: 60px; }
  .nav { gap: 12px; padding: 0 16px; }
  .nav__logo img { height: 50px; margin-left: -8px; }
  .nav > .btn { display: none; }
  .hero { padding-bottom: 84px; }
  .hero__copy { width: calc(100% - 32px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta .btn--ghost { display: none; }
  .services, .how, .contact { padding: 68px 0; }
  .wrap { width: calc(100% - 32px); }
  .head { margin-bottom: 34px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .card { padding: 12px 14px 18px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14px; line-height: 1.5; }
  .form { padding: 22px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .dock { position: fixed; inset: auto 0 0; z-index: 20; height: 60px; display: grid; grid-template-columns: 1fr 1fr; font-weight: 700; }
  .dock a { display: grid; place-items: center; text-decoration: none; background: var(--blue); color: #fff; }
  .dock a:last-child { background: var(--yellow); color: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
