:root {
  --ink: #10183a;
  --text: #3d4459;
  --muted: #6c7389;
  --blue: #2f6bdc;
  --violet: #6340bf;
  --grad: linear-gradient(90deg, var(--blue), var(--violet));
  --grad-text: linear-gradient(90deg, #3a82e6, #6a46c4);
  --tint: #f4f6fd;
  --line: #e4e8f3;
  --render: #c6c6c6;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(16, 24, 58, 0.10);
  --header-h: 104px;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.75 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; color: var(--ink); font-family: "Poppins", sans-serif; }

a { color: inherit; }

svg.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 24, 58, 0.08); }

.brand img { width: 168px; }

.nav {
  display: flex;
  gap: clamp(18px, 4.5vw, 48px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  flex: none;
  padding: 6px 0 14px;
  font: 500 15px/1 "Poppins", sans-serif;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }

.nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

/* Shared bits ------------------------------------------------------------ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 500 14px/1.3 "Poppins", sans-serif;
  color: var(--ink);
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(47, 107, 220, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 15px/1.2 "Poppins", sans-serif;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(76, 70, 205, 0.30); }

.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.btn .icon { width: 18px; height: 18px; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font: 600 17px/1.2 "Poppins", sans-serif;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.learn-more:hover { gap: 14px; }

/* Faint blueprint grid used behind hero areas */
.grid-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(99, 64, 191, 0.11), transparent 62%),
    radial-gradient(820px 520px at 0% 100%, rgba(47, 107, 220, 0.10), transparent 62%),
    #f8f9fe;
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 107, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 220, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  pointer-events: none;
}

/* Home hero -------------------------------------------------------------- */

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 16px clamp(64px, 8vw, 112px);
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero .lede {
  max-width: 540px;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 12px 22px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 58, 0.06);
}

.patent-badge .badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
}

.patent-badge span {
  display: block;
  font: 600 12px/1.3 "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.patent-badge strong {
  display: block;
  font: 700 21px/1.25 "Poppins", sans-serif;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero-visual { position: relative; padding-bottom: 28px; }

.hero-card {
  width: 74%;
  margin: 0 0 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--render);
  box-shadow: 0 30px 60px rgba(16, 24, 58, 0.16);
}

.hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35%;
  filter: drop-shadow(0 24px 34px rgba(16, 24, 58, 0.24));
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 58, 0.14);
  font: 500 14px/1.3 "Inter", sans-serif;
  color: var(--text);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.hero-chip strong { color: var(--ink); font-weight: 600; }

.hero-chip .chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue);
}

.hero-chip .icon { width: 18px; height: 18px; }

.hero-chip--scan { top: 9%; left: 4%; }

.hero-chip--bt { right: -1%; bottom: 20%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Quick facts strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.facts-band { border-bottom: 1px solid var(--line); }

.fact { padding: 30px 24px; border-left: 1px solid var(--line); }

.fact:first-child { border-left: 0; }

.fact strong {
  display: block;
  font: 700 clamp(22px, 2.4vw, 28px)/1.2 "Poppins", sans-serif;
}

.fact span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Sub-page hero ---------------------------------------------------------- */

.page-hero {
  padding: clamp(64px, 9vw, 112px) 16px clamp(56px, 8vw, 96px);
  text-align: center;
}

.page-hero > * { position: relative; }

.page-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero p:not(.kicker) {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Sections --------------------------------------------------------------- */

.section { padding: clamp(72px, 10vw, 120px) 16px; }

.section--tint { background: var(--tint); }

.section--tight { padding-top: 0; }

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

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head h2,
.split-copy h2 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 700; line-height: 1.2; }

.section-head h2::after,
.split-copy h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 24px;
  border-radius: 4px;
  background: var(--grad);
}

.split-copy h2::after { margin-left: 0; }

.section-head p,
.split-copy p { margin: 0; text-wrap: pretty; }

.section-head p + p,
.split-copy p + p { margin-top: 16px; }

.section-head strong,
.split-copy strong { color: var(--ink); font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* Photos ----------------------------------------------------------------- */

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo--render { background: var(--render); }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.photo-pair .photo { aspect-ratio: 4 / 3; }

/* Two app screens side by side inside a photo card */
.photo--app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6%;
  background: linear-gradient(135deg, #e9f0fd, #efe9fb);
}

.photo--app img { width: 30%; height: auto; filter: drop-shadow(0 16px 24px rgba(16, 24, 58, 0.18)); }

.photo--app img:last-child { transform: translateY(8%); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--wrap);
  margin: clamp(28px, 4vw, 44px) auto 0;
}

.thumbs .photo { aspect-ratio: 4 / 3; border-radius: 14px; }

/* Patent card ------------------------------------------------------------ */

.patent-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--grad);
  color: #fff;
}

.patent-card .badge-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.patent-card .badge-icon .icon { width: 28px; height: 28px; }

.patent-card span {
  font: 600 13px/1.3 "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.patent-card strong {
  font: 700 clamp(32px, 4.4vw, 50px)/1.15 "Poppins", sans-serif;
  letter-spacing: 0.02em;
}

.patent-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; opacity: 0.92; }

/* Feature list (Solution) ------------------------------------------------ */

