/* ==========================================================
   SolSector Laboratory — shared stylesheet
   Dark lab-instrumentation theme. Light-on-dark only by design.
   ========================================================== */

:root {
  --bg:         #080a0d;
  --panel:      #11161d;
  --panel-hi:   #161d26;
  --line:       #1e2733;
  --line-hi:    #2c3948;
  --text:       #e6edf3;
  --muted:      #8b98a5;
  --dim:        #7d8996;
  --cyan:       #22d3ee;
  --cyan-deep:  #0b7285;
  --amber:      #f5a524;
  --red:        #f87171;
  --green:      #34d399;

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r: 4px;
  --grid: 32px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right,  rgba(34,211,238,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34,211,238,.045) 1px, transparent 1px),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(11,114,133,.22), transparent 70%);
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), 100% 100%;
}

/* ---------- typography ---------- */

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #67e8f9; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(to right, var(--cyan), var(--cyan-deep) 30%, transparent);
}

/* ---------- panels ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

/* Corner ticks — reads like an instrument bezel */
.bezel { position: relative; }
.bezel::before, .bezel::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.bezel::before { top: -1px; left: -1px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.bezel::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

/* ---------- forms ---------- */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: .9375rem;
  color: var(--text);
  background: #0b0f14;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #47535f; }
.field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.16);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1204;
  background: var(--amber);
  border: 1px solid #c77f00;
  border-radius: var(--r);
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.09); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-ghost {
  width: auto;
  color: var(--muted);
  background: transparent;
  border-color: var(--line-hi);
}
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); filter: none; }

/* ---------- messages ---------- */

.msg {
  display: flex; gap: 10px;
  padding: 11px 13px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: .8125rem;
  border: 1px solid;
  border-radius: var(--r);
}
.msg-error { color: #fecaca; background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.38); }
.msg-warn  { color: #fde3b0; background: rgba(245,165,36,.08); border-color: rgba(245,165,36,.38); }
.msg-ok    { color: #bbf7d0; background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.38); }

/* ---------- status dot ---------- */

.dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; vertical-align: 1px;
}
.dot-ok   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-warn { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot-err  { background: var(--red);   box-shadow: 0 0 6px var(--red); }

/* ---------- site footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .06em; color: var(--dim);
}
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-end { margin-left: auto; }

@media (max-width: 560px) {
  .foot-end { margin-left: 0; }
}

/* ---------- utility ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px;
  font-family: var(--mono); font-size: .8125rem;
  color: var(--bg); background: var(--cyan);
  border-radius: var(--r);
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
