:root {
    --bg-primary: #f8fbff;
    --bg-secondary: #eef5fb;
    --accent-blue: #1ea7ff;
    --accent-green: #22c983;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", sans-serif;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(30, 167, 255, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 201, 131, 0.10), transparent 28%),
        linear-gradient(180deg, #fcfeff 0%, #f1f7fc 100%);
}

.site-bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.32;
}

.site-bubble {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.28);
    animation: siteBubbleFloat 6s ease-in-out infinite;
}

.site-bubble:nth-child(1) {
    top: 10%;
    left: 6%;
}

.site-bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 18%;
    right: 10%;
    animation-delay: -4s;
}

.site-bubble:nth-child(3) {
    width: 160px;
    height: 160px;
    top: 52%;
    left: 12%;
    animation-delay: -6s;
}

.site-bubble:nth-child(4) {
    width: 110px;
    height: 110px;
    right: 16%;
    bottom: 18%;
    animation-delay: -3s;
}

.site-bubble:nth-child(5) {
    width: 180px;
    height: 180px;
    left: 46%;
    bottom: 8%;
    animation-delay: -5s;
}

@keyframes siteBubbleFloat {
    0%,
    100% {
        transform: translateY(-18px);
    }

    50% {
        transform: translateY(18px);
    }
}

.site-bubble::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 44px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    filter: blur(2px);
}

.site-bubble::after {
    content: "";
    position: absolute;
    top: 84px;
    left: 82px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    filter: blur(2px);
}

.site-bubble span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.site-bubble span:nth-child(1) {
    inset: 10px;
    border-left: 15px solid rgba(30, 167, 255, 0.85);
    filter: blur(8px);
}

.site-bubble span:nth-child(2) {
    inset: 10px;
    border-right: 15px solid rgba(34, 201, 131, 0.7);
    filter: blur(8px);
}

.site-bubble span:nth-child(3) {
    inset: 10px;
    border-top: 15px solid rgba(112, 214, 255, 0.65);
    filter: blur(8px);
}

.site-bubble span:nth-child(4) {
    inset: 28px;
    border-left: 12px solid rgba(34, 201, 131, 0.38);
    filter: blur(12px);
}

.site-bubble span:nth-child(5) {
    inset: 10px;
    border-bottom: 10px solid rgba(255, 255, 255, 0.88);
    filter: blur(8px);
    transform: rotate(330deg);
}

summary::-webkit-details-marker {
    display: none;
}

.hero-illustration {
    filter: drop-shadow(0 24px 50px rgba(31, 63, 104, 0.12));
}

.faq-illustration {
    max-height: 430px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 36px rgba(31, 63, 104, 0.08));
}

.contact-field-group {
    position: relative;
}

.contact-alert {
    border-radius: 20px;
    border: 1px solid transparent;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-alert-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-alert-success {
    border-color: rgba(34, 201, 131, 0.28);
    background: rgba(34, 201, 131, 0.10);
    color: #12734b;
}

.contact-alert-error {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.08);
    color: #b42318;
}

.contact-alert-loading {
    border-color: rgba(30, 167, 255, 0.2);
    background: rgba(30, 167, 255, 0.08);
    color: #0f5f95;
}

.contact-button-loading {
    opacity: 0.88;
    pointer-events: none;
}

.contact-input {
    font-size: 16px;
    padding: 12px 10px 12px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(81, 81, 81, 0.45);
    background: transparent;
    color: #0d1726;
    resize: none;
}

.contact-input:focus {
    outline: none;
}

.contact-label {
    color: #7b8797;
    font-size: 18px;
    font-weight: 400;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
}

.contact-input:focus ~ .contact-label,
.contact-input:valid ~ .contact-label,
.contact-textarea:focus ~ .contact-label,
.contact-textarea:valid ~ .contact-label {
    top: -20px;
    font-size: 14px;
    color: #1ea7ff;
}

.contact-bar {
    position: relative;
    display: block;
    width: 100%;
}

.contact-bar::before,
.contact-bar::after {
    content: "";
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #1ea7ff;
    transition: 0.2s ease all;
}

.contact-bar::before {
    left: 50%;
}

.contact-bar::after {
    right: 50%;
}

.contact-input:focus ~ .contact-bar::before,
.contact-input:focus ~ .contact-bar::after {
    width: 50%;
}

.contact-highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

.contact-input:focus ~ .contact-highlight {
    animation: contactInputHighlighter 0.3s ease;
}

.contact-textarea {
    min-height: 120px;
    padding-top: 18px;
}

@keyframes contactInputHighlighter {
    from {
        background: rgba(30, 167, 255, 0.18);
    }

    to {
        width: 0;
        background: transparent;
    }
}

.es-card {
    width: 100%;
    max-width: 320px;
    min-height: 185px;
    background: #ffffff;
    position: relative;
    display: grid;
    place-content: center;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.45s ease, border-radius 0.45s ease, box-shadow 0.45s ease;
    box-shadow: none;
}