.features { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }

.features li { display: flex; gap: 14px; line-height: 1.6; }

.features .feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--blue);
  flex: none;
}

.features strong { display: block; color: var(--ink); font-weight: 600; }

.features span { font-size: 15.5px; }

/* Cards: steps, stats, benefits ------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.cards--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 960px; }

.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }

.card p { margin: 0; font-size: 15.5px; line-height: 1.65; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--blue);
}

.section--tint .card-icon { background: #e9eefb; }

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  font: 600 18px/1 "Poppins", sans-serif;
  color: #fff;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font: 700 clamp(38px, 4.6vw, 52px)/1.1 "Poppins", sans-serif;
  letter-spacing: -0.01em;
}

.stat p { margin-top: 12px; }

.sources {
  max-width: 780px;
  margin: 24px auto 0;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}

.sources a { color: var(--muted); }

/* App screens with captions */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  max-width: 1080px;
  margin: 0 auto;
}

.screens figure { margin: 0; text-align: center; }

.screens img { filter: drop-shadow(0 22px 36px rgba(16, 24, 58, 0.18)); }

.screens figcaption { margin-top: 18px; font-size: 15px; line-height: 1.55; }

.screens figcaption strong { display: block; margin-bottom: 4px; font: 600 17px/1.3 "Poppins", sans-serif; color: var(--ink); }

.note {
  display: flex;
  gap: 14px;
  max-width: 780px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.6;
}

.note .icon { margin-top: 2px; color: var(--blue); }

/* Placeholders for content still to come (About, Recognition) */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  border: 2px dashed #cfd6ea;
  border-radius: var(--radius);
  background: #fbfcff;
  text-align: center;
  color: var(--muted);
}

.placeholder h3 { margin: 16px 0 4px; font-size: 18px; font-weight: 600; color: var(--ink); }

.placeholder p { margin: 0; font-size: 15px; line-height: 1.6; }

.placeholder .avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--tint);
  color: #9aa6c8;
}

.placeholder .avatar .icon { width: 44px; height: 44px; stroke-width: 1.5; }

.placeholder .card-icon { color: #9aa6c8; }

.year { font: 600 13px/1 "Poppins", sans-serif; letter-spacing: 0.08em; color: var(--blue); }

/* Team member card (replaces an About placeholder) */
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 40px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 40px rgba(60, 80, 160, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(60, 80, 160, 0.16); }

.member img {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 3px var(--blue), 0 12px 30px rgba(60, 80, 160, 0.22);
}

.member h3 { margin: 30px 0 14px; font-size: 25px; font-weight: 600; color: var(--ink); }

.member .role {
  margin: 0;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad);
  font: 600 14px/1.3 "Poppins", sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 6px 16px rgba(60, 80, 160, 0.25);
}

.member .bio {
  max-width: 36ch;
  margin: 22px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* Deployment gallery ----------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.gallery--4 { grid-template-columns: repeat(4, 1fr); }

.gallery .photo {
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.gallery .photo img { transition: transform 0.6s ease; }

.gallery .photo:hover img { transform: scale(1.04); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 56px 16px 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer > img { width: 150px; margin: 0 auto 20px; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 22px; }

.footer-nav a { font: 500 15px/1.4 "Poppins", sans-serif; color: var(--text); text-decoration: none; }

.footer-nav a:hover { color: var(--blue); }

.site-footer p { margin: 0; font: 600 15px/1.5 "Poppins", sans-serif; color: var(--ink); }

.site-footer .fineprint { margin-top: 8px; font: 400 13px/1.6 "Inter", sans-serif; color: var(--muted); }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  max-width: min(92vw, 860px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(10, 14, 32, 0.82); }

.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }

.lightbox-caption { margin: 0; padding: 14px 20px 16px; font-size: 15px; text-align: center; }

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Reveal on scroll (only when JS is running) ------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip { animation: none; }
  .btn, .gallery .photo img { transition: none; }
}

/* Tablet ----------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 460px); margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split-copy { max-width: 680px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); row-gap: 40px; max-width: 560px; }
  .gallery--4 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Phone ------------------------------------------------------------------ */

@media (max-width: 720px) {
  :root { --header-h: 92px; }
  body { font-size: 16px; }
  .brand img { width: 140px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .hero-chip { font-size: 12.5px; padding: 7px 12px 7px 7px; }
  .hero-chip .chip-icon { width: 28px; height: 28px; }
  .hero-chip--bt { right: 0; }
  .patent-badge strong { font-size: 19px; }
  .fact { padding: 22px 14px; }
  .fact strong { font-size: 21px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .photo-pair { gap: 14px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cards--2,
  .cards--3 { grid-template-columns: 1fr; gap: 14px; }
  .member { padding: 40px 24px 36px; }
  .member img { width: 168px; height: 168px; }
  .member h3 { font-size: 22px; }
  .screens { gap: 16px; row-gap: 32px; }
  .gallery,
  .gallery--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo { border-radius: 14px; }
}

@media (max-width: 560px) {
  .section-head p,
  .page-hero p:not(.kicker) { text-align: left; }
  .photo-pair,
  .cards { grid-template-columns: 1fr; }
  .cards { gap: 14px; }
}
