:root {
    --blue: #064dd7;
    --blue-dark: #061c6f;
    --green: #0caf4d;
    --green-dark: #078b3b;
    --yellow: #ffcc15;
    --ink: #071747;
    --muted: #5d6683;
    --line: #dfe5ef;
    --page: #fffdf6;
    --card: #ffffff;
    --shadow: 0 18px 42px rgba(11, 34, 82, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.is-programmatic-scroll {
    scroll-behavior: auto;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 0 18%, rgba(255, 204, 21, 0.12), transparent 26rem),
        linear-gradient(90deg, rgba(255, 253, 246, 0.96), rgba(255, 255, 255, 0.96));
}

img,
svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.reveal {
    opacity: 0;
    transform: translateY(1.4rem);
    transition: opacity 1100ms ease, transform 1250ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    transform: translateY(1.2rem) scale(0.96);
}

.reveal-left {
    transform: translateX(-1.6rem);
}

.reveal-right {
    transform: translateX(1.6rem);
}

.reveal-scale.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    transform: translate(0, 0) scale(1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 6.25rem;
    padding: 1.1rem clamp(1.25rem, 5vw, 4.75rem);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(221, 225, 234, 0.76);
    box-shadow: 0 8px 28px rgba(8, 30, 87, 0.08);
    backdrop-filter: blur(14px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-scale,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand img {
    width: 4.6rem;
    height: 4.6rem;
    object-fit: contain;
}

.brand strong {
    display: block;
    color: #061653;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 0.95;
}

.brand small {
    display: block;
    margin-top: 0.2rem;
    color: #243055;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
}

.header-action,
.primary-button,
.submit-area button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    border: 2px solid transparent;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #10b957, #058c3a);
    box-shadow: 0 14px 28px rgba(6, 143, 61, 0.26);
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    transform: translateY(0) scale(1);
    transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
    will-change: transform;
}

.header-action:hover,
.header-action:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.submit-area button:hover,
.submit-area button:focus-visible {
    box-shadow: 0 20px 38px rgba(6, 143, 61, 0.34);
    border-color: #7cff9f;
    filter: saturate(1.08) brightness(1.04);
    transform: translateY(-0.22rem) scale(1.035);
}

.header-action:hover svg,
.header-action:focus-visible svg,
.primary-button:hover svg,
.primary-button:focus-visible svg,
.submit-area button:hover svg,
.submit-area button:focus-visible svg {
    transform: translateX(0.18rem) rotate(-8deg);
}

.header-action {
    min-height: 3.2rem;
    padding: 0 1.45rem;
    font-size: 0.88rem;
}

.header-action svg,
.primary-button svg,
.submit-area button svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
    min-height: 43.5rem;
    overflow: hidden;
    background: #fffdf7;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 45% 0 0;
    z-index: 1;
    background: radial-gradient(circle at 42% 8%, rgba(255, 204, 21, 0.14), transparent 18rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(100%, 36rem);
    margin-left: clamp(1.5rem, 6vw, 4.75rem);
    padding: 2.2rem 0 4.1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.35rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(13, 37, 85, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
}

.eyebrow span {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0.28rem rgba(12, 175, 77, 0.13);
}

.hero-title {
    margin: 0;
    width: min(100%, 29.75rem);
}

.hero-title img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero h2 {
    max-width: 32rem;
    margin: 0.55rem 0 0;
    color: var(--blue);
    font-size: clamp(1.15rem, 1.8vw, 1.52rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 35rem;
    margin: 0 0 0.78rem;
    color: #1f2a50;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1rem;
}

.primary-button {
    min-width: 14.2rem;
    min-height: 4.3rem;
    padding: 0 1.8rem;
    font-size: 1.02rem;
}

.time-note {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1c294d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.time-note svg {
    width: 2.45rem;
    height: 2.45rem;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-visual {
    position: relative;
    min-height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 253, 246, 0) 0 8%, rgba(255, 253, 246, 0.02)),
        url("assets/bg_alan.webp") center / cover no-repeat;
}

.hero-visual::before {
    content: "";
    position: absolute;
    left: -18rem;
    top: -4rem;
    bottom: -4rem;
    z-index: 1;
    width: 18rem;
    background: #fffdf7;
    border-radius: 50%;
    box-shadow: 3.6rem 0 0 2.4rem #fffdf7;
}

.hero-person {
    position: absolute;
    right: max(-6.5rem, -8vw);
    bottom: -0.65rem;
    z-index: 3;
    width: min(45.9rem, 56.95vw);
    max-height: calc(100% + 1.2rem);
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 26px 42px rgba(0, 31, 93, 0.28));
}

.scroll-cue {
    position: absolute;
    left: 49.7%;
    bottom: 1.6rem;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
}

.scroll-cue svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: var(--ink);
}

.info-strip {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
    width: min(1200px, calc(100% - 2rem));
    margin: -1rem auto 2.8rem;
}


.info-card {
    min-height: 13.3rem;
    padding: 1.75rem 1.7rem;
    border: 1px solid #dbe3ee;
    border-radius: 0.8rem;
    background: var(--card);
    box-shadow: var(--shadow);
    transform-origin: center;
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.info-card:hover,
.info-card:focus-within {
    border-color: rgba(6, 77, 215, 0.26);
    box-shadow: 0 24px 54px rgba(11, 34, 82, 0.18);
    transform: translateY(-0.25rem) scale(1.035);
}

.info-card img {
    float: left;
    width: 3.6rem;
    height: 3.6rem;
    margin-right: 0.9rem;
    object-fit: contain;
    border-radius: 50%;
}

.info-card span {
    color: var(--green);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 0.9;
}

.info-card:nth-child(2) span {
    color: #f2bd00;
}

.info-card:nth-child(3) span {
    color: var(--blue);
}

.info-card h3 {
    margin: 0.15rem 0 1.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.info-card p {
    clear: both;
    margin: 0.95rem 0 0;
    color: #17244a;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.65;
}

.form-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto 0;
    overflow: hidden;
    border: 1px solid #dce4ee;
    border-radius: 0.86rem 0.86rem 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 68px rgba(7, 23, 71, 0.12);
}

.form-band,
.footer-top {
    height: 1.35rem;
    background: linear-gradient(90deg, var(--green) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--blue) 66.66% 100%);
}

.form-heading {
    padding: 1.8rem 2.2rem 0.8rem;
    text-align: center;
}

.form-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.form-heading p {
    margin: 0.85rem auto 0;
    color: #545d7b;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
}

.survey-form {
    padding: 0.8rem clamp(1.2rem, 3.2vw, 2.6rem) 3.3rem;
}

.field-block {
    margin-top: 1.05rem;
}

.field-block label,
.theme-section legend,
.auth-section legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.68rem;
    color: #061653;
    font-weight: 600;
    letter-spacing: 0;
}

.field-block label span,
.theme-section legend span,
.auth-section legend span {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 0.42rem;
    color: #fff;
    background: var(--blue);
    font-size: 1rem;
    font-weight: 600;
}

input[type="text"],
textarea {
    width: 100%;
    border: 1px solid #cfd8e5;
    border-radius: 0.62rem;
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(7, 23, 71, 0.02);
    outline: 0;
    transition: border-color 240ms ease, box-shadow 240ms ease;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(21, 178, 93, 0.2), inset 0 1px 0 rgba(7, 23, 71, 0.02);
}

input[type="text"] {
    height: 3.35rem;
    padding: 0 1rem;
}

textarea {
    min-height: 6.2rem;
    padding: 1rem;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9aa3b7;
}

.theme-section,
.auth-section {
    min-width: 0;
    margin: 1.35rem 0 0;
    padding: 0;
    border: 0;
}

.theme-section p {
    margin: -0.4rem 0 1.1rem 2.75rem;
    color: #4d5875;
    font-size: 0.86rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
}

.axis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.axis-card {
    display: grid;
    align-content: start;
    min-height: 17rem;
    padding: 1.1rem 1rem 1rem;
    border: 1.5px solid #d5dde9;
    border-radius: 0.68rem;
    background: #fff;
}

.axis-card:nth-child(5),
.axis-card:nth-child(6),
.axis-card:nth-child(7) {
    transform: translateX(50%);
}

.axis-card h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.66rem;
    min-height: 4rem;
    margin: 0 0 0.6rem;
    color: #061653;
    font-size: 0.91rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.24;
}

