/* Scoped Developer Console preview for the static landing page. */
.landing-developer-preview {
  --landing-dev-bg: #0f0f0f;
  --landing-dev-card: #161616;
  --landing-dev-card-2: #1e1e1e;
  --landing-dev-card-hover: #242424;
  --landing-dev-border: rgba(255, 255, 255, .08);
  --landing-dev-border-strong: rgba(255, 255, 255, .14);
  --landing-dev-red: #ff0000;
  --landing-dev-red-glow: rgba(255, 0, 0, .12);
  --landing-dev-red-border: rgba(255, 0, 0, .22);
  --landing-dev-blue: #3ea6ff;
  --landing-dev-blue-glow: rgba(62, 166, 255, .12);
  --landing-dev-green: #2ba640;
  --landing-dev-yellow: #fbbc04;
  --landing-dev-error: #ff5c54;
  --landing-dev-text: #f1f1f1;
  --landing-dev-text-2: #aaa;
  --landing-dev-text-3: #666;
  --landing-dev-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--landing-dev-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 0, 0, .06), transparent 32rem),
    var(--landing-dev-bg);
  border: 1px solid var(--landing-dev-border);
  border-radius: 18px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.landing-developer-preview,
.landing-developer-preview *,
.landing-developer-preview *::before,
.landing-developer-preview *::after {
  box-sizing: border-box;
}

.landing-developer-preview button,
.landing-developer-preview input,
.landing-developer-preview select {
  font: inherit;
}

.landing-developer-preview button,
.landing-developer-preview select,
.landing-developer-preview a {
  -webkit-tap-highlight-color: transparent;
}

.landing-developer-preview button,
.landing-developer-preview select {
  cursor: pointer;
}

.landing-developer-preview a {
  color: inherit;
}

.landing-developer-preview button:focus-visible,
.landing-developer-preview input:focus-visible,
.landing-developer-preview select:focus-visible,
.landing-developer-preview a:focus-visible {
  outline: 2px solid var(--landing-dev-blue);
  outline-offset: 2px;
}

.landing-developer-preview [hidden] {
  display: none !important;
}

.landing-developer-preview::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: '';
  pointer-events: none;
  opacity: .65;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 40px 40px;
}

.landing-developer-preview::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--landing-dev-red), transparent);
}

.landing-developer-preview .developer-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.landing-developer-preview .page-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.landing-developer-preview .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-developer-preview .brand-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  fill: var(--landing-dev-red);
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, .48));
}

.landing-developer-preview .brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.landing-developer-preview .brand-kicker,
.landing-developer-preview .eyebrow {
  color: var(--landing-dev-text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.landing-developer-preview .brand-kicker {
  margin-top: 3px;
  color: var(--landing-dev-text-2);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1px;
  text-transform: none;
}

.landing-developer-preview .page-brand-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.landing-developer-preview .header-link,
.landing-developer-preview .outline-button {
  color: var(--landing-dev-blue);
  text-decoration: none;
}

.landing-developer-preview .header-link {
  padding: 9px 14px;
  border: 1px solid rgba(62, 166, 255, .25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}

.landing-developer-preview .header-link:hover,
.landing-developer-preview .header-link:focus-visible {
  border-color: rgba(62, 166, 255, .55);
  background: var(--landing-dev-blue-glow);
}

.landing-developer-preview .developer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
}

.landing-developer-preview .intro-card,
.landing-developer-preview .console-card,
.landing-developer-preview .side-card {
  border: 1px solid var(--landing-dev-border);
  background: var(--landing-dev-card);
  box-shadow: var(--landing-dev-shadow);
}

.landing-developer-preview .intro-card,
.landing-developer-preview .console-card {
  border-radius: 18px;
}

.landing-developer-preview .intro-card {
  min-width: 0;
  padding: 26px;
}

.landing-developer-preview .developer-intro {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
}

.landing-developer-preview .intro-card h1 {
  margin: 8px 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.65px;
}

.landing-developer-preview .intro-copy,
.landing-developer-preview .side-status,
.landing-developer-preview .privacy-note {
  color: var(--landing-dev-text-2);
  line-height: 1.55;
}

.landing-developer-preview .intro-copy {
  max-width: 650px;
  margin: 0;
  font-size: 14px;
}

.landing-developer-preview .intro-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid var(--landing-dev-border-strong);
  border-radius: 999px;
  color: var(--landing-dev-text-2);
  background: var(--landing-dev-card-2);
  font-size: 12px;
  font-weight: 500;
}

.landing-developer-preview .status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--landing-dev-text-3);
}

