/* SolForge neutral dual-theme refresh — cache-busted 2026-08-31. */
html:not(.dark) {
  --background: #f5f5f7;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --popover: #ffffff;
  --popover-foreground: #18181b;
  --primary: #18181b;
  --primary-foreground: #ffffff;
  --secondary: #f0f0f2;
  --secondary-foreground: #27272a;
  --muted: #f0f0f2;
  --muted-foreground: #64646d;
  --accent: #e8e8eb;
  --accent-foreground: #18181b;
  --border: #dcdce1;
  --input: #dcdce1;
  --ring: #71717a;
  --sidebar: #f5f5f7;
  --sidebar-foreground: #18181b;
  --sidebar-primary: #18181b;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e8e8eb;
  --sidebar-accent-foreground: #18181b;
  --sidebar-border: #dcdce1;
  --sidebar-ring: #71717a;
}

.mc-demo {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 4px;
  padding: clamp(18px, 2.6vw, 34px);
  color: #f4f5f7;
  background: linear-gradient(145deg, #111318, #090a0d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.mc-demo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mc-demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.mc-demo-kicker {
  margin: 0;
  color: #818895;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mc-demo h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.mc-demo-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: #9096a2;
  font-size: 13px;
  line-height: 1.65;
}

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

.mc-demo-pill,
.mc-demo-replay {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-demo-pill {
  display: inline-flex;
  align-items: center;
  color: #8e96a4;
  background: #171920;
}

.mc-demo-replay {
  cursor: pointer;
  color: #08090b;
  background: #f4f5f7;
}

.mc-demo-replay:hover {
  background: #dfe3e9;
}

.mc-demo-replay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.mc-story {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 0 0 2px;
  list-style: none;
  scrollbar-width: none;
}

.mc-story::-webkit-scrollbar {
  display: none;
}

.mc-story li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: #9aa1ad;
  background: #101319;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  font: 750 9px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mc-story i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #16c7a3;
  box-shadow: 0 0 12px rgba(22, 199, 163, 0.55);
}

.mc-story .mc-story-crash i {
  background: #f04461;
  box-shadow: 0 0 12px rgba(240, 68, 97, 0.55);
}

.mc-terminal {
  overflow: hidden;
  background: #080a0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
}

.mc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mc-pair {
  color: #f4f5f7;
  font-size: 12px;
}

.mc-ohlc {
  color: #8c94a2;
}

.mc-change-up {
  color: #12b8a6;
}

.mc-change-down {
  color: #f04461;
}

.mc-stage {
  margin-left: auto;
  color: #c8ccd3;
}

.mc-progress {
  color: #a0a7b2;
}

.mc-chart-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.mc-chart {
  display: block;
  width: 100%;
  min-width: 780px;
  height: auto;
  aspect-ratio: 1200 / 650;
}

.mc-candle,
.mc-marker {
  animation: mc-chart-in 180ms ease-out both;
}

.mc-demo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
  color: #858c99;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.mc-demo-legend strong {
  color: #d9dce2;
}

.mc-demo-note {
  margin-left: auto;
  color: #a0a7b2;
}

@keyframes mc-chart-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .mc-demo {
    padding: 17px;
    border-radius: 24px;
  }

  .mc-demo-head {
    display: block;
  }

  .mc-demo-actions {
    margin-top: 16px;
  }

  .mc-demo-pill {
    display: none;
  }

  .mc-chart {
    min-width: 720px;
  }

  .mc-stage {
    width: 100%;
    margin-left: 0;
  }

  .mc-demo-note {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-candle,
  .mc-marker {
    animation: none;
  }

  .mc-demo-replay {
    display: none;
  }
}

.solforge-shell {
  --sf-canvas: #f5f5f7;
  --sf-surface: #ffffff;
  --sf-surface-soft: #f0f0f2;
  --sf-surface-raised: #fafafa;
  --sf-text: #111114;
  --sf-muted: #68686f;
  --sf-faint: #8b8b92;
  --sf-border: rgba(9, 9, 11, 0.1);
  --sf-border-strong: rgba(9, 9, 11, 0.16);
  --sf-primary-bg: #0a0a0c;
  --sf-primary-fg: #ffffff;
  --sf-shadow: 0 28px 90px rgba(20, 20, 24, 0.1);
  --sf-shadow-soft: 0 14px 46px rgba(20, 20, 24, 0.065);
  color-scheme: light;
}

