:root {
  --home-background: #000;
  --home-surface: #0a0a0c;
  --home-line: #2d2d32;
  --home-foreground: #f5f5f7;
  --home-muted: #a1a1a6;
  --home-gold: #e8b84b;
  --home-green: #2dd4a7;
  --home-red: #f0527a;
}

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; background: var(--home-background); }
body.marketing-home { margin: 0; background: var(--home-background); color: var(--home-foreground); font-family: Arial, Helvetica, sans-serif; }
.marketing-home * { box-sizing: border-box; }
.marketing-home a { color: inherit; text-decoration: none; }
.marketing-home p, .marketing-home h1, .marketing-home h2, .marketing-home h3 { margin: 0; }
.home-shell { min-height: 100vh; overflow-x: hidden; }

.home-market-nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; min-height: 68px; align-items: center; gap: 16px; padding: 0 clamp(18px, 4vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .74); backdrop-filter: saturate(160%) blur(20px); }
.home-nav-center { position: absolute; left: 50%; display: flex; align-items: center; gap: 22px; transform: translateX(-50%); }
.home-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.home-brand img { display: block; width: 146px; height: auto; }
.home-nav-links { display: flex; align-items: center; gap: 1px; }
.home-nav-actions { position: absolute; right: clamp(18px, 4vw, 64px); display: flex; align-items: center; gap: 8px; }
.home-nav-actions a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; color: rgba(245, 245, 247, .88); font-size: 12px; font-weight: 700; white-space: nowrap; }
.home-nav-actions a:hover { color: #fff; }
.home-nav-actions .get-started { border-radius: 999px; background: #2f63ed; color: #fff; box-shadow: 0 10px 24px rgba(47, 99, 237, .28); }
.home-nav-actions .get-started:hover { background: #3c70f8; }
.home-nav-links > a, .home-index-menu summary, .home-nav-item > a { color: rgba(245, 245, 247, .82); font-size: 12px; font-weight: 600; white-space: nowrap; }
.home-nav-links > a { padding: 10px 12px; }
.home-nav-item > a { padding: 10px 12px; }
.home-nav-links > a:hover, .home-nav-item:hover > a, .home-nav-item:focus-within > a, .home-index-menu[open] summary { color: #fff; }
.home-nav-item { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.home-nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.home-nav-trigger::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); opacity: .75; }
.home-nav-dropdown { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 40; display: flex; flex-direction: column; gap: 4px; min-width: 172px; padding: 8px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 8px; background: rgba(20, 20, 24, .98); box-shadow: 0 18px 40px rgba(0, 0, 0, .48); opacity: 0; pointer-events: none; visibility: hidden; transform: translate(-50%, -8px) scale(.96); transform-origin: top center; transition: opacity .16s ease, visibility .16s ease, transform .2s cubic-bezier(.2, .85, .25, 1.18); }
.home-nav-dropdown::before { position: absolute; top: -10px; right: 0; left: 0; height: 10px; content: ""; }
.home-nav-item:hover .home-nav-dropdown, .home-nav-item:focus-within .home-nav-dropdown { opacity: 1; pointer-events: auto; visibility: visible; transform: translate(-50%, 0) scale(1); }
.home-nav-dropdown a { display: flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 5px; color: #f5f5f7; font: 600 12px Arial, Helvetica, sans-serif; }
.home-nav-dropdown a:hover, .home-nav-dropdown a:focus-visible { background: #2a2a2f; color: var(--home-gold); }
.home-symbol-search { position: relative; width: 200px; flex: 0 0 200px; margin-left: 6px; }
.home-symbol-search input { width: 100%; box-sizing: border-box; min-height: 36px; padding: 8px 30px 8px 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.06); color: #f5f5f7; font: 500 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; outline: none; }
.home-symbol-search input:focus { border-color: #f7c948; background: rgba(255,255,255,.1); }
.home-symbol-search .symsearch-icon { position: absolute; z-index: 1; top: 50%; left: 10px; transform: translateY(-50%); color: #9aa4b8; font-size: 12px; pointer-events: none; }
.home-symbol-search .symsearch-kbd { position: absolute; z-index: 1; top: 50%; right: 10px; transform: translateY(-50%); padding: 0 4px; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; color: #9aa4b8; font: 600 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; pointer-events: none; }
.home-symbol-search input:focus ~ .symsearch-kbd { display: none; }
.home-symbol-search .sympanel { display: none; position: absolute; z-index: 100; top: calc(100% + 8px); right: 0; width: 420px; max-width: min(420px, calc(100vw - 24px)); max-height: min(420px, calc(100vh - 96px)); overflow-y: auto; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #151519; box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.home-symbol-search .sympanel.open { display: block; }
.home-symbol-search .grp { margin-bottom: 12px; }
.home-symbol-search .grp:last-child { margin-bottom: 0; }
.home-symbol-search .grp h5 { margin: 0 0 7px; color: #9aa4b8; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.home-symbol-search .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.home-symbol-search .chip { display: inline-block; padding: 4px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background: #202026; color: #f5f5f7; font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.home-symbol-search .chip:hover, .home-symbol-search .chip.active { border-color: #f7c948; color: #f7c948; }
.home-symbol-search .empty { padding: 18px 8px; color: #b5b5bb; font-size: 13px; line-height: 1.6; text-align: center; }
.home-symbol-search .empty a { color: #f7c948; }
.home-index-menu { position: relative; flex: 0 0 auto; }
.home-index-menu summary { display: inline-flex; align-items: center; min-height: 36px; padding: 10px 12px; cursor: pointer; list-style: none; }
.home-index-menu summary::-webkit-details-marker { display: none; }
.home-index-menu summary::after { width: 5px; height: 5px; margin-left: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.home-index-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.home-index-dropdown { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; display: grid; min-width: 128px; padding: 6px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 7px; background: rgba(20, 20, 24, .96); box-shadow: 0 18px 40px rgba(0, 0, 0, .48); }
.home-index-dropdown a { min-height: 34px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; color: #f5f5f7; font-family: Consolas, Monaco, monospace; font-size: 12px; font-weight: 700; }
.home-index-dropdown a:hover { background: #2a2a2f; color: var(--home-gold); }
.home-more-menu { display: none; }

.home-snap-section { position: relative; min-height: 100vh; scroll-snap-align: start; overflow: hidden; }
.home-hero, .home-closing { display: grid; place-items: center; padding: 88px 22px 48px; text-align: center; }
.home-hero-copy { z-index: 2; width: min(1080px, 100%); }
.home-product-name, .home-kicker { color: var(--home-gold); font-size: clamp(18px, 2vw, 26px); font-weight: 700; }
.home-hero h1, .home-feature-copy h2, .home-closing h2 { letter-spacing: 0; }
.home-hero h1 { width: min(1000px, 100%); margin: 8px auto 0; font-size: clamp(50px, 7.2vw, 94px); line-height: .97; }
.home-hero-subtitle, .home-closing p, .home-feature-copy > p { color: var(--home-muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.4; }
.home-hero-subtitle { width: min(720px, 100%); margin: 18px auto 0; }
@media (min-width: 981px) {
  .home-hero-subtitle { width: 100%; white-space: nowrap; font-size: clamp(18px, 1.75vw, 23px); }
}
.home-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 20px; color: var(--home-gold); font-size: clamp(17px, 2vw, 20px); }
.home-hero-links a:hover, .home-screen-link:hover { text-decoration: underline; }

.home-product-frame { position: relative; width: min(1180px, 92vw); aspect-ratio: 16 / 9.15; margin-top: clamp(28px, 4vw, 48px); overflow: hidden; border: 1px solid var(--home-line); border-radius: 8px; background: #101014; box-shadow: 0 32px 82px rgba(0, 0, 0, .5); }
.home-product-frame::after { position: absolute; inset: 0; content: ""; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.home-product-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.home-browser-dots { position: absolute; top: 11px; left: 13px; z-index: 2; display: flex; gap: 7px; }
.home-browser-dots span { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.home-desktop-display { width: min(1180px, 92vw); margin-top: clamp(28px, 4vw, 48px); }
.home-monitor-shell { position: relative; padding: 10px; border: 1px solid #393b40; border-radius: 15px; background: #1c1e22; box-shadow: 0 38px 88px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .1); }
.home-desktop-display .home-product-frame { width: 100%; aspect-ratio: 1423 / 918; margin: 0; border: 0; border-radius: 6px; box-shadow: none; }
.home-monitor-camera { position: absolute; z-index: 2; top: 4px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #070809; box-shadow: 0 0 0 1px #42454a; transform: translateX(-50%); }
.home-monitor-stand { width: 24%; height: 22px; margin: 0 auto; border: 1px solid #393b40; border-top: 0; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #15171a, #303238 48%, #15171a); }
.home-monitor-base { width: 42%; height: 9px; margin: -1px auto 0; border: 1px solid #3d4045; border-radius: 999px 999px 4px 4px; background: #202227; box-shadow: 0 12px 22px rgba(0, 0, 0, .5); }

.home-product-section { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.22fr); align-items: center; gap: clamp(28px, 5vw, 78px); padding: 78px clamp(22px, 5vw, 88px) 48px; background: var(--home-background); }
.home-product-section.home-surface { background: var(--home-surface); }
.home-feature-copy { max-width: 620px; }
.home-feature-copy h2, .home-closing h2 { margin-top: 10px; font-size: clamp(42px, 6.2vw, 84px); line-height: .99; }
.home-feature-copy > p { margin-top: 18px; }
.home-screen-link { display: inline-block; margin-top: 20px; color: var(--home-gold); font-size: clamp(17px, 2vw, 20px); font-weight: 700; }
.home-product-section .home-product-frame { width: min(920px, 100%); margin-top: 0; }
.home-double-product-frames { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; width: min(920px, 100%); }
.home-double-product-frames .home-product-frame { width: 100%; aspect-ratio: 16 / 10; margin: 0; }
.home-double-product-frames .home-product-frame img { object-fit: contain; }
.home-product-preview-caption { margin: 12px 0 0; color: var(--home-gold); font-size: 14px; font-weight: 700; text-align: center; }
.home-stock-coverage .home-product-frame img { object-fit: contain; }
.home-accent-green .home-kicker, .home-accent-green .home-screen-link { color: var(--home-green); }
.home-accent-red .home-kicker, .home-accent-red .home-screen-link { color: var(--home-red); }

.home-closing { min-height: 70vh; padding-top: 62px; padding-bottom: 34px; background: #000; }
.home-closing-inner { width: min(800px, 100%); }
.home-closing h2 { margin-top: 10px; }
.home-closing p { width: min(700px, 100%); margin: 18px auto 0; }
.home-footer { width: min(1350px, calc(100% - 44px)); margin: 48px auto 0; border-radius: 8px; background: #121620; }
.home-footer-inner { padding: 48px min(7vw, 102px) 26px; }
.home-footer-grid { display: grid; grid-template-columns: minmax(280px, 1fr) repeat(3, 170px); gap: 34px; align-items: start; }
.home-footer-brand { display: flex; flex-direction: column; gap: 22px; }
.home-footer-logo { display: inline-flex; align-items: center; align-self: flex-start; gap: 14px; }
.home-footer-logo img { width: 260px; height: auto; }
.home-footer-version { padding: 3px 8px; border: 1px solid rgba(232, 184, 75, .65); border-radius: 999px; color: var(--home-gold); font-family: Consolas, Monaco, monospace; font-size: 10px; font-weight: 700; }
.home-footer-tagline { max-width: 340px; margin: 0; color: #91a4c9; font-size: 15px; line-height: 1.55; }
.home-footer-col h3 { margin: 0 0 14px; color: #f5f5f7; font-size: 14px; font-weight: 800; }
.home-footer-col a { display: block; margin: 0 0 10px; color: #91a4c9; font-size: 15px; line-height: 1.35; }
.home-footer-col a:hover { color: var(--home-gold); }
.home-footer-bottom { margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: #91a4c9; font-size: 14px; }

@media (max-width: 980px) {
  html { scroll-snap-type: none; }
  .home-market-nav { min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; justify-content: initial; overflow: hidden; }
  .home-nav-center { display: contents; }
  .home-brand { grid-column: 1; }
  .home-brand img { width: 122px; }
  .home-nav-links { grid-column: 2; min-width: 0; overflow-x: auto; }
  .home-symbol-search { width: 170px; flex-basis: 170px; }
  .home-nav-actions { position: static; grid-column: 3; margin-left: 0; flex: 0 0 auto; }
  .home-nav-links::-webkit-scrollbar { display: none; }
  .home-index-menu summary, .home-nav-links > a { padding: 10px 9px; }
  .home-index-dropdown { position: fixed; top: 64px; left: 16px; }
  .home-snap-section { min-height: auto; }
  .home-product-section { grid-template-columns: 1fr; min-height: auto; padding: 84px 22px; text-align: center; }
  .home-feature-copy { margin: 0 auto; }
  .home-product-frame, .home-product-section .home-product-frame { width: min(960px, 94vw); }
  .home-double-product-frames { width: min(960px, 94vw); }
  .home-desktop-display { width: min(960px, 94vw); }
  .home-footer-inner { padding-left: 46px; padding-right: 46px; }
  .home-footer-grid { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(92px, .6fr)); gap: 24px; }
}

@media (max-width: 560px) {
  .home-market-nav { min-height: 58px; gap: 8px; padding: 0 14px; }
  .home-brand img { width: 104px; }
  .home-nav-actions { gap: 2px; }
  .home-nav-actions a { min-height: 32px; padding: 0 8px; font-size: 11px; }
  .home-nav-links > a, .home-index-menu summary { font-size: 11px; }
  .home-index-dropdown { top: 64px; left: 12px; }
  .home-symbol-search { width: 154px; flex-basis: 154px; }
  .home-symbol-search .sympanel { position: fixed; top: 66px; right: 12px; left: 12px; width: auto; max-width: none; }
  .home-hero { padding-top: 76px; }
  .home-hero h1 { font-size: 44px; }
  .home-feature-copy h2, .home-closing h2 { font-size: 40px; }
  .home-hero-subtitle, .home-closing p, .home-feature-copy > p { font-size: 18px; }
  .home-product-frame, .home-product-section .home-product-frame { aspect-ratio: 4 / 3; }
  .home-double-product-frames { grid-template-columns: 1fr; }
  .home-double-product-frames .home-product-frame { aspect-ratio: 16 / 10; }
  .home-desktop-display .home-product-frame { aspect-ratio: 1423 / 918; }
  .home-monitor-shell { padding: 6px; border-radius: 10px; }
  .home-monitor-stand { height: 16px; }
  .home-monitor-base { height: 7px; }
  .home-footer { width: min(1350px, calc(100% - 28px)); margin-top: 28px; }
  .home-footer-inner { padding: 36px 22px 22px; }
  .home-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
  .home-footer-brand { grid-column: 1 / -1; }
  .home-footer-logo img { width: 220px; }
  .home-footer-col h3 { font-size: 11px; }
  .home-footer-col a { font-size: 12px; }
  .home-footer-bottom { margin-top: 30px; padding-top: 20px; font-size: 12px; }
}

@media (max-width: 980px) {
  .home-market-nav {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px;
    overflow: visible;
  }
  .home-nav-center {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: none;
  }
  .home-brand { display: none; }
  .home-nav-links {
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: visible;
  }
  .home-nav-links > a:not([href="/trinity-gex/"]):not([href="/market/daily/?symbol=SPX"]) { display: none; }
  .home-nav-item { display: none; }
  .home-index-menu { order: 1; position: relative; margin-left: 0; }
  .home-nav-links > a[href="/trinity-gex/"] {
    order: 2;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: rgba(245,245,247,.9);
    font-size: 12px;
    font-weight: 600;
  }
  .home-nav-links > a[href="/market/daily/?symbol=SPX"] {
    order: 3;
    min-height: 36px;
    max-width: 68px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    padding: 0 5px;
    color: rgba(245,245,247,.9);
    font-size: 11px;
    font-weight: 600;
  }
  .home-index-menu summary {
    width: auto;
    min-height: 36px;
    justify-content: center;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
  }
  .home-index-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 68px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    padding: 8px;
  }
  .home-index-dropdown a {
    min-height: 36px;
    font-size: 13px;
  }
  .home-symbol-search {
    order: 4;
    width: auto;
    min-width: 44px;
    flex: 0 1 50px;
    margin-left: 0;
  }
  .home-symbol-search input {
    min-height: 36px;
    padding: 7px 24px 7px 28px;
    font-size: 12px;
  }
  .home-symbol-search .symsearch-kbd { display: none; }
  .home-symbol-search .sympanel {
    position: fixed;
    top: 58px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
  }
  .home-more-menu {
    order: 5;
    position: relative;
    display: block;
    flex: 0 0 auto;
    margin-left: 0;
  }
  .home-more-menu summary {
    width: 42px;
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    list-style: none;
    cursor: pointer;
  }
  .home-more-menu summary::-webkit-details-marker { display: none; }
  .home-more-menu summary::before {
    content: "";
    width: 26px;
    height: 5px;
    border-radius: 999px;
    background: #ff942e;
    box-shadow: 0 -9px 0 #ff942e, 0 9px 0 #ff942e;
  }
  .home-more-dropdown {
    position: fixed;
    top: 56px;
    right: 8px;
    z-index: 90;
    display: grid;
    min-width: 176px;
    max-width: calc(100vw - 16px);
    padding: 8px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(20,20,24,.98);
    box-shadow: 0 18px 40px rgba(0,0,0,.48);
  }
  .home-more-dropdown a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 5px;
    color: #f5f5f7;
    font-size: 13px;
    font-weight: 700;
  }
  .home-more-dropdown a:hover {
    background: #2a2a2f;
    color: var(--home-gold);
  }
  .home-nav-actions {
    display: none;
  }
}
