@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --ink: #091522;
    --ink-raised: #101f2d;
    --ink-soft: #172938;
    --paper: #eaf1ef;
    --paper-white: #f7faf9;
    --blue: #61bdff;
    --blue-deep: #167bd1;
    --lime: #d9ff69;
    --text-light: #edf4f5;
    --text-muted: #a3b4c0;
    --line-dark: rgba(208, 229, 238, 0.14);
    --line-light: rgba(9, 21, 34, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body.home-page {
    margin: 0;
    background: var(--ink);
    color: var(--text-light);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.home-page a {
    color: inherit;
}

.home-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(208, 229, 238, 0.1);
    background: rgba(9, 21, 34, 0.92);
    backdrop-filter: blur(16px);
}

.header-content {
    min-height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8bdcff 5%, #2393ee 60%, #1761b9 100%);
    box-shadow: 0 0 20px rgba(71, 176, 255, 0.32);
}

.brand-name {
    color: #f2f7f8;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.13rem;
    font-weight: 700;
}

.desktop-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.desktop-nav {
    gap: 34px;
}

.desktop-nav a,
.login-link {
    color: #bdcad2;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.desktop-nav a:hover,
.login-link:hover {
    color: #ffffff;
}

.header-actions {
    justify-self: end;
    gap: 22px;
}

.header-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid rgba(97, 189, 255, 0.45);
    border-radius: 5px;
    background: rgba(97, 189, 255, 0.1);
    color: #d8f0ff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.header-cta:hover {
    border-color: var(--blue);
    background: rgba(97, 189, 255, 0.2);
}

.mobile-nav {
    display: none;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 52px;
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(177, 215, 236, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(177, 215, 236, 0.035) 1px, transparent 1px),
        linear-gradient(110deg, #091522 0%, #0b1a29 52%, #0a1724 100%);
    background-size: 72px 72px, 72px 72px, auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    text-align: center;
    animation: reveal-up 600ms ease both;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--lime);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow-line {
    width: 23px;
    height: 1px;
    background: var(--lime);
}

.hero-content h1,
.platform-intro h2,
.process-heading h2,
.closing-content h2 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.hero-content h1 {
    margin: 22px 0 16px;
    color: #f2f7f8;
    font-size: 4.4rem;
    line-height: 1.02;
}

.hero-content h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 650px;
    margin: 0 auto;
    color: #b1c1cc;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue);
    color: #071727;
    box-shadow: 0 8px 24px rgba(53, 158, 231, 0.2);
}

.button-primary:hover {
    background: #8ad1ff;
}

.button-quiet {
    color: #c4d0d7;
}

.button-quiet:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hero-caption {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
    color: #8296a5;
    font-size: 0.78rem;
}

.hero-caption span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--lime);
}

.workspace-preview {
    position: relative;
    z-index: 1;
    margin-top: 0;
    border-top: 1px solid rgba(188, 219, 236, 0.18);
    background: linear-gradient(180deg, rgba(18, 36, 52, 0.93), rgba(12, 27, 41, 0.98));
    box-shadow: 0 -26px 90px rgba(31, 112, 157, 0.08);
    animation: reveal-up 700ms 100ms ease both;
}

.workspace-section {
    padding-bottom: 52px;
    background: var(--ink);
}

.workspace-topbar {
    min-height: 62px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--line-dark);
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbe9ee;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 0.69rem;
    font-weight: 700;
}

.workspace-mark {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(97, 189, 255, 0.5);
    border-radius: 50%;
    color: var(--blue);
    font-size: 0.8rem;
}

.workspace-brand small {
    display: block;
    margin-top: 2px;
    color: #758b9a;
    font-family: "DM Sans", sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
}

.preview-label {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #91a5b3;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.preview-label span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
}

.workspace-link {
    justify-self: end;
    color: #b6dfff;
    font-size: 0.78rem;
    text-decoration: none;
}

.workspace-link:hover {
    color: #ffffff;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.45fr);
}

.watchlist-panel,
.chart-panel {
    min-width: 0;
    padding: 27px 28px 24px;
}

.watchlist-panel {
    border-right: 1px solid var(--line-dark);
}