.dark .solforge-shell {
  --sf-canvas: #08080a;
  --sf-surface: #121214;
  --sf-surface-soft: #19191c;
  --sf-surface-raised: #161619;
  --sf-text: #f7f7f8;
  --sf-muted: #b1b1b8;
  --sf-faint: #888890;
  --sf-border: rgba(255, 255, 255, 0.105);
  --sf-border-strong: rgba(255, 255, 255, 0.17);
  --sf-primary-bg: #f7f7f8;
  --sf-primary-fg: #09090b;
  --sf-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  --sf-shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

html:not(.dark) .solforge-shell {
  color: var(--sf-text) !important;
  background: var(--sf-canvas) !important;
}

.dark .solforge-shell {
  color: var(--sf-text) !important;
  background: var(--sf-canvas) !important;
}

html:not(.dark) .solforge-shell .solforge-ambient {
  background: radial-gradient(circle at 16% 2%, rgba(255, 255, 255, 0.98), transparent 31%), radial-gradient(circle at 88% 22%, rgba(10, 10, 12, 0.045), transparent 27%) !important;
}

html:not(.dark) .solforge-shell .solforge-grid {
  opacity: 0.32 !important;
  background-image: linear-gradient(rgba(9, 9, 11, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(9, 9, 11, 0.035) 1px, transparent 1px) !important;
}

.dark .solforge-shell .solforge-ambient {
  background: radial-gradient(circle at 16% 4%, rgba(255, 255, 255, 0.075), transparent 28%), radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.035), transparent 25%) !important;
}

.dark .solforge-shell .solforge-grid {
  opacity: 0.1 !important;
}

html:not(.dark) .solforge-shell .solforge-header {
  border-color: rgba(9, 9, 11, 0.085) !important;
  background: rgba(250, 250, 251, 0.88) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 35px rgba(20, 20, 24, 0.045) !important;
}

.dark .solforge-shell .solforge-header {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background: rgba(12, 12, 14, 0.9) !important;
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.22) !important;
}

html:not(.dark) .solforge-shell .nav-active {
  color: #ffffff !important;
  background: #111114 !important;
  box-shadow: 0 8px 22px rgba(17, 17, 20, 0.14) !important;
}

.dark .solforge-shell .nav-active {
  color: #09090b !important;
  background: #f7f7f8 !important;
}

html:not(.dark) .solforge-shell [class*="bg-[#edf9f0]"],
html:not(.dark) .solforge-shell [class*="bg-[#ecf9ef]"],
html:not(.dark) .solforge-shell [class*="bg-[#dcfce7]"],
html:not(.dark) .solforge-shell [class*="bg-[#f3f5f2]"],
html:not(.dark) .solforge-shell [class*="bg-[#f4f8f4]"],
html:not(.dark) .solforge-shell [class*="bg-[#f5f8f5]"],
html:not(.dark) .solforge-shell [class*="bg-[#f4fbf5]"],
html:not(.dark) .solforge-shell [class*="bg-[#f3fbf5]"],
html:not(.dark) .solforge-shell [class*="bg-[#f5f7f4]"],
html:not(.dark) .solforge-shell [class*="bg-[#edf1ed]"],
html:not(.dark) .solforge-shell [class*="bg-[#eef6ef]"] {
  background-color: #f0f0f2 !important;
  background-image: none !important;
}

