:root {
    --bg: #07090d;
    --card: rgba(255, 255, 255, .055);
    --line: rgba(255, 255, 255, .13);
    --text: #f4f6f8;
    --muted: #a7b0bd;
    --red: #b3192f;
    --blue: #37a3ff;
    --radius: 26px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 16% 18%, rgba(179, 25, 47, .2), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(55, 163, 255, .14), transparent 30%),
        linear-gradient(135deg, #07090d 0%, #0c1118 46%, #07090d 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .35;
    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: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .15));
}

/* HEADER */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;

    min-height: 112px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;

    padding: 14px clamp(18px, 4vw, 58px);
    background: linear-gradient(180deg, rgba(7, 9, 13, .9), rgba(7, 9, 13, .68));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.topbar::after {
    content: "";
    position: absolute;
    left: clamp(18px, 4vw, 58px);
    right: clamp(18px, 4vw, 58px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(55, 163, 255, .55), transparent);
    opacity: .75;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-width: 220px;
    text-decoration: none;
    opacity: .96;
}

.logo svg {
    display: block;
    width: 230px;
    height: auto;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.nav a {
    position: relative;
    color: inherit;
    text-decoration: none;
}

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

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-actions .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
}

/* LAYOUT */

section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 158px clamp(18px, 5vw, 72px) 84px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(30px, 5vw, 78px);
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* TYPOGRAPHY */

.eyebrow {
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.03;
}

h1 {
    max-width: 980px;
    font-size: clamp(44px, 7.6vw, 104px);
    letter-spacing: -.06em;
}

h2 {
    max-width: 980px;
    font-size: clamp(34px, 5vw, 72px);
    letter-spacing: -.045em;
}

h3 {
    font-size: 22px;
    letter-spacing: -.02em;
}

p {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.68;
}

/* BUTTONS */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    font-size: 14px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .09);
}

.btn.primary {
    background: var(--red);
    border-color: rgba(255, 255, 255, .18);
}

.btn-ghost {
    background: rgba(255, 255, 255, .035);
}

/* SECTIONS */

.hero {
    background:
        radial-gradient(circle at 84% 48%, rgba(179, 25, 47, .20), transparent 26%),
        linear-gradient(120deg, rgba(255, 255, 255, .06), transparent 36%);
}

.section-dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .08));
}

.section-red {
    background:
        radial-gradient(circle at 12% 72%, rgba(179, 25, 47, .22), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 45%);
}

.section-blue {
    background:
        radial-gradient(circle at 80% 20%, rgba(55, 163, 255, .18), transparent 28%),
        linear-gradient(180deg, rgba(55, 163, 255, .035), transparent 48%);
}

.section-split {
    background: linear-gradient(90deg, rgba(255, 255, 255, .035) 0 50%, rgba(179, 25, 47, .055) 50% 100%);
}

.hero::before,
.factory::before,
.investor::before {
    content: "";
    position: absolute;
    inset: auto -10% -32% 38%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(55, 163, 255, .16), transparent 64%);
    transform: rotate(-8deg);
    pointer-events: none;
}

/* COMPONENTS */

.card,
.placeholder,
.glass {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
    backdrop-filter: blur(16px);
}

.card {
    min-height: 170px;
    padding: 26px;
}

.placeholder {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    overflow: hidden;
}

.placeholder::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: calc(var(--radius) - 8px);
}

.placeholder::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 163, 255, .15), transparent 66%);
    filter: blur(4px);
}

.placeholder > div {
    position: relative;
    z-index: 1;
}

.placeholder strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 19px;
}

.metric {
    margin-top: 10px;
    font-size: clamp(36px, 4.6vw, 62px);
    font-weight: 850;
    letter-spacing: -.055em;
}

.metric span {
    color: var(--blue);
    font-size: .55em;
    letter-spacing: -.02em;
}

.small {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.58;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.tag {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, .04);
}

.pipe {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.step b {
    color: var(--text);
}

/* TABLES */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-weight: 500;
}

td:last-child,
th:last-child {
    text-align: right;
}

/* SPECIAL */

.formula {
    margin-top: 22px;
    padding: 20px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.55;
}

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .045);
}

.year {
    color: var(--blue);
    font-weight: 800;
}

