:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand-primary: #015b91;
  --brand-secondary: #d9e6fe;
  --brand-accent: #8ebcfd;
  --surface-1: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.58);
  --surface-3: rgba(255, 255, 255, 0.28);
  --surface-border: rgba(255, 255, 255, 0.32);
  --text-primary: #101828;
  --text-muted: #475467;
  --shadow-soft: 0 32px 72px -36px rgba(15, 23, 42, 0.55);
  --shadow-intent: 0 24px 36px -28px rgba(79, 70, 229, 0.45);
  --glow-one: rgba(129, 197, 255, 0.65);
  --glow-two: rgba(116, 76, 232, 0.55);
  --outline-strong: rgba(255, 255, 255, 0.7);
  --outline-soft: rgba(255, 255, 255, 0.24);
  --transition-speed: 240ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: rgba(13, 19, 33, 0.88);
  --surface-2: rgba(24, 32, 52, 0.74);
  --surface-3: rgba(24, 32, 52, 0.36);
  --surface-border: rgba(93, 106, 148, 0.32);
  --text-primary: #f8fafc;
  --text-muted: rgba(208, 213, 221, 0.82);
  --shadow-soft: 0 38px 88px -42px rgba(4, 10, 24, 0.85);
  --shadow-intent: 0 24px 46px -28px rgba(99, 102, 241, 0.62);
  --glow-one: rgba(53, 129, 255, 0.4);
  --glow-two: rgba(153, 87, 255, 0.4);
  --outline-strong: rgba(148, 163, 184, 0.55);
  --outline-soft: rgba(67, 89, 132, 0.32);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: clamp(24px, 5vh, 72px) clamp(18px, 6vw, 92px);
  font-family: "Inter", "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.5) 100%),
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0) 59%, rgba(255, 255, 255, 0.38) 100%),
    linear-gradient(135deg, rgba(1, 91, 145, 0.95), rgba(142, 188, 253, 0.88));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-speed) ease;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
  background: radial-gradient(140% 140% at 100% 0%, rgba(53, 80, 144, 0.14) 0%, rgba(9, 12, 24, 0.92) 60%),
    radial-gradient(110% 110% at 0% 0%, rgba(111, 87, 232, 0.2) 0%, rgba(6, 10, 30, 0.96) 55%),
    linear-gradient(135deg, rgba(9, 12, 24, 0.96), rgba(26, 41, 77, 0.92));
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.85;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

body::before {
  top: -220px;
  right: -180px;
  background: var(--glow-one);
}

body::after {
  bottom: -240px;
  left: -200px;
  background: var(--glow-two);
}

body[data-theme="dark"]::before,
body[data-theme="dark"]::after {
  opacity: 0.55;
}

.main-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  background: var(--surface-1);
  border-radius: 32px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  padding: clamp(32px, 6vw, 64px);
  backdrop-filter: blur(24px) saturate(140%);
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  overflow: hidden;
}

.main-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.12));
  mix-blend-mode: screen;
  opacity: 0.7;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar__tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--outline-soft);
  backdrop-filter: blur(18px);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border var(--transition-speed) ease;
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.theme-icon {
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  color: inherit;
}

.theme-icon--moon {
  opacity: 0;
  transform: scale(0.7) translateY(2px);
}

body[data-theme="dark"] .theme-icon--moon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

body[data-theme="dark"] .theme-icon--sun {
  opacity: 0;
  transform: scale(0.6) translateY(-4px);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-intent);
  border-color: var(--outline-strong);
}

.theme-toggle:focus-visible {
  outline: none;
}

.hero {
  display: grid;
  gap: clamp(14px, 2.6vw, 24px);
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.hero-logo img {
  width: clamp(150px, 17vw, 220px);
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.18));
}

.hero-brief {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--outline-soft);
  letter-spacing: 0.02em;
}

.status-pill svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 520px;
}

.meta-panel {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.meta-panel strong {
  color: var(--text-primary);
  font-weight: 600;
}

.meta-panel a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.meta-panel a:hover,
.meta-panel a:focus-visible {
  color: var(--text-primary);
}

.insights {
  display: grid;
  gap: 18px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.insight-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--outline-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.insight-card:hover,
.insight-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-intent);
}

