:root {
  --bg: #08090c;
  --surface: #101218;
  --surface-2: #151822;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --muted: #9aa3b2;
  --accent: #7c5cff;
  --accent-2: #35e0c8;
  --radius: 20px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; }

p { margin: 0; }

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 520px at 12% -8%, rgba(124, 92, 255, 0.26), transparent 62%),
    radial-gradient(620px 460px at 92% 12%, rgba(53, 224, 200, 0.13), transparent 65%),
    radial-gradient(700px 700px at 50% 108%, rgba(124, 92, 255, 0.1), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(53, 224, 200, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 200, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(53, 224, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 200, 0); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 12, 0.62);
  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(8, 9, 12, 0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #4b34c9);
  font-size: 15px;
  color: #fff;
}

.logo-text { font-size: 16px; letter-spacing: -0.01em; }
.dot { color: var(--accent-2); }

.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }

.nav a { position: relative; transition: color 0.2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 22px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a3fe0);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(124, 92, 255, 0.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(124, 92, 255, 0.95); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }

.header-cta { height: 38px; padding: 0 18px; font-size: 13px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 680;
  margin-bottom: 24px;
}

.grad {
  background: linear-gradient(105deg, #b8a8ff 0%, #7c5cff 38%, #35e0c8 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc { color: var(--muted); font-size: 17px; max-width: 30em; }

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

.stats {
  display: flex;
  gap: 42px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats dt { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; }
.stats dd { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; }

.hero-frame {
  position: relative;
  border-radius: 26px;
  padding: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9), 0 0 80px -40px rgba(124, 92, 255, 0.7);
}
.hero-frame img { border-radius: 18px; aspect-ratio: 4 / 3.15; object-fit: cover; width: 100%; }

.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(18, 20, 28, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 2px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  animation: floaty 7s ease-in-out infinite;
}
.float-k { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.float-card strong { font-size: 14px; font-weight: 650; }
.float-a { right: -18px; top: 34px; }
.float-b { left: -26px; bottom: 40px; animation-delay: -3.4s; }

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

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.015);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scroll 34s linear infinite;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span:nth-child(even) { color: var(--accent); }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { position: relative; z-index: 1; padding-top: 104px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.filter.is-active {
  background: var(--text);
  color: #0b0c10;
  border-color: var(--text);
}

/* ---------- project grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  font-family: inherit;
  transition: transform 0.4s var(--ease), border-color 0.35s ease, box-shadow 0.4s ease;
  animation: cardIn 0.55s var(--ease) both;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 60px -40px rgba(124, 92, 255, 0.85);
}

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

.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 2.85; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .card-media img { transform: scale(1.055); }

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.6), transparent 55%);
  pointer-events: none;
}

.card-body { padding: 22px 24px 26px; }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.card-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.project-card:hover .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card-body h3 { font-size: 20px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.card-tags span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding-top: 120px;
}

.about-media { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.about-media img { aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }

.about-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 22px; }
.about-copy > p { color: var(--muted); margin-bottom: 16px; }

.capabilities {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.capabilities li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: baseline;
}
.capabilities h3 { font-size: 15px; }
.capabilities p { color: var(--muted); font-size: 14px; }

/* ---------- process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.steps li {
  padding: 26px 22px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.steps li:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-4px); }

.step-no {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 26px;
  font-weight: 600;
}
.steps h3 { font-size: 17px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 13.5px; }

/* ---------- contact ---------- */

.contact { padding-top: 120px; padding-bottom: 100px; }

.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 68px clamp(28px, 6vw, 76px);
  background:
    radial-gradient(600px 320px at 88% -10%, rgba(124, 92, 255, 0.34), transparent 68%),
    radial-gradient(520px 300px at 4% 110%, rgba(53, 224, 200, 0.14), transparent 70%),
    #0d0f15;
}

.contact-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.contact-desc { color: var(--muted); max-width: 36em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-meta { margin-top: 26px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #0d0f15;
  box-shadow: 0 60px 120px -50px #000;
  animation: modalIn 0.4s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; }

.modal-body { padding: 28px 30px 34px; }

.modal-meta { font-size: 12px; letter-spacing: 0.1em; color: var(--accent-2); margin-bottom: 10px; text-transform: uppercase; }
.modal-body h3 { font-size: 25px; margin-bottom: 12px; }
.modal-desc { color: var(--muted); font-size: 14.5px; }

.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.modal-facts dt { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.modal-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }

.modal-tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.modal-tags li {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: #c9bcff;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 9, 12, 0.7);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(124, 92, 255, 0.75); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 52px; padding-top: 56px; padding-bottom: 76px; }
  .hero-visual { max-width: 560px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav, .header-cta { display: none; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(8, 9, 12, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 26px; flex-wrap: wrap; }
  .float-a { right: 6px; top: 16px; }
  .float-b { left: 6px; bottom: 16px; }
  .capabilities li { grid-template-columns: 1fr; gap: 4px; }
  .modal-facts { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 76px; }
  .contact { padding-top: 84px; padding-bottom: 72px; }
  .contact-card { padding: 44px 26px; }
}
