/* Lorenz Systems public site — minimal, secure, no external dependencies */

:root {
    --bg: #090a0c;
    --surface: #0f1116;
    --text: #e8eaef;
    --muted: #707580;
    --accent: #2ec4b6;
    --border: #22262e;
    --max-width: 860px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: transparent;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 4rem;
    left: 0vw;
    width: 30vw;
    height: 30vh;
    background: url('../images/lorenz-attractor.svg') no-repeat top left;
    background-size: contain;
    opacity: 0.40;
    pointer-events: none;
    z-index: -1;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.15rem;
}

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

.initial {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.3rem;
}

.section-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

section {
    scroll-margin-top: 5rem;
    margin-bottom: 5rem;
}

.split-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.split-body-text {
    min-width: 0;
}

.split-figure {
    margin: 0;
    align-self: center;
}

.split-thumb {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    cursor: zoom-in;
    display: block;
}

.split-figure figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
    text-align: center;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.25rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

.hero {
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bite-line {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.sub {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.hero .sub {
    color: var(--text);
    font-weight: 600;
}

.hero .cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.95rem;
}

.punchline {
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-top: 1.5rem;
}

.tech-detail {
    font-style: italic;
    color: var(--muted);
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.placeholder {
    color: var(--muted);
    border-left: 3px solid var(--border);
    padding-left: 1rem;
    margin: 1.5rem 0 0;
}

.cta {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta:hover {
    filter: brightness(1.1);
}

.proof-points,
.audiences {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.proof-points li,
.audiences li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
}

label {
    font-size: 0.9rem;
    color: var(--muted);
}

input,
textarea,
button {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

button {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    cursor: pointer;
    border-color: var(--accent);
}

button:hover {
    filter: brightness(1.1);
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    body::before {
        top: 6rem;
        left: -4vw;
        width: 40vw;
        height: 25vh;
        opacity: 0.30;
    }

    h1 {
        font-size: 2rem;
    }

    .bite-line {
        font-size: 1.3rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .initial {
        font-size: 1.05rem;
    }

    nav ul {
        gap: 1rem;
    }

    .split-body {
        grid-template-columns: 1fr;
    }

    .split-figure {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }
}
