﻿/* ---------------------------------------------
   Revision Labs — Ultra Modern Startup Color Scheme
   --------------------------------------------- */

:root {
    /* Brand Colors */
    --primary-highlight: #AF0B0F;
    --primary: #7E0B10;
    --dark-1: #4E080F;
    --dark-2: #3E0C12;
    --dark-3: #330000;
    --dark-4: #1F0000;
    --dark-5: #0A0000;
    --light-1: #F4F7F5;
    --light-2: #EBEBEC;
    --light-3: #D5D4D6;

    /* Dark Mode (default) */
    --bg: linear-gradient(to right, var(--dark-3), var(--dark-4) 20%, var(--dark-4) 80%, var(--dark-3));
    --panel: var(--dark-3);
    --ink: var(--light-1);
    --muted: var(--light-3);
    --muted-2: var(--light-2);
    --border: rgba(244, 247, 245, 0.12);
    --hairline: rgba(244, 247, 245, 0.08);
    --shadow: 0 16px 50px rgba(0, 0, 0, 0.40);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
    --accent: var(--primary-highlight);
    --accent-hover: var(--primary);
    --accent-ink: var(--light-1);

    /* Layout */
    --max: 1180px;
    --radius: 12px;

    /* Motion */
    --ease: cubic-bezier(.2,.8,.2,1);

    /* Hero Background Palette */
    --hero-bg: #260000;
    --hero-c1: rgba(175, 11, 15, 0.45);
    --hero-c2: rgba(126, 11, 16, 0.35);
    --hero-c3: rgba(80, 0, 0, 0.5);
    --hexMask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1800' height='1400' viewBox='0 0 1800 1400'%3E%3Crect width='1800' height='1400' fill='black' fill-opacity='0'/%3E%3Cg fill='white'%3E%3Cpolygon points='360,160 480,230 480,370 360,440 240,370 240,230' fill-opacity='0.75'/%3E%3Cpolygon points='940,120 1080,200 1080,360 940,440 800,360 800,200' fill-opacity='0.55'/%3E%3Cpolygon points='1520,240 1640,310 1640,450 1520,520 1400,450 1400,310' fill-opacity='0.70'/%3E%3Cpolygon points='600,620 760,712 760,892 600,984 440,892 440,712' fill-opacity='0.65'/%3E%3Cpolygon points='1240,660 1400,752 1400,932 1240,1024 1080,932 1080,752' fill-opacity='0.50'/%3E%3Cpolygon points='240,1040 380,1120 380,1280 240,1360 100,1280 100,1120' fill-opacity='0.60'/%3E%3Cpolygon points='960,1040 1120,1132 1120,1312 960,1404 800,1312 800,1132' fill-opacity='0.58'/%3E%3Cpolygon points='1640,1000 1760,1070 1760,1210 1640,1280 1520,1210 1520,1070' fill-opacity='0.62'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    color-scheme: dark;
    transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    background-attachment: fixed;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container */
.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

h1 {
    font-size: clamp(40px, 4vw, 56px);
    line-height: 1.05;
    font-weight: 700;
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 650;
}

h3 {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.small { font-size: 14px; color: var(--muted-2); }

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a.inline {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
a.inline:hover { color: var(--accent-hover); border-bottom-color: var(--muted-2); }

/* Section rhythm */
section {
    padding: 112px 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--dark-4), transparent 8%),
        color-mix(in srgb, var(--dark-5), transparent 8%) 50%,
        color-mix(in srgb, var(--dark-4), transparent 8%)
    ); /* Gradient from dark-4 to dark-5 and back to dark-4 with 92% alpha */
}

@media (max-width: 860px) {
    section { padding: 82px 0; }
}

/* Subtle section separator */
.section-sep {
    height: 4px;
    background: var(--dark-1);
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ---------------------------------------------
   NAV
   --------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(31, 8, 8, 0.8), rgba(51, 0, 0, 0.75));
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    /*border-bottom: 1px solid var(--hairline);*/
    transition: background 300ms var(--ease);
    color: var(--light-1);
}

.nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 270px;
}

.brand img {
    display: none;
    height: 42px;
    width: auto;
}

.footer-brand img {
    display: none;
    height: 28px;
    width: auto;
}