html:not(.dark) .solforge-shell [class*="bg-[radial-gradient"],
html:not(.dark) .solforge-shell [class*="bg-[linear-gradient"] {
  background-color: #fafafa !important;
  background-image: linear-gradient(145deg, #ffffff, #f1f1f3) !important;
}

html:not(.dark) .solforge-shell [class*="text-[#15803d]"]:not(.financial-positive),
html:not(.dark) .solforge-shell [class*="text-[#16803d]"],
html:not(.dark) .solforge-shell [class*="text-[#16833d]"],
html:not(.dark) .solforge-shell [class*="text-[#176f37]"],
html:not(.dark) .solforge-shell [class*="text-[#1c6e37]"],
html:not(.dark) .solforge-shell [class*="text-[#314137]"],
html:not(.dark) .solforge-shell [class*="text-[#5d7062]"],
html:not(.dark) .solforge-shell [class*="text-[#7df59f]"] {
  color: #27272a !important;
}

html:not(.dark) .solforge-shell [class*="accent-[#15803d]"] {
  accent-color: #18181b !important;
}

html:not(.dark) .solforge-shell [class*="border-[#b9ddc1]"],
html:not(.dark) .solforge-shell [class*="border-[#cde8d3]"],
html:not(.dark) .solforge-shell [class*="border-[#dce9df]"],
html:not(.dark) .solforge-shell [class*="border-[#dce2dd]"],
html:not(.dark) .solforge-shell [class*="border-[#dfe8e1]"] {
  border-color: #d4d4d8 !important;
}

html:not(.dark) .solforge-shell [class*="focus-visible:ring-[#62c77d]"]:focus-visible {
  --tw-ring-color: #71717a !important;
}

html:not(.dark) .solforge-shell [class*="shadow-[0_0_0_4px_#dcfce7]"] {
  box-shadow: 0 0 0 4px #e4e4e7 !important;
}

html:not(.dark) .solforge-shell .solforge-dashboard-grid > div > section,
html:not(.dark) .solforge-shell .solforge-dashboard-grid > aside > section,
html:not(.dark) .solforge-shell .launch-studio-shell {
  border-color: var(--sf-border) !important;
  box-shadow: var(--sf-shadow-soft) !important;
}

.dark .solforge-shell .solforge-dashboard-grid > div > section,
.dark .solforge-shell .solforge-dashboard-grid > aside > section,
.dark .solforge-shell .launch-studio-shell {
  border-color: var(--sf-border) !important;
  box-shadow: var(--sf-shadow-soft) !important;
}

.launch-hero-v2 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 32px 0;
  scroll-margin-top: 96px;
}

.launch-hero-surface {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 44px);
  color: var(--sf-text);
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 32px;
  box-shadow: var(--sf-shadow);
}

.launch-hero-surface::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 0 0, rgba(127, 127, 138, 0.11), transparent 33%), radial-gradient(circle at 92% 8%, rgba(127, 127, 138, 0.07), transparent 24%);
}

.launch-hero-layout,
.launch-stack {
  position: relative;
}

.launch-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: clamp(30px, 4vw, 62px);
  align-items: stretch;
}

.launch-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 0;
}

.launch-eyebrow,
.launch-builder-head p,
.launch-stack-heading > p {
  margin: 0;
  color: var(--sf-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.launch-title {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--sf-text);
  font-size: clamp(3.25rem, 5vw, 5.35rem);
  font-weight: 670;
  line-height: 0.92;
  letter-spacing: -0.068em;
}

.launch-title span {
  display: block;
  margin-top: 8px;
  color: var(--sf-muted);
}

.launch-lead {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--sf-text);
  font-size: 16px;
  line-height: 1.75;
}

.launch-support {
  max-width: 670px;
  margin: 11px 0 0;
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.75;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.launch-primary,
.launch-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.launch-primary {
  color: var(--sf-primary-fg) !important;
  background: var(--sf-primary-bg) !important;
  border: 1px solid var(--sf-primary-bg) !important;
}

.launch-secondary {
  color: var(--sf-text) !important;
  background: transparent !important;
  border: 1px solid var(--sf-border-strong) !important;
}

.launch-primary:hover,
.launch-secondary:hover {
  transform: translateY(-1px);
}

.launch-primary:focus-visible,
.launch-secondary:focus-visible {
  outline: 2px solid var(--sf-text);
  outline-offset: 3px;
}

.launch-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.launch-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sf-muted);
  font-size: 11px;
  font-weight: 620;
}

.launch-trust-row i {
  width: 5px;
  height: 5px;
  background: var(--sf-text);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-text) 8%, transparent);
}

.launch-builder {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--sf-surface-soft);
  border: 1px solid var(--sf-border);
  border-radius: 26px;
}