.contact {
    min-height: 76vh;
    text-align: center;
    justify-content: center;
}

.contact .wrap {
    display: grid;
    place-items: center;
}

/* EXTRA BLOCKS */

.exists-grid,
.investment-grid,
.economics-grid,
.investor-grid {
    margin-top: 34px;
}

.card-label {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.investment-card {
    display: flex;
    flex-direction: column;
}

.clean-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.clean-list li {
    padding-left: 18px;
    position: relative;
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.result-box {
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(55, 163, 255, .28);
    border-radius: 18px;
    background: rgba(55, 163, 255, .08);
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
}

.capacity-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.capacity-strip div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.capacity-strip span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.capacity-strip b {
    display: block;
    color: var(--text);
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: -.04em;
}

.economics-table {
    padding: 28px;
}

.economics-side {
    display: grid;
    gap: 18px;
}

.economics-side .card {
    min-height: 220px;
}

.unit-table td:first-child,
.unit-table th:first-child {
    padding-right: 24px;
}

.unit-table td:last-child,
.unit-table th:last-child {
    min-width: 140px;
    white-space: nowrap;
    text-align: right;
}

.total-row td {
    padding-top: 22px;
    color: var(--text);
    border-bottom: none;
}

.dashboard-preview {
    position: relative;
}

.dashboard-screen {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
    box-shadow: 0 28px 90px rgba(0,0,0,.38);
    backdrop-filter: blur(16px);
    padding: 14px;
    overflow: hidden;
}

.screen-top {
    display: flex;
    gap: 8px;
    padding: 8px 8px 14px;
}

.screen-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
}

.dashboard-screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
}

.screen-caption {
    padding: 18px 8px 6px;
}

.screen-caption strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 6px;
}

.screen-caption p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.investor-grid .card {
    min-height: 260px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.contact-card {
    min-height: 280px;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.contact-list a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: 10px;
}

.contact-list a:hover {
    color: var(--blue);
}

/* MATERIALS */

.materials-page h1 {
    max-width: 1100px;
    font-size: clamp(40px, 6vw, 86px);
    letter-spacing: -.055em;
}

.materials-grid,
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.material-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.material-card .btn {
    margin-top: auto;
    width: fit-content;
}

.media-placeholder,
.video-placeholder {
    min-height: 240px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
    font-size: 18px;
}

.video-placeholder {
    min-height: 320px;
}

.media-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    cursor: zoom-in;
}

.media-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(12px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 120px rgba(0, 0, 0, .65);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 120px 18px 60px;
}

.login-card {
    width: min(100%, 620px);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
    box-shadow: 0 28px 90px rgba(0,0,0,.45);
    backdrop-filter: blur(18px);
}

.login-logo {
    width: min(100%, 420px);
    margin-top: 18px;
}

.login-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.login-subtitle {
    margin-top: 22px;
    font-size: 20px;
}

.login-form {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field span {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size: 18px;
    outline: none;
}

.login-field input:focus {
    border-color: rgba(55,163,255,.75);
    box-shadow: 0 0 0 4px rgba(55,163,255,.12);
}

.login-button {
    width: 100%;
    height: 58px;
    margin-top: 4px;
}

.login-error {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(179,25,47,.16);
    border: 1px solid rgba(179,25,47,.38);
}

.login-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(55,163,255,.22);
    background: rgba(55,163,255,.08);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

button:disabled,
.btn:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

/* RESPONSIVE */

@media (max-width: 1280px) {
    .topbar {
        grid-template-columns: auto 1fr;
    }

    .nav {
        display: none;
    }

    .topbar-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    .topbar {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 16px;
    }

    .logo {
        min-width: 0;
    }

    .logo svg {
        width: 178px;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .topbar-actions .btn {
        width: 100%;
        min-height: 40px;
        font-size: 12px;
    }

    section {
        min-height: auto;
        padding: 178px 18px 62px;
    }

    .grid,
    .grid-2,
    .grid-3,
    .contact-grid,
    .materials-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .placeholder {
        min-height: 300px;
    }

    .step,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .section-split {
        background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(179, 25, 47, .055));
    }

    .capacity-strip {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px;
    }

    .login-logo {
        width: 100%;
    }
}