.panel-heading {
    min-height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.panel-eyebrow {
    margin: 0 0 6px;
    color: #7f96a5;
    font-size: 0.61rem;
    font-weight: 700;
}

.panel-heading h2 {
    margin: 0;
    color: #edf5f7;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.asset-count,
.chart-period {
    color: #8fa4b2;
    font-size: 0.67rem;
}

.watchlist-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    padding: 0 10px 9px;
    border-bottom: 1px solid var(--line-dark);
    color: #738997;
    font-size: 0.58rem;
    font-weight: 700;
}

.watchlist-row {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 18px;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(208, 229, 238, 0.08);
}

.watchlist-row.selected {
    background: linear-gradient(90deg, rgba(97, 189, 255, 0.11), transparent);
    box-shadow: inset 2px 0 var(--blue);
}

.instrument b,
.instrument small {
    display: block;
}

.instrument b {
    color: #e4eef2;
    font-size: 0.79rem;
    font-weight: 600;
}

.instrument small {
    margin-top: 3px;
    color: #8095a3;
    font-size: 0.67rem;
}

.market-type {
    color: #9db2bf;
    font-size: 0.68rem;
}

.row-indicator {
    color: #7dcfff;
    font-size: 0.82rem;
}

.chart-heading {
    margin-bottom: 19px;
}

.chart-period {
    padding: 7px 10px;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #99adba;
    font-size: 0.68rem;
}

.chart-legend span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.chart-area {
    position: relative;
    height: 175px;
    margin-top: 12px;
    overflow: hidden;
}

.chart-grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-grid-lines i {
    width: 100%;
    height: 1px;
    background: rgba(189, 217, 231, 0.1);
}

.chart-bars {
    position: absolute;
    inset: 6px 3px 0;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.chart-bars span {
    flex: 1;
    min-width: 2px;
    height: var(--bar-height);
    border-top: 1px solid rgba(111, 202, 255, 0.9);
    background: linear-gradient(180deg, rgba(67, 165, 222, 0.27), rgba(67, 165, 222, 0.015));
    animation: bar-rise 650ms ease both;
}

.chart-bars span:nth-child(3n) {
    background: linear-gradient(180deg, rgba(217, 255, 105, 0.2), rgba(217, 255, 105, 0.01));
    border-color: rgba(217, 255, 105, 0.7);
}

.chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #78909f;
    font-size: 0.63rem;
}

.preview-disclaimer {
    margin: 0;
    padding: 0 28px 18px;
    color: #728896;
    font-size: 0.64rem;
    text-align: right;
}

.markets-band {
    background: var(--lime);
    color: #142119;
}

.markets-content {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.markets-content p {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
}

.market-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    color: #344536;
    font-size: 0.78rem;
}

.markets-content > a {
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.platform-section {
    background: var(--paper);
    color: var(--ink);
}

.platform-layout {
    min-height: 490px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 100px;
    padding-block: 100px;
}

.section-kicker {
    color: #286b83;
}

.platform-intro h2 {
    margin: 18px 0 16px;
    color: #10212e;
    font-size: 2.8rem;
    line-height: 1.08;
}

.platform-intro h2 span {
    color: #347e9b;
}

.platform-intro > p:not(.section-kicker) {
    max-width: 390px;
    margin: 0;
    color: #536772;
    font-size: 0.96rem;
    line-height: 1.75;
}

.text-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 25px;
    color: #155f80;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: #0a3447;
}

.feature-row {
    min-height: 112px;
    display: grid;
    grid-template-columns: 42px 1fr 20px;
    align-items: center;
    gap: 17px;
    border-top: 1px solid var(--line-light);
}

.feature-row:last-child {
    border-bottom: 1px solid var(--line-light);
}

.feature-number {
    align-self: start;
    padding-top: 31px;
    color: #327d98;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.77rem;
    font-weight: 600;
}

.feature-row h3 {
    margin: 0 0 5px;
    color: #132b3a;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-row p {
    margin: 0;
    color: #62747d;
    font-size: 0.83rem;
    line-height: 1.55;
}

.feature-arrow {
    color: #4186a0;
}

.process-section {
    padding: 94px 0 104px;
    background: #101a25;
}

.process-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 40px;
}

.process-heading h2 {
    max-width: 550px;
    margin: 0;
    color: #edf4f5;
    font-size: 2.6rem;
    line-height: 1.12;
}

