
:root {
  --bg: #050d15;
  --bg-2: #07131f;
  --panel: rgba(7, 18, 28, 0.76);
  --panel-strong: rgba(7, 18, 28, 0.9);
  --line: rgba(199, 220, 236, 0.14);
  --line-strong: rgba(199, 220, 236, 0.28);
  --text: #edf4fb;
  --muted: #9eb2c3;
  --cyan: #27d1ff;
  --cyan-soft: #78dfff;
  --orange: #ff981f;
  --orange-strong: #ffb14a;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --header-h: 84px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1260px;
  --page-pad: clamp(20px, 2.2vw, 30px);
  --section-pad-top: calc(var(--header-h) + 12px);
  --section-pad-bottom: 12px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 12%, rgba(39, 209, 255, 0.12), transparent 25%),
    radial-gradient(circle at 88% 14%, rgba(255, 152, 31, 0.10), transparent 18%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/logo-watermark.png');
  background-repeat: no-repeat;
  background-position: center 53%;
  background-size: min(74vw, 1180px);
  opacity: 0.045;
  filter: grayscale(0.05) saturate(1.05) brightness(1.2);
  mix-blend-mode: screen;
}
.site-watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top, 0);
  background: linear-gradient(180deg, rgba(3, 10, 16, 0.86), rgba(3, 10, 16, 0.55));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}
.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.brand-name {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.8rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 0;
}
.main-nav a {
  position: relative;
  transition: color 180ms ease;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after,
.main-nav a:hover::after { transform: scaleX(1); }
.mobile-nav-cta,
.menu-toggle,
.nav-backdrop { display: none; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.audio-toggle,
.menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.audio-toggle:hover,
.menu-toggle:hover { transform: translateY(-1px); }
.audio-toggle.is-muted {
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.audio-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.audio-toggle .wave {
  opacity: 1;
  transition: opacity 160ms ease;
}
.audio-toggle.is-muted .wave { opacity: 0; }
.menu-toggle {
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 152, 31, 0.44);
  background: linear-gradient(135deg, rgba(255, 152, 31, 0.98), rgba(255, 127, 17, 0.94));
  color: #08131d;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 152, 31, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-align: center;
}
.cta-button:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(255, 152, 31, 0.28); }
.cta-button.secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
  box-shadow: none;
}

.glass-card {
  background: linear-gradient(180deg, rgba(10, 22, 33, 0.76), rgba(6, 15, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

main {
  position: relative;
  z-index: 1;
}
.panel {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--section-pad-top) 0 var(--section-pad-bottom);
}
.panel-inner {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max));
  margin: 0 auto;
}

.hero-grid,
.split-grid,
.contact-grid,
.app-section-grid {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  align-items: center;
}
.hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
.split-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.contact-grid { grid-template-columns: minmax(0, 0.96fr) minmax(0, 0.84fr); align-items: stretch; }
.app-section-grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
.method-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero-copy h1,
.content-block h2,
.section-intro h2,
.contact-card h2 {
  margin: 0 0 12px;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero-copy h1 { font-size: clamp(2.55rem, 4.15vw, 4.2rem); }
.content-block h2,
.section-intro h2,
.contact-card h2 { font-size: clamp(1.8rem, 2.7vw, 2.7rem); }
.hero-text,
.content-block p,
.method-card p,
.contact-card p,
.form-heading p,
.form-feedback,
.hero-card-caption {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}
.hero-copy,
.content-block,
.contact-card,
.lead-form { min-width: 0; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  font-size: 0.84rem;
}
.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.hero-trustline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.hero-trustline span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.hero-trustline strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.hero-card,
.media-card,
.device-stage,
.contact-card,
.lead-form {
  overflow: hidden;
}
.hero-card {
  min-height: min(48svh, 460px);
  padding: 18px;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.96;
}
.hero-card-caption {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sensor-card {
  min-height: min(48svh, 460px);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sensor-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(0,0,0,0.44));
}

.service-grid,
.method-grid {
  display: grid;
  gap: 12px;
}
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.method-card {
  padding: 18px 18px 16px;
  min-height: 0;
}
.feature-card h3,
.method-card h3,
.form-heading h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.2;
}
.feature-card p,
.method-card p { margin: 0; font-size: 0.9rem; line-height: 1.44; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cyan-soft);
  font-weight: 800;
}
.section-intro.center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.app-copy-block p { margin-bottom: 12px; }
.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.benefit-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
}
.device-stage {
  position: relative;
  min-height: min(50svh, 470px);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 209, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(255, 152, 31, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(11, 24, 36, 0.76), rgba(6, 14, 22, 0.94));
}
.device-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
}
.tablet-shot {
  width: min(84%, 720px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,0.34));
}
.phone-shot {
  position: absolute;
  right: 4.8%;
  bottom: 1rem;
  width: min(29%, 210px);
  opacity: 0.98;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.4));
}

