
/* ==========================================
   TERRAIFA - PUBLIC WEBSITE HERO
   ========================================== */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #14243d;
    background: #d7e9e5;
}

/* Landscape and lighting */


.hero__background {
    position: absolute;
    z-index: -3;
    inset: -35px;
    background-image: url("../images/Futuristisches Tal im Morgenlicht.png");
    background-position: center 54%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.07)
        translate3d(0, var(--bg-shift, 0px), 0);
    will-change: transform;
}


.hero__overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.86) 0%,
            rgba(255, 255, 255, 0.69) 31%,
            rgba(237, 249, 246, 0.22) 57%,
            rgba(6, 44, 69, 0.12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 39, 43, 0.70) 0%,
            rgba(12, 48, 58, 0.08) 35%,
            transparent 67%
        );
}

/* Main composition */

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(1440px, 92%);
    min-height: 860px;
    min-height: max(860px, 100svh);
    margin: 0 auto;
    padding-top: 125px;
    padding-bottom: 128px;
}

.hero__main {
    display: grid;
    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(0, 0.88fr);
    align-items: center;
    gap: 36px;
}

.hero__content {
    position: relative;
    z-index: 3;
    min-width: 0;
    max-width: 670px;
    animation: hero-appear 0.85s ease both;
}

/* Logo and brand message */

.hero__logo {
    display: block;
    width: clamp(240px, 24vw, 340px);
    max-width: 100%;
    height: auto;
    margin: 0 0 3px;
}

.hero .hero__tagline {
    margin: 0 0 20px;
    color: #315b75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.32em;
    line-height: 1.6;
}

.hero .hero__title {
    max-width: 760px;
    margin: 0;
    color: #14243d;
    font-size: clamp(45px, 4.5vw, 73px);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -0.052em;
}

.hero__title span {
    display: block;
    width: fit-content;
    background: linear-gradient(
        95deg,
        #42b879 0%,
        #168d9a 65%,
        #0678ac 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero .hero__description {
    max-width: 590px;
    margin: 23px 0 0;
    color: #38536b;
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.75;
}

/* Action buttons */

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 54px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.hero__button:hover {
    transform: translateY(-3px);
}

.hero__button:focus-visible,
.hero__scroll:focus-visible {
    outline: 3px solid #23a692;
    outline-offset: 4px;
}

.hero__button--primary {
    background: linear-gradient(
        110deg,
        #112840,
        #075b86
    );
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(9, 49, 74, 0.22);
}

.hero__button--primary:hover {
    box-shadow: 0 17px 35px rgba(9, 49, 74, 0.30);
}

.hero__button--secondary {
    background: rgba(255, 255, 255, 0.92);
    color: #14243d;
    box-shadow: 0 10px 28px rgba(18, 61, 70, 0.09);
}

.hero__button-icon {
    color: #20a78d;
    font-size: 19px;
}

/* ==========================================
   FLOATING NATURE / TECHNOLOGY VISUAL
   ========================================== */

.hero__visual {
    --mouse-x: 0px;
    --mouse-y: 0px;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 470px;
    min-width: 0;
    transform: translate3d(
        var(--mouse-x),
        var(--mouse-y),
        0
    );
    transition: transform 0.25s ease-out;
}

.hero__visual-grid {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.4;
    background-image:
        linear-gradient(
            rgba(103, 237, 221, 0.18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(103, 237, 221, 0.18) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
    mask-image: radial-gradient(
        ellipse at center,
        black 8%,
        transparent 72%
    );
}

.hero__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(165, 255, 243, 0.55);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.hero__orbit--outer {
    width: 390px;
    height: 390px;
    box-shadow:
        0 0 45px rgba(85, 246, 220, 0.20),
        inset 0 0 45px rgba(85, 246, 220, 0.13);
}

.hero__orbit--inner {
    width: 325px;
    height: 325px;
    border-style: dashed;
    border-color: rgba(159, 255, 231, 0.45);
    animation: hero-orbit 50s linear infinite;
}

/* Plant core */

.hero__core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 270px;
    height: 270px;
    overflow: hidden;
    border: 7px solid rgba(197, 255, 239, 0.88);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(255, 237, 156, 0.84),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 85%,
            #173f31,
            #276b53 60%,
            #97ac72
        );
    box-shadow:
        0 0 0 8px rgba(98, 250, 221, 0.17),
        0 0 65px rgba(78, 255, 221, 0.45),
        inset 0 0 35px rgba(0, 27, 33, 0.35);
    transform: translate(-50%, -50%);
}

.hero__core-light {
    position: absolute;
    top: -35px;
    left: 50%;
    width: 140px;
    height: 220px;
    background: rgba(243, 255, 178, 0.35);
    filter: blur(32px);
    transform: translateX(-50%);
}

.hero__plant {
    position: relative;
    z-index: 2;
    width: 170px;
    height: 180px;
    filter: drop-shadow(0 8px 12px rgba(0, 26, 8, 0.4));
    animation: hero-grow 5s ease-in-out infinite;
}

.hero__soil {
    position: absolute;
    right: 0;
    bottom: -32px;
    left: 0;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        #25412b 0%,
        #0e251d 75%
    );
}

