:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --page: #f7f9fc;
  --panel: #ffffff;
  --panel-border: #e4e8f0;
  --primary: #3357d6;
  --primary-dark: #2544b5;
  --mint: #168b72;
  --purple: #6c63e8;
  --danger: #c53b52;
  --success: #137a62;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--page); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(108, 99, 232, 0.09), transparent 28rem),
    radial-gradient(circle at 94% 82%, rgba(22, 139, 114, 0.08), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 55%, #f3f7f8 100%);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(218, 223, 233, 0.9);
  box-shadow: 0 8px 28px rgba(25, 38, 70, 0.045);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  text-decoration: none;
}
.header-brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(66, 63, 160, 0.16));
}
.header-brand-text { width: 146px; height: auto; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.1vw, 32px); }
.header-nav a {
  color: #475467;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.header-nav > a:hover { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.menu-chevron { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease; }
.nav-dropdown[open] .menu-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  z-index: 70;
  display: grid;
  min-width: 240px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e1e5ed;
  border-radius: 15px;
  box-shadow: 0 22px 55px rgba(28, 42, 73, 0.16);
}
.products-menu { left: -18px; }
.dropdown-menu::before { content: ""; position: absolute; top: -24px; right: 0; left: 0; height: 24px; }
.dropdown-menu a { display: grid; gap: 3px; padding: 11px 12px; border-radius: 10px; }
.dropdown-action { width: 100%; padding: 11px 12px; color: #475467; background: transparent; border: 0; border-radius: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.dropdown-action:hover { color: var(--primary); background: #f5f7ff; }
.dropdown-menu a:hover { color: var(--primary); background: #f5f7ff; }
.dropdown-menu a strong { color: #273142; font-size: 0.86rem; }
.dropdown-menu a span { color: #7a8495; font-size: 0.72rem; font-weight: 500; }
.account-trigger { padding: 9px 12px; color: #fff !important; background: var(--primary); border-radius: 12px; box-shadow: 0 8px 20px rgba(51, 87, 214, 0.18); }
.account-avatar, .mini-profile-avatar { display: grid; place-items: center; border-radius: 50%; }
.account-avatar { width: 25px; height: 25px; color: var(--primary); background: #fff; }
.account-avatar svg, .mini-profile-avatar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-menu { right: 0; min-width: 245px; }
.account-dropdown { justify-self: end; }
.mini-profile { display: flex; align-items: center; gap: 11px; margin: 2px 2px 7px; padding: 10px; background: #f7f8fc; border-radius: 11px; }
.mini-profile-avatar { flex: 0 0 auto; width: 38px; height: 38px; color: #fff; background: linear-gradient(145deg, var(--primary), var(--purple)); }
.mini-profile-avatar svg { width: 21px; height: 21px; }
.mini-profile > span:last-child { display: grid; gap: 2px; min-width: 0; }
.mini-profile strong { color: #273142; font-size: 0.82rem; }
.mini-profile small { overflow: hidden; color: #7a8495; font-size: 0.69rem; text-overflow: ellipsis; white-space: nowrap; }

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
}
.ambient-one { top: -15rem; right: -9rem; background: var(--purple); }
.ambient-two { bottom: -18rem; left: -10rem; background: #48c5a6; }

.landing {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 56px 0 76px;
}

.brand-stage { display: grid; justify-items: center; text-align: center; }
.home-brand { display: grid; justify-items: center; gap: 18px; }
.home-brand-icon { width: clamp(190px, 26vw, 300px); height: auto; filter: drop-shadow(0 24px 36px rgba(63, 61, 135, 0.13)); }
.home-brand-text { width: min(520px, 74vw); height: auto; }
.coming-soon { margin: 30px 0 0; color: #536076; font-size: clamp(0.8rem, 1.5vw, 0.95rem); font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; }
.launch-window {
  margin: 13px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #315be8;
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.launch-separator { color: #19bda9; }
.launch-calendar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 27px;
  margin-left: 1px;
  color: #315be8;
  border: 1px solid rgba(49,91,232,.3);
  border-radius: 8px;
  background: linear-gradient(145deg,#fff,#f1f5ff);
  box-shadow: 0 6px 18px rgba(49,91,232,.14);
  animation: launch-calendar-float 2.4s ease-in-out infinite;
}
.launch-calendar svg { position: absolute; inset: 3px; width: 22px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: .62; }
.launch-calendar__dots { position: absolute; left: 50%; bottom: 6px; display: flex; gap: 2px; transform: translateX(-50%); }
.launch-calendar__dots i { width: 3px; height: 3px; border-radius: 50%; background: #19bda9; animation: launch-calendar-dot 1.2s ease-in-out infinite; }
.launch-calendar__dots i:nth-child(2) { animation-delay: .16s; }
.launch-calendar__dots i:nth-child(3) { animation-delay: .32s; }
@keyframes launch-calendar-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(3deg); } }
@keyframes launch-calendar-dot { 0%,65%,100% { opacity: .28; transform: scale(.7); } 30% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .launch-calendar,.launch-calendar__dots i { animation: 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; }
.logo-halo {
  position: relative;
  width: min(330px, 62vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-left: -22px;
  border: 1px solid #e5e8f6;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f6f6ff 47%, rgba(245, 247, 252, 0.2) 70%);
  box-shadow: 0 30px 70px rgba(63, 66, 122, 0.09), inset 0 0 70px rgba(108, 99, 232, 0.04);
}
.logo-halo::before,
.logo-halo::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(108, 99, 232, 0.12);
  border-radius: 50%;
}
.logo-halo::before { inset: 10%; }
.logo-halo::after { inset: 21%; border-color: rgba(22, 139, 114, 0.12); }
.logo-halo img {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(62, 58, 138, 0.12));
}
.wordmark { margin-top: -8px; }
.brand-kicker,
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wordmark h1 {
  margin: 10px 0 5px;
  color: #111827;
  font-size: clamp(3rem, 6.2vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.wordmark > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }

.access-card {
  position: relative;
  z-index: 2;
  width: min(100%, 488px);
  min-height: 610px;
  max-height: calc(100vh - 40px);
  padding: clamp(30px, 5vw, 48px);
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(28, 45, 82, 0.12), 0 2px 8px rgba(28, 45, 82, 0.04);
  backdrop-filter: blur(18px);
}
.auth-overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; }
.auth-overlay:target { display: grid; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(27, 37, 60, 0.34); backdrop-filter: blur(7px); }
.auth-close { position: absolute; top: 15px; right: 15px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; color: #667085; background: #f4f6f9; border: 1px solid #e0e5ed; border-radius: 50%; font-size: 1.35rem; line-height: 1; text-decoration: none; }
.auth-close:hover { color: var(--primary); background: #edf1ff; }
.card-topline {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #55c9ad, var(--primary), transparent);
}
.access-heading h2 { margin: 11px 0 8px; color: #172033; font-size: clamp(1.9rem, 5vw, 2.55rem); letter-spacing: -0.04em; }
.access-heading > p:last-child { min-height: 44px; margin: 0; color: var(--muted); line-height: 1.55; }

.auth-form { display: grid; gap: 19px; margin-top: 30px; }
.field { display: grid; gap: 8px; }
.field label, .label-row { color: #344054; font-size: 0.87rem; font-weight: 700; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row label { font: inherit; }
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #d9dee8;
  border-radius: 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input::placeholder { color: #98a2b3; }
input:hover { border-color: #b7c0d0; }
input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(51, 87, 214, 0.11); }
.password-field { position: relative; }
.password-field input { padding-right: 82px; }
.reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 8px;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
  cursor: pointer;
}
.reveal:hover, .reveal:focus-visible { color: var(--primary); outline: 1px solid rgba(51, 87, 214, 0.24); }

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.return-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 28px; text-decoration: none; }
.primary-button { color: #fff; background: var(--primary); border: 1px solid var(--primary); box-shadow: 0 12px 28px rgba(51, 87, 214, 0.18); }
.secondary-button { color: #344054; background: #fff; border: 1px solid #d7dce6; }
.primary-button:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.secondary-button:hover { background: #f8f9fc; border-color: #b8c1d1; transform: translateY(-1px); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(51, 87, 214, 0.25); outline-offset: 2px; }
button:disabled { opacity: 0.56; cursor: wait; transform: none; }

.text-action,
.inline-legal,
.access-footer button { padding: 0; color: var(--primary); background: transparent; border: 0; cursor: pointer; }
.text-action:hover, .inline-legal:hover, .access-footer button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-action.strong { font-weight: 730; }
.switch-copy { margin: -3px 0 0; color: var(--muted); font-size: 0.88rem; text-align: center; }
.field-help { margin: 0; color: #7b8495; font-size: 0.76rem; line-height: 1.45; }
.check-row { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.check-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary); }
.inline-check-label { display: inline; color: inherit; font: inherit; cursor: pointer; }
.inline-legal { display: inline; font-size: inherit; }
.trap { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.status { display: none; margin: 18px 0 -10px; padding: 12px 14px; border-radius: 11px; font-size: 0.84rem; line-height: 1.45; }
.status.visible { display: block; }
.status.info { color: #32479b; background: #f0f3ff; border: 1px solid #ccd5ff; }
.status.error { color: #9d2940; background: #fff1f3; border: 1px solid #ffcbd3; }
.status.success { color: #11654f; background: #edfaf6; border: 1px solid #bdebdc; }

.account-panel { margin-top: 42px; text-align: center; }
.account-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: #fff; background: var(--success); border-radius: 50%; font-size: 1.5rem; font-weight: 900; box-shadow: 0 10px 28px rgba(19, 122, 98, 0.18); }
.account-panel h3 { margin: 0; font-size: 1.4rem; }
.account-panel p { margin: 10px 0 24px; color: var(--muted); line-height: 1.55; word-break: break-word; }
.account-panel .secondary-button { width: 100%; }
.account-panel .profile-link { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; text-decoration: none; }
.access-footer { position: absolute; right: 0; bottom: 21px; left: 0; display: flex; justify-content: center; gap: 9px; color: #98a2b3; font-size: 0.72rem; }
.access-footer button { color: #667085; font-size: inherit; }

.legal-dialog { width: min(620px, calc(100% - 32px)); padding: 0; color: var(--ink); background: #fff; border: 1px solid #e1e5ec; border-radius: 20px; box-shadow: 0 30px 90px rgba(26, 39, 67, 0.22); }
.legal-dialog::backdrop { background: rgba(23, 32, 51, 0.38); backdrop-filter: blur(5px); }
.dialog-content { position: relative; padding: 36px; }
.dialog-content h2 { margin: 9px 0 20px; font-size: 1.8rem; }
.dialog-content p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; color: #475467; background: #f6f7f9; border: 1px solid #e1e5ec; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.noscript { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 20; margin: 0; padding: 14px; color: #7a1f31; background: #ffe9ed; border-radius: 12px; text-align: center; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .header-inner { width: calc(100% - 28px); }
  .header-brand { gap: 5px; }
  .header-brand-icon { width: 36px; height: 36px; }
  .header-brand-text { width: 112px; }
  .header-nav { gap: 16px; }
  .header-nav a, .nav-dropdown summary { font-size: 0.9rem; }
  .account-trigger { padding: 8px 9px; }
  .landing { width: min(100% - 36px, 720px); padding: 46px 0 64px; }
  .access-card { width: min(100%, 488px); min-height: 600px; }
}

@media (max-width: 560px) {
  .site-header { height: 68px; }
  .header-inner { grid-template-columns: minmax(140px, 1fr) 0 auto; width: calc(100% - 28px); }
  .header-brand-icon { width: 34px; height: 34px; }
  .header-brand-text { width: 104px; }
  .header-nav { display: none; }
  .account-trigger { padding: 8px 10px; }
  .landing { width: calc(100% - 24px); min-height: calc(100vh - 68px); padding: 34px 0 48px; }
  .home-brand { gap: 14px; }
  .home-brand-icon { width: min(210px, 58vw); }
  .home-brand-text { width: min(360px, 80vw); }
  .coming-soon { margin-top: 25px; }
  .access-card { min-height: 590px; padding: 30px 22px 60px; border-radius: 20px; }
  .access-heading h2 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
