:root {
  color-scheme: dark;
  --bg: #0d1113;
  --surface: #141b1e;
  --surface-strong: #1c2528;
  --text: #f3f6f4;
  --muted: #aeb8b3;
  --line: rgba(243, 246, 244, 0.16);
  --teal: #4fc3b4;
  --amber: #f2b766;
  --blue: #73a7ff;
  --lime: #b6f07a;
  --ink: #090c0d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  isolation: isolate;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(rgba(79, 195, 180, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 167, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 76%);
  animation: grid-drift 22s linear infinite;
}

body::after {
  z-index: 30;
  background: linear-gradient(
    180deg,
    transparent 0,
    rgba(255, 255, 255, 0.035) 50%,
    transparent 100%
  );
  background-size: 100% 7px;
  mix-blend-mode: screen;
  opacity: 0.28;
}

body::selection {
  background: rgba(79, 195, 180, 0.32);
}

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

.cursor-glow {
  position: fixed;
  left: var(--cursor-x, 50vw);
  top: var(--cursor-y, 36vh);
  z-index: -1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(79, 195, 180, 0.18),
    rgba(115, 167, 255, 0.08) 34%,
    transparent 66%
  );
  filter: blur(8px);
  opacity: 0.72;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.tech-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.tech-backdrop span {
  position: absolute;
  width: 1px;
  height: 36vh;
  background: linear-gradient(transparent, rgba(79, 195, 180, 0.36), transparent);
  opacity: 0.42;
  animation: data-fall 8s linear infinite;
}

.tech-backdrop span:nth-child(1) {
  left: 16%;
  animation-delay: -1s;
}

.tech-backdrop span:nth-child(2) {
  left: 52%;
  height: 28vh;
  animation-duration: 11s;
  animation-delay: -5s;
}

.tech-backdrop span:nth-child(3) {
  left: 83%;
  height: 44vh;
  animation-duration: 9s;
  animation-delay: -3s;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(9, 12, 13, 0.72);
  border-bottom: 1px solid rgba(243, 246, 244, 0.08);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 12, 13, 0.9);
  border-color: rgba(79, 195, 180, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  box-shadow:
    inset 0 0 18px rgba(79, 195, 180, 0.12),
    0 0 24px rgba(79, 195, 180, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  transition: color 160ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 110px clamp(18px, 6vw, 86px) 64px;
}

.hero::before {
  position: absolute;
  inset: 86px clamp(16px, 4vw, 58px) 46px;
  z-index: 1;
  border: 1px solid rgba(79, 195, 180, 0.16);
  clip-path: polygon(0 0, 23% 0, 23% 1px, 100% 1px, 100% 100%, 78% 100%, 78% calc(100% - 1px), 0 calc(100% - 1px));
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: clamp(18px, 5vw, 82px);
  bottom: 46px;
  z-index: 1;
  width: min(360px, 42vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--amber));
  content: "";
  opacity: 0.7;
  animation: pulse-line 2.8s ease-in-out infinite;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 66% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 12, 13, 0.94) 0%, rgba(9, 12, 13, 0.75) 40%, rgba(9, 12, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(9, 12, 13, 0.2) 0%, rgba(13, 17, 19, 0.92) 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.25rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0 24px rgba(79, 195, 180, 0.12),
    0 0 62px rgba(115, 167, 255, 0.1);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.6;
}

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

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.32) 42%, transparent 70%);
  content: "";
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 195, 180, 0.12);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(120%);
}

.button.primary {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.intro,
.focus-grid,
.stack-section,
.principles,
.contact {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 6vw, 86px);
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: end;
  border-top: 1px solid rgba(243, 246, 244, 0.1);
}

.intro::before {
  position: absolute;
  top: 0;
  left: clamp(18px, 6vw, 86px);
  width: min(420px, 54vw);
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
  content: "";
}

.intro p:last-child,
.contact p,
.principle-list p,
.focus-card p {
  color: var(--muted);
  line-height: 1.75;
}

.intro p:last-child {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 780px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #101719;
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(243, 246, 244, 0.1);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.focus-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(79, 195, 180, 0.16), transparent 32%),
    linear-gradient(315deg, rgba(242, 183, 102, 0.12), transparent 36%);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.focus-card > * {
  position: relative;
}

.focus-card:hover {
  background: #182124;
  border-color: rgba(79, 195, 180, 0.36);
  transform: translateY(-6px);
}

.focus-card:hover::before {
  opacity: 1;
}

.card-number {
  display: inline-block;
  margin-bottom: 76px;
  color: var(--amber);
  font-weight: 800;
}

.stack-section {
  background:
    linear-gradient(180deg, rgba(79, 195, 180, 0.07), transparent 32%),
    var(--bg);
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.stack-list li {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid rgba(243, 246, 244, 0.1);
  color: var(--text);
  font-weight: 750;
  text-align: center;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.stack-list li::after {
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--teal), transparent);
  content: "";
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.stack-list li:hover {
  border-color: rgba(182, 240, 122, 0.32);
  color: #ffffff;
  transform: translateY(-3px);
}

.stack-list li:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.principles {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 7vw, 84px);
  background: #eef2ef;
  color: #111719;
}

.principles .section-kicker {
  color: #20786e;
}

.principle-list {
  display: grid;
  gap: 18px;
  align-content: start;
}

.principle-list p {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(17, 23, 25, 0.18);
  color: #33403d;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.contact {
  min-height: 56vh;
  display: grid;
  align-content: center;
  justify-items: start;
  background:
    linear-gradient(135deg, rgba(79, 195, 180, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(242, 183, 102, 0.12), transparent 30%),
    #111719;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact h2 {
  max-width: 880px;
  margin-bottom: 22px;
}

.contact p {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 86px);
  border-top: 1px solid rgba(243, 246, 244, 0.1);
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
}

@media (max-width: 880px) {
  .site-header {
    position: fixed;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    font-size: 0.86rem;
  }

  .nav-links a {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(243, 246, 244, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 156px;
  }

  .hero-image {
    object-position: 73% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 12, 13, 0.9) 0%, rgba(9, 12, 13, 0.62) 100%),
      linear-gradient(180deg, rgba(9, 12, 13, 0.16) 0%, rgba(13, 17, 19, 0.95) 96%);
  }

  .intro,
  .principles {
    grid-template-columns: 1fr;
  }

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

  .focus-card {
    min-height: 220px;
    padding: 24px;
  }

  .card-number {
    margin-bottom: 42px;
  }

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

@media (max-width: 520px) {
  body::before {
    background-size: 34px 34px;
  }

  .cursor-glow {
    display: none;
  }

  .brand {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .hero {
    min-height: 96vh;
    padding: 150px 16px 42px;
  }

  .hero::before {
    inset: 134px 12px 28px;
  }

  .hero::after {
    width: 58vw;
    right: 16px;
    bottom: 28px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stack-list {
    grid-template-columns: 1fr;
  }

  .intro,
  .focus-grid,
  .stack-section,
  .principles,
  .contact {
    padding: 64px 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .cursor-glow,
  .tech-backdrop {
    display: none;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 44px 44px, 44px 44px;
  }
}

@keyframes data-fall {
  from {
    transform: translateY(-46vh);
  }

  to {
    transform: translateY(116vh);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.7);
    transform-origin: right;
  }

  50% {
    opacity: 0.9;
    transform: scaleX(1);
    transform-origin: right;
  }
}
