/* =========================================================================
   Factory — site styles
   Brand tokens live in :root. Nothing here depends on an external CDN.
   ========================================================================= */

:root {
  /* Brand */
  --violet:        #5A45F5;
  --violet-light:  #8A6BFF;
  --violet-deep:   #3A1FC9;
  --teal:          #00D1B2;
  --teal-bright:   #00E5C4;
  --amber:         #FFB020;

  /* Neutrals */
  --ink:      #0B0B1A;
  --ink-2:    #14122B;
  --ink-3:    #1E1B3D;
  --slate:    #5A6072;
  --slate-2:  #8A90A3;
  --mist:     #F5F6FB;
  --line:     #E4E7F2;
  --white:    #FFFFFF;

  /* Type */
  --sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
          Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --container: 1120px;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(11, 11, 26, .04), 0 12px 32px rgba(11, 11, 26, .07);
  --shadow-lg: 0 24px 70px rgba(11, 11, 26, .16);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.022em; font-weight: 750; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.5rem); letter-spacing: -.028em; }
h3 { font-size: 1.175rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }

a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--violet-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--violet); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 650;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--violet);
  margin-bottom: .85rem;
}
.section--dark .eyebrow { color: var(--teal-bright); }

.lede { font-size: 1.1875rem; color: var(--slate); max-width: 62ch; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: 0 1px 2px rgba(58, 31, 201, .3), 0 10px 24px rgba(90, 69, 245, .32);
}
.btn-primary:hover { background: #4c37e6; color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate-2); color: var(--ink); }

.on-dark .btn-ghost, .hero .btn-ghost {
  color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04);
}
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover {
  color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .09);
}

.btn-sm { padding: .55rem 1rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 26, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; display: block; }
.brand-name { font-weight: 780; font-size: 1.0625rem; letter-spacing: -.03em; color: #fff; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .btn { margin-left: .25rem; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px;
  padding: .45rem .6rem; color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 68px 0 auto; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: .5rem 24px 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav .btn { margin: .9rem 0 0; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(90, 69, 245, .55), transparent 62%),
    radial-gradient(760px 460px at 88% 4%, rgba(0, 209, 178, .22), transparent 60%),
    linear-gradient(180deg, #0B0B1A 0%, #14122B 100%);
  padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 8vw, 104px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .038) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid; gap: clamp(40px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal-bright); }
.hero .lede { color: rgba(255, 255, 255, .76); font-size: 1.1875rem; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .85rem .38rem .5rem; margin-bottom: 1.4rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .88);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); margin-left: .35rem; }

