/* ============================================================
   Swiss TVP SA — Landing Page
   ============================================================ */

/* 1. CUSTOM PROPERTIES */
:root {
    --red:       #CC2128;
    --green:     #4E8020;
    --green-d:   #3d6619;
    --gold:      #D4920C;
    --gold-l:    #f0ab28;
    --dark:      #182814;
    --dark-2:    #1E3018;
    --cream:     #F5F1E8;
    --cream-2:   #EDE8DC;
    --white:     #FFFFFF;
    --text:      #252520;
    --text-2:    #5A5A52;
    --border:    rgba(0,0,0,0.09);
    --border-d:  rgba(255,255,255,0.1);

    --ff-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ff-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --sh-xs: 0 1px 4px rgba(0,0,0,0.07);
    --sh-sm: 0 4px 16px rgba(0,0,0,0.09);
    --sh-md: 0 10px 40px rgba(0,0,0,0.13);
    --sh-lg: 0 28px 72px rgba(0,0,0,0.2);

    --r-sm: 10px;
    --r:    18px;
    --r-lg: 28px;

    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--ff-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
svg  { display: block; }

/* 3. LAYOUT */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 2rem;
}

/* 4. TYPOGRAPHY */
h1, h2, h3 {
    font-family: var(--ff-serif);
    line-height: 1.12;
    color: inherit;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem);     letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; }

em { font-style: italic; color: var(--gold-l); }

.label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.875rem;
}
.label--light { color: rgba(255,255,255,0.5); }


/* 5. HEADER */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.lang-btn {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--ff-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
    padding: 0.3rem 0.45rem;
    border-radius: 5px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    line-height: 1;
}

.lang-btn:hover  { color: rgba(255,255,255,0.9); }
.lang-btn.active { color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.1); }

.header.is-scrolled .lang-btn        { color: rgba(24,40,20,0.38); }
.header.is-scrolled .lang-btn:hover  { color: var(--dark); }
.header.is-scrolled .lang-btn.active { color: var(--dark); background: rgba(24,40,20,0.08); }

.lang-sep {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.18);
    user-select: none;
    pointer-events: none;
}

.header.is-scrolled .lang-sep { color: rgba(0,0,0,0.15); }

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    padding-block: 1.25rem;
    transition:
        background .4s var(--ease),
        backdrop-filter .4s,
        box-shadow .4s var(--ease),
        padding .3s var(--ease);
}

.header.is-scrolled {
    background: rgba(245,241,232,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border), var(--sh-sm);
    padding-block: 0.875rem;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter .4s var(--ease);
}

.header.is-scrolled .header__logo { filter: none; }

.header__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.07);
    transition: all .25s var(--ease);
}

.header.is-scrolled .header__cta {
    color: var(--dark);
    border-color: rgba(24,40,20,0.18);
    background: rgba(255,255,255,0.5);
}

.header__cta:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.header.is-scrolled .header__cta:hover {
    background: var(--dark);
    color: var(--cream);
    border-color: var(--dark);
}


/* 6. HERO */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(158deg, #182814 0%, #1F3818 45%, #243D1C 75%, #1C3014 100%);
    position: relative;
    overflow: hidden;
    padding: 9rem 0 7rem;
}

.hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 85%, rgba(212,146,12,.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 82% 18%, rgba(204,33,40,.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(78,128,32,.05) 0%, transparent 80%);
}

.hero__ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__ring::before,
.hero__ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
}

.hero__ring::before { width: min(700px, 120vw); height: min(700px, 120vw); }
.hero__ring::after  { width: min(1100px, 180vw); height: min(1100px, 180vw); }

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.375rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.68);
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-l);
    box-shadow: 0 0 0 3px rgba(240,171,40,0.28);
    animation: dot-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(240,171,40,0.28); }
    50%       { box-shadow: 0 0 0 7px rgba(240,171,40,0.1); }
}

.hero__title {
    color: var(--white);
    max-width: 920px;
    font-weight: 700;
}

.hero__sub {
    font-size: clamp(1rem, 2.2vw, 1.175rem);
    color: rgba(255,255,255,0.62);
    max-width: 600px;
    line-height: 1.72;
    font-weight: 300;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.25rem;
    background: var(--cream);
    color: var(--dark);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: var(--sh-md);
    transition: all .25s var(--ease);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero__btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s var(--ease); }

