:root {
  color-scheme: dark;
  --ink: #0C0D0F;
  --bg: #0C0D0F;
  --bg-deep: #0C0D0F;
  --surface: #101114;
  --surface-solid: #101114;
  --surface-raised: #141619;
  --surface-high: #181A1E;

  --glass-bg: #141619;
  --glass-bg-hover: #1A1C21;
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-light: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  --glass-shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.38);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-inset-subtle: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.10);

  --text: #F3F3F1;
  --muted: #A4A6AA;
  --muted-soft: #73767B;
  --soft: #73767B;

  --blue: #1378FF;
  --blue-vibrant: #1378FF;
  --blue-deep: #0E5ED1;
  --blue-light: #8AB4F8;
  --green: #A3BE8C;
  --red: #E2A3A3;
  --danger: #E2A3A3;

  --max: 1180px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  font-family: "Plus Jakarta Sans", "Google Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(19, 120, 255, 0.05) 0%, transparent 28%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M56 0H0V56' fill='none' stroke='rgba(255,255,255,0.028)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 56px 56px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.28); }

::selection { background: rgba(19, 120, 255, 0.34); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
input { font: inherit; }
h1, h2, h3 { text-wrap: balance; }

.page-shell,
.shell,
.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0 0 10px;
  background: linear-gradient(180deg, #0C0D0F 72%, rgba(12, 13, 15, 0));
}

.masthead .site-header {
  position: relative;
  top: 0;
}

.promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.55em;
  margin: 0;
  padding: 11px 20px 8px;
  background: #ffffff;
  color: #0C0D0F;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.promo-banner > span:first-of-type {
  justify-self: end;
  text-align: right;
}

.promo-banner > span:last-of-type {
  justify-self: start;
  text-align: left;
}

.promo-banner strong {
  display: inline-block;
  position: relative;
  overflow: hidden;
  color: var(--blue);
  background-image: linear-gradient(
    100deg,
    #0b63e0 0%,
    #1378FF 28%,
    #8ec4ff 50%,
    #1378FF 72%,
    #0b63e0 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-banner strong::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%);
  transform: translateX(-80%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.topbar {
  display: flex;
  position: relative;
  width: min(1060px, calc(100% - 48px));
  min-height: 64px;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #121417;
  box-shadow: var(--glass-inset), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
}

.site-header.is-scrolled .topbar {
  background: #101214;
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  overflow: hidden;
}

.brand-mark img,
.top-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-copy strong,
.brand strong,
.top-brand {
  color: var(--text);
  font-family: "Google Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.brand-copy small {
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.header-link,
.nav a,
.nav button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: "Google Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.header-link:hover,
.nav a:hover,
.nav button:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface-high);
  color: var(--text);
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.button,
.primary,
.auth-submit,
.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #1A1E26 0%, #12151B 100%);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -8px rgba(0, 0, 0, 0.55);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.button-primary,
.primary,
.auth-submit,
.header-cta {
  border-color: rgba(19, 120, 255, 0.55);
  background: linear-gradient(180deg, #2F86FF 0%, #0E5ED1 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px -8px rgba(14, 94, 209, 0.55);
}

.button-primary:hover,
.primary:hover:not(:disabled),
.auth-submit:hover:not(:disabled),
.header-cta:hover {
  background: linear-gradient(180deg, #4A96FF 0%, #1378FF 100%);
}

.button-small { min-height: 36px; padding-inline: 14px; font-size: 11px; }
.header-actions .button { min-height: 38px; border-radius: var(--radius-pill); }

.header-actions .button.dashboard-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.88);
  background: #ffffff;
  color: #0c0d0f;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.header-cta.dashboard-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.88);
  background: #ffffff;
  color: #0c0d0f;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site-nav a.mobile-sign-in.dashboard-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  justify-content: space-between;
  width: 100%;
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.mobile-sign-in.dashboard-link:hover,
.site-nav a.mobile-sign-in.dashboard-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-link > span[aria-hidden] {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.dashboard-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  z-index: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(19, 120, 255, 0.18), rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-light);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-soft);
  font-size: 11px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 15px; }
.footer-links a:hover,
.footer-inner a:hover { color: var(--text); }

.field input,
.field-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #0E1013;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover:not(:focus) { border-color: rgba(255, 255, 255, 0.16); }
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 120, 255, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 560ms ease, translate 560ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; translate: none; }

  .header-actions .button.dashboard-link,
  .header-cta.dashboard-link {
    animation: dashboard-glow 2.6s ease-in-out infinite;
  }
  .site-nav a.mobile-sign-in.dashboard-link {
    animation: dashboard-nav-glow 2.6s ease-in-out infinite;
  }
  .dashboard-link::after { animation: dashboard-sheen 2.6s ease-in-out infinite; }
  .dashboard-link > span[aria-hidden] { animation: dashboard-arrow 2.6s ease-in-out infinite; }
  .promo-banner strong { animation: promo-launch-shift 2.8s ease-in-out infinite; }
  .promo-banner strong::after { animation: promo-launch-sheen 2.8s ease-in-out infinite; }
  .header-actions .button.dashboard-link:hover,
  .header-actions .button.dashboard-link:focus-visible,
  .header-cta.dashboard-link:hover,
  .header-cta.dashboard-link:focus-visible,
  .site-nav a.mobile-sign-in.dashboard-link:hover,
  .site-nav a.mobile-sign-in.dashboard-link:focus-visible { animation: none; }
  .dashboard-link:hover::after,
  .dashboard-link:focus-visible::after { animation: none; opacity: 0; }
  .dashboard-link:hover > span[aria-hidden],
  .dashboard-link:focus-visible > span[aria-hidden] { animation: none; }
}

@keyframes dashboard-nav-glow {
  0%, 100% {
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  50% {
    color: #ffffff;
    box-shadow:
      0 0 0 1px rgba(19, 120, 255, 0.35),
      0 8px 22px rgba(19, 120, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
}

@keyframes dashboard-glow {
  0%, 100% { box-shadow: 0 8px 22px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75); }
  50% {
    box-shadow:
      0 8px 28px rgba(19, 120, 255, 0.32),
      0 0 0 4px rgba(19, 120, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes dashboard-sheen {
  0%, 52% { translate: 0; opacity: 0; }
  62% { opacity: 1; }
  100% { translate: 320%; opacity: 0; }
}

@keyframes dashboard-arrow {
  0%, 58%, 100% { transform: translateX(0); }
  72% { transform: translateX(4px); }
}

@keyframes promo-launch-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes promo-launch-sheen {
  0%, 45% { transform: translateX(-80%); opacity: 0; }
  58% { opacity: 1; }
  100% { transform: translateX(80%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dashboard-link,
  .dashboard-link::after,
  .dashboard-link > span[aria-hidden],
  .promo-banner strong,
  .promo-banner strong::after { animation: none !important; }
}

.install-copy .install-gate-note {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--muted-soft);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
}

.install-copy .install-gate-note[data-state="error"] {
  color: var(--red);
}

.install-copy .install-gate-note a {
  color: inherit;
  text-decoration: underline;
}

.install-copy .install-gate-note[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--max)); }
  .topbar { width: calc(100% - 20px); min-height: 58px; }
  .footer-inner { min-height: 112px; align-items: flex-start; flex-direction: column; justify-content: center; }
}
