:root{
    --bg:#f4efe7;
    --paper:#faf6f0;
    --line:#ddd3c6;
    --text:#2d2a26;
    --accent:#8c6544;
    --accent-light:#b8916d;
}

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

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Space Grotesk',sans-serif;
    overflow-x:hidden;
}

.grid-overlay{
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg,var(--line) 1px, transparent 1px);
    background-size:40px 40px;
    opacity:.3;
    pointer-events:none;
    z-index:-1;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:30px 8%;
}

.logo{
    font-weight:700;
    letter-spacing:4px;
}



nav{
    display:flex;
    gap:30px;
}

nav a{
    color:var(--text);
    text-decoration:none;
    font-size:.9rem;
    text-transform:uppercase;
}

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

.badge{
    display:inline-block;
    border:1px solid var(--accent);
    padding:10px 18px;
    margin-bottom:25px;
    font-family:'IBM Plex Mono',monospace;
    font-size:.8rem;
    background:white;
}

.hero h1{
    font-size:clamp(4rem,10vw,8rem);
    line-height:.95;
    margin-bottom:25px;
}

.subtitle{
    max-width:700px;
    font-size:1.2rem;
    opacity:.8;
}

.hero-buttons{
    margin-top:40px;
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 24px;
    text-decoration:none;
    border:1px solid var(--accent);
    color:var(--accent);
    font-family:'IBM Plex Mono',monospace;
}

.btn.primary{
    background:var(--accent);
    color:white;
}

.card{
    max-width:1200px;
    margin:50px auto;
    padding:50px;
    background:var(--paper);
    border:2px solid var(--line);
}

.section-label{
    font-family:'IBM Plex Mono',monospace;
    color:var(--accent);
    margin-bottom:20px;
}

.card h2{
    font-size:3rem;
    margin-bottom:20px;
}

.card p{
    margin-bottom:15px;
    line-height:1.7;
}

.card ul{
    padding-left:20px;
}

.card li{
    margin-bottom:10px;
}

.spec-card{
    max-width:1200px;
    margin:50px auto;
    border:2px solid var(--text);
    background:white;
}

.terminal-header{
    background:var(--text);
    color:white;
    padding:12px 20px;
    font-family:'IBM Plex Mono',monospace;
}

/* on desktop show 2 side by side  on mobile stack vertically */
.half-split {
    display:flex;
    gap:2px;
}
.half iframe{
    width:100%;
    height:400px;
    border:none;
}
.half img{
    width:100%;
    height:400px;
    object-fit:cover;
}
.half {
    flex:1;
    width:100%;
    margin: 10px;
}

@media (max-width:768px){
    .half-split{
        flex-direction:column;
    }
}

.spec-card pre{
    padding:30px;
    font-family:'IBM Plex Mono',monospace;
    font-size:1rem;
    line-height:2;
}

.chips{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:20px 0;
}

.chips span{
    border:1px solid var(--accent);
    padding:10px 14px;
    background:white;
    font-size:.9rem;
}

.stats{
    max-width:1200px;
    margin:80px auto;
    padding:0 8%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat{
    background:white;
    border:2px solid var(--line);
    padding:30px;
}

.stat h3{
    font-size:3rem;
    color:var(--accent);
}

.footer-terminal{
    max-width:1200px;
    margin:80px auto;
    background:#222;
    color:#9cff9c;
    font-family:'IBM Plex Mono',monospace;
    padding:40px;
    white-space:pre-line;
    border-radius:8px;
}

@media (max-width:768px){

    header{
        flex-direction:column;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .card{
        padding:30px;
        margin:25px;
    }

    .hero{
        padding-top:40px;
    }
}