:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #38bdf8;
  --accent-2: #0284c7;
  --danger: #ff6b76;
  --warning: #f5b34d;
  --success: #4ade80;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

.siteops-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 36px;
}

.siteops-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #03121b;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 13px; }
.brand-copy span { color: var(--muted); font-size: 11px; }

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.top-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.top-links a:hover { color: var(--text); border-bottom-color: rgba(148, 163, 184, 0.35); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.8);
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12);
}

.hero,
.section,
.legal-card,
.auth-card,
.redirect-card,
.error-card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1,
.legal-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero .lede,
.legal-hero .lede {
  max-width: 64ch;
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061019;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.25);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn.block { width: 100%; }

.hero-note {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel,
.card,
.panel,
.auth-card,
.redirect-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
}

.hero-panel h2,
.section-head h2,
.legal-hero h2,
.auth-card h2,
.redirect-card h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e2e8f0;
}

.stat-grid,
.feature-grid,
.info-grid,
.legal-grid {
  display: grid;
  gap: 12px;
}

.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stat,
.feature,
.info-tile,
.legal-tile {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong,
.feature strong,
.info-tile strong,
.legal-tile strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.stat span,
.feature span,
.info-tile span,
.legal-tile span,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-head,
.legal-hero,
.auth-header,
.redirect-header {
  padding: 24px 24px 0;
}

.section-body,
.legal-body,
.auth-body,
.redirect-body {
  padding: 24px;
}

.section-head h3,
.legal-body h3,
.auth-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.auth-header h1,
.redirect-header h1 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-header .lede,
.redirect-header .lede {
  margin: 0 0 18px;
}

.section-head p,
.auth-body p,
.redirect-body p,
.legal-body p,
.legal-body li {
  color: var(--muted);
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
}

.legal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.legal-body {
  display: grid;
  gap: 18px;
}

.legal-body h4 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.legal-body ul,
.legal-body ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.legal-body li + li { margin-top: 6px; }

.auth-card {
  max-width: 760px;
  margin: 0 auto;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.auth-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice {
  border-left: 3px solid rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.08);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.warning {
  border-left-color: rgba(245, 179, 77, 0.9);
  background: rgba(245, 179, 77, 0.08);
}

.danger {
  border-left-color: rgba(255, 107, 118, 0.9);
  background: rgba(255, 107, 118, 0.08);
}

.footer {
  padding: 24px 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

.small {
  font-size: 12px;
  color: var(--muted-2);
}

.hidden { display: none !important; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.legal-nav a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.25);
}

.stack {
  display: grid;
  gap: 14px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

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

@media (max-width: 720px) {
  .siteops-shell { padding: 18px 16px 24px; }
  .siteops-topbar { flex-direction: column; align-items: flex-start; }
  .top-links { justify-content: flex-start; }
  .hero { padding: 24px; }
  .stat-grid { grid-template-columns: 1fr; }
}
