:root {
  --ink: #ffffff;
  --muted: rgba(255,255,255,.68);
  --soft: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.16);
  --line-strong: rgba(255,255,255,.25);
  --glass: rgba(255,255,255,.11);
  --glass-strong: rgba(255,255,255,.16);
  --night: #080b0a;
  --night-soft: #0c1210;
  --green: #62d8a1;
  --green-dark: #153f30;
  color-scheme: dark;
  background: var(--night);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }

::selection { background: rgba(255,255,255,.2); }

.story-media {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0c0b;
}

.story-poster,
.story-shade,
.story-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-poster {
  object-fit: cover;
  object-position: center;
}

.story-poster {
  z-index: 0;
  opacity: 1;
  transition: opacity 600ms ease;
}

.story-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,8,7,.8) 0%, rgba(4,8,7,.36) 48%, rgba(4,8,7,.26) 100%),
    linear-gradient(0deg, rgba(4,8,7,.68) 0%, rgba(4,8,7,.08) 55%, rgba(4,8,7,.42) 100%);
  opacity: calc(.83 + var(--story-progress) * .1);
}

.story-grain {
  z-index: 2;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, 4vw);
  border-bottom: 1px solid var(--line);
  background: rgba(7,10,9,.32);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background-color 260ms ease, min-height 260ms ease;
}

.site-header.is-scrolled {
  min-height: 62px;
  background: rgba(7,10,9,.72);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav a {
  position: relative;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 560;
  transition: color 220ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav a:hover,
.nav a[aria-current="location"] { color: #fff; }
.nav a:hover::after,
.nav a[aria-current="location"]::after { transform: scaleX(1); }

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #fff;
  background: var(--glass);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.header-action:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.2);
}

main,
.site-footer { position: relative; z-index: 10; }

.story { position: relative; }

.scene {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 108px max(24px, 4vw) 48px;
}

.hero-scene {
  min-height: 480px;
  justify-content: flex-end;
}

.scene-top,
.scene-bottom {
  display: flex;
  justify-content: space-between;
  gap: 52px;
}

.scene-top { align-items: flex-start; }
.scene-bottom { align-items: flex-end; }

.service-list {
  display: grid;
  gap: 8px;
}

.service-list span,
.section-index {
  color: rgba(255,255,255,.83);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.scene-intro {
  max-width: 360px;
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 480;
  line-height: 1.7;
  text-align: right;
  text-shadow: 0 2px 16px rgba(0,0,0,.38);
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-left: 2px solid #fff;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-copy h1,
.ability-copy h2 {
  margin: 20px 0 0;
  color: #fff;
  font-size: 82px;
  font-weight: 480;
  line-height: 1.05;
  text-shadow: 0 3px 24px rgba(0,0,0,.38);
}

.start-panel {
  width: min(100%, 370px);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
}

.start-panel > img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
}

.start-panel > div { display: grid; gap: 6px; }
.start-panel strong { font-size: 14px; font-weight: 650; }
.start-panel span { color: var(--muted); font-size: 10px; line-height: 1.5; }

.start-panel a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 17px;
  color: #0b0e0d;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 220ms ease, transform 220ms ease;
}

.start-panel a:hover { background: rgba(255,255,255,.84); }
.start-panel a:hover b { transform: translateX(2px); }
.start-panel b { font-size: 18px; font-weight: 450; transition: transform 220ms ease; }

.story-spacer { height: 0; min-height: 0; }

.ability-bottom {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(360px, 480px);
  align-items: end;
}

.ability-scene { padding-top: 94px; padding-bottom: 82px; }

.ability-copy > p {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.75;
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}

.ability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 21px;
  font-size: 12px;
  font-weight: 650;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.button.primary { color: #0a0d0c; background: #fff; }
.button.primary:hover { background: rgba(255,255,255,.84); }
.button.secondary { border-color: var(--line-strong); background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.button.secondary:hover { background: rgba(255,255,255,.18); }
.button b { font-size: 18px; font-weight: 450; }

.capability-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
}

.capability-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease;
}

.capability-row:last-child { border-bottom: 0; }
.capability-row:hover { background: rgba(255,255,255,.08); }
.capability-row > span { color: var(--soft); font-size: 10px; font-weight: 650; }
.capability-row > div { display: grid; gap: 5px; }
.capability-row strong { font-size: 16px; font-weight: 620; }
.capability-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.capability-row > b { color: var(--soft); font-size: 20px; font-weight: 400; transition: color 220ms ease, transform 220ms ease; }
.capability-row:hover > b { color: #fff; transform: translateX(3px); }

.product-proof,
.roles-section,
.download-section {
  position: relative;
  background: var(--night);
}

.product-proof {
  padding: 138px max(24px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(255,255,255,.1);
}

.proof-heading {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(420px, 1.35fr) minmax(280px, .8fr);
  align-items: end;
  gap: 42px;
}

.section-index { color: var(--green); }

.proof-heading h2,
.roles-heading h2,
.download-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 54px;
  font-weight: 480;
  line-height: 1.14;
}

.proof-heading > p,
.download-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.screen-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  align-items: center;
  gap: 84px;
  margin-top: 100px;
}

.screen-choices { border-top: 1px solid var(--line); }

.screen-choice {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  width: 100%;
  min-height: 110px;
  padding: 24px 18px 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: padding-left 220ms ease, background-color 220ms ease;
}

.screen-choice::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease;
}

