:root {
  --white: #ffffff;
  --marble: #f7f9fb;
  --ink: #070707;
  --muted: #44515c;
  --gold: #b98b32;
  --gold-soft: #ead8a1;
  --gold-deep: #684d12;
  --cool: #e8f1f4;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --line: rgba(151, 112, 31, .34);
  --shadow: 0 28px 80px rgba(34, 27, 9, .12);
  --shadow-tight: 0 14px 34px rgba(72, 58, 22, .13);
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-weight: 500;
  background:
    linear-gradient(118deg, rgba(255,255,255,.98), rgba(247,250,252,.9) 36%, rgba(232,241,244,.58) 58%, rgba(255,255,255,.98)),
    radial-gradient(circle at 13% 18%, rgba(189,211,219,.32), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(234,216,161,.24), transparent 30%),
    linear-gradient(155deg, #fff 0%, #eef3f5 43%, #fff 76%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(126deg, transparent 0 14%, rgba(91, 112, 122, .09) 14.2%, transparent 14.7% 38%, rgba(180,143,63,.08) 38.2%, transparent 38.7%),
    linear-gradient(52deg, transparent 0 58%, rgba(124, 158, 170, .14) 58.2%, transparent 58.7%),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.72), transparent 45%);
  mix-blend-mode: multiply;
}
a { color: var(--ink); font-weight: 760; text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid rgba(201, 169, 93, .58); outline-offset: 3px; }
p { margin: 0 0 16px; }
h1, h2, h3, .brand, .navlinks a, .btn, .board-title, .intent-loader-title { font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.15vw, 4.12rem); line-height: 1.08; margin: 0 0 22px; max-width: 780px; text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(1.68rem, 3vw, 2.78rem); line-height: 1.14; margin: 0 0 15px; text-wrap: balance; font-weight: 700; }
h3 { font-size: 1.03rem; line-height: 1.18; margin: 0 0 8px; font-weight: 700; }
.site-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 12px 0 28px; padding: 13px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 850; white-space: nowrap; min-width: 0; }
.brand img { width: 150px; height: 33px; object-fit: contain; display: block; }
.brand span { border-left: 1px solid var(--line); padding-left: 12px; font-size: .94rem; }
.navlinks { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.navlinks a, .btn {
  min-height: 43px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.68);
  border-bottom-color: rgba(159, 124, 49, .42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.28));
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 800;
  padding: 10px 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 28px rgba(94,77,30,.1);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.navlinks a:hover, .btn:hover { transform: translateY(-1px); border-color: rgba(200,162,78,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 14px 34px rgba(94,77,30,.16); }
.navlinks .nav-action, .btn.primary {
  color: #fff;
  border-color: rgba(122,91,30,.62);
  background: linear-gradient(135deg, #0b0b0b, #2b2413 48%, #9a7936);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 32px rgba(65,49,14,.22);
}
.navlinks .nav-action:hover, .btn.primary:hover { background: linear-gradient(135deg, #000, #1f190c 44%, #a8863f); }
.glass {
  border: 1px solid rgba(255,255,255,.72);
  border-bottom-color: rgba(180,151,85,.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.36));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr); gap: 24px; align-items: stretch; padding: 18px 0 36px; min-height: min(620px, calc(100vh - 104px)); }
.hero-copy { padding: clamp(28px, 4vw, 48px); display: grid; align-content: center; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.04rem, 1.35vw, 1.22rem); }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.btn.secondary { color: var(--ink); }
.operation-board { padding: clamp(18px, 3vw, 30px); align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 430px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(232,241,244,.82) 45%, rgba(255,255,255,.76)); }
.board-logo { width: 72px; height: 72px; border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.48)); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-tight); margin-bottom: 24px; border: 1px solid rgba(255,255,255,.72); }
.board-logo img { width: 50px; height: 50px; object-fit: contain; }
.board-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 2px; }
.board-title span { color: var(--muted); font-weight: 760; }
.board-title strong { color: var(--gold-deep); }
.board-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(150,130,88,.22); align-items: start; }
.board-row span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.board-row.high span { background: #111; }
.board-row p, .board-output p { color: var(--muted); margin: 0; font-size: .94rem; }
.board-row em { font-style: normal; color: var(--gold-deep); font-weight: 850; font-size: .82rem; }
.board-output { margin-top: 20px; padding: 16px; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: var(--radius); }
.section { padding: 52px 0; }
.section-copy { max-width: 780px; margin-bottom: 22px; }
.two-layer { border-top: 1px solid rgba(190,166,104,.28); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gold-card {
  border: 1px solid rgba(174, 130, 34, .46);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(232,241,244,.72) 48%, rgba(255,255,255,.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 20px 55px rgba(111,88,35,.13);
  padding: 24px;
}
.gold-card, .glass { background-clip: padding-box; }
.gold-card a, .linkgrid a { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.gold-card a:hover, .linkgrid a:hover { border-color: rgba(201,169,93,.58); }
.gold-card p, .panel p, .footer span { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(280px, .74fr); gap: 18px; align-items: stretch; }
.panel { padding: 30px; }
.boundary { align-content: center; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pills span {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.48);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps article { padding: 24px; }
.steps span { display: block; color: var(--gold-deep); font-weight: 900; margin-bottom: 32px; }
.resource-list { padding: 30px; }
.linkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.linkgrid a { border: 1px solid rgba(255,255,255,.62); border-bottom-color: rgba(159,124,49,.32); border-radius: var(--radius); background: rgba(255,255,255,.55); padding: 14px; text-decoration: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.linkgrid a:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-tight); }
.cta { padding: clamp(28px, 5vw, 52px); margin-bottom: 34px; }
.template { white-space: pre-wrap; overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.52); padding: 18px; color: #25231f; }
.footer { display: grid; gap: 5px; margin: 38px 0 42px; padding: 20px; }
.intent-loader[hidden] { display: none; }
.intent-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.intent-loader-card {
  width: min(430px, calc(100vw - 36px));
  border: 1px solid rgba(174,130,34,.46);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,241,244,.86) 48%, rgba(255,255,255,.84));
  box-shadow: 0 34px 90px rgba(69,52,16,.22), inset 0 1px 0 rgba(255,255,255,.95);
  padding: 26px;
}
.intent-loader-kicker {
  color: var(--gold-deep);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.intent-loader-title {
  display: block;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.2;
  margin-bottom: 9px;
}
.intent-loader-card p {
  color: var(--muted);
  margin-bottom: 20px;
}
.intent-loader-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(151,112,31,.24);
  background: rgba(255,255,255,.58);
}
.intent-loader-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b0b0b, #8f6c24, #d9b75f);
  animation: intent-fill .86s cubic-bezier(.22,.76,.34,1) forwards;
}
.intent-loader-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.intent-loader-steps span {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.62);
  border-bottom-color: rgba(159,124,49,.32);
  border-radius: var(--radius);
  background: rgba(255,255,255,.44);
  color: #373125;
  font-size: .78rem;
  font-weight: 850;
  text-align: center;
  padding: 7px 4px;
}
html.intent-transitioning { cursor: progress; }
@keyframes intent-fill {
  from { width: 18%; }
  to { width: 100%; }
}
html[data-edit-density="compact"] .section { padding-block: 34px; }
html[data-edit-density="compact"] .hero { min-height: auto; padding-bottom: 28px; }
html[data-edit-density="spacious"] .section { padding-block: 72px; }
html[data-edit-density="spacious"] .hero { gap: 34px; padding-bottom: 56px; }
html[data-edit-columns="2"] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-edit-hero-visual="off"] .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
html[data-edit-hero-visual="off"] .operation-board { display: none; }
@media (prefers-reduced-motion: reduce) {
  .intent-loader-track span { animation: none; width: 100%; }
}
@media (max-width: 920px) {
  .hero, .grid, .split, .steps, .linkgrid, html[data-edit-columns="2"] .grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 14px; }
  .operation-board { min-height: 0; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .navlinks { justify-content: flex-start; }
  h1 { max-width: 820px; }
}
@media (max-width: 560px) {
  .site-shell { width: min(100% - 26px, var(--max)); }
  .topbar { top: 8px; margin-top: 8px; margin-bottom: 16px; padding: 12px; gap: 10px; }
  .brand img { width: 136px; height: 30px; }
  .brand span { display: none; }
  .navlinks { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .navlinks a { min-width: 0; min-height: 35px; padding: 7px 6px; font-size: .72rem; line-height: 1.08; text-align: center; white-space: normal; }
  .navlinks .nav-action { grid-column: auto; }
  h1 { font-size: clamp(1.85rem, 8.4vw, 2.36rem); line-height: 1.1; margin-bottom: 16px; }
  h2 { font-size: clamp(1.46rem, 7.2vw, 2.05rem); }
  .lead { font-size: 1rem; }
  .hero-copy, .panel, .gold-card, .operation-board, .resource-list, .cta { padding: 20px; }
  .hero { gap: 18px; padding-bottom: 28px; }
  .buttons, .btn { width: 100%; }
  .btn { text-align: center; }
}
