/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-alt: #0d0d0d;
    --text-primary: #e8e8e8;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #c9a962;
    --accent-dim: rgba(201, 169, 98, 0.1);
    --border: #222222;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

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

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

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    background: radial-gradient(ellipse at center, #151515 0%, var(--bg-primary) 70%);
}

.hero-content {
    max-width: 700px;
}

.hero-pretitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.7s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.2s;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(0.5); opacity: 1; }
}

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

/* Intro Section */
.intro {
    padding: 10rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.intro-content {
    max-width: 650px;
}

.intro-lead {
    font-family: var(--serif);
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.intro-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Principles Sections */
.principles {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

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

.section-number {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3rem;
    max-width: 600px;
}

.principle-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

.principle-content.reverse {
    grid-template-columns: 300px 1fr;
}

.principle-content.reverse .principle-text {
    order: 2;
}

.principle-content.reverse .principle-visual {
    order: 1;
}

.principle-lead {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.principle-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.principle-text em {
    font-style: italic;
    color: var(--text-primary);
}

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

.principle-text blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.principle-text blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

/* Visual Elements */
.principle-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* Hourglass */
.hourglass {
    width: 80px;
    height: 150px;
    position: relative;
}

.hourglass::before,
.hourglass::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    border: 2px solid var(--text-muted);
    border-radius: 50% / 20%;
}

.hourglass::before {
    top: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.hourglass::after {
    bottom: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.sand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 30px;
    background: var(--accent);
    animation: sandFall 2s ease-in-out infinite;
}

@keyframes sandFall {
    0%, 100% { opacity: 0; height: 0; }
    10% { opacity: 1; }
    50% { height: 30px; opacity: 1; }
    90% { opacity: 1; }
}

/* Broken Circle */
.broken-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.broken-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 2;
}

.circle-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 283;
    stroke-dashoffset: 70;
    stroke-linecap: round;
}

.broken-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Sound Waves */
.sound-waves {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100px;
}

.wave {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: waveAnim 1s ease-in-out infinite;
}

.wave:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.wave:nth-child(3) { height: 60px; animation-delay: 0.2s; }
.wave:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.wave:nth-child(5) { height: 20px; animation-delay: 0.4s; }

@keyframes waveAnim {
    0%, 100% { transform: scaleY(1); opacity: 0.3; }
    50% { transform: scaleY(0.3); opacity: 1; }
}

/* Connections */
.connections {
    position: relative;
    width: 150px;
    height: 150px;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.node.main {
    width: 20px;
    height: 20px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.node:nth-child(2) { top: 10%; left: 50%; transform: translateX(-50%); }
.node:nth-child(3) { top: 70%; left: 15%; }
.node:nth-child(4) { top: 70%; left: 75%; }

.connections .line {
    position: absolute;
    height: 1px;
    background: var(--border);
    transform-origin: left center;
}

.connections .line:nth-child(5) {
    width: 60px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(-70deg);
}

.connections .line:nth-child(6) {
    width: 50px;
    top: 60%;
    left: 35%;
    transform: rotate(40deg);
}

.connections .line:nth-child(7) {
    width: 50px;
    top: 60%;
    left: 55%;
    transform: rotate(-40deg);
}

/* Heart Pulse */
.heart-pulse {
    width: 200px;
    height: 60px;
}

.pulse-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawPulse 3s ease-in-out infinite;
}

@keyframes drawPulse {
    0% { stroke-dashoffset: 300; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -300; }
}

/* Create Box */
.create-box {
    width: 200px;
    height: 120px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cursor {
    width: 2px;
    height: 30px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
}

.create-text {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--text-muted);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Question Mark */
.question-mark {
    font-family: var(--serif);
    font-size: 8rem;
    color: var(--border);
    line-height: 1;
    animation: floatQuestion 4s ease-in-out infinite;
}

@keyframes floatQuestion {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Final Section */
.final {
    padding: 10rem 0;
    background: linear-gradient(to bottom, var(--bg-primary), #0f0f0f);
    border-top: 1px solid var(--border);
}

.final-content {
    max-width: 650px;
}

.final h2 {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
}

.final-lead {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.final-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.final-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

.final-advice {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1.5;
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 2px solid var(--accent);
}

.final-sign {
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-muted);
    margin-top: 3rem;
}

/* Footer */
.footer {
    padding: 6rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-text {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-line {
    width: 50px;
    height: 1px;
    background: var(--border);
    margin: 3rem auto;
}

.footer-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Responsive */
@media (max-width: 900px) {
    html {
        font-size: 16px;
    }

    .principle-content,
    .principle-content.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .principle-content.reverse .principle-text,
    .principle-content.reverse .principle-visual {
        order: unset;
    }

    .principle-visual {
        height: 200px;
    }

    .nav {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .principles {
        padding: 4rem 0;
    }

    .intro {
        padding: 5rem 0;
    }

    .final {
        padding: 5rem 0;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .intro-lead {
        font-size: 1.4rem;
    }

    .principle-lead {
        font-size: 1.15rem;
    }

    .final-lead {
        font-size: 1.4rem;
    }

    .final-advice {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .principle-visual {
        display: none;
    }

    .principle-text blockquote {
        font-size: 1.1rem;
        margin: 2rem 0;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-line {
        height: 40px;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}
