/* ============================================================
   BrainerX Labs — simple pages (404, loading, thank-you,
   brand toolkit, legal). Generated by scripts/build_solutions.py.
   ============================================================ */

/* ---------- shared page hero ---------- */

.pg-main { min-height: 60vh; }

.pg-hero { padding-top: 96px; padding-bottom: 40px; text-align: center; }

.pg-hero .h2 { margin-top: 8px; }

.pg-sub {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.65;
}

/* ---------- 404 ---------- */

.nf-wrap { text-align: center; padding-top: 130px; padding-bottom: 150px; position: relative; }

.nf-code {
  font-family: var(--font-display);
  font-size: clamp(110px, 17vw, 200px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.06em;
}

.nf-code .nf-mark {
  width: 0.72em;
  height: 0.72em;
  border-radius: 0.16em;
  transform: translateY(0.04em);
  animation: nf-tilt 3.2s ease-in-out infinite;
}

@keyframes nf-tilt {
  0%, 100% { transform: translateY(0.04em) rotate(0deg); }
  50% { transform: translateY(-0.02em) rotate(8deg); }
}

.nf-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.nf-sub { margin: 12px auto 34px; }

/* ---------- loader ---------- */

.ld-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  text-align: center;
}

.ld-stage { position: relative; width: 128px; height: 128px; }

.ld-ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 2px dashed rgba(59, 79, 255, 0.35);
  animation: ld-spin 9s linear infinite;
}

.ld-orbit {
  position: absolute;
  inset: -22px;
  animation: ld-spin 2.6s linear infinite;
}

.ld-orbit i {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(59, 79, 255, 0.65);
}

@keyframes ld-spin { to { transform: rotate(360deg); } }

.ld-mark {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: ld-breathe 2.6s ease-in-out infinite;
  box-shadow: 0 24px 60px -18px rgba(11, 11, 12, 0.45);
}

@keyframes ld-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.ld-mark svg { width: 76px; height: 76px; }

.ld-mark .ld-b {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: ld-draw 2.6s ease-in-out infinite;
}

@keyframes ld-draw {
  0% { stroke-dashoffset: 90; }
  45%, 78% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -90; }
}

.ld-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: ld-sheen 2.6s ease-in-out infinite;
}

@keyframes ld-sheen {
  0%, 20% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.ld-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.ld-word span { font-weight: 500; color: var(--muted); }

.ld-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.ld-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  animation: ld-slide 1.4s ease-in-out infinite;
}

@keyframes ld-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(460%); }
}

.ld-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .ld-ring, .ld-orbit, .ld-mark, .ld-b, .ld-sheen, .ld-bar i, .nf-code .nf-mark { animation: none; }
  .ld-b { stroke-dashoffset: 0; }
}

/* ---------- thank you ---------- */

.ty-wrap { text-align: center; padding-top: 120px; padding-bottom: 140px; }

.ty-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: #E7F6EF;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 30px;
  animation: ty-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes ty-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ty-steps {
  max-width: 520px;
  margin: 44px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ty-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 18px;
}

.ty-step b { display: block; font-size: 14px; }
.ty-step small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.ty-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- brand toolkit ---------- */

.bk-section { padding: 56px 0; border-top: 1px solid var(--border-soft); }
.bk-section:first-of-type { border-top: none; }

.bk-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.bk-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.bk-tile {
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 210px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--surface);
}

.bk-tile.dark { background: var(--dark); border-color: var(--dark); }
.bk-tile img, .bk-tile svg { width: 84px; height: 84px; }
.bk-tile .wide { width: 240px; height: auto; }

.bk-dl {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 11px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
}

.bk-dl:hover { border-color: var(--ink); }

.bk-colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.bk-swatch {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.bk-chip { height: 96px; }

.bk-swatch figcaption { padding: 12px 14px; }
.bk-swatch b { display: block; font-size: 13.5px; }
.bk-swatch code { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.bk-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.bk-typecard {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
}

.bk-typecard .sample { font-size: 34px; line-height: 1.1; margin-bottom: 12px; display: block; }
.bk-typecard b { font-size: 13.5px; display: block; }
.bk-typecard small { font-size: 12px; color: var(--muted); }

.bk-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bk-rule {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--surface);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bk-rule i { font-style: normal; flex-shrink: 0; }

/* ---------- legal / prose ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 96px;
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-align: center;
  display: block;
  margin-bottom: 42px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 34px 0 10px;
}

.prose p, .prose li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.prose ul { padding-left: 22px; margin: 10px 0; list-style: disc; }
.prose li { margin: 5px 0; }
.prose a { color: var(--accent); }

/* responsive */

@media (max-width: 900px) {
  .bk-logos, .bk-type { grid-template-columns: 1fr; }
  .bk-colors { grid-template-columns: repeat(2, 1fr); }
  .bk-rules { grid-template-columns: 1fr; }
}

/* ---------- careers ---------- */

.role-list { display: flex; flex-direction: column; gap: 10px; }

.role-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.role-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.role-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.role-meta { font-size: 13px; color: var(--muted); }
.role-apply { font-size: 13.5px; font-weight: 600; color: var(--accent); }

.role-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.role-note a { color: var(--accent); }

/* ---------- contact ---------- */

.ct-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

.bk-typecard b { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.015em; display: block; margin-bottom: 6px; }
.bk-typecard small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (max-width: 700px) {
  .role-row { grid-template-columns: 1fr auto; }
  .role-row .role-meta:nth-child(3) { display: none; }
}

/* ---------- blog ---------- */

.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 96px;
}

.bp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bp-card-cover {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-soft);
}

