:root {
  --blue: #0715a3;
  --blue-dark: #030a57;
  --blue-bright: #1328d9;
  --ink: #090d23;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: var(--ink); background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 96px); color: var(--white); background: transparent; transition: background .25s ease, height .25s ease, box-shadow .25s ease; }
.site-header.scrolled { height: 72px; background: rgba(3, 10, 87, .94); box-shadow: 0 10px 35px rgba(0, 0, 0, .18); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 54px; height: 48px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; font-size: 21px; font-weight: 800; color: var(--white); }
.brand-mark span { display: grid; place-items: center; height: 40px; border: 3px solid currentColor; }
.brand-mark span:first-child { border-right: 0; transform: translateY(-4px); }
.brand-mark span:last-child { transform: translate(-5px, 4px); }
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 46px); }
.main-nav a { position: relative; font-weight: 700; text-decoration: none; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: currentColor; transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 11px 16px; border: 1px solid rgba(255, 255, 255, .65); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid rgba(255, 255, 255, .5); color: var(--white); background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; color: var(--white); background: var(--blue); }
.hero::after { content: ""; position: absolute; width: min(70vw, 900px); aspect-ratio: 1; right: -18vw; bottom: -50%; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.02); }
.hero-grid, .technical-plane { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent 4%, black 48%, transparent 98%); animation: grid-drift 18s linear infinite; }
.hero-content { position: relative; z-index: 2; width: min(820px, calc(100% - 48px)); margin: calc(var(--header-height) + 48px) 8vw 76px; }
.eyebrow { margin: 0 0 17px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(2.55rem, 6.3vw, 6.1rem); line-height: .98; font-weight: 400; letter-spacing: 0; }
.hero h1 strong { display: block; margin-top: .12em; font-weight: 800; }
.hero-copy { max-width: 650px; margin: 28px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 20px; border: 0; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--blue); background: var(--white); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.claim-note { max-width: 620px; margin: 24px 0 0; font-size: .78rem; color: rgba(255, 255, 255, .72); }
.hero-signal { position: absolute; right: 9vw; top: 30%; display: flex; align-items: end; gap: 7px; height: 180px; opacity: .75; transform: skewY(-18deg); }
.hero-signal span { width: 10px; height: var(--signal, 40%); background: rgba(255,255,255,.7); animation: signal 2.4s ease-in-out infinite; }
.hero-signal span:nth-child(1) { --signal: 30%; animation-delay: -.4s; }.hero-signal span:nth-child(2) { --signal: 70%; animation-delay: -.9s; }.hero-signal span:nth-child(3) { --signal: 48%; animation-delay: -.2s; }.hero-signal span:nth-child(4) { --signal: 88%; animation-delay: -1.1s; }.hero-signal span:nth-child(5) { --signal: 57%; animation-delay: -.7s; }

.section { padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 128px); }
.section-heading { max-width: 850px; }
.section-heading h2, .audit h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 4.5rem); line-height: 1.04; letter-spacing: 0; }
.section-heading > p:last-child, .audit-copy > p:last-child { max-width: 650px; margin: 24px 0 0; font-size: 1.15rem; }
.service-lines { margin-top: 70px; border-top: 1px solid rgba(9, 13, 35, .22); }
.service-line { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 34px 0; border-bottom: 1px solid rgba(9, 13, 35, .22); }
.service-index { color: var(--blue); font-weight: 800; }
.service-line h3 { margin: 0 0 8px; font-size: 1.5rem; }
.service-line p { margin: 0; max-width: 680px; }

.dark-section { position: relative; overflow: hidden; min-height: 670px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: var(--blue-dark); }
.dark-section .section-heading, .tech-flow { position: relative; z-index: 2; }
.technical-plane { opacity: .17; transform: perspective(600px) rotateX(58deg) scale(1.4); transform-origin: center bottom; }
.tech-flow { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 90px; font-weight: 800; }
.tech-flow i { flex: 1; height: 1px; background: rgba(255,255,255,.5); }