/* Nav always uses light logo because of dark red background */
.nav .brand .logo-light,
.footer-brand .logo-light {
    display: block;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    position: relative;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: rgba(244, 247, 245, 0.7);
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 160ms var(--ease), color 160ms var(--ease);
}

.nav-link:hover {
    background: rgba(244, 247, 245, 0.1);
    color: var(--light-1);
}

.nav-link[aria-current="true"] {
    color: var(--light-1);
}

.nav-indicator {
    position: absolute;
    bottom: 2px;
    left: 0;
    height: 1.5px;
    width: 0;
    background: var(--primary-highlight);
    border-radius: 99px;
    opacity: 0;
    pointer-events: none;
    transition: 
        left 400ms var(--ease), 
        width 400ms var(--ease), 
        opacity 300ms var(--ease);
}

.nav-indicator.active {
    opacity: 1;
}

.nav-cta {
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 247, 245, 0.2);
    color: var(--light-1);
    background: transparent;
    transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), border-width 160ms var(--ease);
}

.nav-cta:hover {
    background: rgba(244, 247, 245, 0.1);
    border-color: rgba(244, 247, 245, 0.4);
    color: var(--light-1);
}

.nav-cta[aria-current="true"] {
    border-color: var(--primary-highlight);
    border-width: 2px;
    padding: 9px 13px; /* Adjust padding to keep total size consistent with 1px border */
}

.nav-cta:focus-visible,
.nav-link:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-highlight);
    outline-offset: 3px;
    border-radius: 12px;
}

.nav-mobile,
.mobile-panel {
    display: none;
}

@media (max-width: 860px) {
    .brand { min-width: auto; }
    .nav-links { display: none; }
    .nav-mobile { display: inline-flex; align-items: center; gap: 10px; }

    .nav-mobile button {
        border: 1px solid rgba(244, 247, 245, 0.2);
        background: rgba(244, 247, 245, 0.05);
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 14px;
        color: var(--light-1);
    }

    .mobile-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: 72px;
        border-bottom: 1px solid var(--hairline);
        background: linear-gradient(to bottom, rgba(78, 8, 15, 0.98), rgba(110, 10, 20, 0.95));
        backdrop-filter: blur(12px) saturate(120%);
    }

    ::root[data-theme="dark"] .mobile-panel,
    body[data-theme="dark"] .mobile-panel {
        background: linear-gradient(to bottom, rgba(31, 8, 8, 0.98), rgba(51, 0, 0, 0.95));
    }

    .mobile-panel.open { display: block; }

    .mobile-panel .container {
        padding: 14px 0 18px;
    }

    .mobile-panel a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 12px;
        border-radius: 12px;
        color: rgba(244, 247, 245, 0.8);
    }

    .mobile-panel a:hover { background: rgba(244, 247, 245, 0.1); color: var(--light-1); }

    .mobile-panel .cta-row { margin-top: 10px; }
    .mobile-panel .cta-row a {
        border: 1px solid rgba(244, 247, 245, 0.2);
        justify-content: center;
    }
}

/* ---------------------------------------------
   HERO
   --------------------------------------------- */
.hero {
    min-height: max(400px, 70vh);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--light-1);
    z-index: 3;
    padding: 90px 0 0; /* Top offset for fixed nav, no bottom padding */
    /*border-top: 4px solid var(--dark-1);
    border-bottom: 4px solid var(--dark-1);*/
}

.hero-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(1400px 900px at 25% 10%, rgba(51,0,0,0.8), transparent 55%),
        radial-gradient(1200px 800px at 75% 70%, rgba(51,0,0,0.6), transparent 60%),
        var(--hero-bg);
}

.hero-background .layer {
    position: absolute;
    inset: -100%;
    background-color: transparent;
    will-change: mask-position, -webkit-mask-position;
    pointer-events: none;
    -webkit-mask-image: var(--hexMask);
    mask-image: var(--hexMask);
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 1800px 1400px;
    mask-size: 1800px 1400px;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
}

.hero-background .layer1 {
    background-color: var(--hero-c1);
    animation: drift1 90s linear infinite;
    transform: rotate(45deg);
    opacity: 0.95;
}

.hero-background .layer2 {
    background-color: var(--hero-c2);
    animation: drift2 120s linear infinite;
    transform: rotate(75deg);
    opacity: 0.9;
}

