:root {
    --bg: #000000;
    --panel: #222222;
    --panel-light: #3a3a3a;
    --cream: #faf3e1;
    --text: #e0e0e0;
    --cyan: #00ffff;
    --orange: #ff6d1f;
    --blue: #0000ff;
    --green: #00ff88;
    --line: #444444;
    --hover: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Fira Code", ui-monospace, monospace;
    line-height: 1.55;
}

a {
    color: inherit;
}

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

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.brand,
.back-link {
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cream);
    font-size: 22px;
    font-weight: 700;
}

.brand img {
    width: 30px;
    height: 30px;
}

.back-link {
    padding: 6px 8px;
    color: var(--orange);
    text-shadow: 0 0 8px rgba(255, 109, 31, 0.45);
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--cream);
    background: var(--hover);
}

main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    padding: clamp(64px, 10vw, 124px) 0 96px;
}

.eyebrow,
.prompt,
.feature-index {
    margin: 0;
    color: var(--cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.42);
}

.hero-window {
    margin-top: 16px;
    border: 1px solid #555555;
    background: var(--panel);
    box-shadow: 10px 10px 0 rgba(0, 0, 255, 0.45), 0 0 48px rgba(0, 255, 255, 0.08);
}

.titlebar,
.statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
}

.titlebar {
    background: var(--blue);
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-controls span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    background: #dcdcdc;
    color: #111111;
    line-height: 1;
}

.hero-content {
    padding: clamp(32px, 7vw, 76px);
    background: linear-gradient(115deg, rgba(0, 255, 255, 0.07), transparent 42%);
}

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

h1,
h2,
h3 {
    color: var(--cream);
    line-height: 1.1;
}

h1 {
    max-width: 9ch;
    margin: 10px 0 20px;
    font-size: clamp(58px, 12vw, 132px);
    letter-spacing: -0.08em;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 5vw, 54px);
    letter-spacing: -0.05em;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.hero-copy {
    max-width: 640px;
    margin-bottom: 30px;
    color: var(--cream);
    font-size: clamp(18px, 2.5vw, 25px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.button:focus-visible {
    transform: translate(-2px, -2px);
}

.button-primary {
    background: var(--orange);
    color: var(--bg);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--cream);
    box-shadow: 6px 6px 0 var(--orange);
}

.button-secondary {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 0, 0, 0.35);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--cyan);
    color: var(--bg);
    box-shadow: 6px 6px 0 rgba(0, 255, 255, 0.35);
}

.statusbar {
    background: #111111;
    color: #aaaaaa;
}

.statusbar span:nth-child(2) {
    color: var(--green);
}

.section {
    padding: 96px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 36px;
}

.section-heading > p:last-child,
.compiler-copy > p:not(.eyebrow),
.install > p:not(.eyebrow) {
    font-size: 18px;
}

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

.feature-card {
    min-height: 260px;
    padding: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, var(--panel-light), var(--panel));
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

.feature-index {
    display: block;
    margin-bottom: 46px;
    font-size: 14px;
}

.feature-card p {
    margin-bottom: 0;
}

.compiler-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 6vw, 88px);
    align-items: center;
}

.check-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin: 12px 0;
    padding-left: 26px;
}

.check-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--orange);
}

code {
    padding: 1px 4px;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.08);
}

.terminal {
    margin: 0;
    padding: clamp(22px, 4vw, 36px);
    overflow-x: auto;
    border: 1px solid #444444;
    border-left: 4px solid var(--orange);
    background: #111111;
    color: var(--cream);
    box-shadow: 8px 8px 0 rgba(0, 255, 255, 0.16);
    line-height: 1.75;
}

.terminal code {
    padding: 0;
    background: transparent;
}

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

.terminal-ok {
    color: var(--green);
}

.terminal-output {
    color: var(--cyan);
}

.install {
    margin: 0 0 96px;
    padding: clamp(32px, 6vw, 60px);
    border: 1px solid var(--orange);
    background: linear-gradient(120deg, rgba(255, 109, 31, 0.17), rgba(0, 0, 0, 0.65));
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 32px;
    color: #aaaaaa;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

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

.crt-overlay {
    position: fixed;
    z-index: 99;
    inset: 0;
    pointer-events: none;
    opacity: 0.48;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px);
}

.crt-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.58) 100%);
}

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

    .site-header {
        min-height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .back-link {
        font-size: 13px;
    }

    .hero {
        padding: 48px 0 64px;
    }

    h1 {
        letter-spacing: -0.06em;
    }

    .feature-grid,
    .compiler-section {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .feature-card {
        min-height: 0;
    }

    .feature-index {
        margin-bottom: 26px;
    }
}

@media (max-width: 440px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        padding: 10px 0;
    }

    .hero-window {
        box-shadow: 5px 5px 0 rgba(0, 0, 255, 0.45);
    }

    .titlebar,
    .statusbar {
        font-size: 11px;
    }

    .statusbar span:last-child {
        display: none;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        gap: 6px;
    }
}

/*==================
SCROLLBAR
===================*/

* {
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:active {
    background-color: #ff6d1f;
}
