/* MarketForma homepage — model: openai; role: user-authorized implementation */
.home-page {
  --home-bg: #0e1117;
  --home-ink: #f4f5f7;
  --home-muted: #aeb5c1;
  --home-accent: #f4f5f7;
  --home-line: rgba(244, 245, 247, 0.16);
  --home-gutter: clamp(24px, 4.4vw, 76px);
  margin: 0;
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page [hidden] { display: none !important; }
.home-page .site-header.is-in-workspace { transform: translateY(-100%); pointer-events: none; }

html:has(.home-page) {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-page button,
.home-page a {
  -webkit-tap-highlight-color: transparent;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 6px;
}

.home-page ::selection {
  background: var(--home-accent);
  color: var(--home-bg);
}

.home-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 20px;
  padding: 12px 20px;
  background: var(--home-accent);
  color: var(--home-bg) !important;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
}

.home-skip:focus {
  transform: translateY(0);
}

.home-page .site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 96px;
  padding: 0 var(--home-gutter);
  border-bottom: 1px solid rgba(244, 245, 247, 0.12);
  background: rgba(14, 17, 23, 0.14);
  transition: background 200ms ease, height 200ms ease, border-color 200ms ease;
}

.home-page .site-header.is-scrolled,
.home-page.is-scrolled .site-header {
  height: 76px;
  border-color: var(--home-line);
  background: rgba(14, 17, 23, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.home-page .site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.home-page .site-brand img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.home-page .site-brand > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.home-page .site-brand small {
  color: #a4adba;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 1.65px;
}

.home-page .site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
}

.home-page .site-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.home-page .site-nav > a:hover {
  color: var(--home-accent);
}

.home-page .site-nav .nav-launch {
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(244, 245, 247, 0.4);
}

.home-page .site-nav .nav-launch:hover {
  border-color: var(--home-accent);
  background: rgba(244, 245, 247, 0.06);
}

.home-page .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 720px;
  height: 100vh;
  height: 100svh;
  padding: 144px var(--home-gutter) 154px;
  overflow: hidden;
  background: #101319;
}

.home-page .hero-video,
.home-page .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-page .hero-video {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: .58;
  filter: saturate(.62) contrast(.92);
}

.home-page .hero-shade {
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(14, 17, 23, 0.94) 0%, rgba(14, 17, 23, 0) 33%),
    linear-gradient(90deg, rgba(9, 12, 18, 0.74) 0%, rgba(9, 12, 18, 0.48) 39%, rgba(9, 12, 18, 0.18) 83%),
    rgba(9, 12, 18, 0.1);
}

.home-page .hero-content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 16px;
}

.home-page .hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 29px;
  color: var(--home-accent);
  font-family: "SFMono-Regular", Consolas, "Microsoft JhengHei", monospace;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-page .hero-kicker::before {
  content: "";
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: var(--home-accent);
}

.home-page .hero h1 {
  max-width: 1050px;
  margin: 0;
  color: #f4f5f7;
  font-size: clamp(72px, 7.2vw, 108px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.home-page .hero h1 span {
  display: block;
  color: var(--home-accent);
}

.home-page .hero-description {
  max-width: 500px;
  margin: 30px 0 0;
  color: #c7ccd5;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 35px;
}

.home-page .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 192px;
  min-height: 56px;
  padding: 15px 22px;
  border: 1px solid var(--home-accent);
  background: var(--home-accent);
  color: #101a2a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-page .hero-cta:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: #ffffff;
}

.home-page .hero-note {
  color: #aeb6c2;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.home-page .hero-bottom {
  position: absolute;
  right: var(--home-gutter);
  bottom: 28px;
  left: var(--home-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 245, 247, 0.22);
}

.home-page .scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #e1e4e9;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  transition: color 160ms ease;
}

.home-page .scroll-cue:hover {
  color: var(--home-accent);
}

.home-page .hero-video-controls {
  display: flex;
  align-items: center;
  gap: 13px;
}

.home-page #video-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid rgba(244, 245, 247, 0.25);
  border-radius: 0;
  background: rgba(14, 17, 23, 0.25);
  color: #e9edf2;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.home-page #video-toggle:hover {
  border-color: var(--home-accent);
  color: var(--home-accent);
}

.home-page .video-caption {
  max-width: 260px;
  color: #a4adba;
  font-family: "SFMono-Regular", Consolas, "Microsoft JhengHei", monospace;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.home-page .workspace-section {
  scroll-margin-top: 76px;
  padding: 72px var(--home-gutter) 68px;
  border-top: 1px solid var(--home-line);
  background: var(--home-bg);
}

.home-page .workspace-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto 32px;
}

.home-page .section-eyebrow {
  margin: 0 0 14px;
  color: var(--home-accent);
  font-family: "SFMono-Regular", Consolas, "Microsoft JhengHei", monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-page .workspace-intro h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.home-page .workspace-intro p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.9;
  text-wrap: pretty;
}

.home-page .demo-label {
  display: inline-block;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #4b4b50;
  color: #9da6b4;
  font-size: 10px;
  line-height: 1.3;
  vertical-align: 1px;
}

.home-page .workspace-launch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 245, 247, 0.5);
  color: var(--home-accent);
  font-size: 12px;
  line-height: 1.7;
  transition: border-color 160ms ease, color 160ms ease;
}

.home-page .workspace-launch:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.home-page .workspace-frame {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  border: 1px solid #3c414d;
  background: #0c1524;
}

.home-page #radar-frame {
  display: block;
  width: 100%;
  height: 900px;
  height: min(960px, 90svh);
  min-height: 760px;
  border: 0;
  background: #0c1524;
  color-scheme: dark;
}

.home-page .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 112px;
  padding: 28px var(--home-gutter);
  border-top: 1px solid var(--home-line);
  background: var(--home-bg);
}