.bp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.bp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(11, 11, 12, 0.12); }

.bp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bp-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 4px 10px;
}

.bp-card-meta time { font-size: 12px; color: var(--faint); }

.bp-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.bp-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }

.bp-card-more { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink); }

.bp-byline { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.bp-prose { padding-bottom: 40px; }

.bp-prose > p:first-child {
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.bp-prose ul { list-style: disc; }

.bp-foot { max-width: 720px; padding-bottom: 96px; }

.bp-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  margin-bottom: 26px;
}

.bp-next-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--faint); }
.bp-next a { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.bp-next a:hover { color: var(--accent); }

.bp-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.bp-cta b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.015em; display: block; margin-bottom: 6px; }
.bp-cta p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

@media (max-width: 900px) {
  .bp-grid { grid-template-columns: 1fr; }
}

/* post cover */

.bp-cover-wrap { max-width: 860px; margin: 8px auto 34px; }

.bp-cover {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- about ---------- */

.ab-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 10px auto 26px;
}

.ab-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
}

.ab-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ab-stat span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: inline-block; margin-top: 6px; }

.ab-story { padding-bottom: 26px; }

.ab-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ab-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
}

.ab-step i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.ab-step b { font-family: var(--font-display); font-size: 15.5px; letter-spacing: -0.015em; display: block; margin-bottom: 5px; }
.ab-step span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.ab-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 34px;
}

.ab-cta-card b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.015em; display: block; }
.ab-cta-card p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- contact ---------- */

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 96px;
}

.ct-side { display: flex; flex-direction: column; gap: 12px; }

.ct-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}

.ct-card b { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.015em; display: block; margin-bottom: 5px; }
.ct-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.ct-card a { font-size: 13.5px; font-weight: 600; color: var(--accent); }

.ct-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 6px;
}

.ct-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

@media (max-width: 900px) {
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-steps { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: 1fr; }
}

/* ---------- about v2 ---------- */

.ab-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.ab-split-copy p:not(.eyebrow) {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-top: 18px;
}

.ab-split-copy .h2 { margin-top: 4px; }

.ab-quote {
  position: relative;
  background: var(--dark);
  border-radius: 20px;
  padding: 44px 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ab-quote-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 110%, rgba(59, 79, 255, 0.38), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
}

.ab-quote blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: #fff;
}

.ab-quote-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.ab-quote-foot .brand-mark { width: 26px; height: 26px; }
.ab-quote-foot span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

.ab-steps-connected { margin-top: 52px; }

.ab-beliefs { margin-top: 14px; }

@media (max-width: 900px) {
  .ab-split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- about hero ---------- */

.ab-hero { padding-bottom: 34px; }

.ab-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.ab-hero-title {
  font-size: clamp(40px, 4.6vw, 64px);
  text-align: left;
}

.ab-hero-sub {
  text-align: left;
  margin-left: 0;
  max-width: 520px;
}

.ab-facts {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-wrap: wrap;
}

.ab-facts i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.ab-hero-cta { justify-content: flex-start; margin-top: 30px; }

.ab-hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.ab-orb {
  position: relative;
  width: 290px;
  height: 290px;
  border-radius: 36px;
  background:
    radial-gradient(70% 70% at 78% 100%, rgba(59, 79, 255, 0.4), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    var(--dark);
  background-size: 100% 100%, 18px 18px, 100% 100%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}

.ab-orb svg { width: 110px; height: 110px; }

.ab-orb-ring {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  animation: ld-spin 26s linear infinite;
}

.ab-orb-ring::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(59, 79, 255, 0.8);
}

.ab-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px -12px rgba(11, 11, 12, 0.22);
}

.ab-float-node {
  top: 26px;
  left: 0;
  width: 205px;
  padding: 12px 14px;
  transform: rotate(-2deg);
}

.abf-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
}

.abf-ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: #E7F6EF;
  color: var(--green);
  font-size: 10px;
}

.abf-body { font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 5px; }

.abf-meta {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border-soft);
}

.ab-float-toast {
  bottom: 34px;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  border-color: #CBE8DB;
  padding: 7px 13px;
  border-radius: 20px;
  transform: rotate(1.5deg);
}

@media (max-width: 1024px) {
  .ab-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .ab-hero-visual { min-height: 360px; margin-top: 12px; }
}

@media (max-width: 640px) {
  .ab-hero-title br { display: none; }
  .ab-orb { width: 240px; height: 240px; }
  .ab-float-node { left: -4px; top: 10px; }
}