.launch-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.launch-builder-head h2,
.launch-stack-heading h2 {
  margin: 8px 0 0;
  color: var(--sf-text);
  font-size: 24px;
  font-weight: 670;
  line-height: 1.15;
  letter-spacing: -0.042em;
}

.launch-builder-head > span,
.launch-feature-status,
.launch-step-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--sf-muted);
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.launch-builder-head > span {
  min-height: 28px;
  padding: 0 10px;
}

.launch-builder-steps {
  margin-top: 22px;
  border-top: 1px solid var(--sf-border);
}

.launch-builder-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--sf-border);
}

.launch-step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--sf-primary-fg) !important;
  background: var(--sf-primary-bg) !important;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 780;
}

.launch-step-copy {
  min-width: 0;
}

.launch-step-copy strong {
  display: block;
  color: var(--sf-text);
  font-size: 13px;
  font-weight: 700;
}

.launch-step-copy p {
  margin: 3px 0 0;
  color: var(--sf-muted);
  font-size: 11px;
  line-height: 1.5;
}

.launch-step-status {
  min-height: 24px;
  padding: 0 8px;
  white-space: nowrap;
}

.launch-builder-note {
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--sf-muted);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.55;
}

.launch-stack {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--sf-border);
  scroll-margin-top: 96px;
}

.launch-stack-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.launch-stack-heading h2 {
  max-width: 640px;
  font-size: 27px;
}

.launch-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.launch-feature-card {
  min-width: 0;
  min-height: 168px;
  padding: 19px;
  background: var(--sf-surface-raised);
  border: 1px solid var(--sf-border);
  border-radius: 20px;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.launch-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--sf-border-strong);
}

.launch-feature-status {
  min-height: 24px;
  padding: 0 8px;
}

