:root {
  color-scheme: dark;
  --ink: #f7f7fa;
  --muted: #a6a5b1;
  --page: #050507;
  --surface: #0d0d12;
  --surface-2: #15151c;
  --line: #2b2b35;
  --violet: #9a5cff;
  --cyan: #62d9ed;
  --lime: #d9ff58;
  --coral: #ff775f;
  --mint: #6ee7bf;
  --content: 1320px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.preview-menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.preview-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;
}

.preview-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid #1b1b22;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(18px);
}

.preview-header-inner {
  width: min(calc(100% - 40px), var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 2vw, 30px);
}

.preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 950;
}

.preview-brand-bars {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.preview-brand-bars span {
  width: 5px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: currentColor;
}

.preview-brand-bars span:nth-child(1) { height: 18px; }
.preview-brand-bars span:nth-child(2) { height: 29px; }
.preview-brand-bars span:nth-child(3) { height: 39px; }
.preview-brand-bars span:nth-child(4) { height: 21px; }
.preview-brand-bars span:nth-child(5) { height: 29px; }

.preview-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.preview-nav a {
  color: #c6c5cf;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.preview-nav a:hover,
.preview-nav a:focus-visible {
  color: var(--violet);
}

.preview-nav a[aria-current="page"] {
  color: #fff;
}

.preview-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-account {
  max-width: 160px;
  overflow: hidden;
  color: #b8b7c1;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #08080b;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.preview-button:hover,
.preview-button:focus-visible {
  border-color: var(--violet);
  outline: 2px solid rgba(154, 92, 255, 0.34);
  outline-offset: 2px;
}

.preview-button.dark {
  border-color: #373740;
  background: #111117;
  color: #fff;
}

.preview-button.violet {
  background: var(--violet);
  color: #09070d;
}

.preview-button.lime {
  background: var(--lime);
  color: #080907;
}

.preview-button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.preview-button.header-open-studio {
  border-color: #fff;
  background: #fff;
  color: #08080b;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.preview-button.header-open-studio:hover,
.preview-button.header-open-studio:focus-visible {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(154, 92, 255, 0.2);
}

.preview-account-menu {
  position: relative;
  flex: 0 0 auto;
}

.preview-account-menu-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(10, 13, 22, 0.96);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.preview-account-menu-button:hover,
.preview-account-menu-button:focus-visible,
.preview-account-menu-button[aria-expanded="true"] {
  border-color: rgba(154, 92, 255, 0.68);
  background: #17151d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 92, 255, 0.2);
}

.preview-account-menu-button.has-profile-image {
  background: var(--preview-account-profile-image, none) center / var(--preview-account-profile-image-size, cover) no-repeat, #17151d;
}

.preview-account-menu-button.has-profile-image:hover,
.preview-account-menu-button.has-profile-image:focus-visible,
.preview-account-menu-button.has-profile-image[aria-expanded="true"] {
  background: var(--preview-account-profile-image, none) center / var(--preview-account-profile-image-size, cover) no-repeat, #17151d;
}

.preview-account-menu-button.is-guest-account {
  border-color: rgba(105, 215, 255, 0.3);
  background: linear-gradient(135deg, #2f86df, #2b73cf);
  box-shadow: 0 0 0 7px rgba(47, 134, 223, 0.16);
}

.preview-account-avatar-initial[hidden],
.preview-account-avatar-icon[hidden] {
  display: none;
}

.preview-account-avatar-initial {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(105, 215, 255, 0.86), rgba(154, 92, 255, 0.94));
  color: #fff;
  letter-spacing: 0.02em;
}

.preview-account-avatar-icon {
  display: inline-grid;
  place-items: center;
}

.preview-account-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.preview-account-bars i {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #69d7ff, var(--violet));
}

.preview-account-bars i:nth-child(1) { height: 18px; }
.preview-account-bars i:nth-child(2) { height: 26px; }
.preview-account-bars i:nth-child(3) { height: 34px; }
.preview-account-bars i:nth-child(4) { height: 28px; }
.preview-account-bars i:nth-child(5) { height: 32px; }

.preview-account-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 180;
  width: min(360px, calc(100vw - 28px));
  padding: 14px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050505;
  color: #f8f7ff;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

.preview-account-menu-panel[hidden] {
  display: none;
}

.preview-account-menu-item {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f8f7ff;
  box-shadow: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.preview-account-menu-item:hover,
.preview-account-menu-item:focus-visible {
  background: rgba(154, 92, 255, 0.18);
  color: #fff;
  outline: none;
}

.preview-account-menu-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.14);
}

.preview-menu-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid #34343d;
  border-radius: 6px;
  background: #111117;
  color: #fff;
  cursor: pointer;
}

.preview-menu-button span,
.preview-menu-button::before,
.preview-menu-button::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.preview-menu-button span {
  margin: 4px 0;
}

.preview-mobile-nav {
  position: fixed;
  z-index: 99;
  inset: var(--header-height) 0 auto 0;
  padding: 18px 20px 24px;
  border-bottom: 1px solid #31313a;
  background: #0a0a0e;
}

.preview-mobile-nav a {
  min-height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #24242c;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.preview-eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.preview-section-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.preview-footer {
  border-top: 1px solid #222229;
  background: #07070a;
}

.preview-footer-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 250px;
  margin: 0 auto;
  padding: 56px 0 30px;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(150px, 0.55fr));
  gap: 36px;
}

.preview-footer h2,
.preview-footer h3,
.preview-footer p {
  margin-top: 0;
}

.preview-footer h2 {
  max-width: 520px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.preview-footer h3 {
  color: #8f8e9a;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.preview-footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.preview-footer-links a,
.preview-footer-links span {
  color: #d5d4dc;
  text-decoration: none;
  font-size: 0.88rem;
}

.preview-footer-copy {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid #202027;
  color: #777681;
  font-size: 0.76rem;
}

@media (max-width: 1040px) {
  .preview-nav,
  .preview-account {
    display: none;
  }

  .preview-menu-button {
    display: grid;
  }

  .preview-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .preview-header-inner,
  .preview-section-inner,
  .preview-footer-inner,
  .preview-footer-copy {
    width: min(calc(100% - 28px), var(--content));
  }

  .preview-brand {
    font-size: 0.88rem;
  }

  .preview-brand-bars {
    width: 38px;
    height: 38px;
    gap: 4px;
  }

  .preview-brand-bars span {
    width: 4px;
    flex-basis: 4px;
  }

  .preview-brand-bars span:nth-child(1) { height: 16px; }
  .preview-brand-bars span:nth-child(2) { height: 26px; }
  .preview-brand-bars span:nth-child(3) { height: 35px; }
  .preview-brand-bars span:nth-child(4) { height: 19px; }
  .preview-brand-bars span:nth-child(5) { height: 26px; }

  .preview-header-actions > .preview-button {
    display: none;
  }

  .preview-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
