/* ============================================
   Equorix — Shared Styles
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-alt: #f7f5f0;
    --bg-warm: #f1ede4;
    --bg-dark: #0a0a0c;
    --bg-darker: #050506;
    --text: #0a0a0c;
    --text-secondary: #2a2a2c;
    --text-light: #f7f5f0;
    --text-muted: #6b6b6b;
    --text-muted-dark: #8a8a8a;
    --border: #e8e6e1;
    --border-dark: #1f1f21;
    --accent: #b8956a;
    --accent-dark: #8b6f4e;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1280px;
    --gutter: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

::selection {
    background: var(--text);
    color: var(--bg);
}

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

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

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

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============================================
   Typography
   ============================================ */

.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
}

.display-xl {
    font-family: var(--serif);
    font-size: clamp(56px, 8.5vw, 132px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.display-lg {
    font-family: var(--serif);
    font-size: clamp(44px, 6.5vw, 88px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.display-md {
    font-family: var(--serif);
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.display-sm {
    font-family: var(--serif);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.display-xl em, .display-lg em, .display-md em, .display-sm em {
    font-style: italic;
    font-weight: 300;
}

.lede {
    font-size: clamp(18px, 1.5vw, 22px);
    color: var(--text-muted);
    line-height: 1.55;
    font-weight: 300;
    max-width: 680px;
}

.body-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

.body-text strong {
    font-weight: 500;
    color: var(--text);
}

.body-text p + p {
    margin-top: 22px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 18px 0;
    transition: background 0.3s, border-color 0.3s;
}

.nav-dark {
    background: rgba(10, 10, 12, 0.85);
    border-bottom-color: var(--border-dark);
    color: var(--text-light);
}

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

.logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-dark .logo {
    color: var(--text-light);
}

.logo-mark {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 6px 0;
    position: relative;
}

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

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

.nav-links a.active {
    color: var(--text);
}

.nav-dark .nav-links a.active {
    color: var(--text-light);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
}

.nav-cta {
    background: var(--text);
    color: var(--bg) !important;
    padding: 10px 20px !important;
    border-radius: 999px;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.nav-dark .nav-cta {
    background: var(--text-light);
    color: var(--text) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 140px 0;
    border-bottom: 1px solid var(--border);
}

.section-narrow {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    border-bottom-color: var(--border-dark);
}

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

.section-dark .eyebrow,
.section-dark .lede {
    color: var(--text-muted-dark);
}

.section-dark .body-text {
    color: var(--text-light);
}

.section-header {
    margin-bottom: 80px;
    max-width: 820px;
}

.section-header .eyebrow {
    margin-bottom: 28px;
}

.section-header .lede {
    margin-top: 28px;
}

/* ============================================
   Page Header (used on inner pages)
   ============================================ */

.page-header {
    padding: 200px 0 100px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.page-header .eyebrow {
    margin-bottom: 32px;
}

.page-header .lede {
    margin-top: 32px;
    max-width: 720px;
}

/* ============================================
   Buttons & Links
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: var(--sans);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

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

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

.btn-ghost:hover {
    border-color: var(--text);
}

.section-dark .btn-ghost {
    color: var(--text-light);
    border-color: var(--border-dark);
}

.section-dark .btn-ghost:hover {
    border-color: var(--text-light);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: gap 0.25s, border-color 0.25s;
}

.link-arrow:hover {
    gap: 14px;
    border-bottom-color: currentColor;
}

.section-dark .link-arrow {
    color: var(--text-light);
}

/* ============================================
   Cards & Grids
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 100px;
    align-items: start;
}

.split-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.card {
    background: var(--bg);
    padding: 40px 36px;
    border: 1px solid var(--border);
    transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
    border-color: var(--text);
}

.card-warm {
    background: var(--bg-alt);
    border: none;
}

.card-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
}

/* ============================================
   Stats / Numbers
   ============================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    background: var(--bg);
    padding: 56px 32px;
    text-align: left;
    transition: background 0.3s;
}

.stat:hover {
    background: var(--bg-alt);
}

.stat-value {
    font-family: var(--serif);
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-value em {
    font-style: italic;
    font-weight: 300;
    color: var(--text-muted);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
    max-width: 240px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand .logo {
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 24px;
}

.footer-tagline {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-muted-dark);
    max-width: 320px;
    font-weight: 300;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted-dark);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-legal {
    font-size: 12px;
    color: var(--text-muted-dark);
    max-width: 640px;
    line-height: 1.6;
}

.footer-meta {
    font-size: 12px;
    color: var(--text-muted-dark);
    text-align: right;
}

/* ============================================
   Animations
   ============================================ */

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

.fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.15s; }
.fade-up-3 { animation-delay: 0.25s; }
.fade-up-4 { animation-delay: 0.35s; }
.fade-up-5 { animation-delay: 0.45s; }

/* Scroll-triggered fade in */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .split, .split-equal {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 40px var(--gutter);
        gap: 24px;
        align-items: flex-start;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border);
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 24px;
        font-family: var(--serif);
        font-weight: 400;
    }

    .nav-cta {
        font-size: 14px !important;
        padding: 12px 24px !important;
        margin-top: 12px;
    }

    .section, .page-header {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .page-header {
        padding-top: 140px;
    }

    .section-header {
        margin-bottom: 56px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .stat {
        padding: 40px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 56px;
    }

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

    .footer-meta {
        text-align: left;
    }

    .card {
        padding: 32px 28px;
    }
}
