:root {
    --ink: #0A0F1C;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
}

body {
    background: #0A0F1C;
    color: #EEF1F8;
    font-family: 'Gadugi', 'Inter', sans-serif;
    font-size: 18.5px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga" 1, "kern" 1;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h2 {
    line-height: 1.15;
}

h3 {
    line-height: 1.3;
}

p {
    color: #A6B1CC;
    max-width: 68ch;
}

.eyebrow,
.tech-chip,
.title-block,
.font-mono {
    font-variant-ligatures: none;
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(233, 237, 246, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 237, 246, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 40%, transparent 90%);
}

.grid-bg-fine {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(233, 237, 246, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 237, 246, 0.028) 1px, transparent 1px);
    background-size: 12px 12px;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: overlay;
}

.corner-mark {
    position: fixed;
    z-index: 40;
    pointer-events: none;
    color: #C3CCE6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .05em;
    opacity: .55;
}

.corner-mark svg {
    display: block;
}

::selection {
    background: #FFB238;
    color: #0A0F1C;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    z-index: 70;
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: none;
}

@media (pointer:fine) {
    .cursor-dot {
        display: block;
    }

    .cursor-enabled,
    .cursor-enabled * {
        cursor: none !important;
    }
}

.cursor-dot svg {
    width: 100%;
    height: 100%;
}

.cursor-dot .cd-line {
    stroke: #FFB238;
    stroke-width: 1;
}

.cursor-dot .cd-ring {
    stroke: #4FD8C4;
    stroke-width: 1;
    fill: none;
    opacity: .7;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #FFB238;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.eyebrow::before {
    content: '';
    width: 16px;
    height: 1px;
    background: #FFB238;
    display: inline-block;
}

.hairline {
    border-color: rgba(233, 237, 246, 0.12);
}

.nav-link {
    position: relative;
    color: #A6B1CC;
    transition: color .25s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #EEF1F8;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #FFB238;
    transition: width .25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.status-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4FD8C4;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #4FD8C4;
    opacity: .4;
    animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(.6);
        opacity: .5;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.btn-primary {
    background: #FFB238;
    color: #0A0F1C;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(255, 178, 56, .45);
}

.btn-ghost {
    border: 1px solid rgba(233, 237, 246, 0.18);
    color: #EEF1F8;
    font-weight: 500;
    transition: all .3s ease;
}

.btn-ghost:hover {
    border-color: #4FD8C4;
    color: #4FD8C4;
}

.bp-card {
    position: relative;
}

.bp-card::before,
.bp-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #FFB238;
    opacity: 0;
    transition: opacity .35s ease, width .35s ease, height .35s ease;
}

.bp-card::before {
    top: -1px;
    left: -1px;
    border-top: 1.5px solid;
    border-left: 1.5px solid;
}

.bp-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 1.5px solid;
    border-right: 1.5px solid;
}

.bp-card:hover::before,
.bp-card:hover::after {
    opacity: 1;
    width: 20px;
    height: 20px;
}

.tech-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    letter-spacing: .01em;
    border: 1px solid rgba(233, 237, 246, 0.16);
    color: #A6B1CC;
    padding: 5px 11px;
    border-radius: 3px;
    transition: border-color .25s ease, color .25s ease;
}

.tech-chip:hover {
    border-color: #4FD8C4;
    color: #4FD8C4;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FFB238;
    font-weight: 600;
    font-size: 15px;
}

.case-link svg {
    transition: transform .25s ease;
}

.case-link:hover svg {
    transform: translate(4px, -4px);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(233, 237, 246, 0.16);
    border-radius: 6px;
    color: #A6B1CC;
    transition: all .25s ease;
}

.social-icon:hover {
    color: #0A0F1C;
    background: #FFB238;
    border-color: #FFB238;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.gauge-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
}

.title-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: #B8C2E0;
}

.title-block b {
    color: #EEF1F8;
    font-weight: 600;
}

.footer-logo {
    font-family: 'Gadugi', 'Archivo', sans-serif;
    font-weight: 900;
    line-height: 0.82;
    font-size: clamp(4.5rem, 21vw, 17.5rem);
    text-align: center;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(238, 241, 248, 0.32);
    transition: color .6s ease, -webkit-text-stroke-color .6s ease, transform .6s ease, letter-spacing .6s ease;
    cursor: default;
    user-select: none;
    margin: 0;
}

.footer-logo:hover {
    color: #FFB238;
    -webkit-text-stroke-color: transparent;
    transform: scale(1.015);
    letter-spacing: -0.01em;
}

@supports not (-webkit-text-stroke: 1px black) {
    .footer-logo {
        color: rgba(238, 241, 248, 0.14);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0A0F1C;
}

::-webkit-scrollbar-thumb {
    background: #1c2942;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a3a5c;
}

/* ---------- Case-study-specific additions ---------- */
.flow-arrow {
    color: #FFB238;
}

.split-card {
    display: grid;
}

@media (min-width: 768px) {
    .split-card {
        grid-template-columns: 1fr 1fr;
    }
}

.split-card>div:first-child {
    border-bottom: 1px solid rgba(233, 237, 246, 0.12);
}

@media (min-width: 768px) {
    .split-card>div:first-child {
        border-bottom: none;
        border-right: 1px solid rgba(233, 237, 246, 0.12);
    }
}

.tag-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.tag-problem {
    background: rgba(232, 118, 122, 0.1);
    color: #E8767A;
}

.tag-solution {
    background: rgba(79, 216, 196, 0.1);
    color: #4FD8C4;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-row svg {
    flex-shrink: 0;
    margin-top: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}