/* Looking Glass — visual language matched to loginet.cloud (dark indigo, pill CTAs,
   Wix Madefor Display headings / Roboto body). */

:root {
  --bg-0: #16033F;
  --bg-1: #250F61;
  --bg-2: #22065f;
  --text: #E7E7E7;
  --text-muted: #B8B8B8;
  --white: #FFFFFF;
  --accent-blue: #3A5CA8;
  --accent-blue-hover: #4a6fc0;
  --accent-orange: #FF930C;
  --card-bg: rgba(245, 245, 245, 0.05);
  --card-bg-hover: rgba(245, 245, 245, 0.08);
  --card-border: rgba(255, 255, 255, 0.10);
  --radius-pill: 40px;
  --radius-card: 20px;
  --font-heading: "Wix Madefor Display", Roboto, sans-serif;
  --font-body: Roboto, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%) fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 0 0 0.5em;
  font-weight: 500;
}

h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; }
h2 { font-size: 22px; }

a { color: #9db4ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.lg-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.lg-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 3, 63, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.lg-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.lg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
}
.lg-brand:hover { text-decoration: none; opacity: 0.9; }
.lg-brand__logo { display: block; border-radius: 6px; }
.lg-brand__divider { color: var(--text-muted); font-weight: 300; }
.lg-brand__product { color: #C9D3FF; }

.lg-nav { display: flex; align-items: center; gap: 16px; }

.lg-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white);
  background: var(--accent-blue);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.lg-nav__link { font-size: 14px; color: var(--text-muted); }
.lg-nav__link:hover { color: var(--white); }

/* ---------- Hero ---------- */
.lg-hero {
  padding: 64px 0 40px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(58, 92, 168, 0.25) 0%, rgba(0,0,0,0) 70%);
}

.lg-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
  margin: 0 0 12px;
}

.lg-hero__lede {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 17px;
}

.lg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.lg-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 18px 16px;
  text-align: center;
}

.lg-stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  word-break: break-word;
}

.lg-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Tool card ---------- */
.lg-tools { padding: 12px 0 40px; }

.lg-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.lg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.lg-detected {
  margin: -10px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.lg-detected strong { color: #9db4ff; font-weight: 500; }

.lg-tab {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lg-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

.lg-tab.is-active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--white);
}

.lg-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lg-input-row {
  display: flex;
  gap: 10px;
}

.lg-input-row--wrap { flex-wrap: wrap; }

.lg-input, .lg-select {
  flex: 1 1 240px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--card-border);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  outline: none;
  min-width: 0;
}

.lg-input:focus, .lg-select:focus { border-color: var(--accent-blue); }
.lg-input::placeholder { color: rgba(231,231,231,0.35); }

.lg-select { flex: 0 0 auto; font-family: var(--font-body); cursor: pointer; }

.lg-toggle {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex: 0 0 auto;
}

.lg-toggle__opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 0 16px;
  cursor: pointer;
}

.lg-toggle__opt.is-active {
  background: var(--accent-blue);
  color: var(--white);
}

.lg-run {
  flex: 0 0 auto;
  background: var(--accent-orange);
  color: #1a1200;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 0 26px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.lg-run:hover { filter: brightness(1.08); }
.lg-run:active { transform: translateY(1px); }
.lg-run:disabled { opacity: 0.55; cursor: progress; }

.lg-output {
  margin-top: 22px;
  background: #0b0424;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #d7f7dc;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.lg-output__placeholder { color: var(--text-muted); font-family: var(--font-body); margin: 0; }
.lg-output__meta { color: #9db4ff; font-family: var(--font-body); margin: 0 0 10px; font-size: 13px; }
.lg-output__error { color: #ff8a8a; font-family: var(--font-body); }

/* ---------- Network info ---------- */
.lg-network { padding-bottom: 64px; }

.lg-network__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lg-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 500;
  color: #9db4ff;
  border: 1px solid rgba(157,180,255,0.4);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-left: 8px;
  font-family: var(--font-body);
}

.lg-deflist { margin: 0; }
.lg-deflist > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lg-deflist > div:last-child { border-bottom: none; }
.lg-deflist dt { color: var(--text-muted); font-size: 14px; }
.lg-deflist dd { margin: 0; text-align: right; font-size: 14px; max-width: 60%; }

/* ---------- Footer ---------- */
.lg-footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0 40px;
}
.lg-footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .lg-stats { grid-template-columns: repeat(2, 1fr); }
  .lg-network__grid { grid-template-columns: 1fr; }
  .lg-input-row { flex-wrap: wrap; }
  .lg-run { width: 100%; padding: 12px 0; }
  .lg-toggle { width: 100%; justify-content: center; }
}
