:root {
  --bg: #07060f;
  --bg-soft: #0b0a17;
  --bg-elev: #100e20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceefb;
  --text-soft: #b9bcd6;
  --muted: #8b90ad;
  --primary: #7b5cff;
  --primary-soft: #a58bff;
  --accent: #ff4f8b;
  --cyan: #35e6d0;
  --gold: #ffc46b;
  --grad: linear-gradient(120deg, #7b5cff 0%, #b45cff 45%, #ff4f8b 100%);
  --grad-soft: linear-gradient(120deg, rgba(123, 92, 255, 0.18), rgba(255, 79, 139, 0.14));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 30px 90px -40px rgba(123, 92, 255, 0.85);
  --container: 1180px;
  --header-h: 68px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(123, 92, 255, 0.20), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(255, 79, 139, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(53, 230, 208, 0.10), transparent 64%),
    var(--bg);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 78%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  margin: 0;
}

::selection {
  background: rgba(255, 79, 139, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section[id],
main [id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 6, 15, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(7, 6, 15, 0.9);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(123, 92, 255, 0.9);
}

.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text {
  letter-spacing: 0.02em;
}

.hero-copy {
  min-width: 0;
}

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

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

.nav-link {
  position: relative;
  font-size: 14.5px;
  color: var(--text-soft);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 18px 44px -22px rgba(123, 92, 255, 0.95);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -20px rgba(255, 79, 139, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.42), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 230, 208, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-title {
  margin: 22px 0 20px;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  font-size: 16.5px;
  color: var(--text-soft);
}

.mobile-break {
  display: none;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 0;
}

.tag {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag:hover {
  border-color: rgba(123, 92, 255, 0.6);
  color: #fff;
  background: rgba(123, 92, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.stat-value {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 700;
}

.stat-num {
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;
}

.phone {
  position: relative;
  width: 286px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.6));
}

.phone-frame {
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, rgba(123, 92, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 508px;
  border-radius: 32px;
  overflow: hidden;
  background: #05040c;
}

.phone-shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  animation: shotCycle 13.5s ease-in-out infinite;
}

.shot-1 {
  animation-delay: 0s;
}

.shot-2 {
  animation-delay: 4.5s;
}

.shot-3 {
  animation-delay: 9s;
}

@keyframes shotCycle {
  0%, 2% { opacity: 0; transform: scale(1.06); }
  6%, 30% { opacity: 1; transform: scale(1); }
  34%, 100% { opacity: 0; transform: scale(1.02); }
}

.phone-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.hud-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 79, 139, 0.22);
  border: 1px solid rgba(255, 79, 139, 0.45);
  color: #ffd7e4;
}

.hud-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.hud-meta {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.phone-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.phone-bar span {
  display: block;
  height: 100%;
  width: 42%;
  background: var(--grad);
  animation: barGrow 13.5s ease-in-out infinite;
}

@keyframes barGrow {
  0% { width: 6%; }
  96%, 100% { width: 100%; }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 14, 32, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}

.float-card-top {
  top: 18px;
  left: -18px;
}

.float-card-bottom {
  bottom: 26px;
  right: -14px;
  animation-delay: 2.2s;
}

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

.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid rgba(123, 92, 255, 0.4);
  color: var(--primary-soft);
  flex: none;
}

.float-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.float-card span:not(.float-icon) {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.quickbar {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.quick-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: trackSlide 38s linear infinite;
}

.quick-item {
  font-size: 13.5px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.quick-sep {
  color: rgba(123, 92, 255, 0.7);
}

@keyframes trackSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.004));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin: 0 0 52px;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  border: 1px solid rgba(123, 92, 255, 0.4);
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.12);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--primary-soft);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 18px 0 0;
  font-size: 15.5px;
  color: var(--text-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 15.5px;
}

.about-copy strong {
  color: #fff;
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.check {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(53, 230, 208, 0.14);
  border: 1px solid rgba(53, 230, 208, 0.42);
}

.check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.about-cards {
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 180px at 110% -20%, rgba(123, 92, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(123, 92, 255, 0.32);
  color: var(--primary-soft);
}

.card-title {
  font-size: 18px;
  margin-bottom: 9px;
}

.card-text {
  font-size: 14.5px;
  color: var(--text-soft);
}

.cards {
  display: grid;
  gap: 18px;
}

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

.card-tech {
  padding-top: 30px;
}

.card-index {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  font-variant-numeric: tabular-nums;
}

.card-app {
  padding-left: 26px;
}

.card-app::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.75;
}

.figure-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.figure-tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.figure-tile img {
  width: 100%;
  height: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.figure-tile:hover img {
  transform: scale(1.06);
}

.figure-tile figcaption {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  letter-spacing: 0.05em;
}

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

.metric {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.metric:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 230, 208, 0.35);
  background: rgba(53, 230, 208, 0.05);
}

.metric-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.metric-text {
  font-size: 14px;
  color: var(--text-soft);
  min-height: 66px;
}

.metric-bar {
  display: block;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-bar i {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform-origin: left;
}

.anim-ready .metric:not(.is-visible) .metric-bar i {
  transform: scaleX(0);
}

.metric.is-visible .metric-bar i {
  animation: barFill 1.6s cubic-bezier(0.22, 0.85, 0.3, 1) both;
}

@keyframes barFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 79, 139, 0.42);
  box-shadow: 0 26px 60px -34px rgba(255, 79, 139, 0.85);
}

.gallery-btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}

