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

:root {
    --deep-honey-dark: #2A2010;
    --warm-honey: #5A4A30;
    --golden-honey: #C0A050;
    --honey-cream: #FBF4E4;
    --deep-amber: #8A7040;
    --manifesto-red: #C04030;
    --neon-warm: rgba(220, 180, 80, 0.3);
    --neon-warm-strong: rgba(220, 180, 80, 0.15);
    --particle-drift: rgba(192, 160, 80, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--honey-cream);
    color: var(--warm-honey);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   Particle Canvas
   ============================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================
   Minimal Navigation
   ============================ */
#minimal-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
}

#nav-toggle {
    width: 44px;
    height: 44px;
    background: rgba(251, 244, 228, 0.7);
    border: 1px solid rgba(192, 160, 80, 0.15);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    position: relative;
    z-index: 101;
    transition: background 0.3s ease;
}

#nav-toggle:hover {
    background: rgba(251, 244, 228, 0.95);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--deep-honey-dark);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.25s ease;
    transform-origin: center;
}

#nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#nav-menu {
    position: absolute;
    top: 54px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(251, 244, 228, 0.96);
    padding: 20px 28px;
    border: 1px solid rgba(192, 160, 80, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--deep-amber);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    white-space: nowrap;
    padding: 2px 0;
}

.nav-link:hover {
    color: var(--golden-honey);
    text-shadow: 0 0 12px rgba(220, 180, 80, 0.2);
}

/* ============================
   Manifesto Canvas - Main Content
   ============================ */
#manifesto-canvas {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   Sections
   ============================ */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================
   Hero Section
   ============================ */
#hero {
    min-height: 100vh;
    align-items: center;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    color: var(--deep-honey-dark);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    animation: heroFadeIn 1.5s ease-out both;
    animation-delay: 0.3s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        text-shadow: 0 0 0 rgba(220, 180, 80, 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        text-shadow:
            0 0 20px rgba(220, 180, 80, 0.3),
            0 0 40px rgba(220, 180, 80, 0.15),
            0 0 80px rgba(220, 180, 80, 0.08);
    }
}

.neon-glow {
    text-shadow:
        0 0 20px rgba(220, 180, 80, 0.3),
        0 0 40px rgba(220, 180, 80, 0.15),
        0 0 80px rgba(220, 180, 80, 0.08);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--warm-honey);
    line-height: 1.85;
    max-width: 560px;
    margin: 0 auto 40px;
    animation: heroFadeUp 1.2s ease-out both;
    animation-delay: 0.8s;
}

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

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--golden-honey);
    margin: 0 auto 48px;
    opacity: 0.6;
    animation: heroFadeUp 1s ease-out both;
    animation-delay: 1.2s;
}

/* Hero Counter Row */
.hero-counters {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: heroFadeUp 1s ease-out both;
    animation-delay: 1.5s;
}

.hero-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-counter-num {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--golden-honey);
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-counter-lbl {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--deep-amber);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ============================
   Section Headings
   ============================ */
.section-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--deep-honey-dark);
    margin-bottom: 48px;
    text-shadow: 0 0 30px rgba(220, 180, 80, 0.12);
}

/* ============================
   Counter Section
   ============================ */
.counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
}

.counter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.counter-number {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--golden-honey);
    line-height: 1.2;
    margin-bottom: 8px;
    transition: text-shadow 0.6s ease;
}

.counter-block.animate .counter-number {
    text-shadow: 0 0 20px rgba(192, 160, 80, 0.25);
}

.counter-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--deep-amber);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

/* ============================
   Declarations Section
   ============================ */
.declaration-card {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 2px solid var(--golden-honey);
    transition: border-color 0.4s ease;
}

.declaration-card:hover {
    border-left-color: var(--manifesto-red);
}

.declaration-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--warm-honey);
    line-height: 1.85;
}

.neon-glow-phrase {
    color: var(--deep-honey-dark);
    font-weight: 400;
    text-shadow:
        0 0 20px rgba(220, 180, 80, 0.3),
        0 0 40px rgba(220, 180, 80, 0.15);
    transition: text-shadow 0.4s ease;
}

.neon-glow-phrase:hover {
    text-shadow:
        0 0 20px rgba(220, 180, 80, 0.5),
        0 0 40px rgba(220, 180, 80, 0.25),
        0 0 60px rgba(220, 180, 80, 0.12);
}

/* ============================
   Thesis Section
   ============================ */
.thesis-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.thesis-paragraph {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--warm-honey);
    line-height: 1.85;
}

/* ============================
   Data Pulse Section
   ============================ */
.pulse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
}

.pulse-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pulse-number {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--golden-honey);
    line-height: 1.2;
    display: inline;
}

.pulse-unit {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: var(--golden-honey);
    opacity: 0.7;
    margin-bottom: 8px;
}

.pulse-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--deep-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.5;
    margin-top: 4px;
}

.pulse-item.animate .pulse-number {
    text-shadow: 0 0 20px rgba(192, 160, 80, 0.25);
}

/* ============================
   Call / Imperative Section
   ============================ */
.call-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--warm-honey);
    line-height: 1.85;
    margin-bottom: 28px;
}

.manifesto-sig {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--golden-honey);
    margin-top: 48px;
    text-shadow:
        0 0 20px rgba(220, 180, 80, 0.3),
        0 0 40px rgba(220, 180, 80, 0.15);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(220, 180, 80, 0.3),
            0 0 40px rgba(220, 180, 80, 0.15);
    }
    50% {
        text-shadow:
            0 0 30px rgba(220, 180, 80, 0.45),
            0 0 60px rgba(220, 180, 80, 0.22),
            0 0 90px rgba(220, 180, 80, 0.08);
    }
}

/* ============================
   Counter Animation Keyframes
   ============================ */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-block.animate .counter-number,
.pulse-item.animate .pulse-number {
    animation: countUp 2s ease-out forwards;
}

/* ============================
   Neon Glow Pulse on Declarations (subtle)
   ============================ */
@keyframes neonBreath {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

.declaration-card {
    animation: neonBreath 5s ease-in-out infinite;
    animation-play-state: paused;
}

.section.visible .declaration-card {
    animation-play-state: running;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 600px) {
    #manifesto-canvas {
        padding: 0 20px;
    }

    .counter-grid,
    .pulse-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .section {
        padding: 60px 0;
    }

    #minimal-nav {
        top: 16px;
        right: 16px;
    }

    .declaration-card {
        padding-left: 16px;
    }

    .hero-counters {
        gap: 28px;
        flex-wrap: wrap;
    }

    .hero-counter-num {
        font-size: 1.4rem;
    }
}
