@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-latin.woff2?v=1") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --navy: #003466;
  --navy-900: #001f3f;
  --navy-700: #0a467f;
  --gold: #fcbc22;
  --gold-600: #e0a30c;
  --ink: #0b1b2e;
  --muted: #55657a;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 31, 63, .06), 0 12px 32px rgba(0, 31, 63, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--navy-900); font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(252, 188, 34, .35); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy-700); outline-offset: 3px;
}
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-wide { width: 100%; padding: 16px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0, 31, 63, .06); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { width: 160px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(252, 188, 34, .16), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(10, 70, 127, .9), transparent 70%),
    var(--navy-900);
  padding: 88px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.hl { color: var(--gold); }
.lede { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .8); max-width: 560px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; height: 440px; }
.gear { position: absolute; fill: var(--navy-700); opacity: .9; }
.gear-a { width: 260px; right: -40px; top: -10px; animation: spin 36s linear infinite; }
.gear-b { width: 140px; left: -36px; bottom: 26px; fill: var(--gold); opacity: .95; animation: spin-r 21s linear infinite; }
.gear-c { width: 96px; right: 40px; bottom: 6px; fill: rgba(255, 255, 255, .14); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-r { to { transform: rotate(-360deg); } }

.device { position: absolute; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.phone {
  width: 190px; height: 380px; border-radius: 32px; left: 8%; top: 24px; padding: 10px;
  background: #0d1622; animation: float 7s ease-in-out infinite;
}
.phone .screen { height: 100%; border-radius: 24px; background: #f5f7fa; padding: 22px 14px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.s-bar { height: 10px; width: 60%; border-radius: 6px; background: var(--navy); }
.s-card { border-radius: 14px; background: var(--navy); padding: 14px; display: grid; gap: 8px; }
.s-card i { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); }
.s-card b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .7); }
.s-card b.short { width: 55%; background: rgba(255, 255, 255, .35); }
.s-code {
  height: 92px; border-radius: 12px; background:
    repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 13px, transparent 13px 15px);
  background-color: #fff; border: 8px solid #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.s-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-row i { height: 44px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.s-row i:nth-child(2) { background: rgba(252, 188, 34, .35); }

