@font-face {
    font-family: "Departure Mono";
    src: url("./font/departure/DepartureMono-Regular.woff") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    color: #fff;
    background: #111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: "Departure Mono", monospace;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 24px;
}

.tag {
    border: 1px solid blue;
    background: #0d0d5c;
    padding: 4px 12px;
    font-size: 13px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

section {
    width: 100%;
    max-width: 800px;
    padding: 0;
}

nav {
    padding: 24px;
}

/* Hero */

.hero-frame {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.hero-frame-inner {
    border: 1px solid #4a8a3a;
    border-radius: 8px;
    overflow: hidden;
}

.hero-content {
    padding: 48px;
    text-align: center;
}

.logo {
    height: 20px;
    display: block;
    margin: 0 auto 32px;
    margin-bottom: 40px;
}

.hero-text {
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
}

h1,
h2 {
    font-family: "Departure Mono", monospace;
}

h2 {
    margin-bottom: 0;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}

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

.subtitle {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

.get-started {
    flex-shrink: 0;
    margin-left: auto;
    padding: 4px 12px;
    color: #666;
    font-family: "Departure Mono", monospace;
    font-size: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    transition: color 0.15s, border-color 0.15s;
}

.get-started:hover {
    color: #999;
    border-color: #666;
}

/* Install bar */

.hero-install {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #4a8a3a;
    padding: 12px 24px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    color: #fff;
    font-family:
        "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
    font-size: 0.8rem;
    padding: 0;
    overflow-x: auto;
    text-align: left;
    transition: color 0.15s;
}

.cta:hover {
    color: #ccc;
}

.copy-icon {
    font-size: 0.75rem;
    color: #555;
    flex-shrink: 0;
    margin-left: 12px;
    transition: color 0.15s;
}

.cta:hover .copy-icon {
    color: #999;
}

.cta.copied .copy-icon {
    color: #00ff41;
}

.cta code {
    background: none;
    color: inherit;
    font-size: inherit;
    padding: 0;
}

/* Problem */

.problem {
    background: #000000;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 40px;
    text-align: center;
}

.problem p {
    font-size: 0.9rem;
    color: #1e3a5f;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Sections */

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

section p {
    color: #999;
    font-size: 1rem;
    margin-bottom: 16px;
}

.demo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.demo-inner {
    background-color: #1a1a1a;
    background-image:
        radial-gradient(ellipse at center, rgba(154, 251, 86, 0.15) 0%, transparent 60%);
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.demo-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.demo video {
    width: 60%;
    max-width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.cli,
.micro-vm,
.eurostack {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
}

.eurostack-inner {
    text-align: center;
    border: 1px solid blue;
    background: #0d0d5c;
    border-radius: 8px;
    padding: 32px 48px;
}

.eurostack-inner h2,
.eurostack-inner p,
.eurostack-inner a {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.eurostack-inner p {
    color: #999;
    font-size: 1rem;
    margin-bottom: 16px;
}

.read-more {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.read-more a {
    color: #4a8a3a;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.read-more a::before {
    content: "→ ";
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
}

.read-more a:hover {
    color: #9AFB56;
}

.eurostack-link {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    border: 1px solid blue;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.eurostack-link:hover {
    background: blue;
}

.what-is {
    max-width: 900px;
}

/* Features list */

.features {
    list-style: none;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #000000;
    border-radius: 6px;
}

.features strong {
    font-size: 1rem;
}

.features span {
    font-size: 0.9375rem;
}

/* Split layout */

.split {
    display: flex;
    gap: 40px;
    align-items: top;
}

.split .screenshot {
    flex: 1;
    min-width: 0;
    object-fit: contain;
}

.split-text {
    flex: 1;
    min-width: 0;
}

.split .features {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Screenshots */

.screenshot {
    display: block;
    width: 100%;
}

/* Bottom CTA */

.bottom-cta {
    text-align: center;
}

.bottom-cta h2 {
    margin-bottom: 24px;
}

.bottom-cta code {
    margin-bottom: 0;
}

.bottom-cta .screenshot {
    margin-top: 40px;
}

/* Footer */

footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
}

/* Tablet */

@media (max-width: 768px) {
    main {
        gap: 32px;
    }

    .header {
        justify-content: center;
    }

    .logo {
        height: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 32px 24px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .hero-frame {
        padding: 0 24px;
    }

    .hero-frame-inner {
        border-radius: 6px;
    }

    .hero-content {
        padding: 48px 1.5rem 40px 1.5rem;
    }

    .demo,
    .cli,
    .micro-vm {
        padding-left: 24px;
        padding-right: 24px;
    }

    .eurostack {
        padding-left: 24px;
        padding-right: 24px;
    }

    .demo video {
        width: 100%;
    }

    .split {
        flex-direction: column;
        gap: 24px;
    }

    .problem {
        margin-left: 24px;
        margin-right: 24px;
    }

    .cta {
        overflow-x: auto;
    }

    .eurostack-inner {
        padding: 32px 16px;
    }

    .eurostack-inner h2,
    .eurostack-inner p,
    .eurostack-inner a {
        max-width: 100%;
    }
}

/* Mobile */

@media (max-width: 480px) {
    main {
        gap: 32px;
    }

    h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 24px 16px;
    }

    .demo,
    .cli,
    .micro-vm {
        padding-left: 16px;
        padding-right: 16px;
    }

    .eurostack {
        padding-left: 16px;
        padding-right: 16px;
    }

    .eurostack-inner {
        padding: 24px 12px;
    }

    .eurostack-inner h2,
    .eurostack-inner p,
    .eurostack-inner a {
        max-width: 100%;
    }

    .problem {
        margin-left: 16px;
        margin-right: 16px;
    }

    .hero-frame {
        padding: 0 16px;
    }

    .demo video {
        width: 100%;
    }

    .cta {
        font-size: 0.7rem;
    }

    .hero-install {
        padding: 12px 16px;
    }

    .eurostack-inner {
        padding: 24px 16px;
    }

    nav {
        padding: 0 16px;
    }
}

.micro-vm-img {
    flex: 1;
    min-width: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.micro-vm-img img {
    width: 60%;
    display: block;
}

.split.center {
    align-items: center;
}

/* Effects and stuff */
.crt-terminal {
    position: relative;
    background-color: #0d0d0d; /* Deep terminal black */
    color: #e0e0e0; /* Off-white/gray text */
    font-family:
        "Courier New", Courier, monospace; /* Or standard terminal fonts like Fira Code */
    padding: 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
}

/* 1. The Scan Lines */
.crt-terminal::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* Alternates between transparent and a faint black line every 2 pixels */
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 10;
    pointer-events: none; /* Allows user to select the text underneath */
}

/* 2. The Vignette (Screen edges darkening) */
.crt-terminal::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(
        circle at center,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 11;
    pointer-events: none;
}

/* 3. The Phosphor Glow */
.terminal-content {
    position: relative;
    z-index: 2;
    /* Creates the bleeding light effect */
    text-shadow: 0 0 2px rgba(224, 224, 224, 0.5);
}

/* Optional: Custom colors for specific terminal lines */
.terminal-content .success {
    color: #00ff41; /* Classic hacker green */
    text-shadow: 0 0 2px rgba(0, 255, 65, 0.5);
}

.terminal-content .loading {
    color: #ffb000; /* Amber */
}
