:root {
    --bg: #07090b;
    --bg-soft: #0b0e11;
    --surface: #101419;
    --line: rgba(255,255,255,.08);
    --text: #f2f3f4;
    --muted: #90969d;
    --accent: #d7ff3f;
    --accent-soft: rgba(215,255,63,.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 75% 18%, rgba(215,255,63,.04), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

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

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    z-index: 100;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.site-nav {
    height: 84px;
    width: 100%;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    z-index: 20;
}

.brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .18em;
}

.brand span {
    color: var(--accent);
}

.nav-center {
    display: flex;
    gap: 34px;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--muted);
}

.nav-center a {
    transition: color .25s ease;
}

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

.account-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-button,
.add-toon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.03);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.login-button:hover,
.add-toon:hover {
    background: var(--accent-soft);
    border-color: rgba(215,255,63,.5);
    transform: translateY(-2px);
}

.character-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(8,10,12,.72);
    backdrop-filter: blur(14px);
}

.character-chip img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.character-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.character-name {
    font-size: 11px;
    font-weight: 700;
}

.character-status {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: .09em;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    padding: 120px 4vw 70px;
    position: relative;
}

.hero-copy {
    position: relative;
    z-index: 5;
    padding-left: 3vw;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .26em;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 28px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(64px, 8.2vw, 144px);
    line-height: .82;
    letter-spacing: -.065em;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 .thin {
    font-weight: 300;
    color: #c4c7ca;
}

.hero h1 .accent-line {
    color: var(--accent);
}

.hero-description {
    max-width: 510px;
    color: var(--muted);
    margin-top: 34px;
    font-size: 15px;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.primary-action {
    background: var(--accent);
    color: #0a0c0e;
    padding: 16px 25px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    transition: transform .25s ease;
}

.secondary-action {
    border: 1px solid var(--line);
    padding: 15px 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-3px);
}

.ship-stage {
    position: absolute;
    right: -5vw;
    top: 6vh;
    width: 64vw;
    height: 88vh;
    z-index: 1;
}

#shipCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ship-source {
    display: none;
}

.hero-coordinate {
    position: absolute;
    right: 4vw;
    bottom: 34px;
    color: #535960;
    font-size: 9px;
    letter-spacing: .15em;
}

.scroll-mark {
    position: absolute;
    bottom: 30px;
    left: 4vw;
    font-size: 9px;
    color: #62686e;
    letter-spacing: .18em;
}

.build-section {
    min-height: 100vh;
    padding: 110px 7vw;
    background: #090b0d;
    position: relative;
}

.section-eyebrow {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: .22em;
    margin-bottom: 18px;
}

.build-section h2 {
    font-size: clamp(42px, 5vw, 80px);
    margin: 0 0 50px;
    letter-spacing: -.045em;
}

.build-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    max-width: 1200px;
}

.fit-input {
    width: 100%;
    min-height: 360px;
    resize: vertical;
    border: 1px solid var(--line);
    outline: none;
    padding: 26px;
    color: #d8dcdf;
    background: #0c0f12;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
}

.fit-input:focus {
    border-color: rgba(215,255,63,.5);
}

.build-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-label {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .16em;
}

.qty {
    width: 100%;
    height: 58px;
    border: 1px solid var(--line);
    background: #0c0f12;
    color: var(--text);
    padding: 0 16px;
    font-size: 22px;
}

.calculate {
    height: 58px;
    border: none;
    background: var(--accent);
    color: #080a0c;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
}

.magnetic {
    transition: transform .12s ease-out;
}

@media (max-width: 900px) {
    .nav-center {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 130px;
    }

    .ship-stage {
        opacity: .42;
        width: 100vw;
        right: -25vw;
    }

    .hero-copy {
        padding-left: 0;
    }

    .build-grid {
        grid-template-columns: 1fr;
    }

    .account-area .character-meta {
        display: none;
    }
}