.panel { width: 300px; right: 0; bottom: 24px; border-radius: 16px; overflow: hidden; animation: float 8s ease-in-out -3s infinite; }
.p-head { display: flex; gap: 6px; padding: 12px 14px; background: #eef2f7; }
.p-head i { width: 9px; height: 9px; border-radius: 50%; background: #c8d1dc; }
.p-head i:first-child { background: #ff6b5f; }
.p-head i:nth-child(2) { background: var(--gold); }
.p-body { padding: 16px; display: grid; gap: 14px; }
.p-chart { height: 96px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line); }
.p-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(var(--navy-700), var(--navy)); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.p-chart span:last-child { background: linear-gradient(#ffd25e, var(--gold)); }
.p-chart span:nth-child(2) { animation-delay: .1s; } .p-chart span:nth-child(3) { animation-delay: .2s; }
.p-chart span:nth-child(4) { animation-delay: .3s; } .p-chart span:nth-child(5) { animation-delay: .4s; }
.p-chart span:nth-child(6) { animation-delay: .5s; }
.p-rows { display: grid; gap: 8px; }
.p-rows b { height: 9px; border-radius: 5px; background: #e6ebf2; }
.p-rows b:nth-child(2) { width: 80%; } .p-rows b:nth-child(3) { width: 62%; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes grow { from { transform: scaleY(0); } }

.stats { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(0, 31, 63, .92); padding: 24px 26px; }
.stat strong { display: block; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat span { color: rgba(255, 255, 255, .68); font-size: 15px; }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--gold-600); }
.section-head h2, .contact h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; color: var(--navy-900); }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; }

.cards.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; margin-bottom: 22px; transition: background .3s; }
.card:hover .icon { background: var(--gold); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.card:hover .icon svg { stroke: var(--navy-900); }
.card h3 { font-size: 20px; margin-bottom: 10px; color: var(--navy-900); }
.card p { color: var(--muted); font-size: 15.5px; }

/* Work */
.work { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--gold-600); margin-bottom: 10px; }
.work h3 { font-size: 22px; color: var(--navy-900); margin-bottom: 12px; }
.work p:not(.client) { color: var(--muted); font-size: 15.5px; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #eef3f9; color: var(--navy-700); }
.link { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.link::after { content: " \2192"; }

.work.feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; margin-bottom: 20px; background: var(--navy-900); border: 0; color: #fff; }
.work.feature h3 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.work.feature p:not(.client) { color: rgba(255, 255, 255, .75); }
.work.feature .tags li { background: rgba(255, 255, 255, .1); color: #fff; }
.work.feature .link { color: #fff; }
.work-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-facts li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 20px; }
.work-facts strong { display: block; font-size: 38px; font-weight: 800; color: var(--gold); line-height: 1; }
.work-facts span { font-size: 14px; color: rgba(255, 255, 255, .72); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 26px; border-top: 3px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -3px; left: 0; height: 3px; width: 0; background: var(--gold); transition: width 1s var(--ease) .2s; }
.steps li.in::before { width: 100%; }
.num { font-size: 14px; font-weight: 800; color: var(--gold-600); letter-spacing: .1em; }
.steps h3 { font-size: 21px; margin: 8px 0 10px; color: var(--navy-900); }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-copy p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.contact-copy .eyebrow { color: var(--gold-600); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-weight: 700; color: var(--navy-900); }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23001f3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.form { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--navy-900); }
.form em { font-style: normal; font-weight: 500; color: var(--muted); }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d5dde7; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(10, 70, 127, .12); outline: none; }
.form textarea { resize: vertical; min-height: 120px; }
.form .invalid { border-color: #c0392b !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 14.5px; color: var(--navy-900); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #d5dde7; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .2s var(--ease); user-select: none; }
.chips span:hover { border-color: var(--navy-700); color: var(--navy); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; font-weight: 600; min-height: 1.4em; color: var(--muted); }
.form-note.err { color: #b42318; }
.form.sent > :not(.thanks) { display: none; }
.thanks { text-align: center; padding: 30px 10px; }
.thanks .badge { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; animation: pop .5s var(--ease); }
.thanks h3 { font-size: 26px; color: var(--navy-900); margin-bottom: 10px; }
.thanks p { color: var(--muted); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot img { width: 120px; height: auto; }
.foot p { color: var(--muted); font-size: 14px; }
.foot a { font-weight: 800; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }

/* Hero entrance: a CSS animation on load, not the scroll observer, so it can never stay hidden */
.rise { animation: rise .9s var(--ease) both; }
.hero h1.rise { animation-delay: .08s; } .lede.rise { animation-delay: .16s; } .hero-cta.rise { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1040px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 400px; max-width: 560px; width: 100%; margin: 0 auto; }
  .work.feature { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    box-shadow: 0 16px 30px rgba(0, 31, 63, .1);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease);
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 14px; padding: 13px; }
  .hero { padding: 56px 0 48px; }
  .hero-art { height: 330px; }
  .phone { width: 150px; height: 300px; left: 4%; border-radius: 26px; }
  .phone .screen { padding: 16px 10px; gap: 10px; border-radius: 19px; }
  .s-code { height: 64px; }
  .panel { width: 220px; }
  .p-chart { height: 70px; }
  .gear-a { width: 190px; right: -50px; }
  .gear-b { width: 100px; left: -30px; bottom: 10px; }
  .stats { grid-template-columns: 1fr; margin-top: 40px; }
  .stat { padding: 18px 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cards.four, .work-grid, .steps { grid-template-columns: 1fr; }
  .work { padding: 24px; }
  .row.two { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

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