:root {
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --muted: #6e6e6e;
  --faint: #a3a3a3;
  --line: #e4e4e1;
  --bg: #ffffff;
  --soft: #f5f5f3;
  --navy: #0c2340;
  --blue: #185fa5;
  --blue-hover: #124d88;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 400; letter-spacing: -.025em; max-width: 980px; }
h2 { font-size: clamp(32px, 4.1vw, 52px); line-height: 1.1; font-weight: 400; letter-spacing: -.02em; max-width: 900px; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--font); text-decoration: none; padding: 15px 22px; border-radius: 8px; background: var(--blue); color: #fff; transition: background .15s; }
.btn:hover { background: var(--blue-hover); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 11px 16px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eaeaea; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand i { color: var(--blue); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav-links a:not(.btn):hover { color: var(--blue); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 96px) 0 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 999px; padding: 8px 16px; font-size: 14px; text-decoration: none; margin-bottom: 28px; }
.pill b { font-weight: 700; }
.pill span { color: var(--ink-2); }
.pill:hover { background: #ececea; }
.hero .sub { margin-top: 26px; }
.hero .btn { margin-top: 34px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.creds .label { margin-bottom: 12px; }
.creds p { font-size: 18px; color: var(--ink); }
.creds a { color: var(--blue); text-decoration: none; }
.creds a:hover { text-decoration: underline; }

/* Demo frame */
.demo-frame { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1240px; padding: 0 var(--gutter); }
.demo-frame .inner { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #eef0ee; }
.demo-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Sections */
.section { padding: clamp(80px, 11vw, 128px) 0 0; }
.section:last-of-type { padding-bottom: clamp(80px, 11vw, 128px); }
.section > .wrap > .label { margin-bottom: 22px; }
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; padding-top: 48px; border-top: 1px solid var(--line); }
.head-split h2 { font-weight: 700; }
.head-split .sub { padding-top: 10px; }

/* Marquee */
.marquee { margin-top: 48px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #b5b5b5; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.stat { background: var(--soft); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.stat .label { font-size: 11px; }
.stat .fig { white-space: nowrap; font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--blue); margin: 22px 0 18px; }
.stat p { color: var(--ink-2); flex: 1; }
.stat cite { font-style: normal; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Industries */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #1c1d20; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(.95); transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.tile span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-size: 17px; line-height: 1.2; }
.tile.more { display: flex; align-items: flex-end; }
.tile.more::after { display: none; }

/* Modular demo tabs */
.tabs-box { margin-top: 44px; background: var(--soft); border-radius: 20px; padding: clamp(14px, 2.4vw, 28px); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tab { text-align: left; font: inherit; color: inherit; background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: 18px 20px; cursor: pointer; opacity: .62; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.tab:hover { opacity: .9; }
.tab[aria-selected="true"] { opacity: 1; border-color: var(--blue); box-shadow: 0 6px 20px -12px rgba(24,95,165,.5); }
.tab .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; background: var(--blue); color: #fff; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; visibility: hidden; }
.tab[aria-selected="true"] .chip { visibility: visible; }
.tab h3 { font-size: 20px; }
.tab .pain { color: #c2410c; font-size: 14px; font-weight: 600; margin-top: 2px; }
.tab .gain { color: var(--muted); font-size: 13px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tab-stage { margin-top: 14px; border-radius: 12px; overflow: hidden; background: #eef0ee; border: 1px solid var(--line); }
.tab-stage video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.progress { height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; width: 0; background: var(--blue); }

/* Use cases with image */
.usecase { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.usecase img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: grayscale(.25); }
.uc-list { list-style: none; }
.uc-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.uc-list li:last-child { border-bottom: 1px solid var(--line); }
.uc-list p { color: var(--ink-2); margin-top: 4px; }

/* Security */
.sec-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.sec-cards div { background: var(--soft); border-radius: var(--radius); padding: 26px 24px; }
.sec-cards svg { width: 22px; height: 22px; color: var(--ink); margin-bottom: 26px; }
.sec-cards h3 { margin-bottom: 8px; }
.sec-cards p { color: var(--ink-2); font-size: 15px; }
details.how { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.how summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-weight: 700; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary svg { width: 18px; height: 18px; transition: transform .2s; }
details.how[open] summary svg { transform: rotate(180deg); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 4px 0 28px; }
.how-grid p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

/* Closing */
.closing { margin: clamp(80px, 11vw, 128px) auto 0; max-width: 1240px; padding: 0 var(--gutter); }
.closing .inner { position: relative; border-radius: 22px; overflow: hidden; color: #fff; background: var(--navy); padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px); }
.closing .inner::before { content: ""; position: absolute; inset: 0; background: url(img/halle.jpg) center / cover; filter: grayscale(.4); opacity: .35; }
.closing .inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,35,64,.95) 0%, rgba(12,35,64,.6) 100%); }
.closing .content { position: relative; z-index: 1; }
.closing h2 { color: #fff; max-width: 760px; }
.closing p { color: rgba(255,255,255,.78); margin: 22px 0 34px; max-width: 620px; font-size: 18px; }
.pilot-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 34px; }
.pilot-facts span { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: #fff; }

/* Footer */
footer { background: var(--soft); margin-top: clamp(80px, 11vw, 128px); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.foot p { color: var(--ink-2); margin-top: 14px; max-width: 260px; }
.foot h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Legal pages */
.legal main { padding: 72px 0 40px; }
.legal h1 { margin: 18px 0 44px; }
.legal article { max-width: 720px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal article a { color: var(--blue); }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .sec-cards { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .head-split, .creds, .usecase, .how-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .tab { opacity: 1; }
  .tab .chip, .tab .gain { display: none; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile span { font-size: 15px; left: 12px; bottom: 10px; }
  .sec-cards, .foot { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 22px; }
  .hero .btn { width: 100%; justify-content: center; }
}
