:root {
  --bg: #141515;
  --bg-2: #111212;
  --ink: #f3efe7;
  --muted: #aaa79f;
  --accent: #7d7936;
  --canvas: #f3f0e8;
  --panel: #f7f4ed;
  --rule: #d5d0c5;
  --ui-ink: #2a2b29;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.teaser {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.88fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 9rem);
  padding: clamp(3rem, 6vw, 6.5rem);
  background:
    radial-gradient(circle at 72% 45%, rgba(255,255,255,.025), transparent 34%),
    linear-gradient(180deg, #161717 0%, #121313 100%);
}

.copy {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(.42rem, 1vw, 1rem);
  font-size: clamp(4rem, 6.8vw, 8rem);
  line-height: .85;
  letter-spacing: .01em;
  font-weight: 300;
  margin-bottom: clamp(4.5rem, 9vh, 8rem);
}

.wm-letter {
  display: inline-block;
  font-weight: 300;
}

.wm-o {
  --size: .72em;
  position: relative;
  width: var(--size);
  height: var(--size);
  border: .085em solid var(--ink);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

/* Locked 3C-4 mark:
   two openings aligned on one diagonal axis, at roughly 2 and 8 o'clock. */
.wm-o::before,
.wm-o::after {
  content: "";
  position: absolute;
  width: .32em;
  height: .115em;
  background: var(--bg);
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.wm-o::before {
  transform: translate(32%, -155%) rotate(-42deg);
}

.wm-o::after {
  transform: translate(-132%, 58%) rotate(-42deg);
}

/* Barless A, drawn rather than relying on a font glyph. */
.wm-a {
  position: relative;
  width: .58em;
  height: .78em;
  display: inline-block;
  flex: 0 0 auto;
}
.wm-a::before,
.wm-a::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: .085em;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transform-origin: bottom center;
}
.wm-a::before { left: 49%; transform: rotate(20deg); }
.wm-a::after  { right: 49%; transform: rotate(-20deg); }

.accent-rule {
  width: 3.6rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2.7rem;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3rem, 4.1vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: none;
  white-space: nowrap;
}

.subline {
  margin: 2.8rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.55rem);
  line-height: 1.55;
  letter-spacing: .005em;
}

.status {
  margin: auto 0 0;
  padding-top: 4rem;
  font-size: .82rem;
  letter-spacing: .28em;
  color: #ddd8cf;
}
.status span {
  color: var(--accent);
  padding: 0 .65rem;
}

.product-preview {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.app-shell {
  width: min(40vw, 720px);
  height: min(50vh, 480px);
  min-height: 360px;
  display: grid;
  grid-template-columns: 92px 1fr;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  overflow: hidden;
  background: var(--canvas);
  box-shadow:
    0 28px 80px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.03);
}

.app-sidebar {
  background: #1b1d1c;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.mini-brand {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 18px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .12em;
}
.mini-o {
  width: 9px;
  height: 9px;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.mini-o::before,
.mini-o::after {
  content:"";
  position:absolute;
  width:5px;height:2px;background:#1b1d1c;
  left:50%;top:50%;
}
.mini-o::before { transform: translate(5%, -180%) rotate(-42deg); }
.mini-o::after  { transform: translate(-105%, 70%) rotate(-42deg); }

.mini-a {
  width: 8px;
  height: 10px;
  position: relative;
  display: inline-block;
}
.mini-a::before,.mini-a::after {
  content:"";
  position:absolute;
  bottom:0;
  width:1px;
  height:100%;
  background:var(--ink);
  transform-origin:bottom center;
}
.mini-a::before { left:48%; transform:rotate(20deg); }
.mini-a::after { right:48%; transform:rotate(-20deg); }

.icon-stack {
  margin-top: 30px;
  display: grid;
  gap: 13px;
}
.icon-stack i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 2px;
  display: block;
  margin-left: 2px;
}
.icon-stack i.active {
  background: rgba(125,121,54,.3);
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(125,121,54,.09);
}
.sidebar-foot {
  margin-top:auto;
  width:10px;height:10px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  margin-left:2px;
}

.app-main {
  min-width: 0;
  background: var(--canvas);
}

.app-topbar {
  height: 42px;
  background: #1b1d1c;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 15px;
}
.topbar-line {
  height: 5px;
  background: rgba(255,255,255,.22);
  border-radius: 10px;
}
.topbar-line.long { width: 34%; }
.topbar-actions { display:flex; gap:9px; }
.topbar-actions span {
  width:8px;height:8px;border:1px solid rgba(255,255,255,.45);border-radius:50%;
}

.workspace {
  padding: 16px;
  height: calc(100% - 42px);
  overflow: hidden;
}

.crumbs {
  display:flex;
  gap:8px;
  margin-bottom:12px;
}
.crumbs span {
  height:5px;border-radius:99px;background:#c9c5bb;
}
.crumbs span:first-child { width:16%; }
.crumbs span:last-child { width:28%; }

.steps {
  border: 1px solid var(--rule);
  border-radius: 6px;
  height: 42px;
  display:flex;
  align-items:center;
  padding:0 14px;
  gap:8px;
  margin-bottom:12px;
}
.steps b {
  width:17px;height:17px;border-radius:50%;
  border:1px solid #9c998f;
  font-size:8px;
  display:grid;place-items:center;
  color:#65635d;
}
.steps b:first-child {
  background:#202220;color:white;border-color:#202220;
}
.steps i {
  height:1px;background:#d1cdc3;flex:1;
}

.grid {
  display:grid;
  grid-template-columns: 1fr 118px;
  gap:12px;
  height: calc(100% - 66px);
}

.primary-panel,
.analysis-rail > div {
  background: rgba(255,255,255,.38);
  border: 1px solid var(--rule);
  border-radius: 7px;
}
.primary-panel {
  padding: 13px;
  overflow:hidden;
}
.line {
  height:5px;
  border-radius:10px;
  background:#c8c4ba;
}
.line.short { width:32%; }
.line.medium { width:47%; }
.line.long { width:68%; }
.panel-subtitle { margin-top:7px; opacity:.65; }

.metric-row {
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:7px;
  margin-top:13px;
}
.metric {
  min-height:67px;
  border:1px solid #d9d5cb;
  border-radius:5px;
  padding:8px;
  position:relative;
}
.metric strong {
  display:block;
  margin-top:8px;
  font-size:17px;
  color:#44453f;
}
.bar {
  margin-top:6px;width:55%;height:4px;background:var(--accent);opacity:.8;
}
.bar.w70 { width:70%; }
.small-ring {
  position:absolute!important;right:9px;bottom:9px;
  width:28px!important;height:28px!important;
}
.stack-lines { margin-top:11px; display:grid; gap:6px; }
.stack-lines i {
  height:4px;border-radius:10px;background:#c9c5bb;
}
.stack-lines i:nth-child(2){width:76%}
.stack-lines i:nth-child(3){width:58%}

.table-card {
  margin-top:10px;
  border:1px solid #d9d5cb;
  border-radius:5px;
  overflow:hidden;
}
.table-head { height:17px;background:#e0ddd4; }
.table-row {
  height:24px;
  display:grid;
  grid-template-columns: 12px 1fr .65fr 34px;
  align-items:center;
  gap:7px;
  padding:0 7px;
  border-top:1px solid #e1ddd3;
}
.table-row i {
  width:6px;height:6px;border:1px solid #777;border-radius:50%;
}
.table-row span {
  height:4px;background:#c8c4ba;border-radius:10px;
}
.table-row em {
  height:7px;background:#d7d2c7;border-radius:9px;
}

.bottom-row {
  display:grid;
  grid-template-columns:.78fr 1.2fr;
  gap:10px;
  margin-top:10px;
}
.mini-list,.radar {
  border:1px solid #d9d5cb;
  border-radius:5px;
  min-height:88px;
  padding:9px;
}
.mini-list i {
  display:block;height:5px;background:#cbc7bd;border-radius:8px;
  margin-top:7px;
}
.mini-list i:nth-child(2){width:85%}
.mini-list i:nth-child(3){width:68%}
.mini-list i:nth-child(4){width:76%}
.mini-list i:nth-child(5){width:54%}

.radar {
  display:grid;
  place-items:center;
}
.radar svg { width:86px;height:86px; overflow:visible; }
.radar svg line,
.radar-grid {
  fill:none;stroke:#c3bfb4;stroke-width:.7;
}
.radar-fill {
  fill:rgba(125,121,54,.43);
  stroke:#716d32;
  stroke-width:1.3;
}

.analysis-rail {
  display:grid;
  grid-template-rows:1.25fr .8fr .7fr;
  gap:10px;
}
.analysis-rail > div { padding:9px; overflow:hidden; }

.ring {
  border-radius:50%;
  background: conic-gradient(var(--accent) 0 76%, #d7d3c9 76% 100%);
  position:relative;
}
.ring::after {
  content:"";
  position:absolute;
  inset:5px;
  background:var(--panel);
  border-radius:50%;
}
.score-ring {
  width:58px;height:58px;
  margin:10px auto 7px;
}
.score-ring span {
  position:absolute;inset:0;
  display:grid;place-items:center;
  color:#34352f;font-weight:700;font-size:14px;
  z-index:2;
}
.legend { display:grid;gap:6px; }
.legend i,.rail-card i {
  display:block;height:4px;background:#c9c5bb;border-radius:8px;
}
.legend i:nth-child(2){width:80%}
.legend i:nth-child(3){width:63%}
.rail-card i { margin-top:9px; }
.rail-card i:nth-child(3){width:77%}
.rail-card i:nth-child(4){width:62%}
.rail-card i:nth-child(5){width:84%}

/* Make the application readable as structure, not as content. */
.app-shell .line,
.app-shell .table-row span,
.app-shell .legend i,
.app-shell .rail-card i,
.app-shell .topbar-line,
.app-shell .crumbs span {
  filter: blur(1.4px);
}

@media (max-width: 1100px) {
  .teaser {
    grid-template-columns: 1fr;
    align-items:start;
    min-height:100vh;
  }
  .copy { min-height: 72vh; }
  .product-preview {
    justify-content:flex-start;
    padding-bottom:4rem;
  }
  .app-shell {
    width:min(82vw,720px);
    height:440px;
  }
}

@media (max-width: 650px) {
  .teaser {
    padding: 2rem 1.4rem 3rem;
    gap: 2rem;
  }
  .copy { min-height: 78vh; }
  .wordmark {
    font-size: clamp(3.5rem, 18vw, 5.6rem);
    margin-bottom: 4rem;
    gap: .35rem;
  }
  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    white-space: normal;
  }
  .subline { font-size:1.05rem; }
  .status {
    font-size:.7rem;
    letter-spacing:.18em;
  }
  .app-shell {
    width: 100%;
    height: 360px;
    min-height: 0;
    grid-template-columns: 68px 1fr;
  }
  .grid { grid-template-columns:1fr 90px; }
}