.axis-card h3 span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.45rem;
    color: #fff;
    background: var(--green);
    font-size: 0.9rem;
}

.axis-yellow h3 span {
    background: #f4be00;
}

.axis-blue h3 span {
    background: var(--blue);
}

.axis-green {
    border-color: rgba(12, 175, 77, 0.48);
}

.axis-card label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.55rem;
    margin-top: 0.62rem;
    color: #25304f;
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
}

input[type="radio"] {
    appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.08rem 0 0;
    border: 2px solid #9ba7ba;
    border-radius: 50%;
    background: #fff;
}

input[type="radio"]:checked {
    border-color: var(--green);
    background: radial-gradient(circle, var(--green) 0 38%, #fff 42% 100%);
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.auth-card {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.78rem;
    align-items: center;
    min-height: 7.8rem;
    padding: 1rem;
    border: 1.5px solid #dbe2ed;
    border-radius: 0.7rem;
    background: #fff;
}

.auth-card.selected {
    border-color: rgba(12, 175, 77, 0.62);
}

.auth-card svg {
    width: 3.1rem;
    height: 3.1rem;
    fill: var(--green);
}

.auth-card:nth-child(2) svg {
    fill: #f4a900;
}

.auth-card:nth-child(3) svg {
    fill: #f04444;
}

.auth-card strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
}

.auth-card span {
    color: #44506d;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
}

.submit-area {
    display: grid;
    justify-items: center;
    gap: 1rem;
    margin-top: 1.8rem;
    text-align: center;
}

.submit-area button {
    min-width: min(100%, 27rem);
    min-height: 4.3rem;
    padding: 0 1.9rem;
    font-size: 1rem;
}

.submit-area button:disabled {
    cursor: default;
    filter: saturate(0.82);
    transform: none;
}

.submit-area p {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 38rem;
    margin: 0;
    color: #66708a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
}

.submit-area p svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    fill: #778195;
}