.hero__btn:hover {
    background: var(--white);
    box-shadow: var(--sh-lg);
    transform: translateY(-3px);
}

.hero__btn:hover svg { transform: translateX(4px); }

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero__scroll-bar {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scroll-bar 2s ease-in-out infinite;
}

@keyframes scroll-bar {
    0%, 100% { transform: scaleY(1);   opacity: .35; }
    50%       { transform: scaleY(.6); opacity: 1;   }
}


/* 7. ABOUT */
.about {
    padding: 8rem 0 7rem;
    background: var(--cream);
}

.about__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.about__intro h2 { margin-bottom: 1.25rem; }

.about__body {
    color: var(--text-2);
    font-size: 1.0625rem;
    line-height: 1.78;
}

.ingredients {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 720px) {
    .ingredients { grid-template-columns: 1fr; }
}

.ingredient {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.75rem 2.25rem;
    text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.ingredient::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--r) var(--r) 0 0;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}

.ingredient:nth-child(1)::before { background: var(--gold); }
.ingredient:nth-child(3)::before { background: var(--green-d); }

.ingredient:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.ingredient:hover::before { transform: scaleX(1); }

.ingredient__icon { font-size: 3.25rem; margin-bottom: 1.25rem; }

.ingredient h3 { margin-bottom: 0.75rem; color: var(--dark); }

.ingredient p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.68; }

.about__tagline {
    text-align: center;
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: var(--dark);
    margin-top: 4rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}


/* 8. STATS */
.stats {
    background: var(--dark);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212,146,12,.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 2rem;
    position: relative;
}

@media (min-width: 640px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }

.stat__val {
    font-family: var(--ff-serif);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--gold-l);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat__val sup {
    font-size: 0.45em;
    opacity: .85;
    vertical-align: super;
}

.stat__label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.45;
    max-width: 150px;
    margin-inline: auto;
}


/* 9. AVANTAGES */
.advantages {
    padding: 8rem 0;
    background: var(--white);
}

.advantages__hd {
    text-align: center;
    margin-bottom: 4.5rem;
}

.advantages__hd h2 { margin-top: .5rem; }

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 720px) {
    .advantages__grid { grid-template-columns: 1fr; }
}

.adv {
    padding: 2.25rem 2rem;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--cream);
    transition: all .3s var(--ease);
}

.adv:hover {
    background: var(--white);
    border-color: rgba(78,128,32,.2);
    box-shadow: var(--sh-sm);
    transform: translateY(-5px);
}

.adv__icon { font-size: 2.4rem; margin-bottom: 1.125rem; }

.adv h3 { margin-bottom: .625rem; color: var(--dark); }

.adv p { color: var(--text-2); font-size: .9375rem; line-height: 1.68; }


/* 10. CERTIFICATIONS */
.certs {
    padding: 6rem 0;
    background: var(--cream-2);
    overflow: hidden;
}

.certs__hd {
    text-align: center;
    margin-bottom: 3.25rem;
}

.certs__hd h2 { margin-top: .5rem; }

.certs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .875rem;
}

.cert {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem 1.625rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--sh-xs);
    transition: all .22s var(--ease);
    cursor: default;
}

.cert:hover {
    border-color: var(--green);
    box-shadow: var(--sh-sm);
    transform: translateY(-3px);
}

.cert__tick { color: var(--green); font-weight: 800; font-size: 1.05rem; }


/* 11. FORM SECTION */
.form-sec {
    padding: 9rem 0;
    background: linear-gradient(150deg, #182814 0%, #1E3018 55%, #243D1C 100%);
    position: relative;
    overflow: hidden;
}

.form-sec__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 8% 90%, rgba(212,146,12,.13) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 90% 10%, rgba(204,33,40,.08) 0%, transparent 55%);
}

