:root {
  --bg: #f8fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #eff6ff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --line: #dbeafe;
  --line-strong: #cbd5e1;
  --blue-500: #2563eb;
  --blue-600: #1d4ed8;
  --blue-700: #1e40af;
  --blue-950: #172554;
  --slate-950: #020617;
  --success: #166534;
  --success-bg: #dcfce7;
  --error: #b91c1c;
  --error-bg: #fee2e2;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 12px 35px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 48%, #f8fbff 100%);
}

img {
  max-width: 100%;
  height: auto;
}

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

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

.page-glow {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
}

.page-glow-a {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: rgba(37, 99, 235, 0.18);
}

.page-glow-b {
  width: 300px;
  height: 300px;
  right: -60px;
  bottom: 8%;
  background: rgba(30, 64, 175, 0.12);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(203, 213, 225, 0.75);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(219, 234, 254, 0.92));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-700);
  outline: none;
}

.site-main {
  padding: 28px 0 56px;
}

.site-footer {
  border-top: 1px solid rgba(203, 213, 225, 0.75);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 34px;
}

.footer-title {
  font-weight: 900;
  font-size: 1rem;
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--ink-muted);
  max-width: 620px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.flash {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
}

.flash-title {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flash--success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(22, 101, 52, 0.18);
}

.flash--error {
  background: var(--error-bg);
  color: var(--error);
  border-color: rgba(185, 28, 28, 0.18);
}

.flash--warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: rgba(180, 83, 9, 0.18);
}

.flash--info {
  background: var(--info-bg);
  color: var(--info);
  border-color: rgba(29, 78, 216, 0.18);
}

.hero {
  background: linear-gradient(145deg, var(--slate-950) 0%, var(--blue-950) 48%, var(--blue-600) 100%);
  border-radius: 36px;
  color: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16);
}

.hero-title {
  margin: 22px 0 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-copy,
.hero-text {
  max-width: 720px;
}

.hero-text {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.hero-side,
.stack,
.aside-stack,
.card-stack {
  display: grid;
  gap: 16px;
}

.hero-mini-card,
.card,
.metric-card,
.auth-card,
.notice-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(219, 234, 254, 0.96);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-mini-card {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  padding: 22px;
}

.hero-mini-kicker,
.card-kicker,
.section-kicker,
.metric-label,
.auth-kicker {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-mini-kicker {
  color: #bfdbfe;
}

.hero-mini-title {
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.hero-mini-copy {
  margin: 10px 0 0;
  color: #dbeafe;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-sm {
  padding: 11px 15px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--blue-500);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-600);
}

.btn-secondary {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--blue-700);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(37, 99, 235, 0.32);
  background: #eff6ff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 219, 254, 0.2);
  color: #dbeafe;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.page-section {
  margin-top: 36px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.crumbs a {
  color: var(--blue-600);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.crumb-sep {
  color: #94a3b8;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.grid-3,
.grid-2,
.split-layout,
.auth-grid,
.metric-grid {
  display: grid;
  gap: 18px;
}

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.metric-card,
.auth-card,
.notice-card {
  padding: 24px;
}

.card-link {
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
  outline: none;
}

.card-kicker,
.section-kicker,
.metric-label,
.auth-kicker {
  color: var(--blue-600);
}

.card-title {
  margin: 14px 0 0;
  font-size: 1.7rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.card-copy {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.link-row {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-link-mark {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 900;
}

.card-link:hover .card-title,
.card-link:focus-visible .card-title,
.card-link:hover .link-row,
.card-link:focus-visible .link-row,
.card-link:hover .card-link-mark,
.card-link:focus-visible .card-link-mark {
  color: var(--blue-700);
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(219, 234, 254, 0.95);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(239, 246, 255, 0.9));
  color: var(--ink-soft);
  line-height: 1.7;
}

.check-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue-700);
  font-weight: 900;
  margin-top: 2px;
}

.sidebar-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.92));
  border: 1px solid rgba(219, 234, 254, 0.96);
  color: var(--ink);
  font-weight: 800;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: #eff6ff;
  color: var(--blue-700);
  border-color: rgba(37, 99, 235, 0.18);
  outline: none;
}

.metric-value {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.metric-copy {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.auth-wrap {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-title {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.auth-lead {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.field-label {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.field-input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap .field-input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.helper-text {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.field-errors {
  display: grid;
  gap: 4px;
  color: var(--error);
  font-size: 0.86rem;
  font-weight: 700;
}

.notice-card {
  margin-top: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.16);
}

.notice-title {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.notice-copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin-top: 18px;
}

.auth-links a {
  color: var(--blue-600);
  font-weight: 800;
}

.auth-links a:hover,
.auth-links a:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.text-link {
  color: var(--blue-600);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.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;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .grid-3,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .site-footer-inner,
  .section-head {
    align-items: flex-start;
  }

  .site-footer-inner,
  .section-head {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header-inner {
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .card,
  .metric-card,
  .auth-card,
  .notice-card {
    padding: 20px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-sm {
    width: 100%;
  }

  .brand-copy {
    gap: 0;
  }
}
