/* ═══════════════════════════════════════════════════ */
/* FABRICZERO WEBSITE - BASE STYLES                    */
/* Shared across all pages: reset, variables, nav, etc */
/* ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════ */
/* RESET & VARIABLES                                   */
/* ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    /* Dark theme (default) */
    --bg: #06090f;
    --bg2: #0a0e17;
    --card: #0d1117;
    --surface: #161b22;
    --border: #21262d;
    --border2: #30363d;
    --text: #e6edf3;
    --text2: #8b949e;
    --text3: #484f58;

    /* Semantic colors */
    --planner: #f0883e;
    --critic: #f85149;
    --adjudicator: #8b5cf6;
    --gate: #58a6ff;
    --approved: #3fb950;
    --pending: #d29922;
    --gold: #e8b931;

    /* Typography */
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* Layout */
    --max-w: 1200px;
    --section-pad: 100px;
}

/* Light theme overrides based on browser/OS preference */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8f9fa;
        --bg2: #ffffff;
        --card: #ffffff;
        --surface: #f0f1f3;
        --border: #d1d5db;
        --border2: #b0b8c4;
        --text: #1a1a2e;
        --text2: #4b5563;
        --text3: #9ca3af;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════ */
/* GLOBAL UTILITIES                                    */
/* ═══════════════════════════════════════════════════ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--adjudicator);
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text2);
    max-width: 640px;
    line-height: 1.75;
}

.accent {
    color: var(--adjudicator);
}

.accent-critic {
    color: var(--critic);
}

.accent-planner {
    color: var(--planner);
}

.accent-gate {
    color: var(--gate);
}

.accent-gold {
    color: var(--gold);
}

/* Fade-in animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.23, 1, .32, 1), transform 0.8s cubic-bezier(.23, 1, .32, 1);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ═══════════════════════════════════════════════════ */
/* NAVIGATION                                          */
/* ═══════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(6, 9, 15, .75);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}

nav.scrolled {
    border-bottom-color: var(--border);
}

@media (prefers-color-scheme: dark) {
    nav.scrolled {
        background: rgba(6, 9, 15, .92);
    }
}

@media (prefers-color-scheme: light) {
    nav {
        background: rgba(248, 249, 250, .85);
        backdrop-filter: blur(20px) saturate(1.5);
    }

    nav.scrolled {
        background: rgba(248, 249, 250, .95);
    }
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo em {
    color: var(--adjudicator);
    font-style: normal;
}

.nav-logo-img {
    height: 28px;
    width: auto;
}

.nav-logo .logo-light {
    display: none;
}

@media (prefers-color-scheme: light) {
    .nav-logo .logo-dark {
        display: none;
    }

    .nav-logo .logo-light {
        display: block;
    }
}

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

.nav-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text2);
    text-decoration: none;
    transition: color .2s;
    letter-spacing: 0.2px;
}

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

.nav-cta {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--adjudicator);
    padding: 8px 20px;
    border-radius: 8px;
    transition: opacity .2s, transform .2s !important;
}

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

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(6, 9, 15, .95);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 24px;
        animation: slideDown 0.3s ease;
    }

    .nav-toggle {
        display: block;
        font-size: 24px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ═══════════════════════════════════════════════════ */
/* SUB-NAVIGATION (page-internal links)                */
/* ═══════════════════════════════════════════════════ */
.sub-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 999;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(10, 14, 23, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    list-style: none;
}

@media (prefers-color-scheme: light) {
    .sub-nav {
        background: rgba(240, 241, 243, .9);
        border-bottom-color: var(--border);
    }

    .sub-nav a {
        color: var(--text3);
    }

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

.sub-nav a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text3);
    text-decoration: none;
    transition: color .2s;
    letter-spacing: 0.3px;
}

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

@media (max-width: 768px) {
    .sub-nav {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════ */
/* FOOTER                                              */
/* ═══════════════════════════════════════════════════ */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.footer-logo em {
    color: var(--adjudicator);
    font-style: normal;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text3);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text2);
}

.footer-copy {
    font-size: 12px;
    color: var(--text3);
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.6;
    margin-top: 16px;
    max-width: 720px;
    text-align: center;
    opacity: 0.7;
    width: 100%;
}