/* SeasonalQuant landing — standalone. Everything is scoped under .sq-landing. */

.sq-landing {
  --sq-bg: #0c0b10;
  --sq-text-default: #f4f4f5;
  --sq-text-subtle: #cbcbcd;
  --sq-text-subtlest: #9b9ba1;
  --sq-text-inversed: #1f1f23;
  --sq-text-success: #84e589;
  --sq-border-boldest: #67676f;
  --sq-hero-muted: #b3b3b3;
  --sq-font-body: "SQ Inter", system-ui, sans-serif;
  --sq-font-ui: "SQ Roboto", system-ui, sans-serif;
  --sq-font-display: "SQ Urbanist", system-ui, sans-serif;

  margin: 0;
  background: var(--sq-bg);
  color: var(--sq-text-default);
  font-family: var(--sq-font-body);
  -webkit-font-smoothing: antialiased;
}
:where(.sq-landing), :where(.sq-landing) *, :where(.sq-landing) *::before, :where(.sq-landing) *::after { box-sizing: border-box; }
:where(.sq-landing) :is(h1, h2, h3, p, figure, ul, ol, dl, dd) { margin: 0; }
:where(.sq-landing) a { color: inherit; text-decoration: none; }
:where(.sq-landing) img { display: block; }

/* ---------- Scrollbar (same values as the main app's nullstyle.css) ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background-color: transparent; }
::-webkit-scrollbar-thumb { background-color: #232328; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: #3a3a3d; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- Buttons ---------- */
.sq-landing__button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; border-radius: 100px;
  font: 500 16px/24px var(--sq-font-body); white-space: nowrap;
  border: 0;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.sq-landing__button--primary { background: #fff; color: var(--sq-text-inversed); }
.sq-landing__button--primary:hover { background: #bcbcbf; }
.sq-landing__button--primary:is(:disabled, [aria-disabled="true"]) { background: #191a1d; color: #47474d; pointer-events: none; }
.sq-landing__button--secondary { box-shadow: inset 0 0 0 1px var(--sq-border-boldest); color: var(--sq-text-default); width: 133px; }
.sq-landing__button--secondary:hover { background: rgba(255,255,255,.1); }
.sq-landing__button--secondary:is(:disabled, [aria-disabled="true"]) { background: #191a1d; box-shadow: none; color: #47474d; pointer-events: none; }
.sq-landing__button--sm { padding: 12px 16px; font-size: 14px; line-height: 16px; }
.sq-landing :is(a, button):focus-visible { outline: 2px solid #7ea3ff; outline-offset: 3px; }

/* ---------- Header ---------- */
.sq-landing__header {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  /* bar spans the full width, content is capped at 1280px (1440 design - 2 x 80 padding) */
  padding: 20px max(80px, calc((100% - 1280px) / 2));
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, backdrop-filter .25s, -webkit-backdrop-filter .25s;
}
/* after the page is scrolled (class set by script.js) */
.sq-landing__header.is-scrolled {
  background: rgba(12, 11, 16, .7); border-bottom-color: #131216;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.sq-landing__logo { display: block; width: 169px; height: 28px; }
.sq-landing__nav {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 40px;
}
.sq-landing__nav a { font: 500 16px/24px var(--sq-font-body); color: var(--sq-text-subtle); white-space: nowrap; transition: color .2s; }
.sq-landing__nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.sq-landing__hero {
  position: relative; overflow: hidden; height: 948px;
  padding: 94px 80px 24px; background: var(--sq-bg);
}
.sq-landing__hero-pattern { position: absolute; width: 761px; height: 745px; max-width: none; pointer-events: none; }
.sq-landing__hero-pattern--right { left: 878px; top: -503px; }
.sq-landing__hero-pattern--left { left: -195px; top: -246px; }

.sq-landing__hero-inner {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 100px 100px 40px;
}
.sq-landing__hero-copy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 949px; max-width: 100%;
}
.sq-landing__hero-title {
  width: 516px; max-width: 100%;
  font: 600 64px/normal var(--sq-font-display); text-transform: capitalize;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(98.67deg, rgba(255,255,255,.65) 11.923%, #fff 55.232%, rgba(255,255,255,.8) 91.786%);
}
.sq-landing__hero-text {
  width: 396px; max-width: 100%; margin-top: 16px;
  font: 400 18px/24px var(--sq-font-body); color: var(--sq-hero-muted);
}
.sq-landing__actions { display: flex; gap: 8px; align-items: center; margin-top: 32px; }

/* Chart: every offset is the Figma pixel value divided by the 1111.674 x 350 artboard. */
.sq-landing__chart {
  position: relative; width: 1111.674px; max-width: 100%; aspect-ratio: 1111.674 / 350;
}
.sq-landing__chart > * { position: absolute; max-width: none; }
.sq-landing__chart-layer { inset: 0; width: 100%; height: 100%; }
.sq-landing__chart-line { left: -0.17%; top: -0.769%; width: 100.33%; height: 97.86%; }
.sq-landing__chart-guide-v {
  left: calc(653.84 / 1111.674 * 100%); top: calc(36 / 350 * 100%);
  width: calc(303 / 1111.674 * 100%); height: 1px; transform-origin: 0 0; transform: rotate(90deg);
}
.sq-landing__chart-guide-h {
  left: calc(518.84 / 1111.674 * 100%); top: calc(135 / 350 * 100%);
  width: calc(306 / 1111.674 * 100%); height: 1px;
}
.sq-landing__chart-label {
  top: calc(25 / 350 * 100%); font: 400 12px/16px var(--sq-font-ui); text-transform: uppercase;
  color: var(--sq-text-subtlest); white-space: nowrap;
}
.sq-landing__chart-label--entry { left: calc(227.84 / 1111.674 * 100%); }
.sq-landing__chart-label--exit { left: calc(800.84 / 1111.674 * 100%); }
.sq-landing__chart-dot {
  left: calc(634.84 / 1111.674 * 100%); top: calc(117 / 350 * 100%);
  width: 37px; height: 37px; padding: 7px; border-radius: 100px; background: #6677a1;
  box-shadow: 0 0 150px 24px rgba(171,195,255,.75);
}
.sq-landing__chart-dot > span { display: block; width: 23px; height: 23px; border-radius: 100px; background: #c3d4ff; }
.sq-landing__tooltip {
  left: calc(674.84 / 1111.674 * 100%); top: calc(152 / 350 * 100%);
  width: 193px; height: 100px; padding: 15px; display: flex; flex-direction: column; gap: 4px;
  border: 1px solid transparent; border-radius: 20px;
  background-image: linear-gradient(151.28deg, rgba(132,229,137,.16) 0%, rgba(132,229,137,.05) 38%, rgba(132,229,137,0) 62%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); /* Figma background blur, radius 6 */
  font: 400 12px/16px var(--sq-font-ui);
}
/* Figma strokes (1px, inside): 1) green 70% -> 0%, 2) light grey rim at 25% opacity */
.sq-landing__tooltip::before, .sq-landing__tooltip::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.sq-landing__tooltip::before { background: linear-gradient(140.6deg, rgba(132,229,137,.7) -5.3%, rgba(132,229,137,0) 51.6%); }
.sq-landing__tooltip::after {
  opacity: .25;
  background: linear-gradient(151deg, rgba(199,199,199,0) 41.9%, rgba(183,183,183,.74) 95%, #e6e6e6 100%);
}
.sq-landing__tooltip-title { font: 500 16px/24px var(--sq-font-ui); color: var(--sq-text-default); margin-bottom: 4px; white-space: nowrap; }
.sq-landing__tooltip-gain { color: var(--sq-text-success); }
.sq-landing__tooltip-sub { color: var(--sq-text-subtlest); }

/* ---------- Responsive ---------- */

/* ---------- Smooth in-page navigation ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* 80px = fixed header height */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