.hero-note { font-size: .875rem; color: rgba(255, 255, 255, .55); margin-top: 1.4rem; }
.hero-note a { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------- product preview mock
   Static, illustrative preview. Each plot is deliberately SINGLE-SERIES, so
   identity never rides on colour alone and no legend is required.          */
.preview {
  border-radius: 18px; overflow: hidden; background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg);
}
.preview-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .9rem; background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.preview-bar span {
  margin-left: .5rem; font-family: var(--mono); font-size: .75rem;
  color: rgba(255, 255, 255, .42);
}
.preview-body { padding: 1.1rem; display: grid; gap: .8rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.stat {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px; padding: .8rem .85rem;
}
.stat .k {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .075em;
  color: rgba(255, 255, 255, .5); font-weight: 650; margin-bottom: .3rem;
}
.stat .v { font-size: 1.4rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.stat .d { font-size: .75rem; font-weight: 650; margin-top: .15rem; color: var(--teal-bright); }
.stat .d.down { color: var(--amber); }

.panel {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px; padding: .85rem .9rem;
}
.panel-title {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .75rem; font-weight: 650; color: rgba(255, 255, 255, .72); margin-bottom: .55rem;
}
.panel-title small { color: rgba(255, 255, 255, .42); font-weight: 550; }
.panel svg { display: block; width: 100%; height: auto; }

.script-line {
  display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .07); font-size: .8125rem;
  color: rgba(255, 255, 255, .78); line-height: 1.5;
}
.script-line:first-of-type { border-top: 0; }
.script-line .tag {
  flex: none; font-size: .625rem; font-weight: 750; letter-spacing: .05em;
  text-transform: uppercase; padding: .18rem .45rem; border-radius: 5px;
  background: rgba(0, 229, 196, .14); color: var(--teal-bright); margin-top: .12rem;
}
.script-line .tag.alt { background: rgba(138, 107, 255, .18); color: var(--violet-light); }

/* ----------------------------------------------------------------- cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--slate); font-size: .96875rem; }

.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 1rem; background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff;
}
.card-icon svg { width: 21px; height: 21px; }
.card-icon.teal { background: linear-gradient(135deg, var(--teal-bright) 0%, #00a893 100%); }
.card-icon.amber { background: linear-gradient(135deg, #FFC43D 0%, #E58A00 100%); }

/* ----------------------------------------------- "what this app is" block */
.about-grid {
  display: grid; gap: clamp(32px, 4vw, 64px); align-items: start;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-body p { color: var(--slate); font-size: 1.0625rem; }
.about-body p strong { color: var(--ink); font-weight: 700; }

.about-steps {
  list-style: none; counter-reset: astep; margin: 1.6rem 0; padding: 0;
  display: grid; gap: 1.15rem;
}
.about-steps li { position: relative; padding-left: 2.75rem; color: var(--slate); }
.about-steps li::before {
  counter-increment: astep; content: counter(astep);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(90, 69, 245, .1); color: var(--violet);
  font-size: .875rem; font-weight: 780;
}
.about-steps li b { color: var(--ink); font-weight: 680; }

.spec-card {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.spec-card > img { display: block; margin-bottom: 1.35rem; }
.spec-card dl { margin: 0; }
.spec-card dl > div { padding: .85rem 0; border-top: 1px solid var(--line); }
.spec-card dl > div:first-child { padding-top: 0; border-top: 0; }
.spec-card dl > div:last-child { padding-bottom: 0; }
.spec-card dt {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--slate); font-weight: 700; margin-bottom: .25rem;
}
.spec-card dd { margin: 0; font-size: .9375rem; color: var(--ink); line-height: 1.5; }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--violet); color: #fff; font-weight: 780; font-size: 1.0625rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--slate); margin: 0; font-size: .96875rem; }

/* ---------------------------------------------------------- scopes table */
.scope-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.scope-table th, .scope-table td {
  text-align: left; padding: 1rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.scope-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.scope-table td:first-child { width: 42%; }
.scope-table code {
  font-family: var(--mono); font-size: .8125rem; color: var(--violet-deep);
  background: rgba(90, 69, 245, .07); padding: .18rem .4rem; border-radius: 5px;
  word-break: break-all; display: inline-block;
}
.tag-ro {
  display: inline-block; margin-top: .5rem; font-size: .6875rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #00755f;
  background: rgba(0, 209, 178, .14); padding: .2rem .5rem; border-radius: 5px;
}
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 700px) { .scope-table td:first-child { width: auto; } .scope-table { min-width: 560px; } }

/* ------------------------------------------------------------- checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--slate); }
.checklist li strong { color: var(--ink); font-weight: 650; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0;
  font-weight: 650; font-size: 1.0625rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.75rem;
  width: 12px; height: 12px; border-right: 2.5px solid var(--slate); border-bottom: 2.5px solid var(--slate);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--slate); margin: 0 0 1.35rem; max-width: 78ch; }

/* ------------------------------------------------------------------- cta */
.cta {
  color: #fff; border-radius: 24px; padding: clamp(40px, 5vw, 68px) clamp(24px, 4vw, 56px);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(0, 209, 178, .28), transparent 65%),
    linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 54ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.75rem; }
.cta .btn-primary { background: #fff; color: var(--violet-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.cta .btn-primary:hover { background: var(--mist); color: var(--violet-deep); }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 64px 0 32px; font-size: .9375rem; }
.footer-grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1.6fr repeat(3, 1fr);
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .09em; margin-bottom: 1rem; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { max-width: 40ch; font-size: .9375rem; margin: 1rem 0 0; }
.footer-legal { padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer-legal p { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .45); max-width: 72ch; }

/* ------------------------------------------------------------ legal page */
.legal-hero {
  background: linear-gradient(180deg, #0B0B1A 0%, #14122B 100%);
  color: #fff; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .6rem; }
.legal-hero p { color: rgba(255, 255, 255, .66); margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .875rem; margin-top: 1.25rem; }
.legal-meta span { color: rgba(255, 255, 255, .55); }
.legal-meta b { color: #fff; font-weight: 650; }

.legal-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 96px);
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 92px; font-size: .875rem; }
@media (max-width: 900px) {
  .toc { position: static; background: var(--mist); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
}
.toc h2 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--slate); margin-bottom: .9rem; font-weight: 700;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: toc; }
.toc a { color: var(--slate); text-decoration: none; display: block; line-height: 1.4; }
.toc a:hover { color: var(--violet); }

.legal-body { max-width: 74ch; }
.legal-body h2 {
  font-size: 1.4375rem; margin-top: 3rem; margin-bottom: .75rem; scroll-margin-top: 92px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.0625rem; margin-top: 1.9rem; margin-bottom: .5rem; }
.legal-body p, .legal-body li { color: #2A2E3D; }
.legal-body ul, .legal-body ol { padding-left: 1.35rem; margin: 0 0 1.15em; display: grid; gap: .5rem; }
.legal-body code {
  font-family: var(--mono); font-size: .875rem; background: var(--mist);
  padding: .12rem .38rem; border-radius: 5px; word-break: break-all;
}
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .9375rem; }
.legal-body th, .legal-body td {
  text-align: left; padding: .85rem .9rem; border: 1px solid var(--line); vertical-align: top;
}
.legal-body th { background: var(--mist); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }

.callout {
  border-left: 4px solid var(--violet); background: var(--mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.35rem; margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout.teal { border-left-color: var(--teal); }

/* ------------------------------------------------------------ brand page */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.swatch .chip { height: 110px; }
.swatch .meta { padding: .9rem 1rem 1.05rem; }
.swatch .meta b { display: block; font-size: .9375rem; }
.swatch .meta code {
  font-family: var(--mono); font-size: .8125rem; color: var(--slate); text-transform: uppercase;
}

.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .asset-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .asset-grid { grid-template-columns: 1fr; } }
.asset {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.asset .stage { display: grid; place-items: center; padding: 2rem; min-height: 172px; background: var(--mist); }
.asset .stage.dark { background: var(--ink-2); }
.asset .stage.checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #EDEFF7 25%, transparent 25%, transparent 75%, #EDEFF7 75%),
    linear-gradient(45deg, #EDEFF7 25%, transparent 25%, transparent 75%, #EDEFF7 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px;
}
.asset .stage img { max-height: 108px; width: auto; }
.asset .info { padding: 1.1rem 1.2rem 1.3rem; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.asset .info b { font-size: .96875rem; }
.asset .info p { font-size: .875rem; color: var(--slate); margin: .3rem 0 1rem; flex: 1; }
.dl-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.dl {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 650;
  text-decoration: none; color: var(--violet-deep); background: rgba(90, 69, 245, .08);
  padding: .4rem .75rem; border-radius: 8px;
}
.dl:hover { background: rgba(90, 69, 245, .16); color: var(--violet-deep); }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.rule { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: #fff; }
.rule h3 { display: flex; align-items: center; gap: .55rem; }
.rule h3::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.rule.dont h3::before {
  background: #E5484D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/13px no-repeat;
}
.rule ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; color: var(--slate); font-size: .9375rem; }

.type-sample { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: #fff; }
.type-sample .big { font-size: 2.75rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.type-sample .mid { font-size: 1.25rem; font-weight: 650; margin-top: .75rem; }
.type-sample .small { color: var(--slate); margin-top: .5rem; }
.type-sample .stack { font-family: var(--mono); font-size: .8125rem; color: var(--slate); margin-top: 1.25rem; }

.clearspace { display: grid; place-items: center; padding: 2rem; background: var(--mist); border-radius: var(--radius); }

/* ----------------------------------------------------------- status page */
.status {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(820px 480px at 50% -8%, rgba(90, 69, 245, .5), transparent 62%),
    radial-gradient(620px 380px at 88% 12%, rgba(255, 176, 32, .14), transparent 60%),
    linear-gradient(180deg, #0B0B1A 0%, #14122B 100%);
}
.status::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 76%);
}
.status > .container { position: relative; z-index: 1; }
.status-inner { max-width: 660px; margin-inline: auto; text-align: center; }
.status-inner h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .75rem; }
.status-inner > p { color: rgba(255, 255, 255, .74); font-size: 1.125rem; }
.status-mark { width: 76px; height: 76px; margin: 0 auto 1.75rem; display: block; }

.status-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .85rem; margin-bottom: 1.5rem;
  border-radius: 999px; border: 1px solid rgba(255, 176, 32, .38);
  background: rgba(255, 176, 32, .12);
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #FFC96B;
}
.status-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 176, 32, .65); animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}
@media (prefers-reduced-motion: reduce) { .status-badge .dot { animation: none; } }

.timeline {
  list-style: none; margin: 2.75rem 0 0; padding: 0;
  text-align: left; display: grid; gap: 0;
  border: 1px solid rgba(255, 255, 255, .11); border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); padding: 1.5rem 1.6rem;
}
.timeline li { position: relative; padding: 0 0 1.6rem 2.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 9.5px; top: 26px; bottom: 6px;
  width: 1.5px; background: rgba(255, 255, 255, .14);
}
.timeline li.done::before {
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B1A' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.timeline li.current::before { background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 176, 32, .16); }
.timeline li.todo::before { background: transparent; border: 2px solid rgba(255, 255, 255, .26); }
.timeline .t { display: block; font-weight: 680; color: #fff; margin-bottom: .15rem; }
.timeline li.todo .t { color: rgba(255, 255, 255, .62); }
.timeline .d { display: block; font-size: .9375rem; color: rgba(255, 255, 255, .6); line-height: 1.55; }

.status-note {
  margin-top: 2.25rem; font-size: .9375rem; color: rgba(255, 255, 255, .55);
  line-height: 1.6; max-width: 56ch; margin-inline: auto;
}
.status-note a { color: rgba(255, 255, 255, .82); }