.gallery-btn img {
  width: 100%;
  height: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.85, 0.3, 1), filter 0.4s ease;
}

.gallery-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 15, 0.72));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-btn img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.gallery-item:hover .gallery-btn::after {
  opacity: 1;
}

.gallery-cap {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  letter-spacing: 0.03em;
}

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

.theme-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.026);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 92, 255, 0.5);
}

.theme-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
}

.theme-media img {
  width: 100%;
  height: 190px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.theme-card:hover .theme-media img {
  transform: scale(1.07);
}

.theme-body {
  padding: 20px;
}

.theme-title {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.theme-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--grad);
  vertical-align: middle;
}

.theme-text {
  font-size: 13.5px;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 92, 255, 0.45);
}

.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 14px 30px -16px rgba(123, 92, 255, 0.9);
}

.step-title {
  font-size: 16.5px;
  margin-bottom: 7px;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-text {
  font-size: 13.8px;
  color: var(--text-soft);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.022);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

.compare-table thead th {
  background: rgba(123, 92, 255, 0.14);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.compare-table tbody td {
  color: var(--text-soft);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th {
  background: rgba(255, 255, 255, 0.035);
}

.compare-table td:last-child {
  color: #cfe9ff;
}

.case-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.case-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.case-card img {
  width: 100%;
  height: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-card:hover img {
  transform: scale(1.06);
}

.case-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 6, 15, 0.92));
}

.case-card strong {
  display: block;
  font-size: 15px;
}

.case-card span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.026);
  transition: border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(123, 92, 255, 0.45);
  background: rgba(123, 92, 255, 0.07);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  color: var(--primary-soft);
}

.faq-sign {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-soft);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-sign {
  border-color: rgba(123, 92, 255, 0.6);
  background: rgba(123, 92, 255, 0.16);
}

.faq-item[open] .faq-sign::before,
.faq-item[open] .faq-sign::after {
  background: var(--primary-soft);
}

.faq-item[open] .faq-sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.faq-a p {
  margin: 0;
}

.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(680px 380px at 18% 0%, rgba(123, 92, 255, 0.24), transparent 66%),
    radial-gradient(600px 340px at 88% 100%, rgba(255, 79, 139, 0.18), transparent 66%);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}

.cta-copy {
  min-width: 0;
}

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}

.cta-label {
  display: inline-block;
  margin-right: 9px;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.cta-visual {
  position: relative;
  min-height: 320px;
}

.cta-shot {
  position: absolute;
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.cta-shot-a {
  top: 0;
  left: 0;
  z-index: 1;
  animation: floatY 7s ease-in-out infinite;
}

.cta-shot-b {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 250px;
  height: 250px;
  animation: floatY 7s ease-in-out 1.6s infinite;
}

.site-footer {
  position: relative;
  padding: 68px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(6, 5, 13, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 42px;
  padding-bottom: 44px;
}

.footer-desc {
  margin: 16px 0 0;
  max-width: 360px;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand .brand {
  margin-bottom: 2px;
}

.footer-title {
  font-size: 14px;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: 0.08em;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 14, 32, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.3s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: rgba(123, 92, 255, 0.7);
  color: var(--primary-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(4, 3, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-img {
  --lb-size: min(640px, 82vw, 74vh);
  width: var(--lb-size);
  height: var(--lb-size);
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.95);
  background: #0a0816;
}

.lightbox-cap {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(123, 92, 255, 0.28);
  border-color: rgba(123, 92, 255, 0.6);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.anim-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.85, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.85, 0.3, 1);
  will-change: opacity, transform;
}

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

@media (max-width: 1080px) {
  .container {
    padding: 0 20px;
  }

  .hero-inner {
    gap: 34px;
  }

  .float-card-top {
    left: -6px;
  }

  .float-card-bottom {
    right: -4px;
  }

  .nav-list {
    gap: 16px;
  }

  .nav-link {
    font-size: 13.5px;
  }

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

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

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .figure-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-visual {
    min-height: 380px;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 20px 26px;
    background: rgba(9, 8, 18, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 13px 6px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 46px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    min-height: 420px;
    margin-bottom: 12px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .compare-table th,
  .compare-table td {
    padding: 13px 15px;
    font-size: 13.5px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .mobile-break {
    display: block;
  }

  .gallery,
  .themes,
  .cards-3,
  .metrics,
  .timeline,
  .figure-row,
  .case-row {
    grid-template-columns: 1fr;
  }

  .gallery-btn img,
  .theme-media img {
    height: 260px;
  }

  .figure-tile img {
    height: 240px;
  }

  .case-card img {
    height: 260px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .phone {
    width: 240px;
  }

  .phone-screen {
    height: 420px;
  }

  .float-card {
    padding: 9px 12px;
  }

  .float-card-top {
    top: 8px;
    left: -8px;
  }

  .float-card-bottom {
    bottom: 8px;
    right: -6px;
  }

  .cta-visual {
    min-height: 300px;
  }

  .cta-shot {
    width: 210px;
    height: 210px;
  }

  .cta-shot-b {
    width: 160px;
    height: 160px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 25px;
  }

  .to-top {
    right: 16px;
    bottom: 18px;
  }
}

@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;
  }

  .anim-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .to-top,
  .lightbox,
  .quickbar,
  .hero-visual {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}
