@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #ecf0f5;
  --muted: #9ba7ba;
  --night: #0b111d;
  --night-soft: #111a2a;
  --panel: #151f31;
  --line: rgba(220, 229, 241, .13);
  --gold: #d9ba75;
  --violet: #9b8ad9;
  --mist: #d9e0ea;
  --danger: #e6a59f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 7%, rgba(80, 75, 145, .19), transparent 28rem),
    radial-gradient(circle at 5% 40%, rgba(44, 79, 110, .14), transparent 30rem),
    var(--night);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
button, textarea, input { font: inherit; }
button { color: inherit; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 84px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { width: 27px; height: 27px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; }
.brand-mark span { width: 11px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: -5px 0 0 var(--night); transform: rotate(-23deg); }
.model-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 13px var(--gold); }
.model-state.offline .status-dot { background: var(--danger); box-shadow: none; }
main { width: min(1180px, calc(100% - 40px)); margin: auto; }
.hero { min-height: 395px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-copy { max-width: 780px; padding: 65px 0; position: relative; z-index: 1; }
.eyebrow, .step { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, blockquote { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .91; letter-spacing: -.045em; max-width: 850px; }
.lede { margin: 28px 0 0; max-width: 625px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.orbit { width: 280px; height: 280px; justify-self: end; border: 1px solid rgba(217,186,117,.14); border-radius: 50%; position: relative; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(217,186,117,.1); border-radius: 50%; inset: 35px; }
.orbit::after { inset: 78px; }
.moon { width: 93px; height: 93px; border: 1px solid rgba(217,186,117,.55); border-radius: 50%; position: absolute; left: 94px; top: 94px; display: grid; place-items: center; box-shadow: 0 0 50px rgba(217,186,117,.08); }
.moon span { width: 46px; height: 63px; border-radius: 50%; background: linear-gradient(140deg, #efdaa6, #9d7f47); box-shadow: -17px 3px 0 var(--night); transform: rotate(-22deg); }
.star { position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); }
.star-one { top: 30px; left: 77px; }.star-two { right: 7px; top: 153px; }.star-three { left: 31px; bottom: 48px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); border-bottom: 1px solid var(--line); }
.entry-panel { padding: 74px 7% 80px 0; border-right: 1px solid var(--line); }
.method-panel { padding: 74px 0 80px 12%; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .method-panel h2 { margin: 0; font-size: clamp(35px, 4vw, 52px); line-height: 1; }
.text-button { border: 0; border-bottom: 1px solid rgba(217,186,117,.6); padding: 3px 0; background: none; color: var(--gold); cursor: pointer; white-space: nowrap; font-size: 13px; }
label, legend { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
label > span { float: right; color: var(--muted); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }
.field-shell { position: relative; }
textarea { width: 100%; resize: vertical; color: var(--ink); background: rgba(7,12,21,.48); border: 1px solid var(--line); border-radius: 3px; padding: 18px 18px 35px; line-height: 1.65; outline: none; transition: border-color .2s, background .2s; }
textarea:focus { border-color: rgba(217,186,117,.6); background: rgba(7,12,21,.72); }
textarea::placeholder { color: #6d798a; }
.main-field textarea { min-height: 270px; font-family: "Instrument Serif", Georgia, serif; font-size: 22px; }
.count { position: absolute; right: 14px; bottom: 12px; color: #6d798a; font-size: 10px; letter-spacing: .08em; }
.context-block { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-block summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.context-block summary::-webkit-details-marker { display: none; }
.context-block summary strong, .context-block summary small { display: block; }
.context-block summary strong { font-size: 13px; }
.context-block summary small { color: var(--muted); margin-top: 5px; }
.plus { color: var(--gold); font-size: 24px; font-weight: 300; transition: transform .2s; }
.context-block[open] .plus { transform: rotate(45deg); }
.context-fields { padding-bottom: 22px; display: grid; gap: 10px; }
.context-fields label { margin: 12px 0 0; }
.context-fields textarea { min-height: 110px; }
.lens-picker { border: 0; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lens-picker legend { margin-bottom: 10px; }
.lens-picker label { margin: 0; position: relative; }
.lens-picker input { position: absolute; opacity: 0; pointer-events: none; }
.lens-picker label > span { float: none; display: block; height: 100%; padding: 13px; border: 1px solid var(--line); color: var(--mist); text-transform: none; letter-spacing: 0; font-size: 12px; cursor: pointer; }
.lens-picker small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.lens-picker input:checked + span { border-color: var(--gold); background: rgba(217,186,117,.07); }
.primary-button { width: 100%; border: 1px solid var(--gold); background: var(--gold); color: #111522; padding: 17px 20px; display: flex; justify-content: space-between; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: #e6ca8b; }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.privacy-note { color: #727f91; font-size: 10px; line-height: 1.6; margin: 12px 0 0; }
.method-panel ol { list-style: none; padding: 0; margin: 42px 0; }
.method-panel li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.method-panel li:last-child { border-bottom: 1px solid var(--line); }
.method-panel li > span { width: 24px; color: var(--gold); font-family: "Instrument Serif", serif; font-size: 19px; }
.method-panel strong, .method-panel small { display: block; }
.method-panel strong { font-size: 13px; }.method-panel small { color: var(--muted); line-height: 1.45; margin-top: 4px; }
blockquote { margin: 40px 0 12px; font-size: 25px; line-height: 1.35; color: var(--mist); }
.attribution { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.loading-state, .error-state { min-height: 600px; display: grid; place-items: center; align-content: center; text-align: center; }
[hidden] { display: none !important; }
.loading-orb { width: 110px; height: 110px; border: 1px solid rgba(217,186,117,.25); border-radius: 50%; display: grid; place-items: center; margin-bottom: 34px; animation: breathe 2.4s ease-in-out infinite; }
.loading-orb span { width: 45px; height: 60px; border-radius: 50%; background: var(--gold); box-shadow: -16px 0 0 var(--night); }
.loading-state h2, .error-state h2 { margin: 0; font-size: 40px; }
.loading-line { width: 260px; height: 1px; background: var(--line); margin-top: 35px; overflow: hidden; }
.loading-line span { display: block; width: 40%; height: 100%; background: var(--gold); animation: travel 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 55px rgba(217,186,117,.12); } }
@keyframes travel { from { transform: translateX(-120%); } to { transform: translateX(350%); } }
.results { padding: 85px 0; }
.result-intro { max-width: 780px; margin-bottom: 60px; }
.result-intro h2 { margin: 0 0 20px; font-size: clamp(48px, 7vw, 84px); line-height: .95; }
.result-intro > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.65; }
.result-intro .text-button { margin-top: 12px; }
.result-block { display: grid; grid-template-columns: 220px 1fr; gap: 45px; padding: 42px 0; border-top: 1px solid var(--line); }
.result-block > h3 { margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reading-card { padding: 22px; border: 1px solid var(--line); background: rgba(21,31,49,.52); }
.reading-card h4 { margin: 0 0 8px; font-family: "Instrument Serif", serif; font-size: 27px; font-weight: 400; }
.reading-card p, .reading-card li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.reading-card ul { padding-left: 17px; margin-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.badge { border: 1px solid var(--line); color: var(--mist); padding: 5px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.confidence-strong { border-color: rgba(217,186,117,.65); color: var(--gold); }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { color: var(--mist); margin-bottom: 14px; line-height: 1.6; }
.limits { color: var(--muted); line-height: 1.7; border-left: 1px solid var(--gold); padding-left: 20px; }
.error-state { max-width: 650px; margin: auto; }
.error-state p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.secondary-button { margin-top: 18px; border: 1px solid var(--gold); background: transparent; color: var(--gold); padding: 13px 19px; cursor: pointer; }
footer { width: min(1180px, calc(100% - 40px)); margin: auto; min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: #687486; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
footer span { color: var(--mist); font-weight: 600; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }.orbit { position: absolute; right: -120px; opacity: .45; }
  .workspace { grid-template-columns: 1fr; }.entry-panel { padding: 58px 0; border-right: 0; }.method-panel { padding: 58px 0; border-top: 1px solid var(--line); }
  .result-block { grid-template-columns: 1fr; gap: 18px; }.card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }.site-header { height: 68px; }
  .model-state { max-width: 145px; text-align: right; font-size: 9px; }.hero-copy { padding: 55px 0; } h1 { font-size: 54px; }
  .lede { font-size: 16px; }.section-heading { align-items: start; flex-direction: column; }.lens-picker { grid-template-columns: 1fr; }
  footer { align-items: flex-start; padding: 35px 0; gap: 25px; } footer p { margin: 0; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; } }