.form-sec__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 860px) {
    .form-sec__grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

/* Left text */
.form-sec__text h2 {
    color: var(--white);
    margin: .75rem 0 1.375rem;
}

.form-sec__text p {
    color: rgba(255,255,255,.6);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.form-sec__email {
    margin-top: 2.25rem;
    display: flex;
    align-items: center;
    gap: .625rem;
    color: rgba(255,255,255,.5);
    font-size: .875rem;
}

.form-sec__email a {
    color: var(--gold-l);
    font-weight: 600;
    border-bottom: 1px solid rgba(240,171,40,.35);
    transition: color .2s, border-color .2s;
}

.form-sec__email a:hover {
    color: white;
    border-color: rgba(255,255,255,.4);
}

/* Right form box */
.form-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-box__title {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.375rem;
}

.form-box__sub {
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    margin-bottom: 2rem;
}

.form__label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .625rem;
}

.form__row {
    display: flex;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.14);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form__row:focus-within {
    border-color: rgba(255,255,255,.38);
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.form__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1.0625rem 1.25rem;
    font-family: var(--ff-sans);
    font-size: .9375rem;
    color: var(--white);
    min-width: 0;
}

.form__input::placeholder { color: rgba(255,255,255,.3); }

.form__submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 0 1.5rem;
    background: var(--green);
    color: var(--white);
    border: none;
    font-family: var(--ff-sans);
    font-size: .9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.form__submit:hover:not(:disabled) { background: var(--green-d); }

.form__submit:disabled { opacity: .6; cursor: wait; }

.form__submit svg { width: 17px; height: 17px; }

.form__msg {
    margin-top: .875rem;
    font-size: .875rem;
    font-weight: 500;
    min-height: 1.25em;
    transition: opacity .3s;
}

.form__msg.ok  { color: #82d685; }
.form__msg.err { color: #ff8f8f; }

.form__notice {
    margin-top: 1.25rem;
    color: rgba(255,255,255,.3);
    font-size: .78rem;
    line-height: 1.55;
}

@media (max-width: 500px) {
    .form__row { flex-direction: column; }
    .form__submit { padding: 1rem; justify-content: center; }
    .form-box { padding: 2rem 1.5rem; }
}


/* 12. FOOTER */
.footer {
    background: var(--dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .55;
    transition: opacity .2s;
}

.footer__logo:hover { opacity: .85; }

.footer__copy {
    color: rgba(255,255,255,.35);
    font-size: .8rem;
    line-height: 1.65;
}

.footer__link {
    font-size: .8375rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    padding: .5rem 1.25rem;
    transition: all .2s var(--ease);
}

.footer__link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
}


/* 13. SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  .7s var(--ease-out),
        transform .7s var(--ease-out);
}

.reveal.in { opacity: 1; transform: none; }

/* Staggered children */
.ingredients .ingredient:nth-child(1) { transition-delay: .08s; }
.ingredients .ingredient:nth-child(2) { transition-delay: .18s; }
.ingredients .ingredient:nth-child(3) { transition-delay: .28s; }

.stats__grid .stat:nth-child(1) { transition-delay: .05s; }
.stats__grid .stat:nth-child(2) { transition-delay: .12s; }
.stats__grid .stat:nth-child(3) { transition-delay: .19s; }
.stats__grid .stat:nth-child(4) { transition-delay: .26s; }

.advantages__grid .adv:nth-child(1) { transition-delay: .05s; }
.advantages__grid .adv:nth-child(2) { transition-delay: .10s; }
.advantages__grid .adv:nth-child(3) { transition-delay: .15s; }
.advantages__grid .adv:nth-child(4) { transition-delay: .20s; }
.advantages__grid .adv:nth-child(5) { transition-delay: .25s; }
.advantages__grid .adv:nth-child(6) { transition-delay: .30s; }

.certs__list .cert:nth-child(1) { transition-delay: .04s; }
.certs__list .cert:nth-child(2) { transition-delay: .09s; }
.certs__list .cert:nth-child(3) { transition-delay: .14s; }
.certs__list .cert:nth-child(4) { transition-delay: .19s; }
.certs__list .cert:nth-child(5) { transition-delay: .24s; }
.certs__list .cert:nth-child(6) { transition-delay: .29s; }


/* 14. RESPONSIVE */
@media (max-width: 640px) {
    .container     { padding-inline: 1.25rem; }
    .about         { padding: 5rem 0 4.5rem; }
    .advantages    { padding: 5rem 0; }
    .certs         { padding: 4.5rem 0; }
    .form-sec      { padding: 5.5rem 0; }
    .hero          { padding: 7.5rem 0 5.5rem; }
    .stats         { padding: 4rem 0; }
    .hero__sub br  { display: none; }
}
