/* ==========================================================================
   RadReadOut — Stealth Gate Stylesheet
   Zero product details, clean dark palette shared with private preview
   ========================================================================== */

:root {
  --bg-page: #080a0e;
  --bg-canvas: #0c0e12;
  --bg-panel: #13171f;
  --bg-inset: #0e1117;
  --bg-elevated: #1b212c;

  --border-subtle: #232936;
  --border-strong: #313a4d;

  --text-primary: #e5e7eb;
  --text-strong: #f3f4f6;
  --text-prose: #d1d5db;
  --text-muted: #8b95a5;
  --text-dim: #647084;

  --accent-blue: #2563eb;
  --accent-blue-bright: #3b82f6;
  --accent-blue-soft: #60a5fa;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #2b3344;
  border-radius: 3px;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 50% at 50% -8%, rgba(37, 99, 235, 0.11), transparent 72%),
    radial-gradient(ellipse 55% 38% at 85% 22%, rgba(21, 128, 61, 0.05), transparent 65%);
}

.page-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(49, 58, 77, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 58, 77, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 35%, transparent 90%);
}

/* Shared Brand & Status Primitives */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-monogram {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-color: #151b26;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  position: relative;
  flex-shrink: 0;
}

.brand-monogram::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background-color: var(--accent-blue-bright);
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: rgba(19, 23, 31, 0.9);
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-prose);
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--accent-blue-soft);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  flex-shrink: 0;
}

/* Stealth Gate Layout */
.gate-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
}

.gate-top {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gate-center {
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding-block: 36px;
}

.gate-card {
  background: linear-gradient(155deg, rgba(19, 23, 31, 0.96), rgba(14, 17, 23, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 28px;
  box-shadow:
    0 24px 70px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

@media (min-width: 640px) {
  .gate-card {
    padding: 36px;
  }
}

.gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-blue-soft);
  margin-bottom: 12px;
}

.gate-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.gate-subtext {
  margin: 0 0 26px;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.gate-access-box {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px;
}

.gate-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.gate-input {
  flex: 1;
  min-width: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-strong);
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.gate-input::placeholder {
  color: var(--text-dim);
}

.gate-input:focus {
  border-color: var(--accent-blue-bright);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.gate-vis-btn {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.gate-vis-btn:hover {
  color: var(--text-strong);
  border-color: #46536d;
}

.gate-submit-btn {
  width: 100%;
  border: 1px solid var(--accent-blue-bright);
  background-color: var(--accent-blue);
  color: #ffffff;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, opacity 0.14s ease;
}

.gate-submit-btn:hover:not(:disabled) {
  background-color: #1d4ed8;
}

.gate-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gate-error {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  color: #fda4af;
}

.gate-error.is-status {
  color: var(--text-muted);
}

.gate-footer {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 12px;
}

[hidden] {
  display: none !important;
}
