:root {
  --ink: #07151a;
  --ink-soft: #12303a;
  --mist: #e8eef0;
  --paper: #f3f6f7;
  --teal: #1ec8a5;
  --teal-deep: #0f7a66;
  --teal-soft: rgba(30, 200, 165, 0.14);
  --warn: #e0a14a;
  --line: rgba(7, 21, 26, 0.1);
  --text: #0d2229;
  --muted: #4d6670;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 200, 165, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(15, 122, 102, 0.12), transparent 50%),
    linear-gradient(180deg, #eef4f5 0%, var(--paper) 35%, #e7eef0 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 247, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 247, 0.9);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 6px 6px 0 0 rgba(7, 21, 26, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: rgba(243, 246, 247, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 12px 4px;
  font-size: 1.05rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: end;
  padding:
    calc(var(--header-h) + 32px)
    clamp(20px, 4vw, 48px)
    clamp(40px, 8vh, 80px);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, #0a242c 0%, #0f3d45 42%, #134e4a 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 200, 165, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 200, 165, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.hero-mesh .n {
  fill: #d8fff4;
}

.hero-mesh .g {
  opacity: 0.55;
  animation: nodeBreath 4.5s ease-in-out infinite;
}

.hero-mesh .g:nth-child(4n) {
  animation-delay: 0.8s;
}

.hero-mesh .g:nth-child(4n + 2) {
  animation-delay: 1.6s;
}

.hero-mesh .links path {
  stroke-dasharray: 8 10;
  animation: linkFlow 18s linear infinite;
}

.pulse-ring circle {
  transform-origin: 700px 180px;
  animation: pulseRing 2.8s ease-out infinite;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(7, 21, 26, 0.55) 72%, rgba(7, 21, 26, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 21, 26, 0.55) 0%, transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: #f4fbf9;
  animation: riseIn 0.9s ease both;
}

.brand-lockup {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 36ch;
  color: rgba(244, 251, 249, 0.78);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: var(--ink);
}

.btn-primary:hover {
  background: #39d8b5;
}

.btn-ghost {
  border: 1px solid rgba(244, 251, 249, 0.45);
  color: #f4fbf9;
}

.btn-ghost:hover {
  border-color: #f4fbf9;
  background: rgba(244, 251, 249, 0.08);
}

.section {
  padding: clamp(72px, 12vh, 120px) clamp(20px, 4vw, 48px);
}

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

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 700;
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  max-width: 14ch;
}

.section-lead {
  margin: 0 0 48px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.product {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 36px;
  background: #eef4f5;
  background-image:
    radial-gradient(900px 420px at 80% 20%, rgba(30, 200, 165, 0.1), rgba(238, 244, 245, 0) 60%);
  overflow: hidden;
}

.product > .section-inner {
  margin-bottom: 8px;
  width: 100%;
}

.product-stage {
  display: grid;
  grid-template-columns: 72px minmax(0, var(--max)) 72px;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 2.5vw, 36px);
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(12px, 2.5vw, 28px);
  box-sizing: border-box;
}

.product-nav-btn {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(7, 21, 26, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-nav-btn:hover {
  border-color: var(--ink);
  background: #fff;
  transform: scale(1.04);
}

.product-nav-btn:first-child {
  justify-self: start;
}

.product-nav-btn:last-child {
  justify-self: end;
}

.product-carousel {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
  background: transparent;
}

.product-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.product-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 12px 0 8px;
  box-sizing: border-box;
  background: transparent;
}

.product-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  max-width: 12ch;
}

.product-copy .section-lead {
  margin: 0;
}

.device-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  width: min(100%, 320px);
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(160deg, #16333c, #0b1f26);
  transform: rotateX(8deg) rotateY(-12deg);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-notch {
  width: 96px;
  height: 10px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #061015;
}

.phone-screen {
  border-radius: 20px;
  padding: 18px 16px 20px;
  background:
    linear-gradient(180deg, #f7fbfa 0%, #e7f2f0 100%);
  color: var(--ink);
  min-height: 420px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 700;
}

.dot-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal-deep);
}

.dot-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: liveBlink 1.4s ease-in-out infinite;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.stat {
  padding: 10px 8px;
  background: rgba(30, 200, 165, 0.1);
  border-left: 2px solid var(--teal);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.stat span {
  font-size: 0.72rem;
  color: var(--muted);
}

.chart {
  height: 90px;
  margin-bottom: 18px;
  background: rgba(7, 21, 26, 0.03);
}

.chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawLine 1.8s ease forwards 0.3s;
}

.chart-fill {
  fill: rgba(30, 200, 165, 0.18);
  opacity: 0;
  animation: fadeFill 1s ease forwards 1.2s;
}

.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.device-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status.on {
  background: var(--teal);
}

.status.warn {
  background: var(--warn);
}

.alert-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.alert {
  padding: 12px;
  border-left: 3px solid var(--teal);
  background: rgba(30, 200, 165, 0.08);
}

