/* Technology Global User (TGU) - footer: newsletter, giant wordmark, link columns (accordion on small screens),
   contact card and legal bar. Every class is prefixed tgu-footer (BEM). */

.tgu-footer {
    padding: 72px 0 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg) 0%, var(--soft) 100%);
    color: var(--ink);
    font-size: 15px;
}

.tgu-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Newsletter ---------- */
.tgu-footer__newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.tgu-footer__newsletter-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.tgu-footer__form {
    position: relative;
    width: min(520px, 100%);
}

.tgu-footer__input {
    width: 100%;
    height: 60px;
    padding: 0 160px 0 26px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font: 400 16px var(--f);
}

.tgu-footer__input:focus {
    border-color: #2f80ff;
    outline: none;
    box-shadow: 0 0 0 4px #2f80ff22;
}

.tgu-footer__subscribe {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6feb 0%, #2f80ff 50%, #6fb1ff 100%);
    color: #fff;
    font: 700 15px var(--f);
    box-shadow: 0 10px 22px #2f80ff44, inset 0 1px 0 #ffffff66;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tgu-footer__subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px #2f80ff55, inset 0 1px 0 #ffffff66;
}

.tgu-footer__form-message {
    margin: 10px 0 0 26px;
    min-height: 1.4em;
    font-size: 13.5px;
}

.tgu-footer__form-message.tgu-is-error {
    color: #d6336c;
}

.tgu-footer__form-message.tgu-is-success {
    color: #0e8f6a;
}

/* ---------- Wordmark: one line, letters rise in one by one ---------- */
.tgu-footer__brand {
    padding: 8px 0 24px;
    text-align: center;
}

.tgu-footer__wordmark {
    display: inline-flex;
    align-items: flex-end;
    font-family: var(--f);
    font-size: clamp(30px, 7.4vw, 108px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    white-space: nowrap;
    user-select: none;
}

.tgu-footer__space {
    display: inline-block;
    width: 0.26em;
}

.tgu-footer__letter {
    display: inline-block;
    color: color-mix(in srgb, #2f80ff calc(var(--p) * 100%), #c4dbff);
    opacity: 0.9;
    transition: color 0.3s ease, translate 0.3s ease;
}

/* The script hides the letters first, then reveals them when the footer comes into view. */
.tgu-footer__wordmark.tgu-is-armed .tgu-footer__letter {
    opacity: 0;
    transform: translateY(70%) rotate(4deg);
}

.tgu-footer__wordmark.tgu-is-visible .tgu-footer__letter {
    animation: tguLetterRise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, tguLetterWave 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 45ms), calc(1.6s + var(--i) * 140ms);
}

.tgu-footer__letter:hover {
    color: #1f6feb;
    translate: 0 -10%;
}

@keyframes tguLetterRise {
    from {
        opacity: 0;
        transform: translateY(70%) rotate(4deg);
    }

    to {
        opacity: 0.9;
        transform: none;
    }
}

@keyframes tguLetterWave {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tgu-footer__wordmark .tgu-footer__letter {
        opacity: 0.9;
        transform: none;
        animation: none;
    }
}

/* ---------- Columns and contact card ---------- */
.tgu-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: 32px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 16px;
}

.tgu-footer__column-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 800;
}

.tgu-footer__column-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: default;
}

.tgu-footer__column-toggle svg {
    display: none;
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.tgu-footer__column-panel {
    display: grid;
    grid-template-rows: 1fr;
}

.tgu-footer__column-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.tgu-footer__column-list a {
    display: inline-block;
    padding: 5px 0;
    color: var(--ink);
    transition: color 0.2s ease, transform 0.2s ease;
}

.tgu-footer__column-list a:hover {
    color: var(--brand);
    transform: translateX(4px);
}

.tgu-footer__contact {
    padding: 32px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--ink) 5%, var(--bg));
}

.tgu-footer__contact-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
}

.tgu-footer__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.tgu-footer__row small {
    display: block;
    color: var(--mut);
    font-size: 12px;
}

.tgu-footer__row a {
    color: var(--ink);
    font-weight: 700;
}

.tgu-footer__row a:hover {
    color: var(--brand);
}

.tgu-footer__row-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--brand);
}

.tgu-footer__social {
    display: flex;
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.tgu-footer__social svg {
    width: 28px;
    height: 28px;
    color: var(--ink);
    transition: transform 0.25s ease, color 0.25s ease;
}

.tgu-footer__social a:hover svg {
    color: var(--brand);
    transform: translateY(-3px);
}

.tgu-footer__glyph-stroke {
    fill: none;
    stroke: var(--bg);
    stroke-width: 2;
    stroke-linecap: round;
}

.tgu-footer__glyph-fill {
    fill: var(--bg);
}

/* ---------- Legal bar ---------- */
.tgu-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--mut);
    font-size: 14px;
}

.tgu-footer__legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tgu-footer__legal a {
    color: var(--mut);
}

.tgu-footer__legal a:hover {
    color: var(--brand);
}

/* ---------- Responsive ---------- */
@media (min-width: 1400px) {
    .tgu-footer__container {
        max-width: 1320px;
    }
}

@media (max-width: 960px) {
    .tgu-footer {
        padding-top: 48px;
    }

    .tgu-footer__newsletter {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .tgu-footer__brand {
        padding: 32px 0 24px;
    }

    /* Link columns become an accordion. */
    .tgu-footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .tgu-footer__column {
        border-bottom: 1px solid var(--line);
    }

    .tgu-footer__column-title {
        margin: 0;
    }

    .tgu-footer__column-toggle {
        padding: 18px 0;
        font-size: 17px;
        cursor: pointer;
    }

    .tgu-footer__column-toggle:disabled {
        cursor: default;
    }

    .tgu-footer__column-toggle svg {
        display: block;
    }

    .tgu-footer__column.tgu-is-open .tgu-footer__column-toggle svg {
        transform: rotate(180deg);
    }

    .tgu-footer__column-panel {
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows 0.35s ease, visibility 0s 0.35s;
    }

    .tgu-footer__column.tgu-is-open .tgu-footer__column-panel {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows 0.35s ease, visibility 0s;
    }

    .tgu-footer__column-list {
        padding-bottom: 8px;
    }

    .tgu-footer__contact {
        margin-top: 28px;
    }

    .tgu-footer__legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tgu-footer__input {
        height: 56px;
        padding-right: 132px;
    }

    .tgu-footer__subscribe {
        height: 44px;
        padding: 0 18px;
    }
}
