@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@600;700;800&display=swap');

:root {
    --bg: #05070d;
    --bg-soft: #090d17;
    --surface: rgba(14, 20, 33, 0.82);
    --surface-strong: #0d1421;
    --line: rgba(168, 255, 98, 0.17);
    --line-soft: rgba(255, 255, 255, 0.09);
    --text: #f5f7fb;
    --text-soft: #b1bac9;
    --muted: #788398;
    --green: #9cff57;
    --green-soft: #d2ffaf;
    --cyan: #59e9ff;
    --radius: 24px;
    --shell: 1120px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(156, 255, 87, .11), transparent 28rem),
        radial-gradient(circle at 82% 20%, rgba(89, 233, 255, .08), transparent 26rem),
        linear-gradient(180deg, #05070d 0%, #070b12 52%, #05070d 100%);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    transform: translateY(-160%);
    color: #061007;
    background: var(--green);
    border-radius: 10px;
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    height: 3px;
    background: rgba(255,255,255,.035);
}
#scroll-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--cyan));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(5, 7, 13, .78);
    backdrop-filter: blur(18px);
}
.header-shell,
.section-shell,
.footer-shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}
.header-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(156,255,87,.27);
    border-radius: 13px;
    background: rgba(156,255,87,.08);
    box-shadow: inset 0 0 20px rgba(156,255,87,.04);
}
.brand-mark svg { width: 23px; fill: var(--green); }
.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: .93rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.brand-name span { color: var(--green); }
.site-menu { display: flex; align-items: center; gap: 22px; }
.global-navigation { display: flex; align-items: center; gap: 22px; }
.global-navigation a,
.header-back {
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 700;
    transition: color .2s ease;
}
.global-navigation a:hover,
.header-back:hover { color: var(--green-soft); }
.header-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-left: 20px;
    border-left: 1px solid var(--line-soft);
}
.header-back svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-toggle { display: none; }

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(156,255,87,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(156,255,87,.08) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero::after {
    content: '';
    position: absolute;
    width: 640px;
    aspect-ratio: 1;
    right: -220px;
    top: 50%;
    transform: translateY(-52%);
    border: 1px solid rgba(156,255,87,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 74px rgba(156,255,87,.018),
        0 0 0 150px rgba(89,233,255,.012);
}
.hero-shell {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
    padding: 78px 0 90px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 66px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green-soft);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(156,255,87,.75);
}
.hero h1 {
    margin: 17px 0 18px;
    max-width: 720px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: .94;
    letter-spacing: -.055em;
    text-transform: uppercase;
}
.hero h1 span { color: var(--green); text-shadow: 0 0 28px rgba(156,255,87,.2); }
.hero-lead {
    max-width: 670px;
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.16rem);
}
.status-line {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.status-pill,
.tech-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 700;
}
.status-pill { border-color: rgba(156,255,87,.2); color: var(--green-soft); }
.hero-actions { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: .88rem;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
    color: #071009;
    background: linear-gradient(135deg, var(--green), #c8ff92);
    box-shadow: 0 12px 30px rgba(156,255,87,.12);
}
.button-secondary {
    border-color: var(--line-soft);
    background: rgba(255,255,255,.045);
    color: var(--text);
}
.button-secondary:hover { border-color: rgba(156,255,87,.25); background: rgba(156,255,87,.06); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.hero-visual {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
}
.project-poster {
    position: relative;
    width: min(100%, 410px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(156,255,87,.18);
    border-radius: 30px;
    background: #0a0f19;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}
.project-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,7,13,.65), transparent 42%);
    pointer-events: none;
}
.project-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-tag {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(156,255,87,.22);
    border-radius: 999px;
    color: var(--green-soft);
    background: rgba(5,7,13,.76);
    backdrop-filter: blur(12px);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-summary { padding: 88px 0 100px; border-top: 1px solid rgba(255,255,255,.06); }
.summary-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 74px; align-items: start; }
.section-kicker { color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.project-summary h2,
.legal-hero h1 {
    margin: 12px 0 0;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.project-summary h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.summary-copy p { margin: 0 0 18px; color: var(--text-soft); }
.summary-copy strong { color: var(--text); }
.tech-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

.legal-links { padding: 0 0 108px; }
.legal-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(156,255,87,.08), transparent 22rem),
        var(--surface);
    box-shadow: var(--shadow);
}
.legal-panel h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.legal-panel p { margin: 0; max-width: 690px; color: var(--text-soft); }
.legal-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.site-footer { padding: 28px 0 38px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--green-soft); }

