/* ══════════════════════════════════════════════════════════════
   FARMA LANDING — REVAMP / DECLUTTER REFINEMENTS
   Loaded after landing.css to refine spacing, typography, cards,
   and motion without rewriting the base styles.
   ══════════════════════════════════════════════════════════════ */

/* ── Global smoothing ── */
html { scroll-behavior: smooth; }
::selection { background: rgba(232,168,56,0.35); }

img { max-width: 100%; }

/* Accessible focus rings */
a:focus-visible,
button:focus-visible,
.action-btn:focus-visible,
.join-cta-btn:focus-visible,
.portal-dropdown-btn:focus-visible {
    outline: 3px solid rgba(232,168,56,0.6);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Anchor targets clear the sticky navbar */
section[id] { scroll-margin-top: 90px; }

/* ── Section gradient dividers (v28) ── */
.section-divider {
    height: 4px;
    border: 0;
    margin: 0;
}
.section-divider-hero { background: linear-gradient(90deg, var(--primary-green), var(--accent-gold), var(--earth-brown)); }
.section-divider-metrics { background: linear-gradient(90deg, var(--earth-brown), var(--accent-gold), var(--earth-brown)); }
.section-divider-journey { background: linear-gradient(90deg, var(--primary-green), #5a9a30, var(--primary-green)); }
.section-divider-ecosystem { background: linear-gradient(90deg, var(--accent-gold), var(--earth-brown), var(--primary-green)); }
.section-divider-capabilities { background: linear-gradient(90deg, var(--earth-brown), var(--accent-gold), var(--primary-green)); }
.section-divider-access { background: linear-gradient(90deg, var(--primary-green), var(--accent-gold), #f5d070); }
.section-divider-partners { background: linear-gradient(90deg, rgba(45,80,22,0.15), var(--primary-green), rgba(45,80,22,0.15)); }
.section-divider-blog { background: linear-gradient(90deg, var(--earth-brown), var(--accent-gold), var(--primary-green)); }
.section-divider-cta { background: linear-gradient(90deg, #c8881a, var(--accent-gold), #c8881a); }

/* ── Section header rhythm & typography ── */
.sh-wrap { margin-bottom: 2.75rem; }
.section-title { letter-spacing: -0.02em; line-height: 1.1; }
.section-subtitle { font-size: 1.02rem; line-height: 1.6; opacity: 0.92; }
.sh-label span, .sh-label-dark span { letter-spacing: 1.5px; }

/* ── Hero: desktop title scale & top-aligned showcase ── */
@media (min-width: 992px) {
    .hero-section .hero-row {
        align-items: flex-start;
    }
    .hero-showcase-col {
        display: flex;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 0;
    }
    .hero-title {
        font-size: clamp(1.85rem, 2.8vw, 3.15rem);
        line-height: 1.08;
        margin-bottom: 1.25rem;
    }
    .hero-title .smaller-text {
        font-size: clamp(1.5rem, 2.4vw, 2.55rem);
    }
}
@media (max-width: 991px) {
    .hero-showcase-col {
        display: flex;
        justify-content: center;
        padding-top: 2rem;
    }
}

/* ── Hero: decluttered badge row ── */
.hero-badges {
    margin-top: 2rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50px;
    padding: 0.4rem 0.95rem;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease;
}
.hero-badge i { color: var(--accent-gold); }
.hero-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }
.hero-badge-solid {
    color: #1a3010;
    background: var(--accent-gold);
    border-color: transparent;
}
.hero-badge-solid i { color: #1a3010; }

/* ── Buttons: unified motion ── */
.action-btn, .join-cta-btn {
    transition: transform 0.25s cubic-bezier(.34,1.4,.64,1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.action-btn:hover { transform: translateY(-2px); }
.action-btn-outline {
    background: transparent !important;
    border: 2px solid rgba(232,168,56,0.7) !important;
    color: var(--accent-gold) !important;
}
.join-cta-btn-alt {
    background: rgba(232,168,56,0.25) !important;
    border: 2px solid rgba(232,168,56,0.7) !important;
}

/* ── Cards: unified, smoother hover language ── */
.join-hero-card,
.join-info-card,
.access-card,
.cap-card,
.partner-logo,
.blog-card,
.metrics-top-grid > div,
.metrics-bottom-grid > div {
    transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Capabilities: v28 card grid */
.capabilities-section { padding: 5rem 0; }
.cap-col { flex: 0 0 20%; max-width: 20%; }
.cap-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 18px;
    padding: 1.4rem 1.2rem 1.3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    height: 100%;
}
.cap-card:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(232,168,56,0.45);
    transform: translateY(-5px);
}
.cap-card-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    display: block;
    line-height: 1;
}
.cap-card-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.45rem;
    line-height: 1.25;
}
.cap-card-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.5;
}
@media (max-width: 991px) {
    .cap-col { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
}
@media (max-width: 575px) {
    .cap-col { flex: 0 0 50% !important; max-width: 50% !important; }
}

/* Hero audience panel */
.aud-panel {
    background: rgba(8, 28, 5, 0.72);
    border: 1px solid rgba(232,168,56,0.38);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(232,168,56,0.18);
    position: relative;
}
.aud-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--harvest-orange), var(--accent-gold));
    border-radius: 24px 24px 0 0;
}
.aud-panel-inner { padding: 1.6rem 1.6rem 1.4rem; }
.aud-live-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(232,168,56,0.18);
    border: 1px solid rgba(232,168,56,0.45);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 1.1rem;
}
.aud-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 6px rgba(232,168,56,0.7);
    animation: audBlink 2s ease-in-out infinite;
}
@keyframes audBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.aud-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(255,255,255,0.07);
}
.aud-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.62);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.aud-tab.active {
    background: linear-gradient(135deg, var(--accent-gold), #f5c040);
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(232,168,56,0.4);
}
.aud-tab:not(.active):hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
}
.aud-cards { display: flex; flex-direction: column; gap: 8px; }
.aud-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    padding: 13px 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.22s;
    cursor: default;
    animation: audCardIn 0.32s ease both;
}
@keyframes audCardIn {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}
.aud-card:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(232,168,56,0.5);
    transform: translateX(3px);
}
.aud-card-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.aud-ico-green { background: rgba(80,210,90,0.22); color: #6de87a; }
.aud-ico-gold  { background: rgba(232,168,56,0.25); color: var(--accent-gold); }
.aud-ico-blue  { background: rgba(90,160,255,0.22); color: #8ec8ff; }
.aud-card-body { flex: 1; min-width: 0; }
.aud-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.96);
    margin-bottom: 3px;
    line-height: 1.25;
}
.aud-card-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}
.aud-card-badge {
    align-self: center;
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    background: var(--accent-gold);
    border-radius: 50px;
    padding: 3px 9px;
    white-space: nowrap;
}
.aud-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 1rem 1.6rem 1.3rem;
    border-top: 1px solid rgba(232,168,56,0.18);
    background: rgba(0,0,0,0.22);
}
.aud-stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.aud-stat-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(232,168,56,0.4);
}
.aud-stat-lbl {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    text-align: center;
    margin-top: 4px;
}
.aud-stat-sep { width: 1px; height: 28px; background: rgba(232,168,56,0.22); }

