:root {
  color-scheme: light dark;
  --font-display: "DIN Alternate", "Avenir Next", "Space Grotesk", "Rajdhani", "Segoe UI", sans-serif;
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text: #171717;
  --muted: #6a6a6a;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #e7e7e7;
  --line: rgba(23, 23, 23, 0.12);
  --hero-text: #f7f7f7;
  --hero-muted: rgba(247, 247, 247, 0.74);
  --dark: #111111;
  --accent: #d71920;
  --accent-strong: #ad1117;
  --accent-soft: rgba(215, 25, 32, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 28px 90px rgba(20, 20, 17, 0.18);
  font-family: var(--font-cjk);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f4f4f4;
    --muted: #b8b8b8;
    --bg: #111111;
    --surface: #1b1b1b;
    --surface-2: #252525;
    --line: rgba(247, 247, 247, 0.14);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(15, 15, 15, 0.76);
  color: var(--hero-text);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--font-display), var(--font-cjk);
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.nav-links {
  gap: clamp(14px, 2.4vw, 30px);
  color: rgba(247, 247, 247, 0.82);
  font-family: var(--font-display), var(--font-cjk);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100svh - 44px);
  overflow: hidden;
  padding: 116px clamp(18px, 5vw, 72px) 104px;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.98) 0%, rgba(12, 12, 12, 0.8) 36%, rgba(12, 12, 12, 0.2) 78%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.7), rgba(12, 12, 12, 0.04) 42%),
    url("/assets/lightyear-hero-imagegen.png");
  background-position: center;
  background-size: cover;
  color: var(--hero-text);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(17, 17, 17, 0.95), rgba(17, 17, 17, 0));
  content: "";
}

.hero-layout,
.hero .download-grid,
.hero .release-links {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  min-height: clamp(300px, 38svh, 460px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-display), var(--font-cjk);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display), var(--font-cjk);
  letter-spacing: 0;
  line-height: 0.94;
}

h1 {
  max-width: 720px;
  font-size: clamp(52px, 8vw, 104px);
}

h2 {
  max-width: 860px;
  font-size: clamp(36px, 6vw, 76px);
}

.hero-lede {
  margin: 26px 0 0;
  color: var(--hero-text);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.18;
}

.section-heading p,
.workflow-copy p,
.step p {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.62;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-family: var(--font-display), var(--font-cjk);
  font-size: 14px;
  font-weight: 780;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: #f02f36;
}

.button-secondary {
  background: rgba(247, 247, 247, 0.12);
  color: var(--hero-text);
}

.button-secondary:hover {
  background: rgba(247, 247, 247, 0.2);
}

.release-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -44px;
  padding: 0 clamp(18px, 5vw, 72px);
}