.landing-developer-preview .status-dot.active {
  background: var(--landing-dev-green);
  box-shadow: 0 0 8px var(--landing-dev-green);
}

.landing-developer-preview .developer-side-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.landing-developer-preview .side-card {
  border-radius: 18px;
  padding: 22px;
}

.landing-developer-preview .side-card-heading,
.landing-developer-preview .console-heading,
.landing-developer-preview .console-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.landing-developer-preview .side-card h2,
.landing-developer-preview .console-heading h2 {
  margin: 7px 0 0;
  color: var(--landing-dev-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
}

.landing-developer-preview .side-card-mark {
  color: var(--landing-dev-red);
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 0, 0, .45);
}

.landing-developer-preview .side-status {
  margin: 14px 0 17px;
  font-size: 12.5px;
}

.landing-developer-preview .dev-mode-control {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--landing-dev-border);
  border-radius: 999px;
  color: var(--landing-dev-text-2);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  user-select: none;
  transition: color .15s, border-color .15s, background .15s;
}

.landing-developer-preview .dev-mode-control:hover,
.landing-developer-preview .dev-mode-control:focus-within {
  border-color: rgba(62, 166, 255, .45);
  color: var(--landing-dev-text);
  background: var(--landing-dev-blue-glow);
}

.landing-developer-preview .dev-mode-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.landing-developer-preview .dev-mode-switch {
  position: relative;
  width: 27px;
  height: 15px;
  flex: 0 0 27px;
  border-radius: 999px;
  background: var(--landing-dev-text-3);
  transition: background .15s;
}

.landing-developer-preview .dev-mode-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: '';
  background: #fff;
  transition: transform .15s;
}

.landing-developer-preview .dev-mode-control input:checked + .dev-mode-switch {
  background: var(--landing-dev-red);
  box-shadow: 0 0 8px rgba(255, 0, 0, .42);
}

.landing-developer-preview .dev-mode-control input:checked + .dev-mode-switch::after {
  transform: translateX(12px);
}

.landing-developer-preview .session-card .console-status {
  min-height: 18px;
  margin-top: 15px;
  color: var(--landing-dev-yellow);
  font-size: 12px;
  line-height: 1.45;
}

.landing-developer-preview .session-card .console-status.is-enabled {
  color: #8ee6ae;
}

.landing-developer-preview .session-card .console-status.is-disabled {
  color: #ffd166;
}

.landing-developer-preview .developer-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.landing-developer-preview .developer-count {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid var(--landing-dev-border);
  border-radius: 10px;
  background: var(--landing-dev-card-2);
}

.landing-developer-preview .developer-count strong {
  color: var(--landing-dev-text);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1;
}

.landing-developer-preview .developer-count span {
  overflow: hidden;
  color: var(--landing-dev-text-2);
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.landing-developer-preview .console-card {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.landing-developer-preview .console-heading {
  align-items: center;
  padding: 22px 26px 18px;
}

.landing-developer-preview .console-badge {
  max-width: 220px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid var(--landing-dev-border-strong);
  border-radius: 999px;
  color: var(--landing-dev-text-2);
  background: var(--landing-dev-card-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-developer-preview .toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(112px, 150px)) auto auto;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--landing-dev-border);
  border-bottom: 1px solid var(--landing-dev-border);
  background: var(--landing-dev-card-2);
}

.landing-developer-preview .toolbar > * {
  min-width: 0;
}

.landing-developer-preview .search-field input,
.landing-developer-preview .select-field select {
  width: 100%;
  height: 38px;
  outline: none;
  border: 1px solid var(--landing-dev-border-strong);
  border-radius: 8px;
  color: var(--landing-dev-text);
  background: #101010;
  font-size: 12px;
}

.landing-developer-preview .search-field input {
  padding: 0 12px;
}

.landing-developer-preview .select-field select {
  padding: 0 9px;
}

.landing-developer-preview .search-field input::placeholder {
  color: var(--landing-dev-text-3);
}

.landing-developer-preview .search-field input:focus,
.landing-developer-preview .select-field select:focus {
  border-color: var(--landing-dev-blue);
  box-shadow: 0 0 0 2px rgba(62, 166, 255, .15);
}

.landing-developer-preview .outline-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(62, 166, 255, .30);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}

.landing-developer-preview .outline-button:hover,
.landing-developer-preview .outline-button:focus-visible {
  border-color: rgba(62, 166, 255, .60);
  background: var(--landing-dev-blue-glow);
}

