/* valuator.dev - Zen Editorial Valuation */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Space Grotesk (display), Inter (body) */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-white);
    color: var(--deep-base);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Grain Overlay */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Navigation */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#site-nav.scrolled {
    background-color: rgba(245, 240, 232, 0.95);
    box-shadow: 0 1px 0 rgba(26, 26, 46, 0.08);
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--deep-base);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-gray);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--deep-base);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.title-accent {
    color: var(--primary-blue);
    display: inline-block;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted-gray);
    max-width: 540px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--primary-blue);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: transparent;
    color: var(--deep-base);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--deep-base);
    border-radius: 4px;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.hero-geometric {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
    opacity: 0.6;
    z-index: 1;
}

.geo-hero {
    width: 100%;
    height: auto;
    animation: slowRotate 60s linear infinite;
}

/* Geometric Dividers */
.geo-divider {
    width: 100%;
    line-height: 0;
    margin: -1px 0;
}

.geo-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--deep-base);
    margin-bottom: 3.5rem;
}

/* Methodology */
#methodology {
    background-color: var(--deep-base);
    color: var(--warm-white);
}

#methodology .section-label {
    color: var(--accent-gold);
}

#methodology .section-title {
    color: var(--warm-white);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.method-card {
    padding: 2.5rem;
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 6px;
    transition: border-color 0.4s ease, transform 0.4s ease;
    position: relative;
}

.method-card:hover {
    border-color: rgba(74, 144, 217, 0.4);
    transform: translateY(-4px);
}

.method-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.method-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.method-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--muted-gray);
}

/* Metrics */
#metrics {
    background-color: var(--warm-white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(26, 26, 46, 0.06);
    box-shadow: 0 2px 20px rgba(26, 26, 46, 0.04);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.metric-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.metric-bar {
    width: 100%;
    height: 3px;
    background-color: rgba(26, 26, 46, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Insights */
#insights {
    background-color: var(--warm-white);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.insight-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 46, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
}

.insight-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.insight-image {
    position: relative;
    overflow: hidden;
}

.insight-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.insight-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.08;
    pointer-events: none;
}

.insight-content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.insight-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--deep-base);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.insight-card-featured .insight-content h3 {
    font-size: 1.6rem;
}

.insight-content p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--muted-gray);
    margin-bottom: 1rem;
}

.insight-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--muted-gray);
    opacity: 0.7;
}

/* Approach */
#approach {
    background-color: var(--deep-base);
    color: var(--warm-white);
}

#approach .section-label {
    color: var(--accent-gold);
}

#approach .section-title {
    color: var(--warm-white);
}

.approach-flow {
    max-width: 600px;
    margin: 0 auto;
}

.approach-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--muted-gray);
}

.approach-connector {
    display: flex;
    justify-content: center;
    padding-left: 23px;
}

/* Footer */
#site-footer {
    background-color: var(--deep-base);
    border-top: 1px solid rgba(74, 144, 217, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--warm-white);
}

.footer-text p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted-gray);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--muted-gray);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.08);
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--muted-gray);
    opacity: 0.6;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 960px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-card-featured {
        grid-template-columns: 1fr;
    }

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

    .hero-geometric {
        display: none;
    }
}

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

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

    .hero-cta {
        flex-direction: column;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
