:root {
  --ink: #f2f0dd;
  --muted: rgba(242, 240, 221, 0.72);
  --black: #030403;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #f5f2d9;
  --field: #09110d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(92, 121, 81, 0.25), transparent 30rem),
    linear-gradient(135deg, #020302 0%, #0b120e 42%, #12110b 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

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

.page-shell {
  width: min(100% - 28px, 1840px);
  margin: 0 auto;
  padding: 18px 0 44px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 36px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--field);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045) translate3d(var(--move-x, 0), var(--move-y, 0), 0);
  filter: saturate(0.62) contrast(1.02) brightness(0.85) hue-rotate(-13deg);
  transition: transform 300ms ease-out;
  z-index: -4;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 31, 44, 0.16) 0%, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 74% 36%, rgba(120, 160, 188, 0.22), transparent 28rem),
    radial-gradient(circle at 78% 74%, transparent 0 18rem, rgba(0, 0, 0, 0.3) 36rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, transparent 38%, rgba(0, 0, 0, 0.34) 100%);
  z-index: -3;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.05), transparent),
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  z-index: -2;
}

.cloud-field {
  position: absolute;
  inset: auto -24% -12% -24%;
  height: 58%;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 720px 260px, 860px 300px, 560px 220px;
  filter: blur(18px);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  z-index: -1;
}

.cloud-far {
  bottom: 19%;
  opacity: 0.16;
  background-image:
    radial-gradient(ellipse at 18% 64%, rgba(218, 226, 218, 0.22) 0 8%, transparent 29%),
    radial-gradient(ellipse at 54% 72%, rgba(229, 232, 218, 0.17) 0 10%, transparent 34%),
    radial-gradient(ellipse at 83% 62%, rgba(180, 198, 202, 0.16) 0 9%, transparent 30%);
  animation: cloudsFar 54s linear infinite, cloudGlow 9s ease-in-out infinite;
}

.cloud-mid {
  bottom: 6%;
  height: 50%;
  opacity: 0.24;
  background-size: 640px 230px, 780px 280px, 520px 210px;
  background-image:
    radial-gradient(ellipse at 22% 70%, rgba(226, 229, 218, 0.32) 0 10%, transparent 34%),
    radial-gradient(ellipse at 58% 62%, rgba(197, 205, 196, 0.22) 0 12%, transparent 38%),
    radial-gradient(ellipse at 92% 74%, rgba(238, 233, 213, 0.18) 0 9%, transparent 31%);
  animation: cloudsMid 38s linear infinite, cloudSwell 13s ease-in-out infinite;
}

.cloud-near {
  inset: auto -36% -20% -36%;
  height: 42%;
  opacity: 0.25;
  background-size: 520px 190px, 700px 240px, 430px 170px;
  background-image:
    radial-gradient(ellipse at 14% 58%, rgba(233, 234, 220, 0.36) 0 12%, transparent 38%),
    radial-gradient(ellipse at 48% 74%, rgba(205, 208, 198, 0.24) 0 14%, transparent 42%),
    radial-gradient(ellipse at 80% 64%, rgba(229, 223, 205, 0.22) 0 10%, transparent 34%);
  filter: blur(24px);
  animation: cloudsNear 26s linear infinite, cloudLift 10s ease-in-out infinite;
}

.typing-actor {
  position: absolute;
  left: 55.5%;
  top: 51%;
  width: clamp(32px, 4.1vw, 74px);
  aspect-ratio: 1.25;
  transform: translate(-50%, -50%) rotate(2deg);
  pointer-events: none;
  z-index: 1;
}

.screen-glow {
  position: absolute;
  right: 8%;
  top: 8%;
  width: 46%;
  height: 36%;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(230, 255, 248, 0.78), rgba(152, 210, 224, 0.46)),
    rgba(210, 246, 255, 0.58);
  box-shadow:
    0 0 10px rgba(168, 226, 238, 0.34),
    0 0 24px rgba(128, 190, 218, 0.2);
  transform: skewY(-8deg) rotate(3deg);
  animation: laptopPulse 2.8s ease-in-out infinite;
}

.hand {
  position: absolute;
  width: 12%;
  height: 10%;
  border-radius: 999px;
  background: rgba(222, 183, 139, 0.78);
  box-shadow: 0 0 8px rgba(255, 213, 165, 0.36);
  transform-origin: center;
}

.hand-left {
  right: 43%;
  top: 39%;
  animation: typeLeft 0.48s ease-in-out infinite;
}

.hand-right {
  right: 27%;
  top: 42%;
  animation: typeRight 0.42s ease-in-out infinite;
}

