/* FarmicleGrow V2 homepage
 * Editorial agriculture + trusted infrastructure.
 * Scoped to .fg-home-v2 so legacy pages remain untouched.
 */

.fg-home-v2 {
    overflow: hidden;
    background: #fbfaf6;
}

.fg-home-v2 h2,
.fg-home-v2 h3,
.fg-home-v2 p {
    margin-top: 0;
}

.fg-home-v2 em {
    color: var(--fg-green-600);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.fg-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
    color: var(--fg-green-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.fg-home-kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.fg-home-kicker--on-dark {
    color: var(--fg-lime-300);
}

.fg-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fg-green-800) !important;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.fg-home-text-link i {
    transition: transform .2s ease;
}

.fg-home-text-link:hover i {
    transform: translateX(4px);
}

/* Editorial introduction */
.fg-home-intro {
    padding: clamp(76px, 9vw, 138px) 0 clamp(60px, 8vw, 110px);
}

.fg-home-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
    gap: clamp(52px, 8vw, 130px);
    align-items: end;
}

.fg-home-intro h2,
.fg-home-section-heading h2,
.fg-home-passport h2,
.fg-home-impact h2 {
    max-width: 12ch;
    margin-bottom: 0;
    color: #132119;
    font-size: clamp(46px, 5.6vw, 82px);
    font-weight: 580;
    letter-spacing: -.055em;
    line-height: .98;
}

.fg-home-intro__copy {
    padding-bottom: 8px;
}

.fg-home-intro__copy p {
    margin-bottom: 27px;
    color: #59665e;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.65;
}

.fg-home-principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(64px, 8vw, 112px);
    border-top: 1px solid #dfe6e1;
    border-bottom: 1px solid #dfe6e1;
}

.fg-home-principles > div {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    padding: 18px clamp(14px, 2vw, 28px);
    border-right: 1px solid #dfe6e1;
    color: #435048;
    font-size: 13px;
    font-weight: 680;
}

.fg-home-principles > div:first-child {
    padding-left: 0;
}

.fg-home-principles > div:last-child {
    border-right: 0;
}

.fg-home-principles i {
    color: var(--fg-green-600);
    font-size: 20px;
}

/* Dark capability block */
.fg-home-platform {
    position: relative;
    margin-inline: max(16px, calc((100vw - 1500px) / 2));
    padding: clamp(74px, 8vw, 118px) 0;
    overflow: hidden;
    border-radius: clamp(22px, 2.4vw, 36px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 5%, rgba(183,239,58,.11), transparent 26%),
        radial-gradient(circle at 6% 110%, rgba(53,165,101,.22), transparent 34%),
        #082b1c;
}

.fg-home-platform::before {
    content: "";
    position: absolute;
    top: -240px;
    right: -130px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
}

.fg-home-platform__heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .65fr);
    gap: clamp(44px, 8vw, 120px);
    align-items: end;
    margin-bottom: clamp(48px, 6vw, 82px);
}

.fg-home-platform__heading h2 {
    max-width: 13ch;
    margin: 0;
    color: #fff;
    font-size: clamp(45px, 5.1vw, 76px);
    font-weight: 570;
    letter-spacing: -.052em;
    line-height: .98;
}

.fg-home-platform__heading h2 em {
    color: #d7f77d;
}

.fg-home-platform__heading > p {
    margin: 0 0 4px;
    color: rgba(255,255,255,.68);
    font-size: 16px;
    line-height: 1.65;
}

.fg-home-capabilities {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(230px, auto));
    gap: 14px;
}

.fg-home-capability {
    position: relative;
    display: flex;
    min-height: 230px;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(24px, 2.6vw, 36px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.fg-home-capability:hover {
    transform: translateY(-3px);
    border-color: rgba(215,247,125,.4);
    background: rgba(255,255,255,.07);
}

.fg-home-capability--feature {
    grid-row: 1 / 3;
    min-height: 474px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.15)),
        rgba(255,255,255,.06);
}

