/* ============================================
   ZELENA GENERACIJA — Landing Page
   Organic Editorial Manifesto
   ============================================ */

:root {
    --teal: #3BBDC4;
    --lime: #7CB532;
    --green: #4EA644;
    --deep-teal: #1E8F8F;
    --deep-green: #2D7A3A;
    --bg: #F5FAF2;
    --dark: #1A2E1A;
    --dark-muted: #2A4A2E;
    --teal-10: rgba(59, 189, 196, 0.1);
    --lime-10: rgba(124, 181, 50, 0.12);
    --green-10: rgba(78, 166, 68, 0.08);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-brand: 'Open Sans', 'Outfit', system-ui, sans-serif;
    --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav.scrolled {
    background: rgba(245, 250, 242, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(26, 46, 26, 0.06);
    padding: 0.75rem 2rem;
}

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

.nav-logo {
    font-family: var(--font-brand);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-teal);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-ig {
    color: var(--dark-muted);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 50%;
}

.nav-ig:hover {
    color: var(--green);
    transform: scale(1.1);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 1;
    pointer-events: none;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-teal {
    width: 600px;
    height: 600px;
    background: var(--green);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-lime {
    width: 500px;
    height: 500px;
    background: var(--lime);
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
    opacity: 0.22;
}

.shape-glow {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--green), var(--lime));
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.1;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.logo-wrap {
    display: inline-block;
}

.logo {
    width: 340px;
    max-width: 75vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(45, 122, 58, 0.15));
    transition: transform 0.6s var(--ease-out-expo);
}

.logo-wrap:hover .logo {
    transform: scale(1.03);
}

/* ---- HERO QUESTION ---- */
.hero-question {
    margin-top: 2.5rem;
    text-align: center;
}

.hero-question-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-question-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.75rem 2.8rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.35s var(--ease-out-expo),
        box-shadow 0.35s var(--ease-out-expo),
        background 0.3s,
        color 0.3s;
    position: relative;
    overflow: hidden;
}

.hero-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-btn-da {
    background: linear-gradient(135deg, var(--deep-green), var(--green));
    color: #fff;
    box-shadow: 0 4px 20px rgba(45, 122, 58, 0.25);
}

.hero-btn-da:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(45, 122, 58, 0.35);
}

.hero-btn-da:active {
    transform: translateY(0) scale(0.98);
}

.hero-btn-ne {
    background: transparent;
    color: var(--dark-muted);
    border: 1.5px solid rgba(42, 74, 46, 0.2);
    box-shadow: none;
}

.hero-btn-ne:hover {
    border-color: var(--green);
    color: var(--deep-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 122, 58, 0.1);
}

.hero-btn-ne:active {
    transform: translateY(0) scale(0.98);
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--deep-green), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---- MANIFESTO ---- */
.manifesto {
    padding: 8rem 2rem;
    position: relative;
}

.manifesto-inner {
    max-width: 860px;
    margin: 0 auto;
}

.manifesto-line {
    margin-bottom: 2.5rem;
}

.manifesto-hero {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
}

.date-accent {
    color: var(--deep-green);
    position: relative;
    white-space: nowrap;
}

.date-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--lime));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease-out-expo);
}

.reveal.visible .date-accent::after {
    transform: scaleX(1);
}

.manifesto-sub {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--dark-muted);
}

.manifesto-sub em {
    color: var(--deep-green);
    font-style: italic;
}

.manifesto-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--lime));
    border-radius: 2px;
    margin: 3.5rem 0;
}

.manifesto-bold {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

.manifesto-punchline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--deep-green), var(--green), var(--lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manifesto-en {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(78, 166, 68, 0.05) 50%, var(--bg) 100%);
}

.manifesto-en .manifesto-sub {
    font-style: normal;
}

/* ---- COUNTDOWN ---- */
.countdown-section {
    padding: 6rem 2rem 8rem;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(78, 166, 68, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(124, 181, 50, 0.08) 0%, transparent 60%);
}

.countdown-label {
    margin-bottom: 3.5rem;
}

.countdown-pre {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dark-muted);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.countdown-ring {
    position: relative;
    width: 130px;
    height: 130px;
}

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