.screen-choice:hover,
.screen-choice.active {
  padding-left: 16px;
  background: rgba(255,255,255,.035);
}

.screen-choice.active::before { transform: scaleY(1); }
.screen-choice > span { grid-row: 1 / span 2; color: var(--soft); font-size: 11px; font-weight: 650; }
.screen-choice strong { color: #fff; font-size: 18px; font-weight: 610; }
.screen-choice small { grid-column: 2; margin-top: 7px; color: var(--muted); font-size: 12px; }

.phone-preview {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #eef1ef;
  border-radius: 34px;
  background: #e7ece9;
  box-shadow: 0 38px 100px rgba(0,0,0,.38);
}

.phone-speaker {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 50%;
  width: 68px;
  height: 5px;
  border-radius: 3px;
  background: rgba(9,18,14,.25);
  transform: translateX(-50%);
}

.phone-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 240ms ease, transform 260ms ease;
}

.phone-preview.is-loaded > img { opacity: 1; }
.phone-preview.is-switching > img { opacity: .14; transform: scale(.99); }

.media-skeleton {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  background: #dce3df;
  transition: opacity 220ms ease;
}

.media-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s ease-in-out infinite;
}

[data-media-shell].is-loaded > .media-skeleton { opacity: 0; pointer-events: none; }

@keyframes shimmer { to { transform: translateX(100%); } }

.roles-section {
  padding: 126px max(24px, calc((100vw - 1240px) / 2));
  background: var(--night-soft);
}

.roles-heading {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 2.15fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 70px;
}

.role-list { border-top: 1px solid var(--line); }

.role-row {
  display: grid;
  grid-template-columns: 54px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.row-number { color: var(--soft); font-size: 11px; font-weight: 650; }
.role-row img { width: 58px; height: 58px; border-radius: 8px; }
.role-row h3 { margin: 0; font-size: 21px; font-weight: 620; }
.role-row p { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.role-row > a { color: var(--green); font-size: 12px; font-weight: 650; }
.role-row > a:hover { color: #fff; }

.download-section {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr);
  gap: 90px;
  padding: 132px max(24px, calc((100vw - 1240px) / 2));
}

.download-copy { display: grid; align-content: start; gap: 24px; }
.download-copy > a { justify-self: start; color: var(--green); font-size: 12px; font-weight: 650; }
.download-copy > a b { display: inline-block; font-size: 18px; font-weight: 400; transition: transform 220ms ease; }
.download-copy > a:hover b { transform: translateX(3px); }

.download-list { border-top: 1px solid var(--line); }

.download-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 220ms ease, background-color 220ms ease;
}

.download-row:hover,
.download-row.is-downloading { padding-left: 14px; background: rgba(255,255,255,.035); }
.download-row img { width: 48px; height: 48px; border-radius: 8px; }
.download-row span { display: grid; gap: 5px; }
.download-row strong { font-size: 16px; font-weight: 620; }
.download-row small { color: var(--muted); font-size: 11px; }
.download-row > b { color: var(--green); font-size: 11px; font-weight: 650; white-space: nowrap; }

.site-footer {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 36px;
  padding: 74px max(24px, calc((100vw - 1240px) / 2)) 40px;
  border-top: 1px solid var(--line);
  background: #050706;
}

.footer-brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 3px 12px;
}