.nav-pill {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
  width: min(590px, calc(100% - 36px));
  min-height: 62px;
  padding: 0 34px;
  border-radius: 0 0 26px 26px;
  background: rgba(2, 3, 2, 0.9);
  color: rgba(242, 240, 221, 0.72);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.nav-pill a {
  flex: 1 0 auto;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-pill a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.hero-copy {
  position: absolute;
  left: clamp(30px, 4.2vw, 82px);
  bottom: clamp(28px, 4vw, 74px);
  max-width: min(58vw, 980px);
}

.kicker {
  margin: 0 0 6px;
  color: rgba(242, 240, 221, 0.74);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(94px, 18vw, 300px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-note {
  position: absolute;
  right: clamp(26px, 4vw, 74px);
  bottom: clamp(32px, 5vw, 88px);
  width: min(465px, 34vw);
  color: var(--muted);
}

.hero-note p {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 700;
  line-height: 1.48;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 9px 8px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #090a07;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta span {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #030403;
}

.cta span::before {
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  content: "";
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}

.spark {
  position: absolute;
  color: var(--accent);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  animation: floatMark 5s ease-in-out infinite;
}

.spark-one {
  left: 19%;
  bottom: 28%;
  font-size: clamp(54px, 6vw, 100px);
}

.spark-two {
  right: 43%;
  bottom: 27%;
  font-size: clamp(44px, 5vw, 82px);
  animation-delay: -1.7s;
}

.cloud {
  position: absolute;
  width: min(58vw, 760px);
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(246, 225, 177, 0.22), transparent 68%);
  filter: blur(22px);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}

.cloud-a {
  right: -12%;
  bottom: 12%;
}

.cloud-b {
  left: -18%;
  top: 24%;
  animation-duration: 24s;
  animation-delay: -6s;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.info-band div {
  min-height: 180px;
  padding: 28px;
  background: rgba(5, 9, 6, 0.82);
}

.info-band span {
  display: block;
  margin-bottom: 22px;
  color: rgba(242, 240, 221, 0.48);
  font-size: 13px;
  font-weight: 900;
}

.info-band h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: 0;
}

.info-band p {
  max-width: 35em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@keyframes drift {
  from {
    transform: translate3d(-18px, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(28px, -14px, 0) scale(1.08);
  }
}

@keyframes cloudsFar {
  from {
    background-position: 0 0, 120px 24px, 280px 12px;
    transform: translate3d(0, 0, 0);
  }
  to {
    background-position: 720px 0, 980px 24px, 840px 12px;
    transform: translate3d(34px, -8px, 0);
  }
}

@keyframes cloudsMid {
  from {
    background-position: 0 0, 180px 18px, 360px 32px;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    background-position: -640px 0, -600px 18px, -160px 32px;
    transform: translate3d(-46px, 12px, 0) scale(1.04);
  }
}

@keyframes cloudsNear {
  from {
    background-position: 0 8px, 120px 0, 300px 20px;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    background-position: 520px 8px, 820px 0, 730px 20px;
    transform: translate3d(58px, -16px, 0) scale(1.08);
  }
}

@keyframes cloudGlow {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.2;
  }
}

@keyframes cloudSwell {
  0%,
  100% {
    opacity: 0.19;
  }
  45% {
    opacity: 0.29;
  }
  70% {
    opacity: 0.22;
  }
}

@keyframes cloudLift {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes laptopPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: skewY(-8deg) rotate(3deg) scale(1);
  }
  45% {
    opacity: 0.96;
    transform: skewY(-8deg) rotate(3deg) scale(1.04);
  }
}

@keyframes typeLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(2px, -2px, 0) rotate(10deg);
  }
}

@keyframes typeRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }
  50% {
    transform: translate3d(-2px, -1px, 0) rotate(-8deg);
  }
}

@keyframes floatMark {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
    opacity: 0.72;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 20px, 1840px);
    padding-top: 10px;
  }

  .hero {
    min-height: 760px;
    border-radius: 24px;
  }

  .nav-pill {
    top: 10px;
    min-height: 56px;
    gap: 14px;
    padding: 0 16px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-pill a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .hero-copy {
    left: 24px;
    bottom: 240px;
    max-width: calc(100% - 48px);
  }

  h1 {
    font-size: clamp(90px, 31vw, 168px);
  }

  .hero-note {
    left: 24px;
    right: auto;
    bottom: 30px;
    width: min(520px, calc(100% - 48px));
  }

  .spark-one {
    left: 68%;
    bottom: 44%;
  }

  .spark-two {
    right: 12%;
    bottom: 33%;
  }

  .typing-actor {
    left: 62%;
    top: 48.5%;
    width: 58px;
  }

  .cloud-field {
    left: -42%;
    right: -42%;
    height: 48%;
  }

  .info-band {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-copy {
    bottom: 250px;
  }

  .typing-actor {
    left: 67%;
    top: 48%;
    width: 48px;
  }

  .kicker {
    font-size: 13px;
  }

  .hero-note p {
    font-size: 15px;
  }

  .cta {
    min-height: 54px;
    padding-left: 20px;
    font-size: 15px;
  }
}
