:root {
  --bg: #eef3fb;
  --bg-muted: rgba(255, 255, 255, 0.4);
  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(255, 255, 255, 0.62);
  --panel-alt: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.34);
  --line-strong: rgba(255, 255, 255, 0.58);
  --text: #10203a;
  --muted: #53657f;
  --accent: #1677ff;
  --accent-soft: rgba(255, 255, 255, 0.3);
  --success: #0b8f9c;
  --danger: #b42318;
  --shadow: 0 30px 70px rgba(84, 105, 138, 0.18);
  --shadow-soft: 0 16px 36px rgba(84, 105, 138, 0.12);
  --radius: 24px;
  --font-sans: "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(120, 185, 255, 0.18), transparent 22%),
    radial-gradient(circle at 74% 58%, rgba(66, 129, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 54%, #e8eef8 100%);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 86%);
}

#page-globe-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding-top: 20px;
}

.nav-shell,
.hero-stack > *,
.metric-card,
.feature-card,
.doc-card,
.price-card,
.contact-panel,
.dashboard-hero,
.panel-card,
.status-card,
.row-card,
.chart-card,
.legal-card,
.auth-modal,
.micro-card,
.auth-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand span,
.footer-mark {
  color: var(--muted);
}

.brand strong {
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark rect {
  fill: #ffffff;
  stroke: rgba(23, 87, 184, 0.18);
}

.brand-mark path {
  fill: url(#brandGradientInline);
}

.nav-links,
.nav-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.nav-actions span,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.is-active {
  color: var(--text);
  font-weight: 600;
}

.solid-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.solid-btn {
  background: linear-gradient(180deg, #1c63cf 0%, #1757b8 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

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

.ghost-btn {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  color: var(--text);
}

.ghost-btn:hover {
  background: #fff;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.92fr);
  gap: 18px;
  padding: 88px 0 20px;
  align-items: center;
  min-height: 78vh;
  position: relative;
}

.hero-copy {
  padding-top: 64px;
  position: relative;
  z-index: 2;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.dashboard-hero h1 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.hero-copy h1 {
  font-size: clamp(3.15rem, 6vw, 5.6rem);
  max-width: 10ch;
  color: #0a1730;
  font-weight: 780;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.hero-copy p,
.section-heading p,
.feature-card p,
.doc-card p,
.price-card p,
.panel-card p,
.legal-card p,
.row-card p,
.contact-form label,
.auth-footnote,
.auth-subtitle,
.auth-sidecard p,
.micro-card p,
.auth-preview-card p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-copy p {
  max-width: 32ch;
  font-size: 1rem;
}

.eyebrow,
.panel-label,
.auth-kicker,
.overlay-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.hero-signal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-signal-line span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.68),
    0 10px 24px rgba(84, 105, 138, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.hero-signal-line b {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-signal-line strong {
  color: #0f2038;
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-stack {
  display: grid;
  gap: 0;
  grid-template-rows: 1fr;
  align-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 660px;
}

.hero-stack::before {
  content: "";
  position: absolute;
  width: 920px;
  height: 920px;
  right: -230px;
  top: -150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 41% 34%, rgba(255,255,255,0.84) 0 7%, rgba(255,255,255,0.14) 8%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 50%, rgba(36, 116, 255, 0.24) 0%, rgba(98, 170, 255, 0.16) 28%, rgba(255,255,255,0.05) 52%, rgba(255,255,255,0) 74%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.16), rgba(255,255,255,0.01) 66%, rgba(255,255,255,0) 74%);
  box-shadow:
    inset 0 0 72px rgba(255,255,255,0.22),
    inset -90px -110px 180px rgba(43, 104, 199, 0.04),
    0 0 130px rgba(98, 170, 255, 0.1);
  border: 0;
  filter: saturate(1.04);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.hero-stack::after {
  content: "";
  position: absolute;
  width: 980px;
  height: 980px;
  right: -270px;
  top: -200px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.16) 0 58%, rgba(255,255,255,0) 74%),
    repeating-radial-gradient(circle at center, rgba(180,220,255,0.16) 0 1px, transparent 1px 54px);
  opacity: 0.1;
  mask-image: radial-gradient(circle at center, black 0 65%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

.hero-stack > * {
  position: relative;
  z-index: 1;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h3,
.auth-sidecard h3,
.auth-preview-head h3 {
  margin: 8px 0 0;
  font-size: 1.1rem;
  color: #0f2038;
}

.panel-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.response-card {
  border-radius: 34px;
  padding: 24px 24px 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  max-width: 540px;
  justify-self: end;
  margin-right: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 30px 80px rgba(54, 88, 144, 0.12);
}

.lookup-intro {
  margin-bottom: 14px;
  color: rgba(38, 65, 104, 0.76);
  font-size: 0.95rem;
  line-height: 1.55;
}

.code-block {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.74;
  color: #1a2b47;
  white-space: pre-wrap;
}

.code-block-lg {
  min-height: 220px;
  padding: 18px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.lookup-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.lookup-stat {
  padding: 14px 15px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255,255,255,0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.lookup-stat b {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.lookup-stat strong {
  color: #102443;
  font-size: 0.95rem;
  line-height: 1.35;
}

.micro-grid,
.metrics-grid,
.feature-grid,
.doc-list,
.pricing-grid,
.dashboard-grid,
.status-grid {
  display: grid;
  gap: 18px;
}

.micro-grid {
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: start;
  padding-bottom: 36px;
}

.micro-card {
  border-radius: 999px;
  padding: 12px 16px;
  min-height: 0;
  background: rgba(255,255,255,0.26);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 10px 22px rgba(84, 105, 138, 0.06);
}

.micro-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.micro-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

.metric-card,
.feature-card,
.doc-card,
.price-card,
.contact-panel,
.dashboard-hero,
.panel-card,
.status-card,
.row-card,
.chart-card,
.legal-card,
.micro-card,
.auth-preview {
  border-radius: var(--radius);
}

.content-section,
.inner-page,
.app-main {
  padding-bottom: 56px;
}

.section-heading {
  max-width: 780px;
  padding: 10px 0 26px;
}

.section-heading h1,
.section-heading h2,
.dashboard-hero h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.feature-grid,
.doc-list,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.doc-card,
.price-card,
.panel-card,
.legal-card {
  padding: 24px;
  min-height: 160px;
  background: rgba(255,255,255,0.46);
}

.content-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-cloud span,
.method-pill {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
  color: var(--text);
}

.auth-preview {
  padding: 22px;
  min-height: 100%;
}

.auth-preview-head {
  margin-bottom: 16px;
}

.auth-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-preview-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.54);
  min-height: 132px;
}

.auth-preview-card strong {
  display: block;
  margin-bottom: 8px;
}

.price {
  margin: 10px 0;
  font-size: 2rem;
  font-weight: 700;
}

.inline-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-panel {
  padding: 26px;
}

.contact-form,
.auth-form {
  display: grid;
  gap: 16px;
}

.contact-form label,
.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 87, 184, 0.09);
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;
}

.check-row input {
  min-height: 18px;
  height: 18px;
  margin-top: 3px;
}

.check-row span {
  color: var(--muted);
}

.check-row a,
.auth-actions-inline a {
  color: var(--accent);
}

.app-main {
  padding-top: 48px;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.status-stack {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.status-card {
  padding: 18px 20px;
}

.status-card span,
.row-card h4 {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-card strong {
  font-size: 1.8rem;
}

.dashboard-grid,
.status-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

.list-shell {
  display: grid;
  gap: 14px;
}

.row-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 18px;
  padding: 22px;
}

.audit-index {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}

.chart-card {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  min-height: 320px;
  padding: 24px;
}

.bar-item {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.bar {
  width: 100%;
  max-width: 70px;
  min-height: 24px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #76a4eb 0%, #1757b8 100%);
}

.legal-page {
  max-width: 880px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 28px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: start;
}

.footer-mark {
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 540px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 43, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
  backdrop-filter: blur(4px);
}

.auth-modal {
  width: min(100%, 840px);
  border-radius: 28px;
  padding: 24px;
}

.auth-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.auth-modal-head h2 {
  margin: 8px 0 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 8px 0 0;
  max-width: 52ch;
}

.modal-close {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 18px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px);
}

.auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(84, 105, 138, 0.12);
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid #d7e6ff;
  color: var(--text);
}

.notice.error {
  background: #fff4f3;
  border-color: #f1d0cb;
  color: var(--danger);
}

.auth-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.auth-pane,
.auth-sidecard {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(1.25);
}

.auth-submit {
  margin-top: 2px;
}

.auth-pane-block {
  display: none;
}

.auth-pane-block.is-active {
  display: block;
}

.auth-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  cursor: pointer;
}

.auth-sidecard-list,
.auth-steps {
  margin: 0;
  padding: 0;
}

.auth-sidecard-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.auth-sidecard-list li {
  padding-left: 18px;
  position: relative;
}

.auth-sidecard-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 87, 184, 0.4);
}

.code-preview {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--panel-alt);
  border: 1px dashed var(--line-strong);
}

.code-preview-label,
.code-preview-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.code-preview-value {
  margin: 8px 0;
  font-family: var(--font-mono);
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--text);
}

.auth-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.auth-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-step p {
  margin: 2px 0 0;
  color: var(--muted);
}

.auth-actions-inline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-shell,
  .content-split,
  .feature-grid,
  .doc-list,
  .pricing-grid,
  .dashboard-grid,
  .status-grid,
  .micro-grid,
  .auth-modal-grid {
    grid-template-columns: 1fr;
  }

  .response-card {
    max-width: none;
    justify-self: stretch;
  }

  .hero-signal-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .lookup-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-hero,
  .site-footer,
  .nav-shell,
  .row-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions,
  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero-copy h1 {
    font-size: 2.72rem;
  }

  .hero-stack::before,
  .hero-stack::after {
    width: 460px;
    height: 460px;
    right: -120px;
    top: -40px;
  }

  .hero-orbit-card {
    min-width: 0;
  }

  .hero-stack {
    grid-template-rows: auto auto;
  }

  .hero-actions,
  .nav-links,
  .nav-actions,
  .footer-links,
  .auth-actions-inline,
  .auth-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-preview-grid,
  .chart-card {
    grid-template-columns: 1fr;
  }
}
