:root {
  --navy: #072c4a;
  --blue: #005ca5;
  --blue-bright: #72c0ff;
  --gold: #f6b219;
  --ink: #33373d;
  --paper: #f1f6fd;
  --white: #fff;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 3.2vw; color: var(--white); background: rgba(7,44,74,.86); backdrop-filter: blur(14px); transition: background .25s ease, backdrop-filter .25s ease; }
.site-header.scrolled { background: rgba(7,44,74,.94); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 14px; width: fit-content; font-weight: 800; letter-spacing: .18em; }
.brand img { width: 110px; height: 46px; object-fit: contain; filter: brightness(0) invert(1); }
.site-header nav { display: flex; gap: 34px; font-size: .94rem; font-weight: 650; }
.site-header nav a { padding: 10px 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.language-picker { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.language-picker select { min-height: 38px; padding: 0 28px 0 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: white; background: rgba(255,255,255,.1); font: inherit; cursor: pointer; }
.language-picker select option { color: var(--navy); background: white; }
.header-cta { justify-self: end; padding: 12px 20px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: .9rem; font-weight: 700; }
.menu-button { display: none; justify-self: end; color: white; background: transparent; border: 0; font-size: 1.6rem; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: calc(var(--header-h) + 4vh) 7vw 118px; color: white; background: #eef1f2; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,44,74,.99) 0, rgba(7,44,74,.94) 35%, rgba(7,44,74,.72) 48%, rgba(7,44,74,.18) 72%, transparent 88%), linear-gradient(0deg, rgba(7,44,74,.97) 0, rgba(7,44,74,.48) 14%, transparent 34%); }
.hero-copy { position: relative; z-index: 2; width: min(620px, 52vw); }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: .96; }
h1 { font-size: clamp(3.5rem, 7.2vw, 7.1rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 5rem); }
.hero-lead { max-width: 600px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; padding: 15px 24px; border-radius: 999px; font-weight: 760; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--gold); }
.button-secondary { color: white; background: rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.hero-visual { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-facts { position: absolute; z-index: 3; left: 7vw; right: 7vw; bottom: 28px; display: flex; gap: 42px; }
.hero-facts div { display: grid; gap: 4px; }
.hero-facts strong { font-size: 1.05rem; }
.hero-facts span { color: rgba(255,255,255,.6); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.scroll-cue { position: absolute; z-index: 3; right: 3.5vw; bottom: 28px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }

.model-intro { padding: 120px 5vw; background: var(--paper); }
.model-intro > .eyebrow, .model-intro > h2 { max-width: 920px; margin-left: auto; margin-right: auto; text-align: center; }
.model-intro > h2 { color: var(--navy); }
.model-grid { max-width: 1280px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.model-card { min-height: 310px; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; overflow: hidden; transition: transform .25s ease; }
.model-card:hover { transform: translateY(-5px); }
.model-card span { margin-bottom: auto; font-size: 1rem; font-weight: 800; letter-spacing: .16em; }
.model-card strong { max-width: 460px; font-size: clamp(1.7rem, 2.5vw, 2.7rem); line-height: 1.05; }
.model-card small { margin-top: 18px; font-size: .9rem; opacity: .74; }
.model-card-light { color: var(--navy); background: white; }
.model-card-gold { color: var(--navy); background: var(--gold); }
.model-card-blue { color: white; background: var(--blue); }
.model-card-dark { color: white; background: var(--navy); }
.model-card-automation { grid-column: 1 / -1; color: var(--navy); background: linear-gradient(115deg, #ffffff 0%, #e6f2fb 58%, #f8d77d 100%); }

.technology { position: relative; isolation: isolate; min-height: 82vh; display: grid; align-items: center; padding: 110px 7vw; overflow: hidden; color: white; background: #061e32; }
.technology::before { content: ""; position: absolute; inset: -2%; z-index: -2; background: url('./assets/zarex-technology-background.png') center / cover no-repeat; filter: saturate(1.32) contrast(1.12) brightness(1.08); }
.technology::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,29,49,.96) 0, rgba(7,44,74,.68) 37%, rgba(7,44,74,.18) 60%, transparent 82%), linear-gradient(0deg, rgba(4,23,38,.38), transparent 42%); }
.technology-copy { width: min(680px,48vw); }
.technology-copy h2 { max-width: 780px; }
.technology-copy > p:not(.eyebrow) { max-width: 690px; margin: 28px 0 26px; color: rgba(255,255,255,.74); font-size: 1.12rem; line-height: 1.65; }

.product { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: 11vh 7vw; }
.product-copy { position: relative; z-index: 3; width: min(690px, 54vw); }
.product-copy > p:not(.eyebrow) { max-width: 620px; margin: 28px 0 0; font-size: 1.12rem; line-height: 1.65; opacity: .78; }
.spec-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 42px; }
.spec-row div { display: grid; gap: 6px; }
.spec-row strong { font-size: 1.12rem; }
.spec-row span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .58; }
.product-actions { display: flex; align-items: center; gap: 24px; margin-top: 42px; }
.text-link { font-weight: 750; }
.text-link.light { color: white; }
.button-blue { color: white; background: var(--blue); }
.product-xpl { color: white; background: var(--navy); }
.xpl-product-image { object-position: 55% center; }
.product-overlay-xpl { background: linear-gradient(90deg, rgba(4,27,46,.98) 0, rgba(5,43,72,.92) 36%, rgba(5,43,72,.56) 55%, rgba(5,43,72,.08) 78%); }
.product-mbl { color: white; background: #0a2439; }
.mbl-split-media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.mbl-split-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.mbl-product-video { position: relative; overflow: hidden; background: #061e32; }
.mbl-product-video::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 15%; pointer-events: none; background: linear-gradient(90deg, rgba(6,30,50,.72), transparent); }
.mbl-product-video iframe { position: absolute; left: 50%; top: 50%; width: 178%; height: 100%; border: 0; pointer-events: none; transform: translate(-50%,-50%); }
.product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,24,40,.96) 0, rgba(3,24,40,.72) 48%, rgba(3,24,40,.05) 80%); }
.product-spl { color: var(--navy); background: linear-gradient(135deg, #fff, #eaf3fb); }
.product-cutout { position: absolute; width: 64vw; max-height: 80%; right: -6vw; bottom: 3vh; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(7,44,74,.18)); }
.product-spl .product-copy { width: min(590px, 45vw); }
.product-mba { color: white; background: #050b10; }
.mba-product-image { object-position: 62% center; }
.product-overlay-mba { background: linear-gradient(90deg, rgba(4,23,38,.98) 0, rgba(4,30,50,.92) 40%, rgba(7,44,74,.52) 62%, rgba(7,44,74,.08) 88%), linear-gradient(0deg, rgba(4,23,38,.7), transparent 42%); }
.product-mba::after { content: "kW"; position: absolute; z-index: 2; right: 7vw; bottom: 9vh; color: var(--gold); font-size: clamp(2rem,4vw,5rem); font-weight: 850; }
.mba-number { position: absolute; z-index: 2; right: 2vw; top: 50%; transform: translateY(-52%); color: rgba(255,255,255,.12); font-size: 45vw; font-weight: 900; line-height: .75; letter-spacing: -.11em; text-shadow: 0 8px 32px rgba(7,44,74,.25); }
.product-aws { color: var(--navy); background: linear-gradient(135deg, #ffffff 0%, #eef6fc 58%, #dceaf5 100%); }
.product-aws .product-copy { width: min(620px, 47vw); }
.aws-product-image { position: absolute; right: 3vw; bottom: 7vh; width: min(58vw, 980px); max-height: 78%; object-fit: contain; filter: drop-shadow(0 34px 45px rgba(7,44,74,.18)); }

.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 28px; background: #061e32; box-shadow: 0 24px 70px rgba(7,44,74,.18); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ambient-video iframe { pointer-events: none; }

.compare { padding: 120px 5vw; background: var(--paper); }
.compare-heading { max-width: 900px; margin: 0 auto; text-align: center; }
.compare-heading h2 { color: var(--navy); }
.compare-heading > p:last-child { max-width: 650px; margin: 22px auto 0; line-height: 1.6; }
.compare-tabs { width: fit-content; max-width: 100%; margin: 52px auto 22px; display: flex; padding: 5px; gap: 4px; overflow-x: auto; border-radius: 999px; background: rgba(7,44,74,.08); }
.compare-tabs button { flex: 0 0 auto; padding: 12px 20px; border: 0; border-radius: 999px; color: var(--navy); background: transparent; font: inherit; font-weight: 720; cursor: pointer; }
.compare-tabs button.active { color: white; background: var(--navy); }
.compare-panel { max-width: 1180px; margin: auto; padding: 52px; display: grid; grid-template-columns: .85fr 1.5fr auto; gap: 52px; align-items: end; border-radius: 30px; background: white; box-shadow: 0 24px 80px rgba(7,44,74,.08); }
.compare-name { display: grid; gap: 8px; }
.compare-name small { color: var(--blue); font-weight: 750; }
.compare-name strong { color: var(--navy); font-size: clamp(2.2rem, 4vw, 4.5rem); letter-spacing: -.05em; }
.compare-name span { line-height: 1.45; opacity: .7; }
.compare-data { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 38px; }
.compare-data div { display: grid; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid #dfe7ee; }
.compare-data dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .58; }
.compare-data dd { margin: 0; color: var(--navy); font-weight: 760; }

.service { padding: 120px 7vw; color: white; background: var(--blue); }
.service-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 6vw; align-items: center; }
.service-intro > div > p:not(.eyebrow) { max-width: 720px; margin: 26px 0; color: rgba(255,255,255,.76); font-size: 1.08rem; line-height: 1.6; }
.service-intro > img { justify-self: end; width: min(380px,100%); max-height: 160px; padding: 10px; border-radius: 14px; object-fit: contain; background: #000; box-shadow: 0 16px 42px rgba(3,32,54,.24); }
.service .eyebrow { color: var(--gold); }
.service-media { margin-top: 64px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: stretch; overflow: hidden; border-radius: 30px; color: var(--navy); background: white; box-shadow: 0 24px 70px rgba(3,32,54,.24); }
.service-media .video-frame { border-radius: 0; box-shadow: none; }
.service-media-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px,4vw,60px); }
.service-media-copy span { color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.service-media-copy strong { margin-top: 18px; font-size: clamp(1.55rem,2.4vw,2.6rem); line-height: 1.08; }
.service-media-copy p { margin: 22px 0 0; line-height: 1.55; opacity: .68; }
.service-media-copy .text-link { margin-top: 26px; }
.service-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.28); }
.service article { padding: 28px 28px 0 0; }
.service article span { color: var(--gold); font-size: .8rem; font-weight: 800; }
.service article h3 { margin: 34px 0 14px; font-size: 1.45rem; }
.service article p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.6; }

.contact { min-height: 78vh; display: grid; place-content: center; padding: 90px 5vw; color: white; text-align: center; background: var(--navy); }
.contact h2 { font-size: clamp(3.4rem, 8vw, 8rem); }
.contact > p:not(.eyebrow) { max-width: 650px; margin: 26px auto 0; color: rgba(255,255,255,.7); font-size: 1.12rem; line-height: 1.6; }
.contact-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
footer { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: center; padding: 42px 5vw; color: white; background: #041726; font-size: .88rem; }
footer > div { display: grid; gap: 8px; }
.footer-brand { grid-template-columns: auto 1fr; align-items: center; }
.footer-brand img { width: 100px; filter: brightness(0) invert(1); }
footer span { color: rgba(255,255,255,.58); }
footer > div:last-child { text-align: right; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 10px; }
  .site-header nav, .header-cta { display: none; }
  .header-actions { display: block; }
  .language-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-button { display: block; }
  .hero { align-items: start; padding-top: 18vh; }
  .hero-copy { width: 100%; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { inset: 0; width: 100%; height: 100%; }
  .hero-facts { gap: 18px; justify-content: center; }
  .scroll-cue { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { height: 100svh; align-content: start; padding-top: 14px; background: var(--navy); }
  body.menu-open .site-header nav { position: absolute; inset: 110px 26px auto; display: grid; gap: 8px; font-size: 2rem; }
  .compare-panel { grid-template-columns: 1fr; align-items: start; }
  .compare-panel .button { width: fit-content; }
  .service-intro, .service-media { grid-template-columns: 1fr; }
  .service-intro > img { justify-self: start; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .site-header { padding-inline: 18px; }
  .brand img { width: 86px; height: 38px; }
  .hero { padding-inline: 20px; padding-bottom: 144px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.35rem); letter-spacing: -.055em; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { inset: 0; width: 100%; height: 100%; }
  .hero-visual img { object-position: 68% center; }
  .hero-facts { left: 18px; right: 18px; bottom: 20px; display: grid; grid-template-columns: repeat(3,1fr); text-align: center; }
  .hero-facts strong { font-size: .88rem; }
  .hero-facts span { font-size: .65rem; }
  .model-intro { padding: 88px 18px; }
  .model-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .model-card-automation { grid-column: auto; }
  .model-card { min-height: 255px; padding: 28px; border-radius: 22px; }
  .technology { padding: 88px 20px; }
  .technology::before { background-position: 62% center; }
  .technology::after { background: linear-gradient(180deg, rgba(5,29,49,.92) 0, rgba(7,44,74,.72) 42%, rgba(7,44,74,.2) 76%, transparent 100%), linear-gradient(90deg, rgba(4,23,38,.42), transparent 86%); }
  .technology-copy { width: min(100%,620px); }
  .video-frame { border-radius: 20px; }
  .product { min-height: 860px; align-items: start; padding: 96px 20px 40px; }
  .product-copy, .product-spl .product-copy { width: 100%; }
  .product-aws .product-copy { width: 100%; }
  .product-copy > p:not(.eyebrow) { font-size: 1rem; }
  .spec-row { gap: 24px; }
  .spec-row div { flex: 1 1 27%; }
  .product-actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .product-cutout { width: 132vw; right: -34vw; bottom: 0; }
  .aws-product-image { width: 125vw; right: -20vw; bottom: -1vh; max-height: 48%; }
  .product-overlay { background: linear-gradient(180deg, rgba(3,24,40,.95) 0, rgba(3,24,40,.78) 48%, rgba(3,24,40,.18) 78%); }
  .product-overlay-xpl { background: linear-gradient(180deg, rgba(4,27,46,.98) 0, rgba(5,43,72,.9) 48%, rgba(5,43,72,.16) 82%); }
  .xpl-product-image { object-position: 62% center; }
  .mba-product-image { object-position: 58% bottom; }
  .product-overlay-mba { background: linear-gradient(180deg, rgba(4,23,38,.98) 0, rgba(4,30,50,.9) 52%, rgba(7,44,74,.18) 86%); }
  .mbl-split-media { grid-template-columns: 1fr; grid-template-rows: 54% 46%; }
  .mbl-split-media > img { object-position: center; }
  .mbl-product-video::before { inset: 0 0 auto; width: 100%; height: 18%; background: linear-gradient(180deg, rgba(6,30,50,.72), transparent); }
  .product-image { object-position: 68% center; }
  .compare { padding: 88px 18px; }
  .compare-tabs { justify-content: start; width: 100%; }
  .compare-panel { padding: 28px; gap: 34px; border-radius: 22px; }
  .compare-data { grid-template-columns: 1fr; gap: 16px; }
  .compare-panel .button { width: 100%; }
  .service { padding: 88px 20px; }
  .service-media { margin-top: 44px; border-radius: 22px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .service article { padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .service article h3 { margin-top: 18px; }
  .contact-actions { flex-direction: column; }
  footer { grid-template-columns: 1fr; padding: 38px 22px; }
  footer > div:last-child { text-align: left; }
}

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