/* reasoner.dev - Dark Academia Generative Art Theme */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: EB Garamond (headings), 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;
    --deep-base-light: #252545;
    --deep-base-dark: #12121f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deep-base);
    color: var(--warm-white);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
}

#generative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* ==================== HEADER / NAV ==================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 1px 0 rgba(232, 184, 75, 0.15);
    backdrop-filter: blur(12px);
}

#nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    font-family: 'EB Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 184, 75, 0.4);
    border-radius: 2px;
}

.brand-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--warm-white);
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted-gray);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ==================== HERO ==================== */

#hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-ornament {
    margin: 1.5rem auto;
    width: 200px;
    opacity: 0.7;
}

.ornament-svg {
    width: 100%;
    height: 20px;
}

.hero-title {
    font-family: 'EB Garamond', serif;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    color: var(--muted-gray);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-decoration: none;
    border: 1px solid rgba(232, 184, 75, 0.4);
    padding: 0.9rem 2.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.hero-cta:hover {
    background-color: rgba(232, 184, 75, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.1);
}

/* ==================== WAVE DIVIDERS ==================== */

.wave-divider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

/* ==================== SECTIONS ==================== */

section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--warm-white);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.section-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0 auto 3rem;
}

/* ==================== PHILOSOPHY ==================== */

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

.philosophy-card {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(232, 184, 75, 0.12);
    background: rgba(26, 26, 46, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.philosophy-card:hover {
    border-color: rgba(232, 184, 75, 0.3);
    background: rgba(37, 37, 69, 0.5);
    transform: translateY(-4px);
}

.philosophy-card:hover::before {
    opacity: 1;
}

.card-number {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: rgba(232, 184, 75, 0.2);
    margin-bottom: 1rem;
    line-height: 1;
}

.philosophy-card h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--warm-white);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.philosophy-card p {
    font-size: 0.95rem;
    color: var(--muted-gray);
    line-height: 1.8;
}

/* ==================== METHODOLOGY ==================== */

.methodology-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    text-align: center;
}

.method-step {
    flex: 0 0 220px;
    padding: 2rem 1.5rem;
}

.step-icon {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.method-step:hover .step-icon {
    opacity: 1;
}

.method-step h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--warm-white);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.method-step p {
    font-size: 0.9rem;
    color: var(--muted-gray);
    line-height: 1.7;
}

.method-connector {
    display: flex;
    align-items: center;
    padding-top: 3.5rem;
}

/* ==================== PRINCIPLES ==================== */

.principles-list {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.principle-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(232, 184, 75, 0.08);
    transition: border-color 0.3s ease;
}

.principle-item:last-child {
    border-bottom: none;
}

.principle-item:hover {
    border-bottom-color: rgba(232, 184, 75, 0.2);
}

.principle-numeral {
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-gold);
    flex-shrink: 0;
    width: 2rem;
    padding-top: 0.2rem;
}

.principle-text h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.principle-text p {
    font-size: 0.95rem;
    color: var(--muted-gray);
    line-height: 1.8;
}

/* ==================== CONTACT ==================== */

.contact-content {
    text-align: center;
}

.contact-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--muted-gray);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 1.5rem 2.5rem;
    border: 1px solid rgba(232, 184, 75, 0.15);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: rgba(232, 184, 75, 0.4);
    background: rgba(232, 184, 75, 0.05);
}

.contact-link-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.contact-link-value {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: var(--warm-white);
}

.contact-ornament {
    margin-top: 1rem;
}

/* ==================== FOOTER ==================== */

#footer {
    position: relative;
    z-index: 2;
    padding: 0 2rem 3rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.2), transparent);
    margin-bottom: 2rem;
}

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

.footer-brand {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    color: var(--muted-gray);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(108, 117, 125, 0.6);
}

/* ==================== ANIMATIONS ==================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .methodology-flow {
        flex-direction: column;
        align-items: center;
    }

    .method-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    #header {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .principle-item {
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
