﻿:root {
    --background: #f4f1ea;
    --surface: #ffffff;
    --surface-alt: #e9edf2;

    --text: #17212b;
    --text-soft: #465568;
    --muted: #687586;

    --border: #d4d9df;

    --accent: #174a7c;
    --accent-dark: #0e3154;
    --accent-light: #dce8f2;

    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* ---------- Layout ---------- */

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;

    background: var(--accent);
    color: white;

    border: 2px solid var(--accent);

    font-weight: 700;
    letter-spacing: 1px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

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

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

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

/* ---------- Hero ---------- */

.hero {
    padding: 120px 0 110px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8f7f3 55%,
            #e9eef3 100%
        );

    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    margin: 0 0 28px;
    letter-spacing: -2px;
}

.hero-text {
    max-width: 720px;
    font-size: 20px;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    padding: 13px 20px;
    text-decoration: none;
    font-weight: 700;

    border: 1px solid var(--accent);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

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

.button.primary:hover {
    background: var(--accent-dark);
}

.button.secondary {
    color: var(--accent);
    background: transparent;
}

.button.secondary:hover {
    background: var(--accent-light);
}

/* ---------- Sections ---------- */

.section {
    padding: 100px 0;
}

.alternate {
    background: var(--surface-alt);
}

h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin: 0 0 24px;
}

h3 {
    font-size: 21px;
    line-height: 1.3;
}

.section-intro {
    max-width: 720px;
    color: var(--text-soft);
    font-size: 18px;
    margin-bottom: 40px;
}

/* ---------- Research Cards ---------- */

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #aebdca;
}

.card p {
    color: var(--muted);
}

/* ---------- Applications ---------- */

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.application-grid div {
    background: var(--surface);

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    padding: 28px;

    font-weight: 700;
}

/* ---------- Experiment Status ---------- */

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.status {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 25px;
}

.status span,
.status strong {
    display: block;
}

.status span {
    color: var(--muted);
    margin-bottom: 8px;
}

.status strong {
    color: var(--accent-dark);
    font-size: 22px;
}

.note {
    margin-top: 30px;
    padding: 18px 20px;

    border-left: 3px solid var(--accent);

    background: var(--surface);
    color: var(--muted);
}

/* ---------- Patent ---------- */

.patent-card {
    max-width: 850px;

    background: var(--surface);
    border: 1px solid var(--border);

    padding: 35px;
}

.patent-status {
    display: inline-block;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: var(--accent);

    border: 1px solid var(--accent);

    padding: 5px 9px;
}

/* ---------- Contact ---------- */

.contact-section {
    max-width: 700px;
}

/* ---------- Footer ---------- */

footer {
    background: var(--accent-dark);
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: #d5dde5;
    font-size: 13px;
}

/* ---------- Mobile ---------- */

@media (max-width: 800px) {

    .nav-container {
        align-items: flex-start;
        padding: 18px 0;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero {
        padding: 80px 0;
    }

    .cards,
    .application-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ---------- Visitor Counter ---------- */

.visitor-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.visitor-counter strong {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