.alert.high {
  border-left-color: #d4684a;
  background: rgba(212, 104, 74, 0.1);
}

.alert.mid {
  border-left-color: var(--warn);
  background: rgba(224, 161, 74, 0.12);
}

.alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.alert span {
  font-size: 0.78rem;
  color: var(--muted);
}

.alert-action {
  padding: 12px;
  text-align: center;
  background: var(--ink);
  color: #f4fbf9;
  font-size: 0.88rem;
  font-weight: 500;
}

.control-card {
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(30, 200, 165, 0.08);
  border: 1px solid var(--line);
}

.control-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.control-card > span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.control-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.control-switch i {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(7, 21, 26, 0.18);
  position: relative;
}

.control-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.control-switch.is-on i {
  background: var(--teal);
}

.control-switch.is-on i::after {
  transform: translateX(18px);
}

.control-log {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.product-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(7, 21, 26, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-dot.is-active {
  background: var(--teal-deep);
  transform: scale(1.2);
}

.capabilities {
  background: var(--ink);
  color: #eef7f5;
}

.capabilities .eyebrow {
  color: var(--teal);
}

.capabilities .section-lead {
  color: rgba(238, 247, 245, 0.68);
}

.cap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(238, 247, 245, 0.14);
}

.cap {
  padding: 32px 28px 32px 0;
  border-bottom: 1px solid rgba(238, 247, 245, 0.14);
}

.cap:nth-child(odd) {
  padding-right: 36px;
  border-right: 1px solid rgba(238, 247, 245, 0.14);
}

.cap:nth-child(even) {
  padding-left: 36px;
}

.cap-index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.cap h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cap p {
  margin: 0;
  color: rgba(238, 247, 245, 0.68);
  max-width: 34ch;
}

.scene-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}

.scene {
  text-align: left;
  padding: 22px 18px 22px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}

.scene + .scene {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.scene.is-active {
  opacity: 1;
  border-bottom-color: var(--teal-deep);
}

.scene strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.scene span {
  color: var(--muted);
  font-size: 0.92rem;
}

.scene-panel {
  min-height: 4.5em;
}

.scene-copy {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: riseIn 0.45s ease both;
}

.download {
  background:
    linear-gradient(135deg, #0f3d45 0%, #0a2a30 45%, #134e4a 100%);
  color: #f4fbf9;
}

.download .eyebrow {
  color: var(--teal);
}

.download .section-lead {
  color: rgba(244, 251, 249, 0.72);
  margin-bottom: 32px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  min-width: 168px;
  padding: 12px 18px;
  border: 1px solid rgba(244, 251, 249, 0.35);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.store-btn:hover {
  background: rgba(244, 251, 249, 0.08);
  border-color: #f4fbf9;
  transform: translateY(-1px);
}

.store-label {
  font-size: 0.72rem;
  opacity: 0.75;
}

.store-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer {
  padding: 40px clamp(20px, 4vw, 48px) 48px;
  background: #061015;
  color: rgba(238, 247, 245, 0.7);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #f4fbf9;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand .logo-mark {
  box-shadow: 4px 4px 0 0 rgba(30, 200, 165, 0.35);
}

.footer-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  opacity: 0.65;
}

.footer-meta a {
  border-bottom: 1px solid rgba(238, 247, 245, 0.4);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.footer-meta a:hover {
  border-bottom-color: rgba(238, 247, 245, 0.9);
}

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

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-56px, -56px, 0);
  }
}

@keyframes nodeBreath {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.05);
  }
}

@keyframes linkFlow {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: rotateX(8deg) rotateY(-12deg) translateY(0);
  }
  50% {
    transform: rotateX(8deg) rotateY(-12deg) translateY(-10px);
  }
}

@keyframes liveBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeFill {
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .product-stage {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 8px;
    padding: 0 10px;
  }

  .product-nav-btn {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }

  .product-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .product-copy h2 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .product-copy .section-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cap-list {
    grid-template-columns: 1fr;
  }

  .cap,
  .cap:nth-child(odd),
  .cap:nth-child(even) {
    padding: 28px 0;
    border-right: 0;
  }

  .scene-strip {
    grid-template-columns: 1fr;
  }

  .scene,
  .scene + .scene {
    padding: 18px 0;
    border-left: 0;
  }

  .phone {
    transform: none;
    animation: phoneFloatY 6s ease-in-out infinite;
  }

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

@media (max-height: 820px) {
  .product .phone {
    width: min(100%, 280px);
  }

  .product .phone-screen {
    min-height: 360px;
    padding: 14px 12px 16px;
  }

  .product-copy h2 {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
  }
}

@media (max-width: 560px) {
  .brand-lockup {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .hero h1 {
    max-width: none;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .download-actions {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
  }

  .product-stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 4px;
    padding: 0 6px;
  }

  .product-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
