:root {
    --bg: #05070a;
    --surface: #0b0f14;
    --surface-2: #10151b;
    --card: rgba(255,255,255,.04);
    --line: rgba(255,255,255,.09);
    --text: #eef2f6;
    --muted: #7d8894;
    --green: #55ff88;
    --green-dim: #1f6b40;
    --green-glow: rgba(85,255,136,.35);
    --down: #ff6b6b;

    --font-display: "Space Grotesk", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --font-body: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green);
    color: #05070a;
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-weight: 600;
    z-index: 1000;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* =====================
BACKGROUND
===================== */

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle, black, transparent 72%);
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,.018) 0px,
        rgba(255,255,255,.018) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: .5;
}

.glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(130px);
}

.glow-one {
    background: rgba(85,255,136,.16);
    top: -320px;
    right: -220px;
    animation: moveGlow 14s infinite alternate;
}

.glow-two {
    background: rgba(85,255,136,.07);
    bottom: -320px;
    left: -220px;
    animation: moveGlow 17s infinite alternate-reverse;
}

@keyframes moveGlow {
    from { transform: translate(0,0); }
    to { transform: translate(140px,70px); }
}

/* =====================
TICKER TAPE
===================== */

.ticker-tape {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    height: 38px;
    z-index: 90;
    overflow: hidden;
    background: rgba(5,7,10,.6);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    width: max-content;
    padding-left: 40px;
    animation: tickerScroll 40s linear infinite;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ticker-item {
    color: var(--muted);
}

.ticker-item b {
    color: var(--text);
    font-weight: 500;
    margin: 0 6px;
}

.ticker-item.up { color: var(--green); }
.ticker-item.down { color: var(--down); }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================
HEADER
===================== */

header {
    height: 90px;
    width: 100%;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    backdrop-filter: blur(20px);
    background: rgba(5,7,10,.5);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

.logo {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.logo span {
    color: white;
    font-size: 1.8rem;
    letter-spacing: -1.5px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(85,255,136,.15);
}

.logo small {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: .78rem;
    letter-spacing: 4px;
    font-weight: 500;
    margin-top: 8px;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    transition: color .3s;
}

nav a:hover {
    color: white;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.nav-button {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,.15);
    padding: 11px 24px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: .85rem;
    transition: border-color .3s, color .3s;
}

.nav-button:hover {
    border-color: var(--green);
    color: var(--green);
}

/* =====================
HERO
===================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 168px 8% 60px;
    gap: 50px;
}

.eyebrow {
    font-family: var(--font-mono);
    color: var(--green);
    letter-spacing: 4px;
    font-size: .75rem;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.7rem,5.4vw,5rem);
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero-text {
    margin-top: 26px;
    max-width: 500px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary {
    background: var(--green);
    color: #05070a;
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-family: var(--font-body);
    box-shadow: 0 0 40px var(--green-glow);
    transition: transform .3s, box-shadow .3s;
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 70px rgba(85,255,136,.5);
}

.secondary {
    background: rgba(255,255,255,.05);
    color: white;
    border: 1px solid rgba(255,255,255,.15);
    padding: 16px 32px;
    border-radius: 40px;
    transition: border-color .3s;
}

.secondary:hover {
    border-color: var(--green);
}

.hero-specs {
    list-style: none;
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

.hero-specs b {
    color: var(--text);
    font-weight: 500;
}

/* =====================
DEVICE MOCKUP
===================== */

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.device {
    position: relative;
    width: 360px;
    padding: 22px;
    border-radius: 34px;
    background: linear-gradient(155deg, #171d24, #0a0d11 60%);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow:
        0 40px 100px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.06);
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    50% { transform: translateY(-16px); }
}

.device-screen {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: 18px;
    background: #04070a;
    border: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(85,255,136,.06);
}

.screen-content {
    position: absolute;
    inset: 0;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity .6s ease;
}

.screen-content.is-on {
    opacity: 1;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
}

.screen-symbol {
    color: var(--muted);
    font-size: .8rem;
    letter-spacing: 1px;
}

.screen-price {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
}

.screen-price i {
    display: block;
    font-style: normal;
    color: var(--green);
    font-size: .75rem;
    text-align: right;
}

.screen-chart {
    flex: 1;
    width: 100%;
    margin-top: 14px;
}

.screen-chart polyline {
    fill: none;
    stroke: var(--green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px var(--green-glow));
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
}

.screen-content.is-on .screen-chart polyline {
    animation: drawChart 1.6s ease forwards .3s;
}

@keyframes drawChart {
    to { stroke-dashoffset: 0; }
}

.screen-dots {
    display: flex;
    gap: 7px;
    margin-top: 12px;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.dot.active {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.boot-log {
    position: absolute;
    inset: 0;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: .72rem;
    line-height: 1.9;
    color: var(--green);
    background: #04070a;
    opacity: 1;
    transition: opacity .5s ease .2s;
}

.boot-log.is-done {
    opacity: 0;
    pointer-events: none;
}

.boot-log .line {
    opacity: 0;
    animation: bootLine .25s forwards;
}

.boot-log .line.muted {
    color: var(--muted);
}

@keyframes bootLine {
    to { opacity: 1; }
}

.device-button {
    position: absolute;
    top: 90px;
    right: -3px;
    width: 5px;
    height: 46px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, #2a3239, #14181c);
    box-shadow: -1px 0 0 rgba(85,255,136,.25);
}

.device-plinth {
    width: 260px;
    height: 26px;
    margin-top: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(85,255,136,.14), transparent 70%);
    filter: blur(4px);
}

/* =====================
SECTIONS
===================== */

.section {
    padding: 130px 8%;
    text-align: center;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    letter-spacing: -1px;
    font-weight: 700;
}

.section-text {
    color: var(--muted);
    margin: 22px auto 0;
    max-width: 600px;
    line-height: 1.7;
}

/* how it works */

.steps {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: left;
}

.step {
    padding: 0 24px;
    border-left: 1px solid var(--line);
    position: relative;
}

.step:first-child {
    border-left: none;
    padding-left: 0;
}

.step-index {
    display: block;
    font-family: var(--font-mono);
    color: var(--green);
    font-size: .85rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
}

/* feature cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    text-align: left;
}

.card {
    padding: 38px 34px;
    border-radius: 26px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform .35s, border-color .35s, box-shadow .35s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--green-dim);
    box-shadow: 0 20px 50px rgba(85,255,136,.12);
}

.card-mark {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: .78rem;
    letter-spacing: 2px;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 16px;
}

.card p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: .95rem;
}

/* markets */

.market-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.market-grid div {
    padding: 32px 26px;
    background: var(--card);
    border-radius: 22px;
    border: 1px solid var(--line);
    text-align: left;
    transition: border-color .3s;
}

.market-grid div:hover {
    border-color: var(--green-dim);
}

.market-grid h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.market-grid p {
    color: var(--green);
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: .82rem;
    letter-spacing: .3px;
}

/* about */

.about p.section-text {
    max-width: 560px;
}

.about button {
    margin-top: 40px;
}

footer {
    padding: 50px 8%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .92rem;
}

footer strong {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -.3px;
}

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .ticker-tape {
        top: 70px;
    }

    header {
        height: 70px;
        padding: 0 6%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 150px 7% 60px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-specs {
        margin-left: auto;
        margin-right: auto;
        align-items: flex-start;
        width: fit-content;
    }

    .device {
        width: 300px;
    }

    .cards,
    .market-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        border-left: none;
        border-top: 1px solid var(--line);
        padding: 24px 0 0;
    }

    .step:first-child {
        border-top: none;
        padding-top: 0;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }
}