.ring-bg {
    fill: none;
    stroke: rgba(26, 46, 46, 0.06);
    stroke-width: 3;
}

.ring-fg {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s var(--ease-out-quart);
}

.ring-days { stroke: var(--deep-green); }
.ring-hours { stroke: var(--green); }
.ring-mins { stroke: var(--lime); }
.ring-secs { stroke: var(--teal); opacity: 0.6; }

.countdown-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
}

.countdown-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dark-muted);
}

/* ---- MISSION / PROSE ---- */
.mission {
    padding: 8rem 1.5rem 4rem;
    position: relative;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--green), transparent);
    opacity: 0.3;
}

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

.mission-badge {
    display: inline-block;
    margin-bottom: 2.5rem;
}

.mission-badge > span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--deep-green);
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(45, 122, 58, 0.2);
    border-radius: 100px;
    display: inline-block;
}

/* -- Prose system -- */
.prose {
    text-align: left;
    margin-bottom: 3rem;
}

.prose-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.prose-lead {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--dark-muted);
    margin-bottom: 2.5rem;
}

.prose-body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--dark-muted);
    margin-bottom: 2rem;
}

.prose-stanza {
    margin-bottom: 2.2rem;
    padding-left: 0;
}

.prose-stanza p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--dark-muted);
    margin-bottom: 0.35rem;
}

.prose-accent {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: var(--deep-green);
    padding-left: 1rem;
    border-left: 2px solid rgba(45, 122, 58, 0.15);
    margin-bottom: 0.3rem;
}

.prose-highlight {
    font-weight: 500;
    color: var(--dark);
}

.prose-strong {
    font-weight: 500;
    color: var(--dark);
}

.prose-stanza em {
    font-style: italic;
    color: var(--deep-green);
}

.prose-punchline {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--deep-green), var(--green), var(--lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
}

.prose-callout {
    position: relative;
    padding: 1.5rem;
    margin: 2.5rem 0;
    background:
        linear-gradient(135deg, rgba(78, 166, 68, 0.04) 0%, rgba(124, 181, 50, 0.06) 100%);
    border-radius: 12px;
    border-left: 3px solid var(--green);
}

.prose-callout p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.prose-callout p:last-child {
    margin-bottom: 0;
}

.prose-callout strong {
    color: var(--deep-green);
    font-weight: 600;
}

/* -- Language divider -- */
.prose-lang-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 3rem 0;
}

.prose-lang-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 122, 58, 0.15), transparent);
}

.prose-lang-label {
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--deep-green);
    white-space: nowrap;
    opacity: 0.6;
}

/* -- English section slightly muted -- */
.prose-en {
    opacity: 0.85;
}

/* -- CTA button -- */
.mission-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg);
    background: linear-gradient(135deg, var(--deep-green), var(--green));
    padding: 0.9rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(45, 122, 58, 0.25);
    margin-top: 1rem;
}

.mission-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 122, 58, 0.35);
}

.mission-cta svg {
    transition: transform 0.3s;
}