.launch-feature-card h3 {
  margin: 18px 0 0;
  color: var(--sf-text);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.launch-feature-card p {
  margin: 8px 0 0;
  color: var(--sf-muted);
  font-size: 12px;
  line-height: 1.65;
}

.launch-feature-card:last-child {
  background: color-mix(in srgb, var(--sf-surface-raised) 72%, transparent);
}

@media (max-width: 1120px) {
  .launch-hero-layout {
    grid-template-columns: 1fr;
  }

  .launch-builder {
    min-height: 0;
  }

  .launch-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .launch-hero-v2 {
    padding: 20px 16px 0;
  }

  .launch-hero-surface {
    padding: 22px;
    border-radius: 24px;
  }

  .launch-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .launch-actions {
    flex-direction: column;
  }

  .launch-primary,
  .launch-secondary {
    width: 100%;
  }

  .launch-builder {
    padding: 19px;
    border-radius: 21px;
  }

  .launch-builder-head {
    align-items: center;
  }

  .launch-builder-head h2,
  .launch-stack-heading h2 {
    font-size: 21px;
  }

  .launch-builder-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .launch-step-status {
    display: none;
  }

  .launch-stack-heading {
    display: block;
  }

  .launch-feature-grid {
    grid-template-columns: 1fr;
  }

  .launch-feature-card {
    min-height: 0;
  }
}

html:not(.dark) .solforge-shell :is(
  [class~="border-[#b9d9c1]"],
  [class~="border-[#bfdcc6]"],
  [class~="border-[#bfe2c7]"],
  [class~="border-[#cfe8d5]"],
  [class~="border-[#d8eadc]"]
) {
  border-color: var(--sf-border-strong) !important;
}

/* Complete the neutral light palette without matching hover-only utilities. */
html:not(.dark) .solforge-shell :is(
  [class~="bg-[#e8f7ec]"], [class~="bg-[#eaf7ed]"],
  [class~="bg-[#eaf8ed]"], [class~="bg-[#eef2ee]"],
  [class~="bg-[#eef3ef]"], [class~="bg-[#f0f3f0]"],
  [class~="bg-[#f0f3f1]"], [class~="bg-[#f1f3f1]"],
  [class~="bg-[#f2f4f1]"], [class~="bg-[#f2f4f2]"],
  [class~="bg-[#f2faf4]"], [class~="bg-[#f3f5f3]"],
  [class~="bg-[#f3f6f3]"], [class~="bg-[#f7f9f7]"],
  [class~="bg-[#f7faf7]"], [class~="bg-[#f7fcf8]"],
  [class~="bg-[#f8faf8]"]
) {
  background-color: var(--sf-surface-soft) !important;
  background-image: none !important;
}

html:not(.dark) .solforge-shell :is(
  [class~="text-[#55705d]"], [class~="text-[#59635d]"],
  [class~="text-[#667069]"], [class~="text-[#69736c]"],
  [class~="text-[#718078]"], [class~="text-[#748078]"],
  [class~="text-[#758078]"], [class~="text-[#7a837d]"],
  [class~="text-[#7b857e]"], [class~="text-[#7f8882]"],
  [class~="text-[#87958a]"], [class~="text-[#8b948e]"]
) {
  color: var(--sf-muted) !important;
}

html:not(.dark) .solforge-shell :is(
  [class~="bg-[#0b1510]"], [class~="bg-[#0c1710]"],
  [class~="bg-[#101713]"]
),
html:not(.dark) .solforge-portal [class~="bg-[#101713]"] {
  background-color: #111114 !important;
}

/* White action surfaces stay readable after the base dark-theme inversion. */
.dark .solforge-shell [class~="bg-white"][class~="text-black"] {
  color: #09090b !important;
  background-color: #fff !important;
}

.dark .solforge-shell [class~="bg-[#0d0d10]"] .bg-white {
  color: #09090b !important;
  background-color: #fff !important;
}

.dark .solforge-shell [class~="bg-[#0d0d10]"] :is(.text-black, [class*="text-black/"]) {
  color: #09090b !important;
}

.dark .solforge-shell [class~="bg-[#0d0d10]"] .bg-white input:not([type="checkbox"]) {
  color: #09090b !important;
  background-color: #f4f4f5 !important;
  border-color: rgba(9, 9, 11, 0.15) !important;
}

/* The wallet dialog is portaled outside .solforge-shell. */
.dark .solforge-portal [class~="bg-[#101713]"] {
  color: #09090b !important;
  background-color: #f4f4f5 !important;
}

.dark .solforge-portal [class*="hover:bg-[#263129]"]:hover {
  color: #09090b !important;
  background-color: #d4d4d8 !important;
}

@media (prefers-reduced-motion: reduce) {
  .launch-primary,
  .launch-secondary,
  .launch-feature-card {
    transition: none;
  }
}

/* Access page: launch story and secure access remain one responsive surface. */
.access-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.access-launch-scope {
  --sf-canvas: #08080a;
  --sf-surface: #121214;
  --sf-surface-soft: #19191c;
  --sf-surface-raised: #161619;
  --sf-text: #f7f7f8;
  --sf-muted: #b1b1b8;
  --sf-faint: #888890;
  --sf-border: rgba(255, 255, 255, 0.105);
  --sf-border-strong: rgba(255, 255, 255, 0.17);
  --sf-primary-bg: #f7f7f8;
  --sf-primary-fg: #09090b;
  --sf-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  --sf-shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.3);
  min-width: 0;
  color-scheme: dark;
}

.access-launch-scope.launch-hero-v2 {
  max-width: none;
  padding: 0;
}

.access-launch-scope .launch-hero-surface {
  height: 100%;
}

.access-launch-scope .launch-hero-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.access-launch-scope .launch-title {
  font-size: clamp(3rem, 5vw, 4.8rem);
}

.access-launch-scope .launch-builder {
  min-height: 0;
  scroll-margin-top: 24px;
}

.access-launch-scope button.launch-primary {
  cursor: pointer;
  font: inherit;
}

.access-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  scroll-margin-top: 24px;
}

@media (max-width: 1050px) {
  .access-page {
    max-width: 780px;
    grid-template-columns: minmax(0, 1fr);
  }

  .access-panel {
    position: static;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .access-page {
    gap: 24px;
    padding: 20px 16px 32px;
  }

  .access-launch-scope.launch-hero-v2 {
    padding: 0;
  }
}

/* v10 public landing: one focused hero, compact demo, modal-only access. */
.access-page {
  display: block;
  width: 100%;
  max-width: 1180px;
  padding: 22px 24px 48px;
}

.access-public {
  width: 100%;
  min-width: 0;
}

.access-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 16px;
}

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f7f7f8;
  text-decoration: none;
}