.release-strip > * {
  min-height: 116px;
  padding: 24px clamp(18px, 3vw, 42px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.release-strip span,
.download-kicker,
.step span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-display), var(--font-cjk);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.release-strip strong {
  font-family: var(--font-display), var(--font-cjk);
  font-size: clamp(23px, 3vw, 40px);
  line-height: 1.05;
}

.release-strip a {
  display: flex;
  align-items: end;
  color: var(--accent);
  font-family: var(--font-display), var(--font-cjk);
  font-weight: 820;
}

.downloads,
.workflow,
.models {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.downloads {
  padding-top: clamp(112px, 12vw, 160px);
}

.downloads.hero {
  padding-top: clamp(112px, 10vw, 148px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.section-heading {
  max-width: 900px;
}

.section-heading p,
.workflow-copy p {
  max-width: 760px;
  margin: 22px 0 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(34px, 5vw, 64px);
}

.downloads.hero .download-grid {
  margin-top: clamp(18px, 2.5vw, 32px);
}

.download-item {
  position: relative;
  display: flex;
  min-height: 328px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.downloads.hero .download-item {
  min-height: 252px;
  background: linear-gradient(135deg, rgba(247, 247, 247, 0.22), rgba(247, 247, 247, 0.08));
  color: var(--hero-text);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.download-item > :not(.download-logo-surface) {
  position: relative;
  z-index: 1;
}

.download-logo-surface {
  position: absolute;
  right: -18px;
  bottom: -24px;
  z-index: 0;
  display: grid;
  width: 188px;
  height: 188px;
  place-items: center;
  opacity: 0.19;
  pointer-events: none;
}

.platform-logo {
  color: #ffffff;
}

.apple-logo {
  font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 148px;
  line-height: 1;
}

.windows-logo {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  gap: 10px;
}

.windows-logo span {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  background: #ffffff;
}

.photoshop-wordmark {
  width: 172px;
  font-family: var(--font-display), sans-serif;
  font-size: 31px;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
}

.download-item:hover {
  z-index: 1;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.downloads.hero .download-item:hover {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.42), rgba(247, 247, 247, 0.12));
}

.download-item strong {
  display: block;
  font-family: var(--font-display), var(--font-cjk);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
}

.download-file,
.download-note,
.download-size {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--font-display), var(--font-cjk);
  font-size: 13px;
  line-height: 1.45;
}

.download-size {
  color: var(--accent-strong);
  font-weight: 760;
}

.download-note {
  color: var(--hero-text);
  font-weight: 820;
}

.downloads.hero .download-kicker,
.downloads.hero .download-file {
  color: rgba(247, 247, 247, 0.68);
}

.downloads.hero .download-size {
  color: #ffffff;
}

.hero .release-links {
  margin-top: 22px;
}

.release-links a {
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display), var(--font-cjk);
  font-weight: 760;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
  background: var(--dark);
  color: var(--hero-text);
}

.workflow-copy {
  position: sticky;
  top: 104px;
}

.workflow-copy p,
.workflow .step p {
  color: rgba(247, 247, 247, 0.72);
}

.workflow-steps {
  display: grid;
  gap: 14px;
}

.step {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(247, 247, 247, 0.07);
  border-radius: var(--radius-lg);
}

.step strong {
  display: block;
  color: var(--hero-text);
  font-family: var(--font-display), var(--font-cjk);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.step p {
  margin: 14px 0 0;
}

.showcase-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(18px, 3vw, 34px);
}

.media-panel {
  margin: 0;
}

.media-panel img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.media-panel-large img {
  height: 100%;
  object-fit: cover;
}

.media-panel figcaption {
  margin-top: 14px;
  color: rgba(247, 247, 247, 0.7);
  font-weight: 720;
}

.models {
  background: var(--surface);
}

.model-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(30px, 5vw, 54px);
}

.model-line span {
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display), var(--font-cjk);
  font-size: 14px;
  font-weight: 720;
}

code {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 20px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--dark);
  color: var(--hero-text);
  font-family: var(--font-display), var(--font-cjk);
  font-size: 13px;
  font-weight: 720;
}

.site-footer strong {
  color: var(--accent);
}

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

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

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 34px);
    padding-top: 104px;
    padding-bottom: 82px;
    background:
      linear-gradient(0deg, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.68) 48%, rgba(12, 12, 12, 0.18) 100%),
      url("/assets/lightyear-hero-imagegen.png");
    background-position: 58% center;
    background-size: cover;
  }

  .downloads.hero {
    padding-top: 104px;
  }

  .hero-layout {
    min-height: clamp(280px, 34svh, 420px);
    align-items: end;
  }

  .hero-copy {
    width: min(560px, 100%);
  }

  .download-grid,
  .workflow,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .workflow-copy {
    position: static;
  }

  .media-panel-large img {
    height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: auto;
    padding: 86px 18px 56px;
    background:
      linear-gradient(90deg, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.74) 58%, rgba(12, 12, 12, 0.32) 100%),
      linear-gradient(0deg, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.46) 58%, rgba(12, 12, 12, 0.16) 100%),
      url("/assets/lightyear-hero-imagegen.png");
    background-position: 62% center;
    background-size: cover;
  }

  .downloads.hero {
    padding: 86px 18px 56px;
  }

  .hero-layout {
    min-height: clamp(260px, 36svh, 360px);
  }

  h1 {
    max-width: 320px;
    font-size: clamp(44px, 15vw, 62px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .hero-lede {
    font-size: clamp(20px, 6.4vw, 25px);
  }

  .release-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .release-strip > *,
  .download-item {
    min-height: auto;
  }

  .downloads.hero .download-item {
    min-height: 212px;
  }

  .downloads,
  .workflow,
  .models {
    padding: 72px 18px;
  }

  .downloads {
    padding-top: 96px;
  }

  .downloads.hero {
    padding-top: 86px;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
