:root {
  color-scheme: dark;
  --bg: #071018;
  --surface: #0d1824;
  --surface-2: #111f2c;
  --line: #26394a;
  --text: #f4f8fc;
  --muted: #b9c7d5;
  --cyan: #38bdf8;
  --green: #65d58a;
  --yellow: #f6c744;
  --coral: #ff6b57;
  --pink: #ed5ba6;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
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;
  left: 18px;
  top: -80px;
  background: var(--yellow);
  color: #101820;
  padding: 10px 14px;
  font-weight: 900;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(7,16,24,.88);
  backdrop-filter: blur(16px);
}
.brand img { width: 154px; }
nav { display: flex; align-items: center; gap: 24px; }
nav a {
  color: #dbe8f1;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--cyan); }
.nav-cta {
  border: 1px solid rgba(56,189,248,.8);
  padding: 10px 14px;
  background: #0d6e9a;
  color: #fff;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,8,13,.97) 0%, rgba(2,8,13,.86) 42%, rgba(2,8,13,.25) 76%), linear-gradient(0deg, rgba(2,8,13,.9), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin: 0 max(24px, calc((100vw - var(--max)) / 2));
  padding: 160px 0 100px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: clamp(21px, 2vw, 28px); line-height: 1.1; }
.hero-lead {
  max-width: 670px;
  color: #d9e6ee;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 19px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--yellow); color: #111820; }
.button.primary:hover, .button.primary:focus-visible { background: #ffd960; }
.button.secondary { border-color: rgba(255,255,255,.45); background: rgba(7,16,24,.72); color: #fff; }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.trust-line { margin: 26px 0 0; color: #b8cbd7; font-size: 14px; font-weight: 800; }
.hero-next {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dceaf3;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.hero-next b { color: var(--yellow); font-size: 22px; }

.section {
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 140px) 24px;
}
.section-heading { max-width: 860px; margin-bottom: clamp(34px, 5vw, 66px); }
.section-heading.compact { max-width: 940px; }
.section-heading > p:not(.eyebrow), .network-copy > p:not(.eyebrow), .response-copy > p:not(.eyebrow), .actor-copy > p:not(.eyebrow), .about-copy p, .demo-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.product-showcase .section-heading { margin-bottom: 0; }
.interface-collage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, .48fr);
  grid-template-rows: auto auto;
  gap: 10px;
  min-height: 470px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #050b10;
}
.interface-collage figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid #31495c;
  background: #071018;
  overflow: hidden;
}
.interface-collage img { width: 100%; height: 100%; object-fit: cover; }
.interface-collage figcaption {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(7,16,24,.88);
  color: #e9f5fb;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.collage-host { grid-column: 1; grid-row: 1; aspect-ratio: 2.04 / 1; }
.collage-bedside { grid-column: 1; grid-row: 2; aspect-ratio: 2.04 / 1; }
.collage-aux { grid-column: 2; grid-row: 1; }
.collage-aux img { object-position: center; }
.collage-actor { grid-column: 2; grid-row: 2; }
.collage-actor img { object-position: top center; }

.interface-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.interface-item { padding: 28px 24px 30px 0; }
.interface-item + .interface-item { border-left: 1px solid var(--line); padding-left: 24px; }
.interface-item span, .workflow-copy span, .scenario-grid article > span {
  display: block;
  margin-bottom: 28px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.interface-item p, .scenario-grid p { margin: 0; color: var(--muted); }

.workflow {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  background: #091520;
}
.workflow-list { display: grid; gap: 72px; margin: 0; padding: 0; list-style: none; }
.workflow-list li {
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.workflow-list li:nth-child(even) .workflow-copy { order: 2; }
.workflow-list figure {
  width: 100%;
  aspect-ratio: 2.04 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050b10;
}
.workflow-list img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.workflow-list figure:hover img { transform: scale(1.015); }
.workflow-copy p { margin-bottom: 0; color: var(--muted); font-size: 18px; }

.local-network {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.check-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #e4edf3; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 950; }
.network-visual { margin: 0; }
.network-visual img { border: 1px solid var(--line); }
.network-visual figcaption { margin-top: 12px; color: #8fa5b5; font-size: 13px; }

.response-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .65fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  background: #0d1824;
}
.response-visual { overflow: hidden; border: 1px solid var(--line); }
.response-visual img { width: 100%; min-height: 480px; object-fit: cover; object-position: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--line); }
.feature-list div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.feature-list div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.feature-list strong, .feature-list span { display: block; }
.feature-list strong { color: var(--cyan); }
.feature-list span { margin-top: 4px; color: var(--muted); font-size: 14px; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scenario-grid article {
  min-height: 310px;
  border-top: 3px solid var(--cyan);
  background: var(--surface);
  padding: 30px;
}
.scenario-grid article:nth-child(2) { border-color: var(--pink); }
.scenario-grid article:nth-child(3) { border-color: var(--green); }
.scenario-grid article > span { color: var(--cyan); }
.scenario-grid article:nth-child(2) > span { color: var(--pink); }
.scenario-grid article:nth-child(3) > span { color: var(--green); }
.scenario-note { max-width: 700px; margin: 24px 0 0; color: var(--muted); }

.actor-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(48px, 10vw, 150px);
  align-items: center;
}
.actor-copy { max-width: 650px; }
.phone-frame {
  width: min(100%, 380px);
  margin: 0 auto;
  border: 8px solid #263443;
  border-radius: 42px;
  background: #050a10;
  box-shadow: 0 32px 90px rgba(0,0,0,.4);
  overflow: hidden;
}
.phone-frame img { width: 100%; }

.about-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.about-copy { max-width: 690px; }

.demo-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(300px, .55fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  background: #091520;
}
.video-shell {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
  overflow: hidden;
  text-decoration: none;
}
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 8, 13, .84), rgba(2, 8, 13, .08) 62%);
  transition: background .2s ease;
}
.video-shell img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-shell strong {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 20px;
  font-size: clamp(17px, 2vw, 24px);
}
.video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(7, 16, 24, .82);
  color: var(--yellow);
  font-size: 28px;
  transform: translate(-50%, -50%);
}
.video-shell:hover img, .video-shell:focus-visible img { transform: scale(1.02); }
.video-shell:hover::after, .video-shell:focus-visible::after { background: linear-gradient(0deg, rgba(2, 8, 13, .9), rgba(2, 8, 13, .2) 68%); }

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(340px, .65fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
#contactForm { display: grid; gap: 15px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
label { display: grid; gap: 7px; color: #dbe7ef; font-size: 13px; font-weight: 900; }
input, textarea {
  width: 100%;
  border: 1px solid #334a5c;
  border-radius: 4px;
  background: #071018;
  color: #fff;
  padding: 12px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(56,189,248,.18); }
textarea { resize: vertical; }
.form-note { margin: 0; color: #91a4b3; font-size: 12px; }
.contact-fallback {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  border: 1px solid rgba(246, 199, 68, .5);
  background: rgba(246, 199, 68, .08);
  padding: 14px;
}
.contact-fallback[hidden] { display: none; }
.contact-fallback strong { color: var(--yellow); }
.contact-fallback p { margin: 0; color: #d8e5ed; font-size: 14px; }
.contact-fallback a { color: var(--cyan); font-weight: 900; }
.contact-fallback textarea { min-height: 150px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: end;
  padding: 42px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #050b10;
}
.site-footer img { width: 160px; }
.site-footer p { margin: 10px 0 0; color: #91a4b3; font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #c8d5de; font-size: 13px; font-weight: 850; text-decoration: none; }
.copyright { margin: 0 !important; }

.expandable-image { cursor: zoom-in; }
.expandable-image:hover { filter: brightness(1.08); }
.image-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgba(3, 9, 14, .96);
  color: #fff;
  padding: clamp(56px, 7vh, 86px) clamp(16px, 3vw, 48px) clamp(22px, 4vh, 44px);
  overflow: hidden;
}
.image-viewer[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 14px;
}
.image-viewer::backdrop { background: rgba(0, 0, 0, .86); }
.image-viewer img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.image-viewer p {
  max-width: 900px;
  margin: 0;
  color: #d8e5ed;
  font-size: 14px;
  text-align: center;
}
.image-viewer-close {
  position: fixed;
  z-index: 2;
  right: clamp(14px, 2vw, 28px);
  top: clamp(14px, 2vw, 28px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  background: #122331;
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.image-viewer-close:hover, .image-viewer-close:focus-visible { border-color: var(--cyan); color: var(--cyan); }
body.image-viewer-open { overflow: hidden; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

@media (max-width: 1000px) {
  .menu-toggle {
    display: grid;
    width: 46px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; background: #fff; }
  nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: #071018;
  }
  nav.open { display: grid; }
  nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; border-bottom: 1px solid var(--cyan); text-align: center; }
  .product-showcase { grid-template-columns: 1fr; }
  .interface-collage { min-height: 540px; }
  .interface-grid, .scenario-grid { grid-template-columns: 1fr 1fr; }
  .interface-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .interface-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .local-network, .response-section, .demo-section { grid-template-columns: 1fr; }
  .response-visual img { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand img { width: 130px; }
  nav { top: 68px; }
  .hero { min-height: 760px; }
  .hero-background { object-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(2,8,13,.98) 0%, rgba(2,8,13,.92) 58%, rgba(2,8,13,.48)); }
  .hero-content { width: calc(100% - 40px); margin: 0 20px; padding: 130px 0 100px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  h2 { font-size: clamp(34px, 10vw, 50px); }
  .hero-next { display: none; }
  .section { padding-left: 20px; padding-right: 20px; }
  .interface-grid, .scenario-grid, .feature-list, .about-section, .actor-section, .contact-section { grid-template-columns: 1fr; }
  .interface-collage {
    grid-template-columns: minmax(0, 1fr) minmax(95px, .42fr);
    min-height: 360px;
    gap: 6px;
    padding: 7px;
  }
  .interface-collage figcaption { left: 5px; bottom: 5px; padding: 3px 5px; font-size: 8px; }
  .interface-item, .interface-item + .interface-item, .interface-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .workflow, .response-section, .demo-section { padding-left: 20px; padding-right: 20px; }
  .workflow-list { gap: 54px; }
  .workflow-list li { grid-template-columns: 1fr; gap: 20px; }
  .workflow-list li:nth-child(even) .workflow-copy { order: 0; }
  .feature-list div:nth-child(even) { padding-left: 0; border-left: 0; }
  .scenario-grid article { min-height: 0; }
  .phone-frame { width: min(86vw, 350px); }
  .footer-links { flex-wrap: wrap; }
}