.software { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: 8vw; align-items: center; background: var(--white); }
.metric-board { min-height: 430px; padding: 26px; color: var(--white); background: #0a102a; box-shadow: 22px 24px 0 var(--blue); }
.metric-top, .metric-bottom { display: flex; justify-content: space-between; gap: 18px; font-size: .75rem; font-weight: 800; }
.live-dot { color: #79ffca; }
.chart { height: 300px; display: flex; align-items: end; gap: 10px; padding: 36px 0 24px; border-bottom: 1px solid rgba(255,255,255,.28); background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 100% 60px; }
.chart span { flex: 1; height: var(--h); background: linear-gradient(to top, #1c31df, #65e7ff); transform-origin: bottom; animation: bars .9s both; }
.metric-bottom { margin-top: 24px; color: rgba(255,255,255,.72); }

.about { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8vw; align-items: end; }
.about-copy { margin: 0; font-size: 1.2rem; }
.audit { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 128px); color: var(--white); background: var(--blue); }
.audit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.audit-form label { display: grid; gap: 7px; font-size: .83rem; font-weight: 800; }
.audit-form input, .audit-form textarea { width: 100%; padding: 13px 12px; border: 1px solid rgba(255,255,255,.48); border-radius: 0; color: var(--white); background: rgba(255,255,255,.08); outline: none; }
.audit-form input:focus, .audit-form textarea:focus { border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.audit-form textarea::placeholder { color: rgba(255,255,255,.56); }
.audit-form .full { grid-column: 1 / -1; }
.audit-form .consent { display: flex; grid-template-columns: none; flex-direction: row; align-items: flex-start; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.button-light { width: 100%; color: var(--blue); background: var(--white); }
.form-status { min-height: 1.5em; margin: 0; font-size: .9rem; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px clamp(24px, 6vw, 96px); color: var(--white); background: #05081c; }
.site-footer p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.68); }
.footer-brand .brand-mark { width: 42px; transform: scale(.78); transform-origin: left center; }
.mobile-booking { display: none; }
.reveal { opacity: 0; transform: translateY(22px); animation: reveal .65s forwards; }
.reveal:nth-child(2) { animation-delay: .09s; }.reveal:nth-child(3) { animation-delay: .18s; }.reveal:nth-child(4) { animation-delay: .27s; }.reveal:nth-child(5) { animation-delay: .36s; }
.reveal-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-on-scroll.visible { opacity: 1; transform: none; }

@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes grid-drift { to { background-position: 48px 48px; } }
@keyframes signal { 0%,100% { transform: scaleY(.7); opacity: .45; } 50% { transform: scaleY(1.08); opacity: 1; } }
@keyframes bars { from { transform: scaleY(0); } }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 30px; font-size: 1.35rem; color: var(--white); background: var(--blue-dark); transform: translateX(100%); transition: transform .3s ease; }
  .main-nav.open { transform: none; }
  .menu-toggle { position: relative; z-index: 2; }
  .software, .about, .audit { grid-template-columns: 1fr; }
  .metric-board { margin-top: 22px; }
  .audit-form { margin-top: 24px; }
  .hero-signal { opacity: .28; right: 3vw; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --header-height: 74px; }
  .site-header { padding: 0 20px; }
  .brand-name { font-size: .82rem; }
  .brand-mark { width: 45px; transform: scale(.84); transform-origin: left center; }
  .hero { min-height: calc(100svh - 58px); }
  .hero-content { width: calc(100% - 40px); margin: calc(var(--header-height) + 35px) 20px 56px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .hero-copy { margin-top: 22px; font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; margin-top: 26px; }
  .text-link { padding: 4px 0; }
  .claim-note { margin-top: 18px; }
  .section, .audit { padding: 76px 20px; }
  .section-heading h2, .audit h2 { font-size: 2.25rem; }
  .service-lines { margin-top: 44px; }
  .service-line { grid-template-columns: 50px 1fr; padding: 26px 0; }
  .tech-flow { display: grid; grid-template-columns: 1fr; margin-top: 55px; }
  .tech-flow i { width: 1px; height: 22px; margin-left: 4px; }
  .metric-board { min-height: 350px; padding: 18px; box-shadow: 10px 12px 0 var(--blue); }
  .chart { height: 240px; gap: 6px; }
  .metric-bottom { font-size: .65rem; }
  .audit-form { grid-template-columns: 1fr; }
  .audit-form .full { grid-column: auto; }
  .mobile-booking { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 10px; display: flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 16px; color: var(--blue); background: var(--white); border: 2px solid var(--blue); box-shadow: 0 9px 28px rgba(0,0,0,.2); font-weight: 800; text-decoration: none; }
  .site-footer { padding-bottom: 90px; }
}

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