.landing-developer-preview .outline-button.danger {
  border-color: var(--landing-dev-red-border);
  color: #ff8179;
}

.landing-developer-preview .outline-button.danger:hover,
.landing-developer-preview .outline-button.danger:focus-visible {
  border-color: rgba(255, 0, 0, .50);
  background: var(--landing-dev-red-glow);
}

.landing-developer-preview .console-meta {
  min-height: 42px;
  align-items: center;
  padding: 10px 18px;
  color: var(--landing-dev-text-2);
  background: rgba(255, 255, 255, .018);
  font-size: 12px;
}

.landing-developer-preview .console-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-developer-preview .console-meta-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--landing-dev-red);
  box-shadow: 0 0 8px rgba(255, 0, 0, .45);
}

.landing-developer-preview .log-wrap {
  min-height: 360px;
  max-height: 480px;
  overflow: auto;
  background: #0b0b0b;
  scrollbar-color: #2a2a2a #0b0b0b;
  scrollbar-width: thin;
}

.landing-developer-preview .log-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.landing-developer-preview .log-empty {
  padding: 88px 20px;
  color: var(--landing-dev-text-3);
  text-align: center;
  font-size: 13px;
}

.landing-developer-preview .log-entry {
  display: grid;
  grid-template-columns: 82px 56px 112px minmax(130px, 220px) minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  color: var(--landing-dev-text);
  font-family: Consolas, 'SFMono-Regular', monospace;
  font-size: 12px;
  line-height: 1.45;
}

.landing-developer-preview .log-entry:hover,
.landing-developer-preview .log-entry:focus-within {
  background: rgba(255, 255, 255, .035);
}

.landing-developer-preview .log-time {
  color: var(--landing-dev-text-3);
  font-variant-numeric: tabular-nums;
}

.landing-developer-preview .log-level {
  font-weight: 700;
}

.landing-developer-preview .log-scope,
.landing-developer-preview .log-event {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-developer-preview .log-scope {
  color: #c4a7ff;
}

.landing-developer-preview .log-event {
  color: var(--landing-dev-blue);
}

.landing-developer-preview .log-message {
  min-width: 0;
  color: #d9d9d9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.landing-developer-preview .log-details {
  grid-column: 5;
  min-width: 0;
  margin: 4px 0 0;
  color: var(--landing-dev-text-2);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.landing-developer-preview .is-debug .log-level {
  color: #9b9b9b;
}

.landing-developer-preview .is-info .log-level {
  color: #8ee6ae;
}

.landing-developer-preview .is-warn .log-level {
  color: #ffd166;
}

.landing-developer-preview .is-error .log-level {
  color: var(--landing-dev-error);
}

.landing-developer-preview .privacy-note {
  margin: 12px 2px 0;
  font-size: 12px;
}

.landing-developer-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;
}

@media (max-width: 980px) {
  .landing-developer-preview .developer-shell {
    width: calc(100% - 24px);
    padding-top: 28px;
  }

  .landing-developer-preview .developer-layout {
    grid-template-columns: 1fr;
  }

  .landing-developer-preview .developer-side-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-developer-preview .console-card {
    grid-column: auto;
  }

  .landing-developer-preview .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-developer-preview .search-field {
    grid-column: 1 / -1;
  }

  .landing-developer-preview .log-entry {
    grid-template-columns: 72px 54px minmax(0, 1fr);
    padding: 9px 14px;
  }

  .landing-developer-preview .log-event,
  .landing-developer-preview .log-message,
  .landing-developer-preview .log-details {
    grid-column: 3;
  }

  .landing-developer-preview .log-event,
  .landing-developer-preview .log-message {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .landing-developer-preview .developer-shell {
    padding-top: 24px;
  }

  .landing-developer-preview .page-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-developer-preview .page-brand-actions {
    justify-content: flex-start;
  }

  .landing-developer-preview .developer-side-column {
    display: flex;
  }

  .landing-developer-preview .intro-card,
  .landing-developer-preview .console-heading {
    padding: 21px;
  }

  .landing-developer-preview .toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .landing-developer-preview .search-field {
    grid-column: auto;
  }

  .landing-developer-preview .log-wrap {
    min-height: 320px;
  }

  .landing-developer-preview .log-entry {
    grid-template-columns: 72px 54px minmax(0, 1fr);
    padding: 9px 12px;
  }

  .landing-developer-preview .log-event,
  .landing-developer-preview .log-message,
  .landing-developer-preview .log-details {
    grid-column: 3;
  }
}

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