.footer-brand img { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 8px; }
.footer-brand strong { font-size: 17px; font-weight: 620; }
.footer-brand span { color: var(--soft); font-size: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.site-footer nav a,
.footer-meta a,
.footer-meta small { color: var(--soft); font-size: 10px; }
.site-footer nav a:hover,
.footer-meta a:hover { color: #fff; }
.footer-meta { justify-self: end; display: grid; gap: 7px; text-align: right; }

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

.motion-ready:not(.reduced-motion) .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.motion-ready:not(.reduced-motion) .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease-out var(--delay, 0ms), transform 700ms ease-out var(--delay, 0ms);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-copy h1,
  .ability-copy h2 { font-size: 68px; }
  .ability-bottom { grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: 44px; }
  .proof-heading { grid-template-columns: 150px minmax(0, 1.35fr) minmax(240px, .8fr); gap: 28px; }
  .proof-heading h2,
  .roles-heading h2,
  .download-copy h2 { font-size: 46px; }
  .screen-stage { gap: 50px; }
}

@media (max-width: 780px) {
  .site-header {
    top: 8px;
    right: 8px;
    left: 8px;
    min-height: 56px;
    padding: 6px 7px 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7,10,9,.52);
  }

  .site-header.is-scrolled { min-height: 56px; background: rgba(7,10,9,.82); }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .header-action { min-height: 40px; padding: 0 13px; font-size: 11px; }

  .story-poster { object-position: 58% center; }

  .story-shade {
    background:
      linear-gradient(90deg, rgba(3,7,6,.64), rgba(3,7,6,.28)),
      linear-gradient(0deg, rgba(3,7,6,.8) 0%, rgba(3,7,6,.14) 54%, rgba(3,7,6,.6) 100%);
  }

  .scene {
    padding: 88px 18px 30px;
  }

  .hero-scene {
    min-height: 448px;
    justify-content: flex-end;
  }

  .scene-top,
  .scene-bottom { flex-direction: column; align-items: stretch; gap: 26px; }
  .scene-intro { max-width: 310px; font-size: 15px; line-height: 1.65; text-align: left; }
  .service-list { gap: 6px; }
  .service-list span { font-size: 10px; }
  .hero-bottom { gap: 22px; }
  .hero-copy h1,
  .ability-copy h2 { margin-top: 14px; font-size: 50px; line-height: 1.08; }
  .start-panel { width: 100%; grid-template-columns: 64px minmax(0, 1fr); padding: 10px; }
  .start-panel > img { width: 64px; height: 64px; }
  .start-panel a { min-height: 32px; }

  .story-spacer { height: 0; min-height: 0; }
  .ability-scene { padding-top: 52px; padding-bottom: 60px; }

  .ability-scene { gap: 74px; }
  .ability-bottom { grid-template-columns: 1fr; gap: 42px; }
  .ability-copy > p { font-size: 13px; }
  .capability-row { min-height: 86px; padding: 16px; }

  .product-proof,
  .roles-section,
  .download-section { padding: 90px 18px; }

  .proof-heading,
  .roles-heading,
  .download-section { grid-template-columns: 1fr; gap: 24px; }
  .proof-heading h2,
  .roles-heading h2,
  .download-copy h2 { font-size: 36px; line-height: 1.2; }
  .proof-heading > p { margin-top: 2px; }

  .screen-stage { grid-template-columns: 1fr; gap: 44px; margin-top: 62px; }
  .screen-choice { min-height: 94px; }
  .phone-preview { width: min(100%, 350px); }

  .roles-heading { margin-bottom: 48px; }
  .role-row { grid-template-columns: 34px 52px minmax(0, 1fr); gap: 14px; }
  .role-row img { width: 48px; height: 48px; }
  .role-row > a { grid-column: 3; justify-self: start; }

  .download-section { gap: 52px; }
  .download-row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .download-row img { width: 44px; height: 44px; }
  .download-row > b { grid-column: 2; }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: 58px 18px 32px;
  }

  .site-footer nav { justify-content: flex-start; }
  .footer-meta { justify-self: start; text-align: left; }
}

@media (max-width: 430px) {
  .header-action { padding: 0 11px; }
  .hero-copy h1,
  .ability-copy h2 { font-size: 46px; }
  .scene-intro { font-size: 14px; }
  .glass-badge { font-size: 10px; }
  .ability-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .button { min-width: 0; padding: 0 11px; }
  .capability-row { grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 9px; }
  .screen-choice { grid-template-columns: 42px minmax(0, 1fr); }
  .role-row { grid-template-columns: 30px 46px minmax(0, 1fr); }
  .role-row img { width: 44px; height: 44px; }
  .role-row h3 { font-size: 17px; }
  .role-row p { font-size: 12px; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .start-panel,
  .capability-panel,
  .button.secondary,
  .glass-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8,12,10,.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-poster { opacity: 1 !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .media-skeleton::after { animation: none; }
  .screen-choice,
  .phone-preview > img,
  .download-row { transition: none !important; }
}