.fg-home-capability--lime {
    color: #102719;
    border-color: #b7ef3a;
    background: #b7ef3a;
}

.fg-home-capability--lime:hover {
    border-color: #d7f77d;
    background: #c6f35a;
}

.fg-home-capability__icon {
    position: absolute;
    top: 26px;
    left: 28px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: #d7f77d;
    font-size: 18px;
    background: rgba(0,0,0,.12);
}

.fg-home-capability--lime .fg-home-capability__icon {
    color: #0b2f20;
    border-color: rgba(11,47,32,.15);
    background: rgba(255,255,255,.3);
}

.fg-home-capability > span,
.fg-home-capability > div > span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255,255,255,.46);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.fg-home-capability--lime > span {
    color: rgba(11,47,32,.55);
}

.fg-home-capability h3 {
    max-width: 14ch;
    margin-bottom: 12px;
    color: inherit;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 590;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.fg-home-capability--feature h3 {
    font-size: clamp(31px, 3.2vw, 47px);
}

.fg-home-capability p {
    max-width: 39ch;
    margin-bottom: 0;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.58;
}

.fg-home-capability--lime p {
    color: rgba(11,47,32,.72);
}

.fg-home-capability--feature > a {
    position: absolute;
    top: 27px;
    right: 27px;
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

/* Workflow */
.fg-home-workflow {
    padding: clamp(92px, 10vw, 150px) 0;
}

.fg-home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .68fr);
    gap: clamp(50px, 9vw, 140px);
    align-items: end;
    margin-bottom: clamp(56px, 6vw, 88px);
}

.fg-home-section-heading > p {
    margin-bottom: 4px;
    color: #66736b;
    font-size: 16px;
    line-height: 1.65;
}

.fg-home-section-heading--compact {
    grid-template-columns: 1fr;
    margin-bottom: 44px;
}

.fg-home-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid #dce4de;
    border-bottom: 1px solid #dce4de;
    list-style: none;
}

.fg-home-steps li {
    position: relative;
    min-height: 290px;
    padding: 27px 22px 31px;
    border-right: 1px solid #dce4de;
    list-style: none;
}

.fg-home-steps li:last-child {
    border-right: 0;
}

.fg-home-steps span {
    display: block;
    margin-bottom: 58px;
    color: #96a198;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.fg-home-steps i {
    display: block;
    margin-bottom: 26px;
    color: var(--fg-green-600);
    font-size: 25px;
}

.fg-home-steps h3 {
    margin-bottom: 10px;
    color: #16231b;
    font-size: 21px;
    font-weight: 640;
    letter-spacing: -.025em;
}

.fg-home-steps p {
    margin-bottom: 0;
    color: #707b74;
    font-size: 12px;
    line-height: 1.55;
}

.fg-home-steps li::after {
    content: "→";
    position: absolute;
    top: 25px;
    right: -8px;
    z-index: 2;
    color: var(--fg-green-600);
    background: #fbfaf6;
}

.fg-home-steps li:last-child::after {
    display: none;
}

/* Product passport teaser */
.fg-home-passport {
    padding: clamp(78px, 8vw, 118px) 0;
    background: #f0f5ef;
}

.fg-home-passport__grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(500px, 1.05fr);
    gap: clamp(55px, 8vw, 125px);
    align-items: center;
}

.fg-home-passport__copy > p {
    max-width: 580px;
    margin: 28px 0 30px;
    color: #607067;
    font-size: 17px;
    line-height: 1.65;
}

.fg-home-passport__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.fg-home-passport-card {
    position: relative;
    min-height: 530px;
    padding: clamp(30px, 4vw, 52px);
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 12%, rgba(183,239,58,.17), transparent 25%),
        linear-gradient(145deg, #0b2f20, #155236);
    box-shadow: 0 30px 70px rgba(8,45,29,.14);
}

