@import url('./theme.css');

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 18px; border: 1px solid var(--border-hi); border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #192315; }
.btn-primary:hover { background: #d2f4b5; }
.btn:disabled { opacity: .4; cursor: default; }
.eyebrow { margin: 0; color: var(--accent); font: .875rem/1.5 var(--font-mono); }
.fineprint, .center-note { font-size: .8125rem; line-height: 1.6; color: var(--text-dim); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); flex: none; }
.dot.good { background: var(--good); }
.dot.active { background: var(--accent); }
.dot.bad { background: var(--bad); }

/* Project controls beside the reconstruction. */
.hero { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 32px; max-width: 1600px; min-height: calc(100dvh - 72px); padding: 28px; margin: auto; }
.hero-copy { align-self: start; padding: 24px 8px; }
.hero h1 { margin: 16px 0; font-size: 2.25rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.lede { max-width: 340px; font-size: 1rem; line-height: 1.7; color: var(--text-dim); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.cta-row .btn { padding: 10px 14px; border-radius: 6px; }
.text-link, .native-link { color: var(--text-dim); font-size: .875rem; text-decoration: none; }
.text-link:hover, .native-link:hover { color: var(--accent); }
.demo-details { max-width: 350px; margin-top: 32px; color: var(--text-dim); font-size: .8125rem; }
.demo-details summary { cursor: pointer; }
.demo-details p { line-height: 1.7; }
.native-link { display: inline-block; margin-top: 16px; }
.hero-stage { position: relative; min-height: 570px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #090c0a; }
.hero-stage canvas, .viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-badge { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #ffffff26; border-radius: 6px; background: #111510cc; font-size: .75rem; pointer-events: none; }
.stage-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 50px 22px 22px; background: linear-gradient(transparent, #090c0ade); pointer-events: none; font-size: .875rem; }
.stage-caption small { display: block; margin-top: 3px; font-size: .75rem; color: #d1d9c9; }
.nav-hint { color: #d1d9c9; font-size: .75rem; }
.loading-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #090c0a; color: var(--text-dim); font-size: .875rem; transition: opacity .3s; }
.loading-veil.hidden { opacity: 0; pointer-events: none; }
.veil-track { width: 180px; height: 3px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.veil-fill { height: 100%; width: 0; background: var(--accent); transition: width .25s; }

/* File viewer: same materials and controls as the browser creator. */
.shell { display: flex; min-height: calc(100dvh - 72px); }
.sidebar { width: 370px; flex: none; padding: 28px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 20px; }
.sidebar h1 { margin: 6px 0 0; font-size: 2.2rem; line-height: 1.1; letter-spacing: -.06em; }
.sidebar p { margin: 0; }
.status-pill { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font: .75rem var(--font-mono); }
.viewport { flex: 1; min-width: 0; position: relative; background: #090c0a; }
.viewport-hud { position: absolute; top: 20px; left: 20px; color: var(--text-dim); font-size: .8125rem; pointer-events: none; }
.viewport-hud b { color: var(--text); }
.viewport > .nav-hint { position: absolute; bottom: 20px; right: 20px; padding: 8px 12px; background: #111510cc; border-radius: 6px; pointer-events: none; }
.dropzone { padding: 30px 16px; border: 1px dashed var(--border-hi); border-radius: 10px; text-align: center; cursor: pointer; background: var(--panel); transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .glyph { color: var(--accent); font-size: 1.5rem; margin-bottom: 10px; }
.dropzone .hint { font-size: .875rem; }
.dropzone .sub { color: var(--text-dim); font-size: .75rem; margin-top: 8px; }
.artifact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.artifact > div { min-width: 0; }
.artifact .name { overflow-wrap: anywhere; font-size: .875rem; }
.artifact .size { color: var(--text-dim); font-size: .75rem; }
.artifact .btn { padding: 8px 10px; }
.progress-track { height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.status-msg { color: var(--text-dim); font-size: .875rem; overflow-wrap: anywhere; }
.inline-msg { color: var(--bad); font-size: .875rem; }
.inline-msg:empty { display: none; }
.viewer-create { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 901px) and (min-height: 650px) { .shell { height: calc(100dvh - 72px); } .sidebar { overflow-y: auto; } }
@media (max-width: 1100px) { .hero { gap: 28px; padding: 28px; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
  .hero-copy { padding: 12px 4px; }
  .hero-stage { height: 65dvh; min-height: 380px; }
  .shell { flex-direction: column; } .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .viewport { flex: none; height: 65dvh; min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
