:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101114;
  --panel-2: #16171b;
  --ink: #f4f4f1;
  --muted: #99999f;
  --line: #27282d;
  --red: #f20f14;
  --red-dark: #c9050a;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  height: 96px;
  margin: 0 auto;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.brand .brand-wordmark { width: 131px; height: auto; object-fit: contain; }
nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
nav > a:not(.nav-download) { color: #aaaab0; transition: color .2s ease; }
nav > a:not(.nav-download):hover { color: #fff; }
.nav-download { padding: 13px 20px; border: 1px solid #3a3b40; border-radius: 999px; font-weight: 650; }
.nav-download:hover { border-color: #777981; }

main { overflow: hidden; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 34px 76px;
  display: grid;
  grid-template-columns: minmax(380px, .78fr) minmax(580px, 1.22fr);
  gap: 74px;
  align-items: center;
}
.eyebrow { margin: 0 0 24px; color: #a4a4aa; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow span { display: inline-block; width: 6px; height: 6px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-size: clamp(58px, 5.2vw, 84px);
  line-height: 1.06;
  letter-spacing: -.065em;
  font-weight: 720;
}
h1 em { color: #777880; font-style: normal; }
.hero-intro { max-width: 520px; color: #aaaab0; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 720;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: #ff2429; }
.download-meta { color: #74757c; font-size: 12px; line-height: 1.55; }

.product-stage {
  position: relative;
  margin: 0;
  padding: 16px;
  background: linear-gradient(145deg, #1a1b1f, #0c0d0f);
  border: 1px solid #323339;
  border-radius: 22px;
  box-shadow: 0 42px 100px rgba(0,0,0,.48);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.product-stage::before {
  content: "";
  position: absolute;
  inset: 8% -12% -12% 18%;
  z-index: -1;
  background: radial-gradient(circle at 60% 40%, rgba(242,15,20,.20), transparent 58%);
  filter: blur(35px);
}
.canvas-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #24252a;
  border-radius: 12px;
  background-color: #090a0c;
  background-image: radial-gradient(circle, #2c2d32 1px, transparent 1px);
  background-size: 22px 22px;
}
.canvas-toolbar { position: absolute; top: 18px; left: 50%; z-index: 4; transform: translateX(-50%); height: 34px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 1px solid #303137; border-radius: 999px; background: rgba(18,19,22,.94); color: #a6a7ad; font-size: 11px; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.canvas-toolbar i { width: 1px; height: 15px; background: #3a3b40; }
.demo-node { position: absolute; z-index: 2; padding: 5px; background: #17181c; border: 1px solid #383940; border-radius: 9px; box-shadow: 0 18px 40px rgba(0,0,0,.42); }
.demo-node img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.demo-node-one { left: 9%; top: 17%; width: 28%; height: 57%; }
.demo-node-one img { object-position: center 28%; }
.demo-node-two { right: 8%; top: 24%; width: 36%; height: 40%; }
.demo-node-two img { object-position: center; }
.node-label { position: absolute; top: -17px; left: 2px; color: #77787f; font-size: 7px; letter-spacing: .12em; }
.node-port { position: absolute; top: 50%; right: -6px; width: 11px; height: 11px; transform: translateY(-50%); border: 2px solid #85868e; border-radius: 50%; background: #17181c; }
.demo-node-two .node-port { left: -6px; right: auto; }
.demo-connector { position: absolute; left: 36%; top: 44%; width: 22%; height: 23%; border-top: 2px solid #3a3b42; border-right: 2px solid #3a3b42; border-radius: 0 55px 0 0; transform: skewX(-13deg); }
.demo-prompt { position: absolute; left: 25%; right: 18%; bottom: 7%; z-index: 3; height: 46px; padding: 0 8px 0 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #303137; border-radius: 14px; background: rgba(20,21,24,.96); box-shadow: 0 16px 40px rgba(0,0,0,.5); color: #8f9097; }
.demo-prompt > span { font-size: 18px; }
.demo-prompt p { flex: 1; margin: 0; font-size: 10px; }
.demo-prompt p i { margin-right: 7px; padding: 3px 6px; border-radius: 999px; background: rgba(242,15,20,.15); color: #ff5b5f; font-style: normal; }
.demo-prompt strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.stage-topline, .product-stage figcaption { display: flex; align-items: center; justify-content: space-between; color: #74757b; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.stage-topline { padding: 1px 4px 13px; }
.product-stage figcaption { padding: 13px 3px 0; }
.product-stage figcaption b { color: #d9d9d6; font-size: 12px; }

.brand-line {
  min-width: max-content;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  color: #77787e;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .2em;
}
.brand-line i { width: 3px; height: 3px; border-radius: 50%; background: #4c4d53; }

.features, .work { max-width: var(--max); margin: 0 auto; padding: 150px 34px; }
.features { display: grid; grid-template-columns: .88fr 1.12fr; gap: 88px; }
.section-heading h2 { margin: 0; font-size: clamp(44px, 5vw, 70px); line-height: 1.1; letter-spacing: -.055em; }
.features .section-heading h2 { font-size: clamp(44px, 4.15vw, 60px); }
.headline-line { display: block; white-space: nowrap; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list article { min-height: 168px; padding: 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; gap: 28px; }
.feature-mark { color: var(--red); font-family: "Cascadia Mono", monospace; font-size: 12px; padding-top: 6px; }
.feature-list h3 { margin-bottom: 12px; font-size: 23px; letter-spacing: -.025em; }
.feature-list p { max-width: 620px; margin-bottom: 0; color: #94959b; font-size: 16px; line-height: 1.75; }
.feature-spotlights { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.spotlight { min-height: 440px; padding: 42px; overflow: hidden; position: relative; display: grid; grid-template-columns: .86fr 1.14fr; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: #101115; }
.spotlight::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(242,15,20,.08); filter: blur(60px); pointer-events: none; }
.prompt-master::before { left: -90px; bottom: -120px; }
.ultra-hd::before { right: -70px; top: -120px; }
.spotlight-copy { position: relative; z-index: 2; }
.spotlight-kicker { margin-bottom: 20px; color: #686970; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.spotlight h3 { margin-bottom: 18px; font-size: clamp(32px, 3vw, 46px); letter-spacing: -.05em; }
.spotlight-copy > p:not(.spotlight-kicker) { margin-bottom: 0; color: #96979d; font-size: 15px; line-height: 1.8; }
.spotlight-copy > p.spotlight-subtitle { margin: -10px 0 20px; color: #f0f0ed; font-size: 12px; font-weight: 650; line-height: 1.4; letter-spacing: .04em; }
.prompt-ui { position: relative; z-index: 2; padding: 18px; border: 1px solid #303137; border-radius: 14px; background: #17181c; box-shadow: 0 24px 50px rgba(0,0,0,.34); }
.prompt-ui-top, .prompt-ui-bottom { display: flex; align-items: center; justify-content: space-between; }
.prompt-ui-top { padding-bottom: 14px; border-bottom: 1px solid #292a2f; color: #e7e7e4; font-size: 12px; }
.prompt-ui-top > span { color: #ff5b5f; }
.prompt-ui-top b { color: #696a71; font-size: 9px; font-weight: 600; }
.prompt-ref { height: 56px; margin: 14px 0; display: flex; align-items: center; }
.prompt-ref span { width: 42px; height: 42px; margin-right: -9px; border: 2px solid #17181c; border-radius: 7px; background: linear-gradient(135deg, #323338, #a00d12); }
.prompt-ref span:nth-child(2) { background: linear-gradient(135deg, #bfc0c1, #202125); }
.prompt-ref i { margin-left: 18px; color: #77787f; font-size: 9px; font-style: normal; }
.prompt-ui > p { min-height: 92px; margin: 0; padding: 14px; border-radius: 9px; background: #111216; color: #a8a9af; font-size: 11px; line-height: 1.7; }
.prompt-ui-bottom { padding-top: 14px; color: #686970; font-size: 9px; }
.prompt-ui-bottom strong { padding: 8px 11px; border-radius: 999px; background: #f2f2ef; color: #17181b; font-size: 9px; }
.ultra-hd { grid-template-columns: .92fr 1.08fr; }
.resolution-pills { margin-top: 26px; display: flex; align-items: center; gap: 8px; }
.resolution-pills span, .resolution-pills i { padding: 8px 11px; border: 1px solid #35363b; border-radius: 999px; color: #dadad7; font-size: 10px; font-style: normal; }
.resolution-pills span:last-of-type { border-color: var(--red); background: var(--red); color: #fff; }
.resolution-pills i { border-color: transparent; color: #717279; }
.hd-visual { position: relative; z-index: 2; height: 300px; overflow: hidden; border: 1px solid #35363b; border-radius: 14px; background: #090a0c; }
.hd-visual img { width: 100%; height: 100%; object-fit: cover; }
.hd-visual::after { content: ""; position: absolute; inset: 0 0 0 48%; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.09)); backdrop-filter: contrast(1.1) saturate(1.08); }
.hd-scan { position: absolute; z-index: 3; top: 0; bottom: 0; left: 48%; width: 1px; background: #fff; box-shadow: 0 0 16px rgba(255,255,255,.75); }
.hd-before, .hd-after { position: absolute; z-index: 4; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(6,7,9,.78); color: #c0c1c5; font-size: 9px; }
.hd-before { left: 12px; }
.hd-after { right: 12px; color: #fff; }

.work { padding-top: 70px; }
.work-heading { display: grid; grid-template-columns: .6fr 1.1fr .55fr; align-items: end; gap: 46px; margin-bottom: 64px; }
.work-heading .eyebrow { align-self: start; margin-top: 12px; }
.work-heading > p:last-child { margin: 0; color: #86878d; font-size: 15px; line-height: 1.7; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work-card { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.work-card { grid-column: span 5; }
.work-card-wide { grid-column: span 7; }
.work-card-landscape { grid-column: 1 / -1; }
.work-card img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; filter: saturate(.88); transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.work-card-wide img { object-position: center 24%; }
.work-card-landscape img { min-height: 440px; aspect-ratio: 2.2 / 1; object-position: center 54%; }
.work-card:hover img { transform: scale(1.018); filter: saturate(1); }
.work-card figcaption { position: absolute; inset: auto 0 0; padding: 74px 26px 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; background: linear-gradient(transparent, rgba(0,0,0,.86)); }
.work-card figcaption strong { font-size: 17px; }
.work-card figcaption span { color: #a1a2a7; font-size: 12px; }

.download {
  position: relative;
  max-width: calc(var(--max) - 68px);
  min-height: 390px;
  margin: 10px auto 80px;
  padding: 74px 78px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 44px;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4d0709 0%, #76090d 58%, #8c0b10 100%);
  border-radius: 22px;
}
.download::after { content: "PANACEA"; position: absolute; right: -20px; bottom: -52px; color: rgba(0,0,0,.08); font-size: clamp(100px, 15vw, 220px); font-weight: 850; letter-spacing: -.08em; pointer-events: none; }
.download-mark { position: relative; z-index: 1; width: 92px; height: 92px; padding: 12px; object-fit: contain; border-radius: 24px; background: #f4f4f1; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.download > div { position: relative; z-index: 1; }
.download .eyebrow { color: rgba(255,255,255,.68); }
.download h2 { margin: 0; font-size: clamp(48px, 5vw, 72px); line-height: 1.08; letter-spacing: -.06em; }
.download-action { text-align: right; }
.button-light { background: #fff; color: #111215; }
.button-light:hover { background: #f0f0ec; }
.download-action p { margin: 15px 18px 0 0; color: rgba(255,255,255,.67); font-size: 12px; line-height: 1.55; }

footer { max-width: var(--max); margin: 0 auto; padding: 30px 34px 48px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #66676e; font-size: 12px; }
.brand-footer img { width: 26px; height: 26px; }
.brand-footer .brand-wordmark { width: 98px; }
footer p { margin: 0; text-align: center; }
footer p:last-child { text-align: right; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; gap: 60px; }
  .product-stage { transform: none; }
  .features { grid-template-columns: 1fr; gap: 70px; }
  .feature-spotlights { grid-column: 1; grid-template-columns: 1fr; }
  .work-heading { grid-template-columns: 1fr; gap: 18px; }
  .work-heading .eyebrow { margin-bottom: 0; }
  .work-heading > p:last-child { max-width: 420px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card-wide, .work-card-landscape { grid-column: 1; }
  .work-card img { min-height: 420px; }
  .download { grid-template-columns: 72px 1fr; padding: 60px; }
  .download-mark { width: 72px; height: 72px; }
  .download-action { grid-column: 2; text-align: left; }
  .download-action p { margin-left: 18px; }
}

@media (max-width: 680px) {
  .site-header { height: 76px; padding: 0 20px; }
  .brand { gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand .brand-wordmark { width: 103px; }
  nav { gap: 0; }
  nav > a:not(.nav-download) { display: none; }
  .nav-download { padding: 10px 14px; font-size: 12px; }
  .hero { padding: 70px 20px 52px; }
  h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .product-stage { margin: 0 -9px; padding: 10px; border-radius: 16px; }
  .stage-topline { padding-bottom: 9px; }
  .product-stage figcaption { padding-top: 9px; }
  .brand-line { justify-content: flex-start; overflow: hidden; padding-left: 20px; gap: 20px; }
  .features, .work { padding: 100px 20px; }
  .section-heading h2 { font-size: 44px; }
  .features .section-heading h2 { font-size: clamp(37px, 10.5vw, 44px); }
  .feature-list article { grid-template-columns: 42px 1fr; gap: 12px; }
  .feature-list h3 { font-size: 20px; }
  .feature-list p { font-size: 15px; }
  .spotlight { min-height: 0; padding: 28px; grid-template-columns: 1fr; }
  .prompt-ui { margin-top: 8px; }
  .hd-visual { height: 260px; }
  .work { padding-top: 30px; }
  .work-card img { min-height: 330px; }
  .work-card figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
  .download { max-width: calc(100% - 40px); margin-bottom: 50px; padding: 44px 28px; grid-template-columns: 1fr; gap: 30px; }
  .download-mark { width: 64px; height: 64px; }
  .download-action { grid-column: 1; }
  .download h2 { font-size: 46px; }
  footer { padding: 28px 20px 38px; grid-template-columns: 1fr auto; row-gap: 20px; }
  footer > p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
