/* ========================================
   CONTRA LABS — SHARED DESIGN SYSTEM
   Extracted from Framer source
   ======================================== */

:root {
    --bg: #fbfaf6;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4540;
    --text-tertiary: #8a8278;
    --accent-mint: #f5efe4;
    --accent-teal: #c4943a;
    --accent-dark: #a0782c;
    --border-subtle: rgba(138, 130, 120, 0.35);
    --surface-glass: rgba(255, 255, 255, 0.5);
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06);
    --shadow-lg: 0 20px 40px rgba(10, 10, 10, 0.08);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../images/noise.png');
    background-size: 100px;
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 1024px) { .container { padding: 0 28px; } }
@media (max-width: 480px) { .container { padding: 0 20px; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 28px;
    font-family: var(--font-sans); font-size: 14px; font-weight: 500;
    letter-spacing: -0.01em; cursor: pointer; border: none;
    transition: all var(--transition-base); white-space: nowrap;
}
.btn--dark { background: var(--text-primary); color: var(--bg); }
.btn--dark:hover { opacity: 0.85; transform: translateY(-1px); }
.btn--dark:active { transform: translateY(0); opacity: 0.75; }
.btn--light { background: var(--bg); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn--light:hover { background: var(--white); border-color: var(--text-tertiary); transform: translateY(-1px); }
.btn--white { background: var(--white); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: var(--bg); box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Nav */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 24px 40px; display: flex; justify-content: space-between; align-items: center;
    transition: background var(--transition-base), backdrop-filter var(--transition-base);
}
.nav--scrolled { background: rgba(251, 250, 246, 0.85); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand svg { width: 22px; height: 46px; transition: transform var(--transition-fast); }
.nav__brand:hover svg { transform: scale(1.05); }
.nav__brand-text { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--text-primary); transition: opacity var(--transition-fast); }
.nav__links a:hover { opacity: 0.6; }
@media (max-width: 1024px) { .nav { padding: 20px 28px; } .nav__links { gap: 20px; } }
@media (max-width: 480px) { .nav { padding: 16px 20px; } .nav__links { display: none; } }

/* Section headers */
.section__header { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section__title {
    font-family: var(--font-serif); font-size: clamp(40px, 5vw, 66px);
    font-weight: 400; line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 20px; color: var(--text-primary);
}
.section__subtitle { font-size: 16px; color: var(--text-secondary); line-height: 1.6; max-width: 560px; margin: 0 auto; }

/* Cards */
.card {
    background: var(--surface-glass); border: 1px solid var(--border-subtle);
    border-radius: 20px; overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--accent-mint); transition: transform var(--transition-slow); }
.card:hover .card__image { transform: scale(1.02); }
.card__body { padding: 32px; }
.card__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-bottom: 10px; }
.card__title { font-family: var(--font-serif); font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; color: var(--text-primary); }
.card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Feature items */
.feature__title { font-family: var(--font-serif); font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; color: var(--text-primary); }
.feature__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* Stats */
.stat__number { font-family: var(--font-serif); font-size: clamp(34px, 3.8vw, 48px); font-weight: 400; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 10px; }
.stat__label { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

/* Network section (shared across pages) */
.network { padding: 120px 0; }
.network__header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.network__title { font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 42px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.network__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.network__roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 60px; }
.network__role {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 20px;
    background: var(--surface-glass); border: 1px solid var(--border-subtle);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.network__role img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }
.network__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 640px; margin: 0 auto 60px; text-align: center; }
.network__stat-number { font-family: var(--font-serif); font-size: 36px; font-weight: 400; letter-spacing: -0.02em; color: var(--text-primary); }
.network__stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }

/* FAQ */
.faq { padding: 100px 0; }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; font-family: var(--font-serif); font-size: 20px;
    font-weight: 400; cursor: pointer; transition: opacity var(--transition-fast);
}
.faq__question:hover { opacity: 0.7; }
.faq__question::after { content: '+'; font-family: var(--font-sans); font-size: 24px; font-weight: 300; color: var(--text-tertiary); transition: transform var(--transition-base); }
.faq__item--open .faq__question::after { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow), padding var(--transition-slow); }
.faq__item--open .faq__answer { max-height: 500px; padding-bottom: 24px; }
.faq__answer p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.faq__answer a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Footer Nav */
.footer-nav { border-top: 1px solid var(--border-subtle); padding: 28px 0; }
.footer-nav__links { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.footer-nav__links a { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary); transition: opacity var(--transition-fast); }
.footer-nav__links a:hover { opacity: 0.6; }

/* Footer */
.footer { padding: 80px 0 48px; border-top: 1px solid var(--border-subtle); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; flex-wrap: wrap; gap: 32px; }
.footer__tagline { font-family: var(--font-serif); font-size: 22px; line-height: 1.4; max-width: 400px; color: var(--text-primary); letter-spacing: -0.01em; }
.footer__links { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.footer__links a { font-size: 14px; color: var(--text-tertiary); transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-tertiary); flex-wrap: wrap; gap: 16px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.reveal-group > *:nth-child(1) { transition-delay: 0.06s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.30s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
