:root {
  color-scheme: dark;
  --bg: #06070a;
  --bg-soft: #0d1015;
  --surface: #11151c;
  --surface-2: #171d26;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f7fb;
  --muted: #9ba6b8;
  --cyan: #46d9ff;
  --coral: #ff5f7f;
  --lime: #a1ff4a;
  --gold: #ffca5f;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(70, 217, 255, 0.05), transparent 340px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

code {
  overflow-wrap: anywhere;
  color: #dff7ff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.hero-actions,
.release-facts,
.release-facts div,
.footer,
.mock-toolbar,
.mini-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(70, 217, 255, 0.24);
}

.topbar nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.topbar nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

main {
  overflow: hidden;
}

.hero,
.band,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(560px, calc(100svh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: clamp(32px, 7vw, 84px);
  padding: 22px 0 38px;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin-top: 24px;
  color: #c6cfdd;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}

.button.primary {
  border-color: transparent;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #f4fbff);
}

.button.secondary {
  border-color: rgba(255, 202, 95, 0.34);
  color: #ffe4a0;
  background: rgba(42, 30, 12, 0.76);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.045);
}

.button.small {
  min-height: 38px;
  padding: 0 12px;
}

.button[aria-busy="true"] {
  pointer-events: none;
}

.release-facts {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.release-facts div {
  min-height: 50px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
}

.release-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-facts dd {
  margin: 0;
  font-weight: 850;
}

.hero-visual {
  position: relative;
  align-self: center;
  height: min(60svh, 560px);
  min-height: 440px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%),
    #05070a;
  box-shadow: 0 22px 80px var(--shadow);
}

.visual-canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.mock-toolbar {
  position: absolute;
  left: 14px;
  top: 14px;
  gap: 7px;
}

.mock-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.mock-toolbar span:nth-child(2) {
  background: var(--gold);
}

.mock-toolbar span:nth-child(3) {
  background: var(--lime);
}

.mock-panel {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(240px, calc(100% - 28px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 12, 17, 0.78);
  backdrop-filter: blur(14px);
}

.mini-row {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-row strong {
  color: var(--cyan);
}

.meter {
  height: 8px;
  margin-top: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--cyan);
}

.meter.accent span {
  background: var(--coral);
}

.band {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.band.muted {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.025);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p,
.release-card p,
.workflow-grid p,
.mode-grid p,
.prompt-panel p,
.rights-note {
  color: var(--muted);
  line-height: 1.65;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.04rem;
}

.download-grid,
.workflow-grid,
.codex-grid,
.mode-grid {
  display: grid;
  gap: 14px;
}

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

.release-card,
.workflow-grid article,
.mode-grid article,
.doc-link,
.prompt-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.release-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.release-card h3,
.workflow-grid h3,
.mode-grid h3,
.prompt-panel h3 {
  font-size: 1.15rem;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c9d2df;
}

.check-list li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(70, 217, 255, 0.46);
}

.workflow-grid,
.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid article,
.mode-grid article {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.workflow-grid span {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
}

.codex-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-link {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
}

.doc-link:hover {
  border-color: rgba(70, 217, 255, 0.44);
  background: var(--surface-2);
}

.doc-link span {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-link strong {
  line-height: 1.45;
}

.prompt-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 14px;
  padding: 20px;
}

.prompt-panel pre {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dbe4ef;
  background: #070a0e;
  white-space: pre-wrap;
  line-height: 1.55;
}

.rights-note {
  max-width: 850px;
  margin: 18px 0;
}

.footer {
  min-height: 80px;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: #cbd6e4;
  text-decoration: none;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 560px;
  }

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

  .prompt-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar,
  .hero,
  .band,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .band.muted {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 460px;
  }
}

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