.fg-home-passport-card::after {
    content: "FG";
    position: absolute;
    right: -12px;
    bottom: -48px;
    color: rgba(255,255,255,.035);
    font-size: 230px;
    font-weight: 800;
    letter-spacing: -.09em;
    line-height: .8;
}

.fg-home-passport-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fg-home-passport-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #d7f77d;
    font-size: 11px;
    font-weight: 750;
}

.fg-home-passport-card__top > i {
    color: #d7f77d;
    font-size: 42px;
}

.fg-home-passport-card__title {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.fg-home-passport-card__title small,
.fg-home-passport-card__title strong {
    display: block;
}

.fg-home-passport-card__title small {
    margin-bottom: 8px;
    color: rgba(255,255,255,.56);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.fg-home-passport-card__title strong {
    max-width: 11ch;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 570;
    letter-spacing: -.045em;
    line-height: 1;
}

.fg-home-passport-card__views {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 54px;
}

.fg-home-passport-card__views > div {
    min-height: 150px;
    padding: 19px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.06);
}

.fg-home-passport-card__views span,
.fg-home-passport-card__views strong,
.fg-home-passport-card__views small {
    display: block;
}

.fg-home-passport-card__views span {
    margin-bottom: 20px;
    color: #d7f77d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fg-home-passport-card__views strong {
    margin-bottom: 7px;
    font-size: 14px;
}

.fg-home-passport-card__views small {
    color: rgba(255,255,255,.58);
    font-size: 11px;
    line-height: 1.48;
}

/* Stakeholders */
.fg-home-stakeholders {
    padding: clamp(88px, 9vw, 132px) 0;
}

.fg-home-audiences {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #dfe5e1;
    border-bottom: 1px solid #dfe5e1;
}

.fg-home-audiences > a {
    position: relative;
    min-height: 310px;
    padding: 29px 30px 34px;
    border-right: 1px solid #dfe5e1;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.fg-home-audiences > a:last-child {
    border-right: 0;
}

.fg-home-audiences > a:hover {
    color: #fff;
    background: #0b2f20;
}

.fg-home-audiences span {
    color: #97a29b;
    font-size: 10px;
    font-weight: 800;
}

.fg-home-audiences h3 {
    max-width: 11ch;
    margin: 94px 0 13px;
    color: inherit;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.fg-home-audiences p {
    margin-bottom: 0;
    color: #6d7971;
    font-size: 12px;
    line-height: 1.58;
}

.fg-home-audiences > a:hover p,
.fg-home-audiences > a:hover span {
    color: rgba(255,255,255,.62);
}

.fg-home-audiences > a > i {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--fg-green-600);
    font-size: 18px;
}

.fg-home-audiences > a:hover > i {
    color: var(--fg-lime-300);
}

/* Impact */
.fg-home-impact {
    margin: 0 max(16px, calc((100vw - 1500px) / 2)) clamp(24px, 3vw, 46px);
    padding: clamp(75px, 8vw, 118px) 0;
    border-radius: clamp(22px, 2.4vw, 36px);
    color: #fff;
    background:
        radial-gradient(circle at 6% 20%, rgba(183,239,58,.1), transparent 24%),
        #0a3120;
}

.fg-home-impact__grid {
    display: grid;
    grid-template-columns: 1fr .78fr;
    gap: clamp(55px, 10vw, 150px);
}

.fg-home-impact h2 {
    color: #fff;
}

.fg-home-impact h2 em {
    color: #d7f77d;
}

.fg-home-impact__grid > div:last-child > p {
    margin-bottom: 32px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
    line-height: 1.68;
}

.fg-home-impact__pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 35px;
}

.fg-home-impact__pillars span {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.045);
    font-size: 12px;
    font-weight: 680;
}

.fg-home-impact__pillars i {
    color: #d7f77d;
    font-size: 17px;
}