.home-page .site-footer .site-brand {
  gap: 9px;
  font-size: 15px;
}

.home-page .site-footer .site-brand img {
  width: 24px;
  height: 24px;
}

.home-page .site-footer p {
  max-width: 720px;
  margin: 0;
  color: #aab0bd;
  font-size: 11px;
  line-height: 1.9;
}

.home-page .site-footer p a {
  color: var(--home-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page .site-footer > a:last-child:not(.site-brand) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  color: #b8bfca;
  font-size: 11px;
}

.home-page .site-brand:hover,
.home-page .site-footer > a:last-child:not(.site-brand):hover {
  color: var(--home-accent);
}

.home-page noscript > p {
  margin: 0;
  padding: 20px var(--home-gutter);
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.8;
}

.home-page noscript a {
  color: var(--home-accent);
  text-decoration: underline;
}

@media (min-width: 1800px) {
  .home-page .hero-content {
    padding-left: 12px;
  }
}

@media (max-width: 1024px) {
  .home-page .hero {
    min-height: 740px;
  }

  .home-page .hero h1 {
    max-width: 800px;
    font-size: clamp(62px, 8.4vw, 88px);
  }

  .home-page .site-nav {
    gap: 22px;
  }

  .home-page .workspace-section {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .home-page .site-footer {
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 12px;
  }

  .home-page .site-footer p {
    flex: 1 1 50%;
  }
}

@media (max-width: 680px) {
  .home-page {
    --home-gutter: 22px;
  }

  html:has(.home-page) {
    scroll-padding-top: 68px;
  }

  .home-page .site-header,
  .home-page .site-header.is-scrolled,
  .home-page.is-scrolled .site-header {
    gap: 14px;
    height: 70px;
  }

  .home-page .site-brand {
    gap: 8px;
    font-size: 15px;
    letter-spacing: -0.35px;
  }

  .home-page .site-brand img {
    width: 25px;
    height: 25px;
  }

  .home-page .site-brand small {
    font-size: 7px;
    letter-spacing: 1.1px;
  }

  .home-page .site-nav {
    gap: 0;
    font-size: 11px;
  }

  .home-page .site-nav > a:not(.nav-launch) {
    display: none;
  }

  .home-page .site-nav .nav-launch {
    gap: 8px;
    min-height: 40px;
    padding: 0 11px;
  }

  .home-page .hero {
    align-items: center;
    min-height: 650px;
    height: 88vh;
    height: 88svh;
    padding: 114px var(--home-gutter) 134px;
  }

  .home-page .hero-content {
    padding-top: 0;
  }

  .home-page .hero-video {
    object-position: 63% center;
  }

  .home-page .hero-shade {
    background:
      linear-gradient(0deg, rgba(14, 17, 23, 0.96), rgba(14, 17, 23, 0) 42%),
      linear-gradient(90deg, rgba(9, 12, 18, 0.68), rgba(9, 12, 18, 0.28)),
      rgba(9, 12, 18, 0.14);
  }

  .home-page .hero-kicker {
    gap: 9px;
    margin-bottom: 24px;
    font-size: 9px;
    letter-spacing: 1.3px;
  }

  .home-page .hero h1 {
    max-width: 600px;
    font-size: clamp(46px, 12.7vw, 64px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.06em;
  }

  .home-page .hero-description {
    max-width: 370px;
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.95;
  }

  .home-page .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 27px;
  }

  .home-page .hero-cta {
    min-width: 184px;
    min-height: 52px;
    padding: 12px 19px;
    font-size: 13px;
  }

  .home-page .hero-note {
    font-size: 10px;
  }

  .home-page .hero-bottom {
    bottom: 18px;
    gap: 12px;
    padding-top: 14px;
  }

  .home-page .scroll-cue {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .home-page .hero-video-controls {
    flex: 0 0 auto;
    gap: 0;
  }

  .home-page .video-caption {
    display: none;
  }

  .home-page #video-toggle {
    font-size: 10px;
  }

  .home-page .workspace-section {
    scroll-margin-top: 70px;
    padding: 44px 14px 36px;
  }

  .home-page .workspace-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .home-page .section-eyebrow {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .home-page .workspace-intro h2 {
    font-size: 29px;
    letter-spacing: -0.04em;
  }

  .home-page .workspace-intro p:not(.section-eyebrow) {
    margin-top: 12px;
    font-size: 12px;
  }

  .home-page .demo-label {
    display: block;
    width: fit-content;
    margin-top: 9px;
    margin-left: 0;
    padding-left: 0;
    border: 0;
    font-size: 9px;
  }

  .home-page .workspace-launch {
    min-height: 42px;
    font-size: 11px;
  }

  .home-page #radar-frame {
    height: 850px;
    min-height: 850px;
  }

  .home-page .site-footer {
    align-items: flex-start;
    gap: 14px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .home-page .site-footer .site-brand {
    order: 0;
  }

  .home-page .site-footer p {
    order: 2;
    flex-basis: 100%;
    font-size: 10px;
  }

  .home-page .site-footer > a:last-child:not(.site-brand) {
    order: 1;
    margin-left: auto;
  }
}

@media (max-width: 374px) {
  .home-page {
    --home-gutter: 18px;
  }

  .home-page .site-brand {
    font-size: 13px;
  }

  .home-page .site-brand img {
    width: 23px;
    height: 23px;
  }

  .home-page .site-nav .nav-launch {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }

  .home-page .hero h1 {
    font-size: 39px;
  }
}

@media (max-height: 700px) and (min-width: 681px) {
  .home-page .hero {
    min-height: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) {
    scroll-behavior: auto;
  }

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .home-page .hero-cta:hover {
    transform: none;
  }
}