/* Network nodes */

.hero__node {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #c5fff4;
    border-radius: 50%;
    background: #42e1bf;
    box-shadow: 0 0 18px #4afde0;
    animation: hero-pulse 3s ease-in-out infinite;
}

.hero__node--one {
    top: 12%;
    left: 28%;
}

.hero__node--two {
    top: 62%;
    right: 5%;
    animation-delay: 0.8s;
}

.hero__node--three {
    bottom: 12%;
    left: 15%;
    animation-delay: 1.5s;
}

/* Floating glass labels */

.hero__glass {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 19px;
    border: 1px solid rgba(204, 255, 250, 0.48);
    border-radius: 15px;
    background: rgba(22, 87, 109, 0.48);
    box-shadow: 0 12px 35px rgba(7, 47, 63, 0.18);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    animation: hero-float 6s ease-in-out infinite;
}

.hero__glass svg {
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    color: #9af4d5;
}

.hero__glass--top {
    top: 3%;
    right: 0;
}

.hero__glass--left {
    top: 42%;
    left: -7%;
    animation-delay: 1s;
}

.hero__glass--right {
    right: -3%;
    bottom: 8%;
    animation-delay: 2s;
}

/* ==========================================
   BOTTOM FEATURE STRIP
   ========================================== */

.hero__bottom {
    position: relative;
    z-index: 3;
    padding-top: 35px;
}

.hero__features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(25px, 3vw, 55px);
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(18, 43, 58, 0.08);
    color: #17304a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-shadow: none;
}

.hero__feature svg {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    color: #1f9f93;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(18, 43, 58, 0.08);
    color: #17304a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.hero__mouse {
    position: relative;
    width: 20px;
    height: 31px;
    border: 2px solid #17304a;
    border-radius: 12px;
}

.hero__mouse::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 7px;
    width: 2px;
    height: 6px;
    border-radius: 2px;
    background: #17304a;
    animation: hero-scroll-cue 2s ease-in-out infinite;
}

/* Curved transition */

.hero__wave {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 100px;
    pointer-events: none;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes hero-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes hero-grow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.04);
    }
}

@keyframes hero-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes hero-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes hero-scroll-cue {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(9px);
    }
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1100px) {
    .hero__main {
        grid-template-columns: 1.12fr 0.88fr;
        gap: 12px;
    }

    .hero__orbit--outer {
        width: 320px;
        height: 320px;
    }

    .hero__orbit--inner {
        width: 280px;
        height: 280px;
    }

    .hero__core {
        width: 235px;
        height: 235px;
    }

    .hero__glass {
        padding: 11px 13px;
        font-size: 11px;
    }

    .hero__glass--left {
        left: -4%;
    }
}

/* ==========================================
   SMALL TABLET
   ========================================== */

@media (max-width: 850px) {
    .hero__inner {
        min-height: auto;
        padding-top: 125px;
        padding-bottom: 125px;
    }

    .hero__main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero__content {
        max-width: 650px;
    }

    .hero__visual {
        width: min(100%, 560px);
        height: 410px;
        margin: 0 auto;
    }

    .hero__bottom {
        padding-top: 5px;
    }

    .hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.90) 0%,
                rgba(255, 255, 255, 0.64) 43%,
                rgba(12, 51, 64, 0.24) 75%,
                rgba(6, 31, 39, 0.84) 100%
            );
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 580px) {
    .hero__inner {
        width: 90%;
        padding-top: 108px;
        padding-bottom: 95px;
    }

    .hero__logo {
        width: 225px;
    }

    .hero .hero__tagline {
        font-size: 9px;
        letter-spacing: 0.18em;
    }

    .hero .hero__title {
        font-size: clamp(38px, 9vw, 52px);
    }

    .hero .hero__description {
        font-size: 15px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__button {
        width: 100%;
    }

    .hero__visual {
        height: 320px;
    }

    .hero__orbit--outer {
        width: min(86vw, 310px);
        height: min(86vw, 310px);
    }

    .hero__orbit--inner {
        width: min(72vw, 265px);
        height: min(72vw, 265px);
    }

    .hero__core {
        width: min(62vw, 220px);
        height: min(62vw, 220px);
    }

    .hero__plant {
        width: 135px;
        height: 145px;
    }

    .hero__glass {
        padding: 9px 11px;
        gap: 8px;
        font-size: 10px;
    }

    .hero__glass svg {
        width: 23px;
        height: 23px;
    }

    .hero__glass--top {
        top: 0;
        right: 0;
    }

    .hero__glass--left {
        top: 38%;
        left: -3%;
    }

    .hero__glass--right {
        right: -3%;
        bottom: 2%;
    }

    .hero__features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 19px;
    }


    .hero__feature {
        padding: 12px 14px;
        font-size: 12px;
    }

    .hero__feature svg {
        width: 28px;
        height: 28px;
    }

    .hero__scroll {
        margin-top: 32px;
        padding: 9px 12px;
    }


    .hero__wave {
        height: 60px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .hero *,
    .hero *::before,
    .hero *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero__background {
        transform: none;
        will-change: auto;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