.hero-background .layer3 {
    background-color: var(--hero-c3);
    animation: drift3 150s linear infinite;
    transform: rotate(130deg);
    opacity: 0.95;
}

@keyframes drift1 {
    from { -webkit-mask-position: 0 0; mask-position: 0 0; }
    to   { -webkit-mask-position: -1800px -1400px; mask-position: -1800px -1400px; }
}

@keyframes drift2 {
    from { -webkit-mask-position: 0 0; mask-position: 0 0; }
    to   { -webkit-mask-position: 1800px -1400px; mask-position: 1800px -1400px; }
}

@keyframes drift3 {
    from { -webkit-mask-position: 0 0; mask-position: 0 0; }
    to   { -webkit-mask-position: 0 -1400px; mask-position: 0 -1400px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background .layer1, .hero-background .layer2, .hero-background .layer3 { animation: none; }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 18px;
}

.hero p {
    font-size: 18px;
    max-width: 820px;
    color: rgba(244, 247, 245, 0.8);
}

.hero-meta {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(244, 247, 245, 0.7);
    font-size: 14px;
    letter-spacing: 0.01em;
    user-select: none;
}

.scroll-indicator {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(244, 247, 245, 0.2);
    background: rgba(4, 1, 1, 0.4);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-soft);
    animation: bob 1.8s var(--ease) infinite;
}

.scroll-indicator svg {
    width: 14px;
    height: 14px;
    opacity: 0.78;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ---------------------------------------------
   SECTION HEADERS
   --------------------------------------------- */
.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 34px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 99px;
}

.kicker.red::before {
    background: var(--accent);
}

/* ---------------------------------------------
   APPROACH
   --------------------------------------------- */
.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 860px) {
    .cols-3 { grid-template-columns: 1fr; gap: 18px; }
}

.approach-item {
    padding: 30px 2px;
    text-align: center;
}

.approach-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.icon-svg {
    width: 96px;
    height: 96px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}

.draw path,
.draw circle {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.reveal.in .draw path,
.reveal.in .draw circle {
    animation: draw 1.2s ease forwards;
}

.approach-item:nth-child(1) .draw path,
.approach-item:nth-child(1) .draw circle {
    animation-delay: 0.2s;
}

.approach-item:nth-child(2) .draw path,
.approach-item:nth-child(2) .draw circle {
    animation-delay: 0.4s;
}

.approach-item:nth-child(3) .draw path,
.approach-item:nth-child(3) .draw circle {
    animation-delay: 0.6s;
}

.approach-item:hover .icon-svg {
    transform: translateY(-2px);
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.approach-item p { 
    max-width: 42ch; 
    margin-inline: auto;
}

.closing {
    margin-top: 40px;
    max-width: 82ch;
    color: rgba(170, 150, 150, 0.9);
    text-align: center;
    margin-inline: auto;
}

/* ---------------------------------------------
   SHARED DARK PANEL BACKGROUNDS
   .dark-panel  — Used by: .os
   .darker-panel — Used by: .product-wrap, .pillar, .headshot, .form-wrap
   --------------------------------------------- */
.dark-panel {
    background: rgba(20, 0, 0, 0.55);
    color: var(--light-1);
}

.darker-panel {
    background: rgba(20, 0, 0, 0.72);
    color: var(--light-1);
}

/* ---------------------------------------------
   PRODUCT
   --------------------------------------------- */
.product-wrap {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 3px solid var(--dark-3);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 42px;
}

.product-wrap p { color: rgba(244, 247, 245, 0.8); }

@media (max-width: 860px) {
    .product-wrap { padding: 26px; }
}

.product-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 34px;
    align-items: start;
}

@media (max-width: 860px) {
    .product-grid { grid-template-columns: 1fr; gap: 20px; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--panel);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--accent);
}

.product-title {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.cta-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
    user-select: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--hairline);
    transform: translateY(-1px);
}