/* Blog coming soon */
.blog-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 4rem;
    gap: 1.5rem;
}
.blog-coming-soon-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2d5016, #3d7020);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-coming-soon-icon i { font-size: 2rem; color: var(--accent-gold); }
.blog-coming-soon-text { text-align: center; max-width: 480px; }
.blog-coming-soon-text h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
.blog-coming-soon-text p {
    color: #888;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.blog-coming-soon-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.blog-tag-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f1e8;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
}
.blog-tag-pill i { color: var(--primary-green); font-size: 0.85rem; }
.blog-tag-pill span { font-size: 0.8rem; font-weight: 700; color: var(--primary-green); }

/* Partner logos: calmer resting state, clarity on hover */
.partner-logo { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.partner-logo:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,0.08); }
.partner-logo:hover img { filter: grayscale(0%) !important; opacity: 1 !important; }

/* Blog cards: refined lift */
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.12); }

/* ── CTA proof chips (decluttered, shared class) ── */
.cta-chips {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 0.32rem 0.95rem;
}
.cta-chip-solid { color: #1a3010; background: var(--accent-gold); border-color: transparent; }

/* ── Scroll reveal (JS-gated → no-JS users see everything) ── */
body.js-on .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
}
body.js-on .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Respect reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.js-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .particle, .scroll-indicator { animation: none !important; }
}