.process-heading .section-kicker {
    align-self: start;
    margin-top: 10px;
    color: var(--lime);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.process-step {
    padding-top: 18px;
    border-top: 1px solid rgba(217, 239, 247, 0.22);
}

.process-step > span {
    color: var(--blue);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.79rem;
}

.process-step h3 {
    margin: 35px 0 9px;
    color: #edf4f5;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.process-step p {
    max-width: 290px;
    margin: 0;
    color: #9eafbb;
    font-size: 0.87rem;
    line-height: 1.65;
}

.closing-section {
    background: var(--lime);
    color: #142119;
}

.closing-content {
    min-height: 265px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-block: 54px;
}

.closing-content .section-kicker {
    color: #3d5a32;
}

.closing-content h2 {
    margin: 12px 0 0;
    color: #142119;
    font-size: 2.8rem;
    line-height: 1.05;
}

.closing-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 0 18px;
    border-radius: 5px;
    background: #142119;
    color: #edffd0;
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.closing-button:hover {
    transform: translateY(-2px);
    background: #25382b;
}

.site-footer {
    background: #08121c;
}

.footer-main {
    min-height: 180px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 80px;
    padding-block: 36px;
}

.footer-identity p {
    max-width: 270px;
    margin: 14px 0 0;
    color: #91a4b1;
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-links,
.footer-account {
    display: grid;
    gap: 12px;
}

.footer-links a,
.footer-account a {
    color: #b6c4cc;
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-links a:hover,
.footer-account a:hover {
    color: #ffffff;
}

.footer-account a:last-child {
    color: var(--blue);
}

.footer-bottom {
    min-height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(208, 229, 238, 0.1);
    color: #718591;
    font-size: 0.7rem;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bar-rise {
    from { transform: scaleY(0.6); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

@media (max-width: 900px) {
    .desktop-nav { gap: 20px; }
    .platform-layout { gap: 52px; }
    .workspace-grid { grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr); }
    .watchlist-panel, .chart-panel { padding-inline: 20px; }
}

@media (max-width: 700px) {
    .home-container { width: min(100% - 36px, 540px); }
    .header-content { min-height: 64px; grid-template-columns: 1fr auto; gap: 12px; }
    .desktop-nav, .login-link { display: none; }
    .header-actions { gap: 10px; }
    .header-cta { min-height: 37px; padding-inline: 12px; font-size: 0.78rem; }
    .mobile-nav { position: relative; display: block; }
    .mobile-nav summary { width: 38px; height: 38px; display: grid; align-content: center; justify-items: center; gap: 5px; border: 1px solid var(--line-dark); border-radius: 5px; cursor: pointer; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary span { width: 15px; height: 1px; background: #dce8ed; }
    .mobile-nav-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 205px; display: grid; padding: 8px; border: 1px solid var(--line-dark); background: #101f2d; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3); }
    .mobile-nav-panel a { padding: 12px; color: #dce8ed; font-size: 0.86rem; text-decoration: none; }
    .mobile-nav-panel a:hover { background: rgba(255, 255, 255, 0.06); }
    .home-hero { padding: 52px 0 34px; }
    .hero-content h1 { margin-top: 18px; font-size: 3.5rem; }
    .hero-description { max-width: 500px; font-size: 0.94rem; }
    .hero-actions { margin-top: 20px; }
    .button { min-height: 44px; padding-inline: 14px; font-size: 0.82rem; }
    .hero-caption { margin-top: 16px; font-size: 0.69rem; }
    .workspace-section { padding-bottom: 36px; }
    .workspace-topbar { min-height: 54px; grid-template-columns: 1fr auto; padding-inline: 14px; }
    .preview-label { display: none; }
    .workspace-link { font-size: 0.7rem; }
    .workspace-grid { grid-template-columns: minmax(0, 1fr); }
    .watchlist-panel { padding: 18px 15px 14px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .watchlist-labels { margin-top: 14px; }
    .watchlist-row { min-height: 43px; }
    .watchlist-row:nth-of-type(n + 5) { display: none; }
    .chart-panel { padding: 18px 15px 15px; }
    .chart-heading { margin-bottom: 12px; }
    .chart-area { height: 95px; margin-top: 8px; }
    .chart-bars { gap: 4px; }
    .preview-disclaimer { padding: 0 15px 14px; font-size: 0.59rem; }
    .markets-content { min-height: 84px; grid-template-columns: 1fr auto; gap: 6px 14px; padding-block: 12px; }
    .markets-content p { grid-column: 1; }
    .market-list { grid-column: 1; justify-content: flex-start; gap: 12px; font-size: 0.69rem; }
    .markets-content > a { grid-column: 2; grid-row: 1 / 3; max-width: 90px; line-height: 1.5; text-align: right; }
    .platform-layout { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding-block: 68px; }
    .platform-intro h2 { font-size: 2.25rem; }
    .feature-row { min-height: 100px; grid-template-columns: 32px 1fr 16px; gap: 10px; }
    .feature-number { padding-top: 29px; }
    .feature-row h3 { font-size: 1rem; }
    .feature-row p { font-size: 0.77rem; }
    .process-section { padding: 66px 0 72px; }
    .process-heading { display: block; margin-bottom: 28px; }
    .process-heading h2 { margin-top: 14px; font-size: 2.15rem; }
    .process-steps { grid-template-columns: 1fr; gap: 24px; }
    .process-step { display: grid; grid-template-columns: 35px 1fr; column-gap: 12px; padding-top: 14px; }
    .process-step > span { grid-row: span 2; }
    .process-step h3 { margin: 0 0 5px; font-size: 1rem; }
    .process-step p { grid-column: 2; font-size: 0.8rem; }
    .closing-content { min-height: 0; align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 48px; }
    .closing-content h2 { font-size: 2.45rem; }
    .footer-main { min-height: 0; grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 30px; }
    .footer-identity { grid-column: 1 / -1; }
    .footer-bottom { min-height: 68px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding-block: 12px; font-size: 0.65rem; }
}

@media (max-width: 420px) {
    .home-container { width: calc(100% - 30px); }
    .brand-name { font-size: 1rem; }
    .brand-mark { width: 25px; height: 25px; }
    .header-content { min-height: 60px; }
    .header-cta { gap: 7px; padding-inline: 9px; font-size: 0.72rem; }
    .home-hero { padding: 42px 0 28px; }
    .hero-content h1 { font-size: 3rem; }
    .hero-description { font-size: 0.88rem; }
    .hero-actions { gap: 4px; }
    .button { gap: 8px; padding-inline: 10px; font-size: 0.74rem; }
    .hero-caption { gap: 7px; font-size: 0.63rem; }
    .instrument b { font-size: 0.74rem; }
    .market-type { font-size: 0.63rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}