/* ═══════════════════════════════════════════════════════════════════
   CORVUS MACHINA — SHARED STYLESHEET
   corvusmachina.nl · v1.0 · 2026
   Brand spec: Visual Brand Identity v1.0 + Verbal Brand Identity v1.1
   ═══════════════════════════════════════════════════════════════════ */

/* ── BRAND TOKENS ───────────────────────────────────────────────── */
:root {
    /* Core palette */
    --carbon:       #0B0D0F;
    --slate:        #14171A;
    --steel:        #2A2D31;
    --gunmetal:     #3B3F45;
    --titanium:     #7A828C;
    --silver:       #9AA3AD;
    --light:        #E6E7E8;

    /* Accent */
    --orange:       #FF6A00;

    /* Functional */
    --bg:           var(--carbon);
    --bg-alt:       var(--slate);
    --border:       var(--steel);
    --text:         var(--light);
    --text-muted:   var(--silver);
    --text-dim:     var(--gunmetal);

    /* Typography */
    --font:         'Roboto', sans-serif;
    --container:    680px;
    --container-wide: 900px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: var(--font); }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.container--wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 28px;
}

section {
    padding: 88px 0;
}

section.alt {
    background-color: var(--bg-alt);
}

section.product {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--border);
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.site-nav {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    background-color: var(--bg);
}

.site-nav .container--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--titanium);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-links .nav-cta {
    background-color: var(--orange);
    color: var(--carbon);
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.nav-links .nav-cta:hover {
    color: var(--carbon);
    opacity: 0.88;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.03em;
}

/* The orange period — brand signature detail */
h1 .accent { color: var(--orange); }

h2 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

p:last-child { margin-bottom: 0; }

p strong { color: var(--text); font-weight: 700; }
p em { font-style: italic; color: var(--text); }

.label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
    display: block;
    margin-bottom: 14px;
}

.text-muted { color: var(--text-dim); font-size: 0.8rem; }
.text-center { text-align: center; }
.text-small { font-size: 0.88rem; }

/* ── STAT BLOCK ─────────────────────────────────────────────────── */
.stat {
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 52px;
    display: block;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 12px;
    padding: 15px 24px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    line-height: 1.4;
    -webkit-appearance: none;
}

.btn:hover { opacity: 0.82; }
.btn:last-child { margin-bottom: 0; }

.btn--primary {
    background-color: var(--orange);
    color: var(--carbon);
    font-weight: 700;
}

.btn--secondary {
    background-color: var(--steel);
    color: var(--text);
}

.btn--ghost {
    background-color: transparent;
    color: var(--titanium);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--gunmetal);
    opacity: 1;
    color: var(--silver);
}

.btn-group {
    margin-top: 36px;
}

/* ── FORMS ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--titanium);
    margin-bottom: 7px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    background-color: var(--carbon);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--orange);
}

textarea { min-height: 120px; resize: vertical; }

input::placeholder, textarea::placeholder {
    color: var(--steel);
}

/* ── PRICE CARD ─────────────────────────────────────────────────── */
.price-card {
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-bottom: 24px;
    background-color: var(--carbon);
}

.price-card__amount {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.price-card__amount span {
    font-size: 1rem;
    color: var(--titanium);
    font-weight: 400;
}

.price-card__meta {
    font-size: 0.8rem;
    color: var(--titanium);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.price-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── DELIVERABLE LIST ───────────────────────────────────────────── */
.deliverable-list {
    list-style: none;
    margin: 20px 0;
}

.deliverable-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.deliverable-list li:first-child { border-top: 1px solid var(--border); }

.deliverable-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--orange);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── METHOD GRID ────────────────────────────────────────────────── */
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 24px 0;
}

.method-tag {
    background-color: var(--carbon);
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.method-tag strong {
    color: var(--orange);
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ── THREE DISCIPLINES ──────────────────────────────────────────── */
.disciplines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
    margin: 36px 0;
}

.discipline {
    background-color: var(--carbon);
    padding: 28px 24px;
}

.discipline__number {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--orange);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.discipline__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.discipline__desc {
    font-size: 0.82rem;
    color: var(--titanium);
    line-height: 1.6;
    margin: 0;
}

.discipline--active {
    background-color: var(--slate);
}

.discipline--active .discipline__title {
    color: var(--orange);
}

/* ── NOT US BLOCK ───────────────────────────────────────────────── */
.not-us {
    border: 1px solid var(--border);
    padding: 32px;
    margin: 36px 0;
}

.not-us__title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gunmetal);
    margin-bottom: 20px;
}

.not-us__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.not-us__list li {
    font-size: 0.82rem;
    color: var(--gunmetal);
    padding: 6px 12px;
    border: 1px solid var(--steel);
    text-decoration: line-through;
    text-decoration-color: var(--steel);
}

/* ── SCAN PAGE — CSS :TARGET ANIMATION ─────────────────────────── */
/* When a scan section is targeted via anchor, it fades in.
   Zero JavaScript. Pure CSS. */
.scan-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.scan-section:target {
    animation: sectionReveal 0.35s ease forwards;
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scan progress indicator */
.scan-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s ease;
    z-index: 100;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

footer .container--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-statement {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--gunmetal);
    letter-spacing: 0.02em;
}

.footer-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-meta a {
    color: var(--gunmetal);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-meta a:hover { color: var(--titanium); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .disciplines {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.65rem; }
    .stat { font-size: 4rem; }
    section { padding: 64px 0; }
    .price-card { padding: 20px; }
    .not-us { padding: 24px; }
    .scan-section { min-height: auto; padding: 72px 0; }

    footer .container--wide {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── PRINT ──────────────────────────────────────────────────────── */
@media print {
    .site-nav, .btn-group, footer { display: none; }
    body { background: white; color: black; }
    .price-card { border: 1px solid #ccc; }
    h1, h2, h3 { color: black; }
    p { color: #333; }
}
