:root {
  --bg: #05070d;
  --bg-soft: #0a1018;
  --panel: rgba(13, 20, 31, 0.78);
  --panel-solid: #0d141f;
  --line: rgba(120, 202, 255, 0.22);
  --cyan: #18c8ff;
  --pink: #ff4fe1;
  --mint: #52ffbb;
  --gold: #ffd166;
  --text: #f5f8ff;
  --muted: #aab7c9;
  --soft: #74839a;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 12%, rgba(24, 200, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 2%, rgba(255, 79, 225, 0.17), transparent 34rem),
    linear-gradient(180deg, #05070d 0%, #07111b 44%, #05070d 100%);
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(5, 7, 13, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.78);
  border-bottom-color: rgba(24, 200, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(24, 200, 255, 0.28);
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a,
.footer-links a,
.text-link {
  transition: color 180ms ease;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

.header-cta {
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid rgba(24, 200, 255, 0.35);
  border-radius: 999px;
  color: #d8f7ff;
  background: rgba(24, 200, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 112px clamp(20px, 6vw, 96px) 36px;
  overflow: hidden;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.70) 36%, rgba(5, 7, 13, 0.14) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.08) 0%, rgba(5, 7, 13, 0.62) 92%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(78px, 14vw, 168px);
  line-height: 0.88;
  font-weight: 950;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(24px, 4.5vw, 56px);
  line-height: 1.02;
  font-weight: 860;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.52;
  font-weight: 560;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
}

.button.primary {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 16px 52px rgba(24, 200, 255, 0.22);
}

.button.secondary {
  color: #dff8ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero-status {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 6vw, 96px);
  right: clamp(20px, 6vw, 96px);
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(235, 246, 255, 0.76);
  font-size: 13px;
  font-weight: 780;
}

.hero-status span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-film {
  position: relative;
  min-height: 520vh;
}

.film-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(290px, 0.68fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  min-height: 100svh;
  align-items: center;
  padding: 92px clamp(20px, 5vw, 76px);
  background:
    radial-gradient(circle at 72% 48%, rgba(24, 200, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 84% 80%, rgba(255, 79, 225, 0.12), transparent 30rem),
    linear-gradient(180deg, #060a12, #07131d);
  overflow: hidden;
}

.stage-copy {
  max-width: 570px;
}

.stage-copy h2,
.section-head h2,
.identity h2,
.download h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.98;
  font-weight: 920;
}

.stage-copy p:not(.eyebrow),
.section-head p,
.identity p,
.download p {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.55;
}

.device {
  position: relative;
  width: min(100%, 860px);
  border: 1px solid rgba(24, 200, 255, 0.22);
  border-radius: 24px;
  background: rgba(7, 11, 18, 0.88);
  box-shadow: var(--shadow), 0 0 80px rgba(24, 200, 255, 0.13);
  overflow: hidden;
}

.device-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 248, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic i:nth-child(2) {
  background: #ffbd2e;
}

.traffic i:nth-child(3) {
  background: #28c840;
}

.device-screen {
  position: relative;
  aspect-ratio: 1100 / 740;
  background:
    linear-gradient(135deg, rgba(24, 200, 255, 0.08), transparent 42%),
    #050914;
}

#flowCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 10px 13px;
  border: 1px solid rgba(82, 255, 187, 0.22);
  border-radius: 999px;
  color: #cffff0;
  background: rgba(2, 18, 24, 0.7);
  font-size: 13px;
  font-weight: 850;
}

.film-steps {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  pointer-events: none;
}

.band,
.feature-section,
.support,
.download {
  padding: clamp(72px, 11vw, 150px) clamp(20px, 6vw, 96px);
}

.section-head {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.workflow-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow article,
.support article,
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.workflow article,
.support article {
  padding: 24px;
}

.step-number {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

article p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-section {
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0), rgba(24, 200, 255, 0.04) 40%, rgba(255, 79, 225, 0.04) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(24, 200, 255, 0.20), rgba(13, 20, 31, 0.78));
}

.feature-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(255, 79, 225, 0.18), rgba(13, 20, 31, 0.78));
}

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
  background: #071019;
}