/* Legal pages */
.legal-page { background: linear-gradient(180deg, #05070d, #070b12 42%, #05070d); }
.legal-main { min-height: 70vh; }
.legal-hero { padding: 82px 0 48px; border-bottom: 1px solid rgba(255,255,255,.06); }
.legal-hero h1 { max-width: 850px; font-size: clamp(2.25rem, 5vw, 4.4rem); }
.legal-meta { margin-top: 18px; color: var(--muted); font-size: .86rem; }
.legal-layout {
    padding: 58px 0 96px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: 105px;
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}
.legal-toc strong { margin-bottom: 7px; font-size: .8rem; color: var(--green-soft); }
.legal-toc a { padding: 7px 0; color: var(--muted); font-size: .8rem; }
.legal-toc a:hover { color: var(--text); }
.legal-content {
    min-width: 0;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(11,16,27,.72);
    box-shadow: var(--shadow);
}
.notice {
    margin: 0 0 34px;
    padding: 17px 18px;
    border: 1px solid rgba(156,255,87,.2);
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(156,255,87,.055);
}
.notice strong { color: var(--green-soft); }
.legal-section { scroll-margin-top: 100px; }
.legal-section + .legal-section { margin-top: 38px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.07); }
.legal-section h2 { margin: 0 0 14px; font-size: 1.2rem; }
.legal-section p { margin: 0 0 13px; color: var(--text-soft); }
.legal-section ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.legal-section li + li { margin-top: 8px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.07); }

@media (max-width: 900px) {
    .menu-toggle {
        width: 42px;
        height: 42px;
        display: grid;
        align-content: center;
        gap: 6px;
        padding: 9px;
        color: var(--text);
        border: 1px solid var(--line-soft);
        border-radius: 12px;
        background: rgba(255,255,255,.04);
    }
    .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
    .site-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        padding: 18px 20px 22px;
        border-bottom: 1px solid var(--line-soft);
        background: rgba(5,7,13,.97);
    }
    .site-menu.is-open { display: grid; }
    .global-navigation { display: grid; gap: 3px; }
    .global-navigation a { padding: 10px 0; }
    .header-back { padding: 15px 0 0; margin-top: 8px; border-left: 0; border-top: 1px solid var(--line-soft); }
    .hero-shell { grid-template-columns: 1fr; gap: 42px; padding-top: 62px; }
    .hero-visual { min-height: auto; }
    .project-poster { width: min(76vw, 390px); }
    .summary-grid { grid-template-columns: 1fr; gap: 28px; }
    .legal-panel { grid-template-columns: 1fr; }
    .legal-buttons { justify-content: flex-start; }
    .legal-layout { grid-template-columns: 1fr; gap: 22px; }
    .legal-toc { position: static; }
}

@media (max-width: 620px) {
    .header-shell, .section-shell, .footer-shell, .hero-shell { width: min(calc(100% - 28px), var(--shell)); }
    .brand-name { font-size: .78rem; }
    .hero { min-height: auto; }
    .hero-shell { padding: 60px 0 72px; }
    .hero h1 { font-size: clamp(2.8rem, 16vw, 4.7rem); }
    .project-poster { width: min(86vw, 350px); border-radius: 22px; }
    .project-summary { padding: 66px 0 76px; }
    .legal-links { padding-bottom: 76px; }
    .legal-buttons, .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .footer-shell { align-items: flex-start; flex-direction: column; }
    .legal-hero { padding: 62px 0 38px; }
    .legal-layout { padding: 34px 0 70px; }
    .legal-content { padding: 23px 18px; border-radius: 18px; }
}