@media (max-width: 1199.98px) {
    .fg-home-capabilities {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .fg-home-capability--feature {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 330px;
    }
    .fg-home-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .fg-home-steps li:nth-child(3) { border-right: 0; }
    .fg-home-steps li:nth-child(-n+3) { border-bottom: 1px solid #dce4de; }
    .fg-home-steps li:nth-child(3)::after { display: none; }
    .fg-home-steps li:nth-child(4)::after { display: block; }
    .fg-home-audiences { grid-template-columns: repeat(2, 1fr); }
    .fg-home-audiences > a:nth-child(2) { border-right: 0; }
    .fg-home-audiences > a:nth-child(-n+2) { border-bottom: 1px solid #dfe5e1; }
}

@media (max-width: 991.98px) {
    .fg-home-intro__grid,
    .fg-home-platform__heading,
    .fg-home-section-heading,
    .fg-home-passport__grid,
    .fg-home-impact__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .fg-home-intro h2,
    .fg-home-section-heading h2,
    .fg-home-passport h2,
    .fg-home-impact h2,
    .fg-home-platform__heading h2 {
        max-width: 13ch;
    }
    .fg-home-principles { grid-template-columns: 1fr 1fr; }
    .fg-home-principles > div:nth-child(2) { border-right: 0; }
    .fg-home-principles > div:nth-child(-n+2) { border-bottom: 1px solid #dfe6e1; }
    .fg-home-passport__grid { grid-template-columns: 1fr; }
    .fg-home-passport-card { min-height: auto; }
}

@media (max-width: 767.98px) {
    .fg-home-intro { padding-top: 70px; }
    .fg-home-intro h2,
    .fg-home-section-heading h2,
    .fg-home-passport h2,
    .fg-home-impact h2,
    .fg-home-platform__heading h2 {
        font-size: clamp(39px, 11vw, 58px);
    }
    .fg-home-platform,
    .fg-home-impact {
        margin-inline: 12px;
        border-radius: 22px;
    }
    .fg-home-capabilities { grid-template-columns: 1fr; }
    .fg-home-capability--feature { grid-column: auto; min-height: 330px; }
    .fg-home-steps { grid-template-columns: 1fr 1fr; }
    .fg-home-steps li { min-height: 240px; }
    .fg-home-steps li:nth-child(odd) { border-right: 1px solid #dce4de; }
    .fg-home-steps li:nth-child(even) { border-right: 0; }
    .fg-home-steps li:nth-child(-n+4) { border-bottom: 1px solid #dce4de; }
    .fg-home-steps li::after { display: block !important; }
    .fg-home-steps li:nth-child(even)::after,
    .fg-home-steps li:last-child::after { display: none !important; }
    .fg-home-passport-card__views { grid-template-columns: 1fr; }
    .fg-home-passport-card__views > div { min-height: 0; }
    .fg-home-passport-card__title { margin-top: 55px; }
    .fg-home-audiences { grid-template-columns: 1fr; }
    .fg-home-audiences > a { min-height: 250px; border-right: 0; border-bottom: 1px solid #dfe5e1; }
    .fg-home-audiences > a:last-child { border-bottom: 0; }
    .fg-home-audiences h3 { margin-top: 70px; }
}

@media (max-width: 479.98px) {
    .fg-home-principles { grid-template-columns: 1fr; }
    .fg-home-principles > div { border-right: 0; border-bottom: 1px solid #dfe6e1; padding-left: 0; }
    .fg-home-principles > div:last-child { border-bottom: 0; }
    .fg-home-steps { grid-template-columns: 1fr; }
    .fg-home-steps li { min-height: 205px; border-right: 0 !important; border-bottom: 1px solid #dce4de !important; }
    .fg-home-steps li:last-child { border-bottom: 0 !important; }
    .fg-home-steps li::after { display: none !important; }
    .fg-home-steps span { margin-bottom: 35px; }
    .fg-home-impact__pillars { grid-template-columns: 1fr; }
    .fg-home-passport-card { padding: 26px 22px; }
    .fg-home-passport-card__top > i { font-size: 32px; }
}