.insight-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.insight-value {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
}

.actions {
  display: grid;
  gap: 20px;
}

.actions-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface-2);
  border-radius: 24px;
  border: 1px solid var(--outline-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), var(--shadow-intent);
  display: grid;
  gap: 24px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border var(--transition-speed) ease;
}

[data-theme="dark"] .action-link,
body[data-theme="dark"] .action-link {
  background: linear-gradient(135deg, rgba(28, 36, 60, 0.9), rgba(36, 44, 74, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.action-link span {
  font-weight: 600;
  font-size: 16px;
}

.action-link svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
}

[data-theme="dark"] .action-link svg,
body[data-theme="dark"] .action-link svg {
  color: rgba(167, 197, 255, 0.88);
}

.action-link:hover,
.action-link:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-intent);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.action-link:focus-visible {
  outline: none;
}
.form-card {
  padding: clamp(26px, 3vw, 36px);
  background: var(--surface-2);
  border-radius: 24px;
  border: 1px solid var(--outline-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-soft);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.form-card header {
  display: grid;
  gap: 6px;
}

.form-card header h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
}

.form-card header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: clamp(16px, 2vw, 20px);
}

.form-step {
  display: none;
  gap: clamp(18px, 2.6vw, 26px);
}

.form-step.is-active {
  display: grid;
}

.form-grid--columns {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.6vw, 24px);
}

.form-section {
  display: grid;
  gap: 14px;
}

.form-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

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

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-control {
  appearance: none;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--outline-soft);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 15px;
  transition: border var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background var(--transition-speed) ease;
}

.input-control:focus-visible {
  outline: none;
  border: 1px solid var(--outline-strong);
  box-shadow: 0 0 0 4px rgba(142, 188, 253, 0.25);
}

.input-control::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

body[data-theme="dark"] .input-control,
[data-theme="dark"] .input-control {
  background: rgba(21, 28, 45, 0.9);
  border-color: rgba(74, 86, 115, 0.45);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.form-actions__group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}



.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border var(--transition-speed) ease, background var(--transition-speed) ease;
}

.button-primary {
  background: linear-gradient(135deg, rgba(1, 91, 145, 0.95), rgba(142, 188, 253, 0.92));
  color: #ffffff;
  box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.55);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(14, 22, 42, 0.6);
}

.button-primary:focus-visible {
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.button-secondary {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--outline-soft);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-intent);
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
}

.form-footnote {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-footnote + .form-footnote {
  margin-top: 6px;
}

.helper-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.status-feedback {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(142, 188, 253, 0.32);
  background: rgba(142, 188, 253, 0.14);
  color: var(--text-primary);
  font-size: 14px;
  display: none;
}

.status-feedback--error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

body[data-theme="dark"] .status-feedback {
  background: rgba(89, 109, 171, 0.22);
  border-color: rgba(89, 109, 171, 0.32);
  color: rgba(226, 232, 240, 0.94);
}

body[data-theme="dark"] .status-feedback--error {
  background: rgba(248, 113, 113, 0.1);
  color: rgba(254, 202, 202, 0.92);
  border-color: rgba(248, 113, 113, 0.3);
}

.password-toggle {
  position: relative;
}

.password-toggle button {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.password-toggle button:hover {
  color: var(--text-primary);
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(142, 188, 253, 0.6);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--text-primary);
}

body[data-theme="dark"] .button-primary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(129, 140, 248, 0.9));
}

body[data-theme="dark"] .button-secondary {
  background: rgba(34, 44, 76, 0.8);
}



.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.noscript-note {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 175, 0, 0.1);
  color: #9a3412;
  font-size: 13px;
  border: 1px solid rgba(255, 175, 0, 0.3);
}

[data-theme="dark"] .noscript-note,
body[data-theme="dark"] .noscript-note {
  background: rgba(255, 175, 0, 0.1);
  color: rgba(255, 219, 161, 0.92);
  border-color: rgba(255, 175, 0, 0.35);
}

@media (max-width: 860px) {
  body {
    padding: 24px;
  }

  .main-shell {
    padding: 28px;
    border-radius: 28px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(32px, 7vw, 46px);
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