.small-btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* ---------------------------------------------
   COOKIE BANNER
   --------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    width: min(var(--max), calc(100% - 48px));
    max-width: 800px;
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 0;
    transition: transform 0.4s var(--ease);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: var(--dark-3); /* Explicit background to ensure floating look */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-banner.open {
    transform: translateX(-50%) translateY(0);
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.banner-content {
    flex: 1;
}

.banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 12px;
        padding: 16px 0;
    }
    .banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.pillars {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.pillar {
    border: 1px solid var(--primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 16px 16px;
}

.pillar p { color: rgba(244, 247, 245, 0.8); }

.pillar h3 { margin-bottom: 8px; }


/* ---------------------------------------------
   OPEN SOURCE
   --------------------------------------------- */
.os {
    border-top: 4px solid var(--dark-1);
    border-bottom: 4px solid var(--dark-1);
}

.os .os-brand { color: var(--light-1); }
.os p, .os h2 { color: var(--light-1); }
.os .muted, .os .bullets li { color: rgba(244, 247, 245, 0.8); }
.os .os-cta { color: var(--primary-highlight); }

.bullets {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    line-height: 1.6;
}

.bullets li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--primary);
    margin-top: 8px;
    flex: 0 0 auto;
}

.os-cta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--accent);
}

.os-cta span {
    display: inline-block;
    transition: transform 160ms var(--ease);
}

.os-cta:hover span { transform: translateX(3px); }

/* ---------------------------------------------
   FOUNDER
   --------------------------------------------- */
.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

@media (max-width: 860px) {
    .founder-grid { grid-template-columns: 1fr; gap: 18px; }
}

.headshot {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    border: 3px solid var(--dark-2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.headshot .ph {
    font-size: 13px;
    color: rgba(244, 247, 245, 0.8);
    padding: 16px;
    text-align: center;
    max-width: 30ch;
}

.social {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: var(--panel);
    color: var(--ink);
    transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.social:hover {
    transform: translateY(-1px);
    background: var(--hairline);
}

/* ---------------------------------------------
   PARTNER FORM
   --------------------------------------------- */
.form-wrap {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 3px solid var(--dark-2);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 34px;
}

.form-legend {
    font-size: 13px;
    color: var(--muted-2);
    margin-bottom: 12px;
}

.form-wrap label { color: rgba(244, 247, 245, 0.8); }
.form-wrap .hint { color: rgba(244, 247, 245, 0.6); }

@media (max-width: 860px) {
    .form-wrap { padding: 22px; }
}

form {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

input, select, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--dark-1);
    background: var(--dark-4);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

input:hover, select:hover, textarea:hover {
    border-color: var(--muted-2);
    background: var(--panel);
}

.full { grid-column: 1 / -1; }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hint {
    font-size: 13px;
    color: var(--muted-2);
}

/* ---------------------------------------------
   FOOTER
   --------------------------------------------- */
footer {
    padding: 40px 0;
    border-top: 4px solid var(--dark-1);
    background: linear-gradient(to top, rgba(31, 8, 8, 0.8), rgba(51, 0, 0, 0.75));
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 18px;
}

@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand {
    display: flex;
    align-items: center;
}


.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 14px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
}

.footer-links a:hover { background: var(--hairline); color: var(--ink); }

/* ---------------------------------------------
   REVEAL ON SCROLL
   --------------------------------------------- */
.reveal {
    opacity: 1;
    transform: none;
}

html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

html.reveal-ready .reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.typewriter, .typewriter-fast {
    opacity: 0;
    position: relative;
    display: inline-block;
}

.typewriter.in, .typewriter-fast.in {
    opacity: 1;
}

.typewriter.typing::after, .typewriter-fast.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 8px;
    vertical-align: middle;
    background-color: var(--accent);
    animation: blink 0.7s infinite;
    position: relative;
    top: -0.05em;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-indicator { animation: none; }
    .reveal,
    html.reveal-ready .reveal,
    .typewriter,
    .typewriter-fast {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .typewriter.typing::after,
    .typewriter-fast.typing::after {
        display: none;
    }
    .btn, .nav-link, .nav-cta, .os-cta span { transition: none; }
}

/* ---------------------------------------------
   MODALS
   --------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: min(600px, calc(100% - 40px));
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    z-index: 1001;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-body {
    font-size: 15px;
    line-height: 1.6;
}

.modal-body h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.modal-body h3 {
    font-size: 18px;
    margin: 20px 0 8px;
}

.modal-body p {
    font-size: 15px;
    margin-bottom: 12px;
}

.modal-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-body li {
    margin-bottom: 4px;
}
