:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --blue: #0066cc;
  --blue-light: #2997ff;
  --dark: #050505;
  --dark-2: #111114;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  text-rendering: geometricPrecision;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(22px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  height: 46px;
  margin: 0 auto;
  padding: 0 22px;
  color: rgba(29, 29, 31, .86);
  font-size: 12px;
}

.brand {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav a {
  transition: color .25s ease;
}

.nav a:hover {
  color: #000;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 46px);
  display: grid;
  place-items: center;
  padding: 72px 24px 0;
  text-align: center;
  color: #f5f5f7;
  background:
    radial-gradient(circle at 50% 72%, rgba(42, 132, 255, .22), transparent 32%),
    linear-gradient(180deg, #050505 0%, #101014 62%, #000 100%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #86868b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: rgba(245, 245, 247, .68);
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 980px;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(245, 245, 247, .78);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.45;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 28px;
  color: var(--blue-light);
  font-size: 19px;
}

.actions a {
  transition: opacity .2s ease, transform .2s ease;
}

.actions a::after {
  content: ">";
  margin-left: 6px;
}

.actions a:hover {
  opacity: .78;
  transform: translateY(-1px);
}

.hero-device {
  position: relative;
  z-index: 2;
  width: min(440px, 72vw);
  margin-top: 46px;
  padding: 10px;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
  box-shadow: 0 -24px 90px rgba(41,151,255,.18), 0 34px 110px rgba(0,0,0,.56);
  transform: translateZ(0);
  animation: deviceFloat 5.8s ease-in-out infinite;
}

.hero-device video,
.hero-device img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 34px 34px 0 0;
  background: #111;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 104px 24px;
}

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

.section h2,
.hero-panel h2,
.visual-showcase h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-grid,
.work-grid,
.capability-grid {
  display: grid;
  gap: 20px;
}

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

.feature-card,
.capability-grid article {
  min-height: 238px;
  padding: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.feature-card:hover,
.capability-grid article:hover,
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,.12);
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: #fff;
  background: #1d1d1f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 48px;
  align-items: center;
  min-height: 720px;
  padding: 108px max(24px, calc((100vw - 1120px) / 2));
}

.dark-panel {
  color: #f5f5f7;
  background:
    radial-gradient(circle at 18% 20%, rgba(41,151,255,.18), transparent 26%),
    linear-gradient(135deg, #030303, #18181c 56%, #070707);
}

.dark-panel h2 {
  color: #f5f5f7;
}

.dark-panel p {
  max-width: 620px;
  color: rgba(245,245,247,.72);
  font-size: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

.timeline span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
}

.timeline h3 {
  color: #fff;
}

.timeline p {
  color: rgba(245,245,247,.68);
  font-size: 16px;
}

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

.work-card {
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 18px 52px rgba(0,0,0,.07);
  transition: transform .35s ease, box-shadow .35s ease;
}

.work-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  background: #eee;
  transition: transform .5s ease, filter .5s ease;
}

.work-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.work-card div {
  padding: 26px;
}

.work-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.work-card span {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 17px;
}

.work-card span::after {
  content: ">";
  margin-left: 6px;
}

.visual-showcase {
  overflow: hidden;
  padding: 110px 24px;
  background: #fff;
}

.visual-copy {
  max-width: 940px;
  margin: 0 auto 44px;
  text-align: center;
}

.visual-copy p:last-child {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 19px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1.15fr;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.visual-grid img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(0,0,0,.12);
}

.visual-grid img:nth-child(2) {
  margin-top: 62px;
}

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

.capability-grid article {
  min-height: 210px;
}

.contact {
  padding: 120px 24px;
  text-align: center;
  color: #f5f5f7;
  background:
    radial-gradient(circle at 50% 20%, rgba(41,151,255,.2), transparent 30%),
    linear-gradient(180deg, #111114, #000);
}

.contact-inner {
  max-width: 920px;
  margin: 0 auto;
}

.contact h2 {
  color: #fff;
}

.contact p {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(245,245,247,.7);
  font-size: 19px;
}

.footer {
  padding: 28px 24px;
  text-align: center;
  background: #000;
}

.footer p {
  color: rgba(245,245,247,.52);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

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

  .reveal,
  .hero-device,
  .actions a,
  .work-card,
  .feature-card,
  .capability-grid article,
  .work-card img {
    animation: none;
    transition: none;
  }

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

@media (max-width: 920px) {
  .hero {
    min-height: 860px;
  }

  .feature-grid,
  .work-grid,
  .capability-grid,
  .hero-panel,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 0;
    padding: 82px 24px;
  }

  .visual-grid img,
  .visual-grid img:nth-child(2) {
    height: 460px;
    margin-top: 0;
  }

  .work-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 0 14px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    min-height: 780px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
    font-size: 18px;
  }

  .section {
    padding: 72px 18px;
  }

  .section h2,
  .hero-panel h2,
  .visual-showcase h2,
  .contact h2 {
    font-size: 38px;
  }

  .feature-card,
  .capability-grid article {
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
  }

  .work-card {
    border-radius: 24px;
  }

  .work-card img {
    height: 320px;
  }
}