.access-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #08080a;
  background: #f7f7f8;
  border-radius: 13px;
  font-size: 18px;
}

.access-brand strong,
.access-brand small {
  display: block;
}

.access-brand strong {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.access-brand small {
  margin-top: 5px;
  color: #85858d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-account-button {
  min-height: 44px;
  padding: 0 17px;
  cursor: pointer;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 720;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.access-account-button:hover {
  transform: translateY(-1px);
}

.access-account-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.access-login {
  color: #f7f7f8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.access-register {
  color: #09090b;
  background: #f7f7f8;
  border: 1px solid #f7f7f8;
}

.access-hero-clean {
  position: relative;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(50px, 7vw, 78px) clamp(22px, 7vw, 80px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.085), transparent 40%),
    #121214;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 30px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.access-hero-clean .launch-title {
  max-width: 880px;
  margin-top: 18px;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 0.96;
}

.access-hero-clean .launch-lead,
.access-hero-clean .launch-support {
  margin-right: auto;
  margin-left: auto;
}

.access-hero-clean .launch-lead {
  max-width: 720px;
  margin-top: 24px;
}

.access-hero-clean .launch-support {
  max-width: 650px;
}

.access-hero-clean .launch-actions,
.access-hero-clean .launch-trust-row {
  justify-content: center;
}

.access-demo-wrap {
  width: 100%;
  margin-top: 22px;
  scroll-margin-top: 24px;
}

.mc-demo {
  padding: clamp(16px, 2vw, 26px);
  border-radius: 26px;
}

.mc-demo-head {
  width: min(100%, 1280px);
  margin: 0 auto 14px;
  align-items: center;
  gap: 18px;
}

.mc-demo h2 {
  font-size: clamp(22px, 2vw, 30px);
}

.mc-demo-copy {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
}

.mc-story {
  width: min(100%, 1280px);
  margin: 0 auto 12px;
  gap: 6px;
}

.mc-story li {
  padding: 6px 9px;
}

.mc-terminal {
  width: min(100%, 1280px);
  margin: 0 auto;
  border-radius: 18px;
}

.mc-toolbar {
  min-height: 44px;
  padding: 8px 12px;
  gap: 7px 14px;
}

.mc-chart {
  width: 100%;
  min-width: 900px;
  height: auto;
  aspect-ratio: 1200 / 360;
}

.mc-demo-legend {
  padding: 9px 12px;
}

.access-demo-wrap .mc-demo {
  margin: 0;
}

.access-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  max-width: none;
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
  padding: 72px 20px 28px;
  background: rgba(4, 4, 6, 0.84);
  backdrop-filter: blur(18px);
  scroll-margin: 0;
}

.access-panel-brand,
.access-modal-card,
.access-panel-footnote {
  width: min(100%, 520px);
}

.access-panel-brand {
  margin-bottom: 16px !important;
}

.access-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  color: #f7f7f8;
  background: #171719;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.access-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .access-page {
    padding: 14px 14px 30px;
  }

  .access-topbar {
    min-height: 62px;
    padding-bottom: 12px;
  }

  .access-brand small {
    display: none;
  }

  .access-account-button {
    min-height: 42px;
    padding: 0 13px;
  }

  .access-hero-clean {
    min-height: 0;
    padding: 58px 20px;
    border-radius: 24px;
  }

  .access-hero-clean .launch-title {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .access-demo-wrap {
    margin-top: 16px;
  }

  .mc-demo {
    padding: 14px;
    border-radius: 20px;
  }

  .mc-demo-head {
    display: block;
    margin-bottom: 12px;
  }

  .mc-demo-actions {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .mc-toolbar {
    min-height: 0;
    padding: 8px 10px;
    gap: 6px 10px;
  }

  .mc-ohlc {
    order: 4;
    flex-basis: 100%;
  }

  .mc-chart {
    min-width: 840px;
  }

  .mc-demo-legend {
    padding: 8px 10px;
    font-size: 9px;
  }

  .access-panel {
    padding: 68px 12px 20px;
  }

  .access-modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .access-account-button {
    transition: none;
  }
}
