:root {
  color-scheme: dark;
  --ink: #edf4ff;
  --paper: #081427;
  --accent: #8dc9ff;
  --line: #365372;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 22%, #122a4533 0%, transparent 65%),
    linear-gradient(180deg, #08172a 0%, #0a1c32 55%, #040b15 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.btn {
  cursor: pointer;
  border: 1px solid #668db7;
  padding: 14px 23px;
  border-radius: 4px;
  background: linear-gradient(135deg, #3479c0, #22528a);
  color: white;
  display: inline-block;
}
button:hover,
.btn:hover {
  filter: brightness(1.15);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #8dc9ff;
  outline-offset: 4px;
}
header {
  height: 104px;
  margin: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  font-size: 37px;
  letter-spacing: -6px;
  background: linear-gradient(135deg, #3479c0, #22528a);
  color: #ffffff;
  width: 45px;
  height: 45px;
  text-align: center;
  padding-right: 7px;
  border-radius: 50%;
}
nav {
  display: flex;
  gap: 35px;
  font-size: 14px;
}
nav a:last-child {
  border: 1px solid #668db7;
  border-radius: 4px;
  padding: 11px 20px;
  margin-top: -11px;
}
main {
  min-height: 70vh;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 650px;
  margin: 0 6%;
  align-items: center;
  gap: 3%;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #8dc9ff;
  border-radius: 50%;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(46px, 5.5vw, 82px);
  letter-spacing: -4px;
  line-height: 1.08;
  margin: 25px 0;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
p {
  line-height: 1.7;
  color: #bfcee2;
}
.intro {
  max-width: 360px;
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 30px 0;
}
.text-link {
  border-bottom: 1px solid;
  padding-bottom: 5px;
  font-size: 14px;
}
.viewer {
  position: relative;
  background: radial-gradient(
    ellipse at 50% 35%,
    #315a80 0%,
    #163451 60%,
    #10263f 100%
  );
  border-radius: 160px 160px 5px 5px;
  height: 530px;
  overflow: hidden;
}
.viewer canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.view-label {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 10px;
  letter-spacing: 2px;
}
.view-bottom {
  position: absolute;
  bottom: 23px;
  left: 27px;
  right: 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  pointer-events: none;
}
.view-bottom button {
  pointer-events: auto;
  padding: 8px 13px;
  background: transparent;
  color: var(--ink);
}
.subtle {
  font-size: 12px;
  color: #afc2da;
}
.strip {
  background: linear-gradient(135deg, #3479c0, #22528a);
  color: #e5f0ff;
  padding: 24px 6%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1px;
}
.section {
  padding: 75px 6%;
}
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}
h2 {
  font-size: 39px;
  letter-spacing: -1.5px;
  margin: 10px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.tile {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.tile h3 {
  font-size: 24px;
}
.tile .num {
  font-size: 12px;
  color: #afc2da;
}
.page-head {
  padding: 60px 6% 25px;
}
.page-head h1 {
  font-size: 57px;
}
.page-head p {
  max-width: 650px;
}
.studio {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  padding: 20px 6% 65px;
}
.studio .viewer {
  border-radius: 8px;
  height: 570px;
}
.panel {
  background: linear-gradient(150deg, #1b3b5b, #10263f);
  padding: 27px;
  border-radius: 8px;
}
.panel h3 {
  margin-top: 0;
}
.field {
  display: block;
  margin: 18px 0;
  font-size: 13px;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid #527295;
  border-radius: 4px;
}
.field input[type="range"] {
  padding: 0;
}
.panel button {
  width: 100%;
  margin: 7px 0;
}
.secondary {
  background: transparent;
  color: var(--ink);
}
.product-art {
  height: 260px;
  background: radial-gradient(
    ellipse at 50% 35%,
    #315a80 0%,
    #163451 60%,
    #10263f 100%
  );
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.object {
  width: 95px;
  height: 150px;
  background: repeating-linear-gradient(
    90deg,
    #a15d39 0,
    #c68a60 4px,
    #d7a480 7px,
    #aa6e47 10px
  );
  border-radius: 40% 40% 23% 23%;
  transform: perspective(500px) rotateX(-8deg);
  box-shadow: 20px 25px 20px #35432722;
}
.object:before {
  content: "";
  position: absolute;
  top: -4px;
  left: 7%;
  width: 86%;
  height: 25px;
  border-radius: 50%;
  background: #734a33;
  border: 7px solid #cb956c;
}
.product:nth-child(2) .object {
  height: 100px;
  width: 145px;
  filter: hue-rotate(50deg) saturate(0.4);
}
.product:nth-child(3) .object {
  height: 75px;
  width: 160px;
  filter: saturate(0.2);
}
.product h3 {
  font-size: 20px;
  margin-bottom: 5px;
}
.product button {
  padding: 10px 15px;
}
.price {
  float: right;
}
.tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #10263f;
  padding: 6px 9px;
  font-size: 10px;
  letter-spacing: 1px;
}
.notice {
  background: #1a3858;
  padding: 15px 20px;
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.6;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.event {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.event h3 {
  margin: 0 0 8px;
}
.editor {
  max-width: 850px;
  margin: auto;
  padding: 20px 6% 70px;
}
.editor textarea {
  min-height: 380px;
  font-family: monospace;
  font-size: 12px;
}
.status {
  font-size: 13px;
  line-height: 1.6;
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 6%;
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  font-size: 12px;
}
footer small {
  margin-left: auto;
  color: #afc2da;
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 100px;
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 24px;
  }
  nav {
    gap: 19px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .viewer {
    height: 400px;
  }
  .grid,
  .about-layout,
  .studio {
    grid-template-columns: 1fr;
  }
  .strip {
    gap: 20px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .section {
    padding-top: 45px;
  }
  .page-head h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .studio .viewer {
    height: 400px;
  }
  footer {
    gap: 15px;
  }
  footer small {
    margin-left: 0;
  }
  .section-top {
    align-items: start;
    gap: 20px;
  }
  h2 {
    font-size: 30px;
  }
}

/* Shared dark-theme controls and highlights. */
input,
select,
textarea {
  color: var(--ink);
  background-color: var(--paper);
  accent-color: var(--accent);
}

select {
  padding: 8px 10px;
  border: 1px solid #527295;
  border-radius: 4px;
}

select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

h1 em,
.text-link {
  color: #a5d7ff;
}

.viewer,
.panel,
.product-art {
  border: 1px solid var(--line);
}

.strip {
  background: linear-gradient(100deg, #102943, #20486f, #102943);
  border-block: 1px solid var(--line);
}

/* Private model workspace and community themes. */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 20px 6% 65px;
}

.workspace-main {
  min-width: 0;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 13px;
}

.upload-button {
  display: block;
  padding: 12px 16px;
  border: 1px solid #668db7;
  border-radius: 4px;
  background: #22528a;
}

.upload-button input {
  display: block;
  margin-top: 8px;
  width: 210px;
  max-width: 100%;
  font-size: 12px;
}

.workspace-viewer {
  height: 560px;
  border-radius: 8px;
}

.scene-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 12px;
  pointer-events: none;
  background: #081427dd;
  padding: 8px 12px;
  border-radius: 4px;
}

.object-panel fieldset {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.object-panel legend {
  font-size: 12px;
  padding-right: 10px;
}

.axis-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.axis-fields label {
  font-size: 12px;
}

.axis-fields input {
  width: 100%;
  padding: 9px 5px;
  margin-top: 7px;
  border: 1px solid #527295;
  border-radius: 4px;
}

.check-label {
  font-size: 12px;
}

.button-pair {
  display: flex;
  gap: 10px;
}

.button-pair button {
  flex: 1;
  padding: 10px 8px;
}

.community-section {
  padding-top: 20px;
}

.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 35px 0 50px;
}

.theme-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.theme-preview > span {
  font-size: 12px;
}

.theme-preview strong {
  display: block;
  font-size: 70px;
  margin: 22px 0;
}

.theme-preview div {
  font-size: 26px;
}

nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 1050px) {
  header {
    height: auto;
    min-height: 104px;
    padding-block: 22px;
    flex-wrap: wrap;
    gap: 25px;
  }

  nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 850px) {
  .workspace,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .workspace-viewer {
    height: 400px;
  }
}

/* The homepage model floats directly over the page gradient. */
.hero .homepage-viewer {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.build-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--accent);
  font-size: 13px;
}

.build-action span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #668db7;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.community-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
}

.community-heading > .build-action {
  margin-top: 5px;
}

.draft-heading {
  margin-top: 60px;
}

.asset-import {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.asset-import summary {
  cursor: pointer;
  color: var(--accent);
}

.empty-assets {
  grid-column: 1 / -1;
  padding: 25px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.theme-card > button,
.theme-card > .button-pair {
  margin-top: 12px;
}

.build-section {
  padding-top: 10px;
}

.build-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 35px 0;
}

.build-option {
  display: block;
  padding: 38px;
}

.build-option:hover {
  border-color: var(--accent);
}

.build-option h2 {
  font-size: 30px;
}

.image-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  padding: 20px 6% 70px;
  align-items: start;
}

.image-preview-column {
  min-width: 0;
}

.screen-preview-stage {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 30px;
  margin: 25px 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #09182b;
}

#ui-preview {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  box-shadow: 0 12px 45px #0005;
}

.size-fields {
  grid-template-columns: 1fr 1fr;
}

.creator-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-size: 12px;
  margin: 22px 0;
}

.creator-colors input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 2px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 850px) {
  .community-heading {
    flex-direction: column;
  }

  .build-options,
  .image-workspace {
    grid-template-columns: 1fr;
  }

  .screen-preview-stage {
    min-height: 240px;
    padding: 15px;
  }
}