.site-footer {
    margin-top: 0;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0, rgba(0, 84, 255, 0.42), transparent 28rem),
        linear-gradient(135deg, #06207c, #001a6a 52%, #0030a3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.28fr 0.88fr 1fr;
    gap: 2.2rem;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 2.25rem;
}

.footer-brand {
    display: flex;
    gap: 1.15rem;
}

.footer-brand img {
    width: 7.2rem;
    height: 7.2rem;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.footer-brand p {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.footer-brand span {
    display: block;
    max-width: 18rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
}

.site-footer h2 {
    margin: 0 0 1rem;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.site-footer nav,
.footer-contact {
    padding-left: 2.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer nav a,
.footer-contact p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-footer nav a {
    transition: color 320ms ease, transform 320ms ease;
}

.site-footer nav a span {
    transition: transform 320ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
    color: #fff;
    transform: translateX(0.25rem);
}

.site-footer nav a:hover span,
.site-footer nav a:focus-visible span {
    transform: translateX(0.25rem);
}

.footer-contact p {
    justify-content: flex-start;
}

.footer-contact svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: #fff;
}

.footer-contact > span {
    display: block;
    margin: 0.95rem 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.socials {
    display: flex;
    gap: 0.8rem;
}

.socials a {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    color: var(--blue-dark);
    background: #fff;
    font-weight: 950;
    transition: transform 320ms ease, box-shadow 320ms ease, background-color 320ms ease;
}

.socials svg {
    width: 1.12rem;
    height: 1.12rem;
    fill: currentColor;
}

.socials a:hover,
.socials a:focus-visible {
    background: var(--yellow);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-0.18rem) scale(1.08);
}

.copyright {
    margin: 0;
    padding: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
        min-height: 32rem;
    }

    .hero::before {
        inset: 0 55% 0 0;
    }

    .hero-copy {
        margin-left: clamp(1rem, 4vw, 2.5rem);
        padding: 2rem 0 2.4rem;
    }

    .hero-title {
        width: min(100%, 24rem);
    }

    .hero-visual {
        min-height: 100%;
    }

    .hero-person {
        right: max(-4rem, -6vw);
        width: min(34rem, 60vw);
    }

    .scroll-cue {
        display: none;
    }

    .axis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .axis-card:nth-child(5),
    .axis-card:nth-child(6),
    .axis-card:nth-child(7) {
        transform: none;
    }
}

@media (max-width: 560px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero::before,
    .hero-visual::before {
        display: none;
    }

    .hero-copy {
        width: min(100% - 2rem, 42rem);
        margin: 0 auto;
        padding: 2.2rem 0 1rem;
    }

    .hero-visual {
        min-height: 28rem;
    }

    .hero-person {
        right: max(-7rem, -11vw);
        width: min(42.5rem, 78vw);
    }
}

@media (max-width: 820px) {
    .site-header {
        min-height: 5rem;
        padding: 0.75rem 1rem;
    }

    .brand img {
        width: 3.565rem;
        height: 3.565rem;
    }

    .brand strong {
        font-size: 1.25rem;
    }

    .brand small {
        display: none;
    }

    .header-action {
        min-height: 2.75rem;
        padding: 0 0.9rem;
        font-size: 0.74rem;
    }

    .hero {
        min-height: 0;
    }

    .hero-title {
        width: min(100%, 28.9rem);
    }

    .hero-actions,
    .time-note {
        align-items: flex-start;
    }

    .info-strip,
    .auth-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 1.4rem;
    }

    .site-footer nav,
    .footer-contact {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .hero-copy {
        padding-top: 2rem;
    }

    .hero-title {
        width: min(100%, 23.8rem);
    }

    .hero-actions {
        display: grid;
        gap: 1rem;
    }

    .primary-button {
        width: 100%;
    }

    .hero-visual {
        min-height: 28rem;
    }

    .hero-person {
        right: -6.5rem;
        width: 25.5rem;
        max-height: calc(100% + 1.2rem);
    }

    .info-card {
        min-height: 0;
    }

    .form-heading {
        padding-inline: 1rem;
    }

    .axis-grid {
        grid-template-columns: 1fr;
    }

    .axis-card {
        min-height: 0;
    }

    .axis-card h3 {
        min-height: 0;
    }

    .theme-section p {
        margin-left: 0;
    }

    .auth-card {
        grid-template-columns: auto auto 1fr;
        min-height: 0;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand img {
        width: 5.2rem;
        height: 5.2rem;
    }
}
