:root {
  --ink: #12141a;
  --muted: #5c6578;
  --paper: #f3f1eb;
  --surface: rgba(255, 255, 255, 0.55);
  --line: rgba(18, 20, 26, 0.1);
  --red: #ff4d3d;
  --amber: #f0a202;
  --teal: #1f8a70;
  --blue: #2f6fed;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  overflow-x: hidden;
}

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

.bg-plane {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 77, 61, 0.18), transparent 58%),
    radial-gradient(760px 480px at 88% 8%, rgba(47, 111, 237, 0.14), transparent 55%),
    radial-gradient(700px 420px at 50% 100%, rgba(31, 138, 112, 0.12), transparent 60%),
    linear-gradient(165deg, #f7f5ef 0%, #efece4 45%, #e7ebea 100%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: multiply;
}

.top,
main {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.top-link {
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.top-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.hero {
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand {
  margin: 0 0 1rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.2rem, 12vw, 7.5rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0 0 1.75rem;
  max-width: 26rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--ink);
  color: #f7f5ef;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-stage {
  position: relative;
  min-height: min(58vh, 28rem);
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 60px rgba(18, 20, 26, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.dot-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(9, 1fr);
  place-items: center;
  padding: 8%;
  z-index: 1;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.18;
  transform-origin: center;
}

.floaters {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
  will-change: transform;
}

.shape.square {
  width: 2.4rem;
  height: 2.4rem;
  top: 18%;
  left: 16%;
  background: var(--red);
  border-radius: 0.35rem;
}

.shape.circle {
  width: 2rem;
  height: 2rem;
  top: 28%;
  right: 18%;
  background: var(--blue);
  border-radius: 50%;
}

.shape.diamond {
  width: 1.7rem;
  height: 1.7rem;
  bottom: 26%;
  left: 28%;
  background: var(--amber);
  border-radius: 0.25rem;
  transform: rotate(45deg);
}

.shape.bar {
  width: 3.2rem;
  height: 0.7rem;
  top: 58%;
  right: 26%;
  background: var(--teal);
  border-radius: 999px;
}

.shape.pill {
  width: 2.8rem;
  height: 1.2rem;
  top: 14%;
  left: 48%;
  background: #12141a;
  border-radius: 999px;
}

.shape.ring {
  width: 2.2rem;
  height: 2.2rem;
  bottom: 18%;
  right: 14%;
  border: 0.35rem solid var(--red);
  border-radius: 50%;
}

.stroke-art {
  position: absolute;
  inset: 12% 10% auto;
  width: 80%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.drawable {
  stroke: rgba(18, 20, 26, 0.55);
  stroke-width: 3.5;
}

.playground {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 800px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }

  .panel:last-child {
    grid-column: 1 / -1;
  }
}

.panel {
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}

.panel h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.15rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.panel-visual {
  position: relative;
  height: 10.5rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(243, 241, 235, 0.4));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.panel-visual.wide {
  height: 9rem;
}

.clock {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(18, 20, 26, 0.12);
}

.tick {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 2px;
  height: 0.55rem;
  margin-left: -1px;
  background: var(--ink);
  transform-origin: 50% 2.3rem;
  opacity: 0.35;
}

.tick:nth-child(1) { transform: rotate(0deg); }
.tick:nth-child(2) { transform: rotate(30deg); }
.tick:nth-child(3) { transform: rotate(60deg); }
.tick:nth-child(4) { transform: rotate(90deg); }
.tick:nth-child(5) { transform: rotate(120deg); }
.tick:nth-child(6) { transform: rotate(150deg); }
.tick:nth-child(7) { transform: rotate(180deg); }
.tick:nth-child(8) { transform: rotate(210deg); }
.tick:nth-child(9) { transform: rotate(240deg); }
.tick:nth-child(10) { transform: rotate(270deg); }
.tick:nth-child(11) { transform: rotate(300deg); }
.tick:nth-child(12) { transform: rotate(330deg); }

.hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 1.7rem;
  margin-left: -1px;
  margin-top: -1.7rem;
  background: var(--red);
  border-radius: 999px;
  transform-origin: 50% 100%;
}

.spring-ball {
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff7a6e, var(--red) 55%, #d93528);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 12px 28px rgba(255, 77, 61, 0.28);
}

.spring-ball:active {
  cursor: grabbing;
}

.wave {
  width: min(92%, 26rem);
  height: auto;
}

.wave .drawable {
  stroke: var(--blue);
  stroke-width: 4;
}

.foot {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot a {
  border-bottom: 1px solid rgba(92, 101, 120, 0.35);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .shape,
  .dot,
  .hand,
  .tick,
  .drawable {
    animation: none !important;
  }
}

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

  .brand {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }
}