.lab-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background:
    radial-gradient(circle at 22% 44%, rgba(255, 209, 102, 0.13), transparent 22rem),
    radial-gradient(circle at 72% 20%, rgba(82, 255, 187, 0.11), transparent 24rem),
    #05070d;
}

.lab-section h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5.2vw, 70px);
  line-height: 1;
}

.lab-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.55;
}

.lab-mark {
  display: grid;
  width: min(100%, 230px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 209, 102, 0.32), transparent 34%),
    radial-gradient(circle at 72% 70%, rgba(24, 200, 255, 0.26), transparent 36%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

.lab-mark span {
  color: #fff;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 950;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: #dff8ff;
  font-weight: 900;
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
}

.company-details {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 24px 0 0;
}

.company-details div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.company-details dt {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.company-details a {
  color: #dff8ff;
}

.legal-company {
  max-width: none;
}

.inline-link {
  display: inline;
  margin-top: 0;
  color: #dff8ff;
}

.identity-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.identity-panel img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.identity-panel span,
.identity-panel strong {
  display: block;
}

.identity-panel span {
  color: var(--muted);
}

.identity-panel strong {
  margin-top: 4px;
  font-size: 22px;
}

.download {
  position: relative;
  min-height: 84svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(24, 200, 255, 0.19), transparent 24rem),
    radial-gradient(circle at 58% 58%, rgba(255, 79, 225, 0.14), transparent 28rem),
    #05070d;
}

.download::before {
  content: "";
  position: absolute;
  inset: 13% 12%;
  border: 1px solid rgba(24, 200, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.download::after {
  content: "";
  position: absolute;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: 50%;
  transform: rotate(18deg) scaleY(0.36);
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  background: #0c0f15;
  box-shadow: 0 18px 62px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  font-weight: 850;
}

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

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  max-width: 1180px;
  margin: 42px auto 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(24, 200, 255, 0.20);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 20%, rgba(24, 200, 255, 0.14), transparent 18rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(235, 246, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(3, 8, 15, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 13px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(24, 200, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(24, 200, 255, 0.12);
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

.legal-contact {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(24, 200, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 6vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: #05070d;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 750;
}

.legal-page {
  min-height: 100svh;
  padding: 118px clamp(20px, 6vw, 96px) 70px;
  background:
    radial-gradient(circle at 12% 8%, rgba(24, 200, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(255, 79, 225, 0.12), transparent 26rem),
    #05070d;
}

.legal-shell {
  max-width: 900px;
  margin: 0 auto;
}

.legal-shell h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 9vw, 112px);
}

.legal-shell h2 {
  margin: 44px 0 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.legal-shell ol,
.legal-shell ul {
  padding-left: 22px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .film-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .stage-copy {
    max-width: none;
  }

  .workflow-grid,
  .support-grid,
  .feature-grid,
  .identity,
  .lab-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .feature-card.wide {
    grid-column: span 1;
  }

  .identity-panel {
    max-width: 420px;
  }

  .lab-mark {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding: 98px 18px 72px;
  }

  h1 {
    font-size: clamp(64px, 21vw, 96px);
  }

  .hero-status {
    display: none;
  }

  .scroll-film {
    min-height: auto;
  }

  .film-stage {
    position: relative;
    min-height: auto;
    padding: 72px 18px;
  }

  .stage-copy h2,
  .section-head h2,
  .identity h2,
  .download h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .device {
    border-radius: 16px;
  }

  .screen-label {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    white-space: normal;
  }

  .film-steps {
    display: none;
  }

  .band,
  .feature-section,
  .support,
  .download {
    padding: 70px 18px;
  }

  .workflow article,
  .support article,
  .feature-card {
    min-height: auto;
    padding: 20px;
  }

  .company-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  footer {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

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