.contact-card,
.lead-form {
  padding: 18px;
  height: 100%;
}
.contact-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
}
.contact-list a,
.contact-list span {
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--text); }
.map-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 170px;
  aspect-ratio: 16 / 7.2;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  border: 0;
  filter: grayscale(0.1) saturate(0.8) contrast(1.03);
}
.form-heading { margin-bottom: 12px; }
.lead-form {
  display: grid;
  gap: 10px;
}
.lead-form label {
  display: grid;
  gap: 7px;
}
.lead-form label span {
  color: var(--muted);
  font-size: 0.88rem;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
  font-size: 16px;
}
.lead-form textarea { min-height: 104px; resize: vertical; }
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(39, 209, 255, 0.45);
  background: rgba(255,255,255,0.05);
}
.form-feedback {
  margin: 0;
}
.form-feedback.success { color: var(--cyan-soft); }
.form-feedback.error { color: #ffbf8a; }

@media (min-width: 1025px) and (max-height: 840px) {
  :root {
    --header-h: 78px;
    --page-pad: clamp(18px, 2vw, 28px);
    --section-pad-top: calc(var(--header-h) + 8px);
    --section-pad-bottom: 8px;
  }
  .hero-copy h1 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
  .content-block h2,
  .section-intro h2,
  .contact-card h2 { font-size: clamp(1.6rem, 2.15vw, 2.15rem); }
  .hero-text,
  .content-block p,
  .method-card p,
  .contact-card p,
  .form-heading p,
  .form-feedback,
  .hero-card-caption { font-size: 0.89rem; line-height: 1.38; }
  .hero-card,
  .sensor-card,
  .device-stage { min-height: min(43svh, 390px); }
  .feature-card,
  .method-card,
  .contact-card,
  .lead-form { padding: 16px; }
  .map-wrap,
  .map-wrap iframe { min-height: 142px; }
  .map-wrap { aspect-ratio: 16 / 6.1; }
  .service-grid,
  .method-grid { gap: 10px; }
  .service-grid { margin-top: 12px; }
  .hero-chips,
  .hero-actions,
  .hero-trustline { margin-top: 14px; }
  .lead-form { gap: 8px; }
  .lead-form input,
  .lead-form textarea { padding: 10px 12px; }
  .lead-form textarea { min-height: 88px; }
}

@media (max-width: 1180px) {
  :root {
    --header-h: 80px;
    --section-pad-top: calc(var(--header-h) + 16px);
    --section-pad-bottom: 18px;
  }
  .hero-grid,
  .split-grid,
  .contact-grid,
  .app-section-grid {
    grid-template-columns: 1fr;
  }
  .hero-card,
  .sensor-card,
  .device-stage { min-height: 360px; }
  .tablet-shot { width: min(92%, 760px); }
  .phone-shot { width: min(28vw, 210px); }
}

@media (max-width: 1024px) {
  .hero-trustline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-stage { min-height: 420px; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 82px;
    --section-pad-top: calc(var(--header-h) + 18px);
    --section-pad-bottom: 24px;
  }
  .menu-toggle,
  .nav-backdrop { display: inline-flex; }
  .menu-toggle { order: 3; }
  .topbar-inner {
    min-height: 82px;
    gap: 10px;
  }
  .brand-mark { width: 46px; height: 46px; }
  .brand-sub { display: none; }
  .desktop-cta { display: none; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0) + 8px);
    left: var(--page-pad);
    right: var(--page-pad);
    z-index: 45;
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 19, 30, 0.96), rgba(4, 11, 18, 0.98));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 28px 60px rgba(0,0,0,0.45);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }
  .main-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav a::after { display: none; }
  .mobile-nav-cta {
    display: inline-flex;
    margin-top: 4px;
    width: 100%;
  }
  .nav-backdrop {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0)) 0 0 0;
    z-index: 40;
    border: 0;
    padding: 0;
    background: rgba(2, 8, 13, 0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  body.menu-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hero-copy h1,
  .content-block h2,
  .section-intro h2,
  .contact-card h2 { line-height: 1.02; }
  .hero-card,
  .sensor-card,
  .device-stage { min-height: 320px; }
  .tablet-shot { width: 94%; }
  .phone-shot { width: min(34%, 220px); right: 4%; }
}

@media (max-width: 820px) {
  .hero-trustline,
  .service-grid,
  .method-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .panel {
    min-height: auto;
    align-items: stretch;
  }
  .device-stage {
    min-height: auto;
    padding: 18px;
    display: grid;
    gap: 12px;
    justify-items: center;
  }
  .device-stage::before { inset: 10px; }
  .tablet-shot {
    width: min(100%, 760px);
    max-width: 100%;
  }
  .phone-shot {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(48%, 260px);
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 76px;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --page-pad: 16px;
    --section-pad-top: calc(var(--header-h) + 14px);
    --section-pad-bottom: 22px;
  }
  .topbar-inner { min-height: 76px; }
  .brand-name { font-size: 0.98rem; }
  .hero-copy h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .content-block h2,
  .section-intro h2,
  .contact-card h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-text,
  .content-block p,
  .contact-card p,
  .feature-card p,
  .method-card p { font-size: 0.95rem; line-height: 1.55; }
  .hero-actions,
  .form-actions { margin-top: 18px; }
  .hero-actions .cta-button,
  .form-actions .cta-button { width: 100%; }
  .hero-trustline { gap: 10px; margin-top: 18px; }
  .hero-card,
  .sensor-card,
  .device-stage { padding: 16px; min-height: 280px; border-radius: 24px; }
  .feature-card,
  .method-card,
  .contact-card,
  .lead-form { padding: 18px; border-radius: 22px; }
  .tablet-shot { width: 100%; }
  .phone-shot { width: min(56%, 240px); }
  .chip { width: 100%; text-align: center; }
  .map-wrap,
  .map-wrap iframe { min-height: 210px; }
  .map-wrap { aspect-ratio: 16 / 10; }
}

@media (max-width: 420px) {
  .brand-mark { width: 42px; height: 42px; }
  .audio-toggle,
  .menu-toggle { width: 44px; height: 44px; }
  .cta-button { min-height: 46px; }
  .phone-shot { width: min(66%, 220px); }
}