.mission-cta:hover svg {
    transform: translateX(4px);
}

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid rgba(26, 46, 46, 0.06);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--deep-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--dark-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(42, 74, 74, 0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    /* Hero bg shapes — scale down & spread for visible gradient fade */
    .shape {
        filter: blur(60px);
    }

    .shape-teal {
        width: 280px;
        height: 280px;
        top: -5%;
        left: -15%;
        opacity: 0.2;
    }

    .shape-lime {
        width: 250px;
        height: 250px;
        bottom: -5%;
        right: -15%;
        opacity: 0.18;
    }

    .shape-glow {
        width: 200px;
        height: 200px;
        opacity: 0.06;
    }

    /* Add a soft layered gradient to the hero itself for depth */
    .hero {
        background:
            radial-gradient(ellipse 80% 50% at 20% 15%, rgba(59, 189, 196, 0.08) 0%, transparent 60%),
            radial-gradient(ellipse 70% 45% at 80% 85%, rgba(124, 181, 50, 0.1) 0%, transparent 55%),
            radial-gradient(ellipse 60% 60% at 50% 50%, rgba(78, 166, 68, 0.04) 0%, transparent 70%),
            var(--bg);
    }

    .manifesto {
        padding: 3.5rem 1.5rem;
    }

    .countdown-section {
        padding: 2.5rem 1.5rem 3.5rem;
    }

    .countdown-label {
        margin-bottom: 2rem;
    }

    .manifesto-line {
        margin-bottom: 1.5rem;
    }

    .manifesto-divider {
        margin: 2rem 0;
    }

    .countdown-grid {
        gap: 1.2rem;
    }

    .countdown-ring {
        width: 100px;
        height: 100px;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .mission {
        padding: 2.5rem 1.25rem;
    }

    .mission::before {
        height: 50px;
    }

    .prose-stanza p,
    .prose-body {
        font-size: 0.95rem;
    }

    .prose-callout {
        padding: 1.2rem;
        margin: 2rem 0;
    }

    .prose-lang-divider {
        margin: 2.5rem 0;
    }

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

    .logo {
        width: 260px;
    }

    .nav-logo {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 480px) {
    /* Even smaller shapes so they don't merge */
    .shape-teal {
        width: 180px;
        height: 180px;
        top: 2%;
        left: -20%;
        opacity: 0.15;
    }

    .shape-lime {
        width: 160px;
        height: 160px;
        bottom: 5%;
        right: -18%;
        opacity: 0.14;
    }

    .shape-glow {
        width: 120px;
        height: 120px;
        top: 55%;
        opacity: 0.05;
    }

    .hero {
        background:
            radial-gradient(circle at 15% 20%, rgba(59, 189, 196, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 85% 75%, rgba(124, 181, 50, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 50% 45%, rgba(245, 250, 242, 0.5) 0%, transparent 60%),
            var(--bg);
    }

    .countdown-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        max-width: 260px;
        margin: 0 auto;
    }

    .countdown-ring {
        width: 105px;
        height: 105px;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .countdown-label {
        margin-bottom: 2.5rem;
    }

    .manifesto-hero {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .manifesto-line {
        margin-bottom: 1.8rem;
    }

    .manifesto-divider {
        margin: 2.5rem 0;
    }

    .nav {
        padding: 1rem 1.25rem;
    }

    .nav.scrolled {
        padding: 0.6rem 1.25rem;
    }

    .nav-logo {
        font-size: 0.75rem;
    }

    .mission-cta {
        padding: 0.8rem 1.6rem;
        font-size: 0.85rem;
    }

    .prose-accent {
        font-size: 1.05rem;
        padding-left: 0.75rem;
    }

    .prose-stanza {
        margin-bottom: 1.8rem;
    }

    .mission-inner {
        text-align: center;
    }

    .prose {
        text-align: left;
    }
}

/* ---- LANGUAGE TOGGLE ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(45, 122, 58, 0.07);
    border: 1px solid rgba(45, 122, 58, 0.15);
    border-radius: 100px;
    padding: 3px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.lang-toggle:hover {
    border-color: rgba(45, 122, 58, 0.3);
}

.lang-opt {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 100px;
    color: var(--dark-muted);
    transition: background 0.25s, color 0.25s;
    user-select: none;
    line-height: 1;
}

.lang-opt.active {
    background: linear-gradient(135deg, var(--deep-green), var(--green));
    color: #fff;
}

/* ---- LANGUAGE SHOW/HIDE ---- */
.en-only { display: none; }
body.lang-en .en-only { display: block; }
body.lang-en .sr-only { display: none; }

span.sr-only { display: inline; }
span.en-only { display: none; }
body.lang-en span.en-only { display: inline; }
body.lang-en span.sr-only { display: none; }

/* Prose lang divider no longer needed with toggle */
.prose-lang-divider { display: none; }

/* Restore prose-en opacity when it's the active language */
body.lang-en .prose-en { opacity: 1; }

/* ---- SELECTION ---- */
::selection {
    background: rgba(78, 166, 68, 0.2);
    color: var(--dark);
}

/* ---- SMOOTH SCROLL FIX ---- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .shape {
        animation: none;
    }

    .scroll-line {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
