:root {
    color-scheme: dark;
    --background: #07090d;
    --background-raised: #0d1118;
    --surface: #111722;
    --surface-strong: #171f2b;
    --surface-soft: #0b1017;
    --text: #f4f7fb;
    --muted: #9aa6b5;
    --subtle: #657184;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.16);
    --blue: #4aa3ff;
    --green: #2dd46f;
    --amber: #ffba3a;
    --red: #ff5f68;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(74, 163, 255, 0.08), transparent 340px),
        var(--background);
    color: var(--text);
    font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

main,
.site-header,
.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    background: transparent;
    backdrop-filter: blur(18px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: 0;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.site-nav a {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--surface-strong);
    color: var(--text);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: 28px;
    align-items: center;
    min-height: 640px;
    padding: 72px 0 42px;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow,
.panel-label {
    margin: 0;
    color: var(--subtle);
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(3.6rem, 8vw, 6.9rem);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 720;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.button-primary {
    border-color: transparent;
    background: var(--text);
    color: #07090d;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.market-panel,
.brief-card,
.calendar-card,
.content-grid article,
.download-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
}

.market-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.session-countdown,
.event-snapshot {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.countdown {
    margin: 8px 0 0;
    color: var(--text);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-variant-numeric: tabular-nums;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1;
}

.event-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 1.15rem;
}

.flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: #182233;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.flag[hidden] {
    display: none;
}

.event-time {
    margin: 12px 0 18px;
    color: var(--amber);
    font-size: 2.4rem;
    font-weight: 780;
    line-height: 1;
}

.muted {
    color: var(--muted);
}

.pair-row,
.volatility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pair-row {
    margin-top: 10px;
}

.pair-row span,
.volatility-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(74, 163, 255, 0.09);
    color: #dcecff;
    font-size: 0.85rem;
    font-weight: 680;
}

.brief-section,
.calendar-section,
.content-grid,
.faq-section,
.download-section {
    margin-top: 72px;
    scroll-margin-top: 96px;
}

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

.brief-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.brief-card {
    min-height: 220px;
    padding: 20px;
}

.brief-card p:not(.panel-label) {
    margin-bottom: 0;
    color: var(--muted);
}

.sentiment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 20px;
    font-size: 1.6rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.neutral,
.status-dot.positive {
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(45, 212, 111, 0.12);
}

.status-dot.cautious {
    background: var(--amber);
    box-shadow: 0 0 0 7px rgba(255, 186, 58, 0.12);
}

.status-dot.negative {
    background: var(--red);
    box-shadow: 0 0 0 7px rgba(255, 95, 104, 0.12);
}

.event-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.event-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.event-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.event-list time {
    color: var(--amber);
    font-variant-numeric: tabular-nums;
    font-weight: 760;
}

.event-list span {
    min-width: 0;
}

.volatility-list {
    margin: 16px 0 18px;
}

.large-readout {
    display: block;
    margin: 14px 0 18px;
    font-size: 1.55rem;
    line-height: 1.1;
}

.calendar-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 24px;
}

.event-details {
    display: grid;
    width: 100%;
    min-width: 0;
}

.event-time-block {
    display: grid;
    align-content: start;
    gap: 6px;
}

.event-time-block time {
    color: var(--text);
    font-size: 2.4rem;
    font-weight: 780;
    line-height: 1;
}

.event-time-block span,
dt {
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.impact-label {
    margin-top: 8px;
    color: var(--amber);
    letter-spacing: 0.12em;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 18px 0 0;
}

.forecast-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.event-note {
    max-width: 620px;
    margin: 18px 0 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
}

dd {
    margin: 4px 0 0;
    font-size: 1.25rem;
    font-weight: 760;
}

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

.content-grid article {
    padding: 22px;
}

.content-grid h2 {
    margin-top: 10px;
    font-size: 1.35rem;
    line-height: 1.12;
}

.content-grid p:last-child,
.download-section p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.faq-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.faq-grid h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.2;
}

.faq-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 34px;
    padding: 34px;
}

.download-section h2 {
    margin-top: 8px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.download-copy {
    max-width: 640px;
}

.app-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.app-feature-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(45, 212, 111, 0.08);
    color: #dfffea;
    font-size: 0.86rem;
    font-weight: 700;
}

.download-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    text-align: center;
}

.download-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
}

.download-card strong {
    font-size: 1.25rem;
}

.download-card span {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.legal-page {
    padding: 72px 0 0;
}

.legal-hero {
    max-width: 820px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(3.4rem, 7vw, 6rem);
}

.legal-hero p {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: clamp(1.06rem, 2vw, 1.24rem);
}

.legal-hero span {
    color: var(--subtle);
    font-size: 0.92rem;
}

.legal-hero .button {
    margin-top: 8px;
}

.legal-section {
    margin-top: 44px;
    scroll-margin-top: 96px;
}

.legal-section-heading {
    max-width: 760px;
    margin-bottom: 18px;
}

.legal-section-heading h2 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-section-heading p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.legal-grid article {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.legal-grid-compact article {
    min-height: 150px;
}

.legal-grid h2,
.legal-grid h3 {
    margin-bottom: 12px;
    font-size: 1.16rem;
    line-height: 1.16;
}

.legal-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.legal-grid a {
    color: #dcecff;
    text-decoration: underline;
    text-decoration-color: rgba(220, 236, 255, 0.35);
    text-underline-offset: 3px;
}

.seo-page {
    padding: 72px 0 0;
}

.seo-hero {
    max-width: 940px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.seo-hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(3.2rem, 7vw, 6rem);
}

.seo-hero p {
    max-width: 820px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 2vw, 1.24rem);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.seo-grid article {
    min-height: 240px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.seo-grid h2 {
    margin-top: 10px;
    font-size: 1.25rem;
    line-height: 1.14;
}

.seo-grid p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.seo-copy {
    max-width: 860px;
    margin-top: 56px;
}

.seo-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.seo-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.text-link {
    color: #dcecff;
    text-decoration: underline;
    text-decoration-color: rgba(220, 236, 255, 0.35);
    text-underline-offset: 3px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 42px 0 34px;
    color: var(--muted);
}

.site-footer strong {
    color: var(--text);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer a:hover {
    color: var(--text);
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
    }

    .hero-section,
    .calendar-card,
    .download-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 0;
        padding-top: 44px;
    }

    .brief-grid,
    .content-grid,
    .faq-grid,
    .legal-grid,
    .seo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    main,
    .site-header,
    .site-footer {
        width: min(100% - 24px, 1120px);
    }

    .site-nav a {
        white-space: nowrap;
    }

    .hero-section {
        padding-top: 30px;
    }

    h1 {
        font-size: 3.35rem;
    }

    .market-panel,
    .brief-card,
    .calendar-card,
    .content-grid article,
    .download-section {
        box-shadow: none;
    }

    .brief-grid,
    .content-grid,
    .faq-grid,
    .forecast-grid,
    .legal-grid,
    .seo-grid {
        grid-template-columns: 1fr;
    }

    .legal-page,
    .seo-page {
        padding-top: 42px;
    }

    .legal-grid article,
    .seo-grid article {
        min-height: 0;
    }

    .brief-section,
    .calendar-section,
    .content-grid,
    .faq-section,
    .download-section {
        margin-top: 48px;
    }

    .download-section,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-card {
        justify-items: start;
        width: 100%;
        text-align: left;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}
