:root {
  color-scheme: light;
  --blue-night: #0a172c;
  --blue-night-soft: rgba(10, 23, 44, 0.72);
  --blue: #0066ff;
  --blue-strong: #0050c6;
  --blue-cloudy: #6998cd;
  --blue-sky: #9fc7f4;
  --ice: #ebf4ff;
  --paper: #f8fbff;
  --white: #ffffff;
  --ink: #0a172c;
  --muted: rgba(10, 23, 44, 0.68);
  --muted-strong: rgba(10, 23, 44, 0.84);
  --line: rgba(79, 124, 178, 0.18);
  --line-strong: rgba(255, 255, 255, 0.18);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-soft: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --shadow: 0 30px 50px 0 rgba(105, 152, 205, 0.3);
  --shadow-soft: 0 8px 11.8px 0 rgba(0, 102, 255, 0.08);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 10px;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(159, 199, 244, 0.46), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(0, 102, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #edf5ff 0%, #f7fbff 38%, #eef5ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(10, 23, 44, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 23, 44, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 86%);
  pointer-events: none;
}

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

p,
ul,
h1,
h2,
h3 {
  margin-top: 0;
}

.page-shell {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 72px 0 auto auto;
  width: min(28vw, 360px);
  height: min(28vw, 360px);
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18), rgba(0, 102, 255, 0));
  filter: blur(14px);
  pointer-events: none;
}

.page-shell-legal {
  max-width: 1280px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(10, 23, 44, 0.96), rgba(10, 23, 44, 0.88));
  box-shadow: 0 24px 40px rgba(10, 23, 44, 0.18);
  backdrop-filter: blur(16px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 30px;
  /* logo SVG is dark; invert to render white on dark navy header */
  filter: brightness(0) invert(1);
}

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

.brand-copy strong,
h1,
h2,
h3,
.button,
.nav-link {
  font-family: "DM Sans", sans-serif;
}

.brand-copy strong {
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
}

.brand-copy span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link,
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-link {
  padding: 8px 18px;
  border: 2px solid transparent;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.nav-link.current {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-night);
  box-shadow: 0 12px 22px rgba(10, 23, 44, 0.16);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-button.active {
  background: var(--white);
  color: var(--blue-night);
  box-shadow: 0 10px 22px rgba(10, 23, 44, 0.18);
}

.surface {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(10, 23, 44, 0.08);
  backdrop-filter: blur(12px);
}

.surface-hero {
  background:
    linear-gradient(165deg, rgba(0, 102, 255, 0.1) 30%, rgba(0, 102, 255, 0) 81%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    var(--surface-strong);
  overflow: hidden;
}

.surface-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -130px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 199, 244, 0.48), rgba(159, 199, 244, 0));
  pointer-events: none;
}

.surface-panel {
  background:
    linear-gradient(180deg, rgba(10, 23, 44, 0.98), rgba(10, 23, 44, 0.92));
  color: white;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 50px 0 rgba(33, 80, 124, 0.34);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.legal-card,
.legal-intro,
.checklist-block,
.info-grid .surface {
  position: relative;
  padding: 30px;
}

.kicker,
.section-label,
.panel-label {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.88rem;
  font-weight: 500;
}

.panel-label {
  color: rgba(255, 255, 255, 0.6);
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 5.2vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-text,
.surface p,
.panel-list,
.content-list,
.legal-card ul,
.site-footer,
.brand-copy span:last-child {
  color: var(--muted);
  line-height: 1.66;
}

.hero-text {
  max-width: 920px;
  color: var(--muted-strong);
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button-primary {
  background: var(--blue-night);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--blue-cloudy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue);
  box-shadow: var(--shadow);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(10, 23, 44, 0.08);
}

.panel-list,
.content-list {
  margin: 0;
  padding-left: 1.2rem;
}

.panel-list {
  color: rgba(255, 255, 255, 0.84);
}

.panel-list li::marker,
.content-list li::marker {
  color: var(--blue-cloudy);
}

.panel-list li + li,
.content-list li + li {
  margin-top: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.checklist-block {
  margin-top: 20px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.check-grid article {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 244, 255, 0.86));
  box-shadow: inset 0 0 0 1px rgba(79, 124, 178, 0.12), var(--shadow-soft);
}

.legal-layout {
  display: grid;
  gap: 20px;
}

.legal-card,
.legal-intro,
.checklist-block,
.info-grid .surface {
  border-color: rgba(255, 255, 255, 0.92);
}

.legal-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
}

.legal-card h2:not(:first-child) {
  margin-top: 28px;
}

.site-footer {
  margin-top: 26px;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--ink);
}

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

@media (max-width: 980px) {
  .hero-section,
  .info-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: 14px;
  }

  .site-header {
    padding: 16px;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .legal-card,
  .legal-intro,
  .checklist-block,
  .info-grid .surface {
    padding: 22px;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .surface,
  .site-header,
  .site-footer {
    animation: rise 0.55s ease both;
  }

  .hero-panel {
    animation-delay: 0.08s;
  }

  .info-grid .surface:nth-child(2) {
    animation-delay: 0.12s;
  }

  .info-grid .surface:nth-child(3) {
    animation-delay: 0.18s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* connect page additions */
.status-banner {
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border, #d8d4cc);
  background: var(--surface-soft, #f6f3ec);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status-banner.ok {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.status-banner.warn {
  border-color: #b26a00;
  background: #fff4e0;
  color: #6b3e00;
}

.status-banner.err {
  border-color: #b71c1c;
  background: #fdecea;
  color: #7a1212;
}

.fine-print {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted, #6b665d);
}

.panel-list code {
  display: inline-block;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
}
