:root {
  color-scheme: dark;
  --navy-950: #031126;
  --navy-900: #061b38;
  --navy-800: #0a2b53;
  --blue-500: #1b78d0;
  --blue-300: #65b8f1;
  --white: #f6fbff;
  --muted: rgba(230, 244, 255, 0.72);
  --glass: rgba(5, 24, 48, 0.52);
  --glass-border: rgba(193, 225, 248, 0.16);
  --shadow: 0 24px 80px rgba(0, 8, 24, 0.34);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 137, 204, 0.24), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(48, 113, 183, 0.18), transparent 40%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 46%, #09294e 100%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient__glow {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient__glow--one {
  top: -18rem;
  left: -12rem;
  background: #238bd4;
}

.ambient__glow--two {
  right: -18rem;
  bottom: -24rem;
  background: #1559a7;
  animation-delay: -9s;
}

.ambient__mark {
  position: absolute;
  width: min(74vw, 64rem);
  right: -10vw;
  bottom: -25vw;
  opacity: 0.055;
  filter: blur(1px);
  transform: rotate(-8deg);
}

.site-header {
  flex: 0 0 auto;
  width: min(1180px, calc(100% - 36px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0, 75, 144, 0.28);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(4, 18, 37, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 6, 18, 0.2);
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.site-nav a.is-active {
  color: var(--white);
  background: linear-gradient(180deg, rgba(69, 148, 211, 0.48), rgba(28, 91, 150, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page--home {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vh, 40px) 0;
}

.hero {
  width: min(760px, 92vw);
  min-height: 0;
  display: grid;
  place-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(58vw, 540px);
  height: min(58vw, 540px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 171, 235, 0.18), transparent 68%);
  filter: blur(10px);
}

.hero__mark {
  position: relative;
  width: clamp(190px, 42vw, 370px);
  border-radius: 28%;
  filter: drop-shadow(0 32px 64px rgba(0, 11, 36, 0.46));
  animation: float 7s ease-in-out infinite;
}

.page--document {
  flex: 1 0 auto;
  padding: 64px 0 120px;
}

.document-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(14, 45, 78, 0.56), var(--glass));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.document-shell:empty::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  min-height: 48vh;
}

.document-content {
  line-height: 1.7;
}

.document-content h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
}

.document-content h2 {
  margin-top: 2.5rem;
  padding-top: 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.document-content p,
.document-content li {
  color: rgba(240, 248, 255, 0.88);
}

.document-content a {
  color: var(--blue-300);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue-300) !important;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}

.guide-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 2rem 0 2.5rem;
}

.guide-index a {
  padding: 0.8rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 650;
  text-decoration: none;
}

.guide-index a:hover,
.guide-index a:focus-visible {
  background: rgba(101, 184, 241, 0.12);
  outline: 2px solid rgba(101, 184, 241, 0.5);
  outline-offset: 2px;
}

.guide-note {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 3px solid var(--blue-300);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

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

.about-card {
  padding: 1.4rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.about-card h2 {
  margin-top: 1rem;
  padding-top: 0;
}

.about-card__logo {
  display: flex;
  width: min(100%, 168px);
  min-height: 49px;
  padding: 6px 11px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.about-card__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-card__meta {
  margin-bottom: 0;
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.site-footer {
  flex: 0 0 auto;
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--glass-border);
  color: rgba(230, 244, 255, 0.58);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__company img {
  display: block;
  width: 72px;
  height: 36px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

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

.footer-nav a {
  color: rgba(230, 244, 255, 0.64);
  text-underline-offset: 3px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a.is-active {
  color: var(--white);
}

.document-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.document-content th,
.document-content td {
  min-width: 12rem;
  padding: 0.8rem;
  border: 1px solid var(--glass-border);
  text-align: left;
  vertical-align: top;
}

.document-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--blue-300);
  background: rgba(255, 255, 255, 0.04);
}

.updates-shell h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
}

.updates-panel {
  margin-top: 2rem;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.updates-panel h2 {
  margin: 0 0 1rem;
}

.updates-form label:not(.updates-check) {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.updates-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(193, 225, 248, 0.34);
  border-radius: 12px;
  color: var(--white);
  background: rgba(3, 17, 38, 0.72);
  font: inherit;
}

.updates-form input:focus-visible,
.updates-form button:focus-visible,
.updates-unsubscribe summary:focus-visible {
  outline: 3px solid rgba(101, 184, 241, 0.64);
  outline-offset: 3px;
}

.updates-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: rgba(240, 248, 255, 0.88);
}

.updates-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.updates-form button {
  min-height: 48px;
  margin-top: 1.35rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #258ad5, #1465ab);
  box-shadow: 0 12px 28px rgba(0, 74, 145, 0.28);
  font: 750 1rem/1.2 inherit;
  cursor: pointer;
}

.updates-form button:hover {
  filter: brightness(1.08);
}

.updates-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.updates-form .button--secondary {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.updates-result {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #5ed6ae;
  border-radius: 8px;
  color: rgba(240, 248, 255, 0.92);
  background: rgba(34, 142, 111, 0.14);
}

.updates-result--error {
  border-left-color: #f2a78f;
  background: rgba(180, 76, 52, 0.14);
}

.updates-unsubscribe {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.updates-unsubscribe summary {
  color: var(--blue-300);
  font-weight: 700;
  cursor: pointer;
}

.updates-unsubscribe p,
.updates-privacy {
  color: rgba(240, 248, 255, 0.78);
}

.updates-privacy {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.updates-privacy a {
  color: var(--blue-300);
}

.updates-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes float {
  from,
  to { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4rem, 2rem, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(1180px, calc(100% - 8px));
    min-height: 0;
    padding: 16px 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(5px, 1.4vw, 9px);
  }

  .brand {
    flex: 0 1 auto;
    gap: clamp(7px, 1.8vw, 11px);
    font-size: clamp(0.96rem, 3.8vw, 1.2rem);
    white-space: nowrap;
  }

  .brand img {
    width: clamp(42px, 10.5vw, 54px);
    height: clamp(42px, 10.5vw, 54px);
    border-radius: clamp(12px, 3vw, 15px);
  }

  .site-nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
    gap: 0;
    padding: clamp(5px, 1vw, 7px);
    border-radius: 999px;
  }

  .site-nav a {
    min-width: 0;
    padding: clamp(10px, 2.4vw, 13px) clamp(6px, 2vw, 12px);
    font-size: clamp(0.78rem, 3.2vw, 1rem);
    text-align: center;
    white-space: nowrap;
  }

  .page--home {
    padding: 10px 0 16px;
  }

  .page--document {
    padding: 20px 0 32px;
  }

  .document-shell {
    min-height: 68vh;
    border-radius: 24px;
  }

  .guide-index {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    width: min(1180px, calc(100% - 28px));
    min-height: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    align-items: center;
    flex-direction: column;
    gap: 7px;
    text-align: center;
    font-size: 0.72rem;
  }

  .site-footer__company {
    flex-direction: column;
    gap: 5px;
  }

  .site-footer__company img {
    width: 64px;
    height: 32px;
  }

  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 340px) {
  .brand span {
    display: none;
  }
}
