@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #050b16;
  --panel: rgba(9, 21, 39, 0.72);
  --panel-strong: rgba(13, 32, 59, 0.92);
  --text: #eef8ff;
  --muted: #98b5c8;
  --line: rgba(139, 210, 255, 0.18);
  --cyan: #35d5ff;
  --blue: #1488ff;
  --amber: #ffb45a;
  --green: #6fffd2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(53, 213, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 78% 16%, rgba(111, 255, 210, 0.16), transparent 28rem),
    linear-gradient(135deg, #050b16 0%, #071421 48%, #0b1727 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
a {
  cursor: pointer;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 34px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 11, 22, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-mark,
.header-actions,
.nav-links,
.footer-links,
.hero-actions,
.carousel-dots {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.header-actions {
  flex-shrink: 0;
  gap: 10px;
}

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

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

.download-pill,
.mobile-download-fab,
.primary-action,
.secondary-action,
.language-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.download-pill,
.mobile-download-fab,
.primary-action {
  padding: 0 20px;
  color: #04101a;
  background: linear-gradient(135deg, var(--amber), #fff0b0);
  box-shadow: 0 12px 34px rgba(255, 180, 90, 0.28);
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  min-width: 104px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  list-style: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 188px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 11, 22, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

[dir="rtl"] .language-options {
  right: auto;
  left: 0;
}

.language-options a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: rgba(53, 213, 255, 0.12);
}

.language-options span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.download-pill:hover,
.mobile-download-fab:hover,
.primary-action:hover,
.secondary-action:hover,
.language-menu summary:hover {
  transform: translateY(-2px);
}

.mobile-download-fab {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  min-height: 680px;
  padding: 72px 0 92px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 213, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 213, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}

.hero-copy,
.device-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section-kicker,
.slide-eyebrow {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: reveal 560ms ease both;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0 22px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero p,
.section-heading p,
.support-band p,
.legal-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.metric-card {
  width: fit-content;
  margin: 30px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-card strong {
  display: block;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.carousel-dots {
  gap: 10px;
  margin-top: 34px;
}

.carousel-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dots button.is-active {
  width: 64px;
  background: var(--cyan);
}

.device-stage {
  display: grid;
  place-items: center;
}

.hero-product {
  position: relative;
  margin: 0;
  width: min(430px, 100%);
  aspect-ratio: 0.78;
  border: 1px solid rgba(53, 213, 255, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 28%, rgba(53, 213, 255, 0.24), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.48), inset 0 0 80px rgba(53, 213, 255, 0.12);
  overflow: hidden;
}

.hero-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 11, 22, 0.62);
  color: var(--muted);
}

.status-strip strong {
  color: var(--green);
  text-align: right;
}

[dir="rtl"] .status-strip strong {
  text-align: left;
}

.section-block,
.download-section,
.support-band,
.legal-page {
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.download-section h2,
.support-band h2,
.legal-card h1 {
  margin: 12px 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capability-card,
.product-card,
.release-card,
.support-band,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.capability-card {
  min-height: 248px;
  padding: 24px;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.14;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
}

.product-card div {
  padding: 20px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card-index {
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.capability-card h3 {
  margin: 48px 0 12px;
  font-size: 22px;
}

.capability-card p,
.product-card p,
.workflow-list p,
.site-footer p,
.release-card dd {
  color: var(--muted);
  line-height: 1.7;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: stretch;
}

.release-card {
  padding: 26px;
}

.download-intro > p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.download-qr-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-qr-card {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.download-qr-card:hover,
.download-qr-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(53, 213, 255, 0.48);
}

.download-qr-card:focus-visible {
  outline: 3px solid rgba(53, 213, 255, 0.42);
  outline-offset: 3px;
}

.download-qr-image {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
}

.download-qr-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.download-qr-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.download-qr-copy strong {
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
}

.download-qr-copy > span {
  color: var(--muted);
  line-height: 1.65;
}

.release-card dl,
.inline-release {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.release-card div,
.inline-release div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

dt {
  color: var(--text);
  font-weight: 800;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: end;
}

.is-wide {
  width: 100%;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
}

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

.workflow-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.workflow-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #06101b;
  background: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.support-band,
.legal-card {
  padding: 44px;
}

.legal-page {
  min-height: 56vh;
}

.legal-card {
  max-width: 760px;
  margin: 0 auto;
}

.legal-updated {
  margin-top: -2px;
  color: var(--green) !important;
  font-size: 15px !important;
  font-weight: 800;
}

.legal-sections {
  display: grid;
  gap: 26px;
  margin: 34px 0;
}

.legal-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

[dir="rtl"] .legal-section ul {
  padding-right: 22px;
  padding-left: 0;
}

.diagnostics-page {
  display: grid;
  gap: 18px;
  padding-bottom: 42px;
}

.diagnostics-head,
.diagnostics-filters,
.diagnostics-summary,
.diagnostics-table-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.diagnostics-head,
.diagnostics-summary {
  padding: 28px;
}

.diagnostics-head h1,
.diagnostics-summary h2 {
  margin: 8px 0 10px;
}

.diagnostics-head p,
.diagnostics-summary p {
  color: var(--muted);
}

.diagnostics-filters {
  padding: 18px;
}

.diagnostics-filters form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.diagnostics-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.diagnostics-filters input,
.diagnostics-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(4, 11, 22, 0.72);
  padding: 0 12px;
}

.diagnostics-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.diagnostic-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 11, 22, 0.42);
}

.diagnostic-summary-card strong {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

.diagnostic-summary-card span {
  font-weight: 800;
}

.diagnostic-summary-card small,
.diagnostics-table small {
  color: var(--muted);
}

.diagnostics-table-wrap {
  overflow-x: auto;
}

.diagnostics-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 13px;
}

.diagnostics-table th,
.diagnostics-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.diagnostics-table th {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.diagnostics-table code {
  color: var(--cyan);
  word-break: break-all;
}

.diagnostics-table pre {
  max-width: 360px;
  max-height: 180px;
  overflow: auto;
  color: var(--muted);
  white-space: pre-wrap;
}

.severity {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #06101b;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.severity-error,
.severity-critical {
  background: #ff8a8a;
}

.severity-warning {
  background: var(--amber);
}

.feedback-note {
  margin: 8px 0 0;
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  gap: 18px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .hero,
  .download-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .download-qr-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .device-stage {
    order: -1;
  }

  .hero-product {
    width: min(320px, 82vw);
    aspect-ratio: 1.15;
  }

  .capability-grid,
  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostics-filters form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: 100%;
    padding: 0 11px;
    overflow: hidden;
  }

  .site-header {
    top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-left: 12px;
    width: 100%;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-mark span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .download-pill {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .language-menu summary {
    min-width: 78px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .language-options {
    min-width: 172px;
  }

  .mobile-download-fab {
    position: static;
    display: inline-flex;
    float: right;
    margin: -18px 14px 24px 0;
    width: auto;
    min-width: 96px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  [dir="rtl"] .mobile-download-fab {
    float: left;
    margin: -18px 0 24px 14px;
  }

  .hero,
  .hero-copy,
  .device-stage {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
    word-break: normal;
  }

  .hero p,
  .section-kicker,
  .slide-eyebrow {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-product {
    width: min(270px, calc(100vw - 64px));
    aspect-ratio: auto;
  }

  .hero-product img {
    height: auto;
    aspect-ratio: 1.1;
  }

  .status-strip {
    position: static;
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .status-strip strong {
    max-width: 62%;
  }

  .capability-grid,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .download-qr-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 15px;
    padding: 15px;
    border-radius: 22px;
  }

  .download-qr-image {
    padding: 7px;
    border-radius: 14px;
  }

  .download-qr-copy strong {
    font-size: 18px;
  }

  .download-qr-copy > span {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnostics-head,
  .diagnostics-summary {
    padding: 20px;
  }

  .diagnostics-filters form {
    grid-template-columns: 1fr;
  }
}
