:root {
    --bg: #07111f;
    --bg-elevated: rgba(8, 23, 40, 0.84);
    --bg-panel: rgba(12, 30, 49, 0.9);
    --bg-soft: #0e2136;
    --line: rgba(141, 181, 214, 0.2);
    --line-strong: rgba(255, 202, 120, 0.34);
    --text: #f2f6fb;
    --muted: #a7b7c9;
    --accent: #ffc463;
    --accent-strong: #ff9f43;
    --accent-cool: #6fd2ff;
    --shadow: 0 24px 80px rgba(1, 8, 16, 0.45);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --shell: min(1120px, calc(100vw - 2rem));
    --hero-shell: min(1260px, calc(100vw - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    background:
        radial-gradient(circle at top left, rgba(68, 127, 207, 0.26), transparent 36%),
        radial-gradient(circle at 85% 18%, rgba(255, 170, 91, 0.18), transparent 26%),
        linear-gradient(180deg, #06101c 0%, #07111f 38%, #09182b 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(150, 188, 219, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 188, 219, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.5;
    z-index: -1;
}

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

img {
    display: block;
    max-width: 100%;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

code,
pre {
    font-family: var(--font-mono);
}

code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.4rem;
    background: rgba(25, 48, 72, 0.95);
}

pre {
    overflow-x: auto;
    padding: 1rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(4, 16, 31, 0.95);
}

pre code {
    padding: 0;
    background: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(4, 11, 20, 0.75);
    border-bottom: 1px solid rgba(140, 183, 218, 0.12);
}

.site-header-shell,
.section-shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.75rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge {
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(255, 196, 99, 0.32);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

nav a {
    color: rgba(223, 234, 245, 0.78);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent);
    transform: translateY(-1px);
}

.site-main {
    overflow: clip;
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 4.75rem);
    padding: 4rem 0 3rem;
}

.hero-backdrop,
.hero-scrim {
    position: absolute;
    inset: 0;
}

.hero-backdrop {
    background-position: center;
    background-size: cover;
    opacity: 0.42;
    transform: scale(1.03);
}

.hero-scrim {
    background:
        linear-gradient(90deg, rgba(3, 10, 18, 0.92) 0%, rgba(4, 16, 29, 0.66) 42%, rgba(7, 17, 31, 0.9) 100%),
        linear-gradient(180deg, rgba(7, 16, 28, 0.1) 0%, rgba(7, 17, 31, 0.88) 92%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: var(--hero-shell);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: end;
    min-height: calc(100vh - 10rem);
}

.hero-copy {
    max-width: 42rem;
    padding: 2rem 0 1rem;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3.75rem, 11vw, 7.75rem);
    text-transform: uppercase;
}

.hero-brand {
    margin-bottom: 1rem;
    color: rgba(215, 231, 245, 0.86);
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-summary {
    max-width: 36rem;
    font-size: 1.1rem;
    color: rgba(231, 240, 248, 0.84);
}

.hero-actions,
.cta-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-actions {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #09101a;
    box-shadow: 0 18px 48px rgba(255, 159, 67, 0.28);
}

.button-secondary {
    border-color: rgba(163, 200, 231, 0.24);
    background: rgba(7, 21, 36, 0.52);
    color: var(--text);
}

.hero-panel {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-panel-card,
.proof-card,
.feature-card,
.gallery-item,
.post-card,
.archive-card,
.article-shell,
.cta-banner {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 27, 45, 0.96) 0%, rgba(8, 20, 36, 0.92) 100%);
    box-shadow: var(--shadow);
}

.hero-panel-card {
    width: min(100%, 33rem);
    padding: 1rem;
    border-radius: 1.75rem;
}

.hero-panel-copy {
    padding: 0.5rem 0.45rem 1rem;
}

.hero-panel-label {
    margin-bottom: 0.55rem;
    color: var(--accent-cool);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel-card h2 {
    font-size: clamp(1.55rem, 4vw, 2.35rem);
}

.hero-panel-card img {
    width: 100%;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
    border-radius: 1.1rem;
    border: 1px solid rgba(157, 195, 225, 0.18);
}

.proof-strip {
    position: relative;
    z-index: 2;
    margin-top: -1rem;
}

.proof-grid,
.feature-grid,
.blog-preview-grid,
.archive-grid {
    display: grid;
    gap: 1rem;
}

.proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-card {
    padding: 1.2rem 1.3rem;
    border-radius: 1.2rem;
}

.proof-value {
    margin-bottom: 0.55rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
}

.proof-card p {
    margin: 0;
}

.content-section {
    padding: 5rem 0;
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.archive-hero h1,
.article-shell h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    padding: 1.5rem;
    border-radius: 1.35rem;
}

.feature-card h3,
.gallery-copy h3,
.post-card h3,
.archive-card h2 {
    font-size: 1.55rem;
}

.gallery-section {
    background: linear-gradient(180deg, rgba(8, 18, 32, 0.05) 0%, rgba(7, 18, 30, 0.48) 100%);
}

.gallery-stack {
    display: grid;
    gap: 1.5rem;
}

.gallery-item {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1.6rem;
}

.gallery-item-reverse {
    grid-template-columns: minmax(320px, 1.18fr) minmax(0, 0.82fr);
}

.gallery-item-reverse .gallery-copy {
    order: 2;
}

.gallery-item-reverse .gallery-media {
    order: 1;
}

.gallery-media img {
    width: 100%;
    aspect-ratio: 1.32 / 1;
    object-fit: cover;
    border-radius: 1.15rem;
    border: 1px solid rgba(163, 200, 231, 0.18);
}

.blog-preview-grid,
.archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.archive-card {
    padding: 1.45rem;
    border-radius: 1.35rem;
}

.post-card-date,
.article-back-link,
.text-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card-date {
    color: var(--accent-cool);
    margin-bottom: 0.75rem;
}

.text-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: var(--accent);
}

.cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem;
    border-radius: 1.6rem;
    border-color: var(--line-strong);
}

.archive-hero {
    padding: 5rem 0 1rem;
}

.archive-intro,
.article-excerpt {
    max-width: 44rem;
    font-size: 1.05rem;
    color: rgba(225, 237, 247, 0.84);
}

.article-section {
    padding-top: 4rem;
}

.article-shell {
    padding: 2rem;
    border-radius: 1.6rem;
}

.article-back-link {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent);
}

.article-body {
    margin-top: 2rem;
}

.article-body h2,
.article-body h3 {
    margin-top: 2rem;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body img {
    width: 100%;
    margin: 1.8rem 0;
    border-radius: 1.15rem;
    border: 1px solid var(--line);
}

.article-body ul,
.article-body ol {
    padding-left: 1.25rem;
    color: var(--muted);
}

.site-footer {
    padding: 2rem 0 3rem;
}

.site-footer-shell {
    border-top: 1px solid rgba(147, 185, 216, 0.14);
    padding-top: 1.35rem;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 201, 217, 0.72);
}

.reveal {
    animation: reveal-up 0.85s ease both;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .gallery-item,
    .gallery-item-reverse,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .gallery-item-reverse .gallery-copy,
    .gallery-item-reverse .gallery-media {
        order: initial;
    }

    .proof-grid,
    .feature-grid,
    .blog-preview-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        justify-content: stretch;
    }

    .hero-panel-card {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .site-header-shell {
        min-height: auto;
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-section {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 18vw, 4.5rem);
    }

    .content-section,
    .archive-hero {
        padding: 3.25rem 0;
    }

    .article-shell {
        padding: 1.35rem;
    }
}