.es-card:hover {
    border-radius: 12px;
    transform: translateY(-4px) scale(1.03);
    box-shadow: none;
}

.es-card-border {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    opacity: 0;
    transform: rotate(8deg);
    transition: all 0.45s ease;
}

.es-card:hover .es-card-border {
    inset: 14px;
    opacity: 1;
    transform: rotate(0deg);
}

.es-card-content {
    transition: all 0.45s ease;
}

.es-card-logo-wrap {
    width: 56px;
    height: 40px;
    overflow: hidden;
    position: relative;
    transition: width 0.7s ease;
}

.es-card:hover .es-card-logo-wrap {
    width: 238px;
}

.es-card-logo {
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.es-mark {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #0b1016 10%, #2ea4e6 58%, #30b679 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
}

.es-word {
    margin-left: 0.9rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #0b1016;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s;
    white-space: nowrap;
}

.es-card:hover .es-word {
    opacity: 1;
    transform: translateX(0);
}

.es-trail {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.es-card:hover .es-trail {
    animation: esTrail 1s ease-in-out;
}

.es-card-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 28px;
    color: rgba(7, 10, 14, 0.56);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    opacity: 0;
    transition: opacity 0.35s ease 0.35s, letter-spacing 0.35s ease 0.35s;
    white-space: nowrap;
}

.es-card:hover .es-card-caption {
    opacity: 1;
    letter-spacing: 0.3em;
}

.es-card-bottom {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    font-size: 0.58rem;
    text-transform: uppercase;
    padding: 0 7px;
    color: rgba(7, 10, 14, 0.56);
    background: #ffffff;
    letter-spacing: 0.34em;
    opacity: 0;
    transition: opacity 0.35s ease, letter-spacing 0.35s ease;
    white-space: nowrap;
}

.es-card:hover .es-card-bottom {
    opacity: 1;
    letter-spacing: 0.22em;
}

@keyframes esTrail {
    0% {
        background: linear-gradient(90deg, rgba(11, 16, 22, 0) 88%, rgba(11, 16, 22, 0.18) 100%);
        opacity: 0;
    }

    30% {
        background: linear-gradient(90deg, rgba(11, 16, 22, 0) 70%, rgba(11, 16, 22, 0.18) 100%);
        opacity: 1;
    }

    70% {
        background: linear-gradient(90deg, rgba(11, 16, 22, 0) 70%, rgba(11, 16, 22, 0.18) 100%);
        opacity: 1;
    }

    100% {
        background: linear-gradient(90deg, rgba(11, 16, 22, 0) 88%, rgba(11, 16, 22, 0.18) 100%);
        opacity: 0;
    }
}

.light-button {
    display: flex;
    justify-content: center;
}

.light-button .bt {
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
    outline: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.light-button .button-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    background-color: #0a0a0a;
    border-radius: 8px;
    color: #0f0f0f;
    font-weight: 700;
    transition: 300ms;
    outline: #0f0f0f 2px solid;
    outline-offset: 20px;
}

.light-button .button-holder p {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.light-button .button-holder svg {
    height: 42px;
    width: 42px;
    fill: #0f0f0f;
    transition: 300ms;
    margin-bottom: 0.55rem;
}

.light-button .light-holder {
    position: absolute;
    height: 200px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.light-button .light-holder .dot {
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: #0a0a0a;
    border-radius: 50%;
    z-index: 2;
}

.light-button .light-holder .light {
    position: absolute;
    top: 0;
    width: 200px;
    height: 200px;
    clip-path: polygon(50% 0%, 25% 100%, 75% 100%);
    background: transparent;
}

.light-button:hover .button-holder svg {
    fill: var(--social-color);
}

.light-button:hover .button-holder {
    color: var(--social-color);
    outline: var(--social-color) 2px solid;
    outline-offset: 2px;
}

.light-button:hover .light-holder .light {
    background: linear-gradient(
        180deg,
        var(--social-color) 0%,
        rgba(255, 255, 255, 0) 75%,
        rgba(255, 255, 255, 0) 100%
    );
}

@media (max-width: 640px) {
    .site-bubbles {
        opacity: 0.18;
    }

    .site-bubble:nth-child(1) {
        left: -8%;
    }

    .site-bubble:nth-child(2) {
        right: -6%;
    }

    .site-bubble:nth-child(5) {
        left: 34%;
    }

    .faq-illustration {
        max-height: 320px;
    }

    .es-card {
        min-height: 160px;
    }

    .es-card-logo-wrap,
    .es-card:hover .es-card-logo-wrap {
        width: 100%;
        max-width: 210px;
    }

    .es-word {
        opacity: 1;
        transform: none;
        font-size: 0.94rem;
        letter-spacing: 0.1em;
    }

    .es-card-caption,
    .es-card-bottom {
        opacity: 1;
        letter-spacing: 0.18em;
    }

    .light-button .bt {
        height: 180px;
    }

    .light-button .button-holder {
        height: 92px;
        width: 92px;
    }

    .light-button .light-holder {
        height: 180px;
        width: 92px;
    }
}
