:root {
    --bg-1: #050814;
    --bg-2: #0a1430;
    --ice-1: #e6f6ff;
    --ice-2: #bfe9ff;
    --ice-3: #7dd3fc;
    --glass: rgba(255, 255, 255, 0.08);
    --text: #f8fbff;
    --muted: rgba(248, 251, 255, 0.6);
    --radius: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 20% -10%, rgba(125, 211, 252, 0.25), transparent 60%),
        radial-gradient(700px 400px at 80% 10%, rgba(191, 233, 255, 0.18), transparent 60%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%, var(--bg-1));
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 120px 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}

.gov-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(10, 20, 48, 0.85);
    backdrop-filter: blur(14px);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ua-flag {
    width: 32px;
    height: 20px;
    border-radius: 3px;
    background: linear-gradient(180deg, #0057b8 50%, #ffd700 50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.snow span {
    position: absolute;
    top: -40px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #fff, #cfefff);
    clip-path: polygon(50% 0%, 60% 35%, 100% 50%, 60% 65%, 50% 100%, 40% 65%, 0% 50%, 40% 35%);
    opacity: .9;
    animation: fall linear infinite, sway ease-in-out infinite;
}

@keyframes fall {
    to {
        transform: translateY(120vh);
    }
}

@keyframes sway {
    50% {
        transform: translateX(40px) rotate(180deg);
    }
}

.hero {
    text-align: center;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.eyebrow {
    color: var(--ice-3);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(42px, 9vw, 100px);
    line-height: 1.05;
    margin: 0 0 36px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff, var(--ice-1), var(--ice-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ice-2), var(--ice-3));
    color: #04111f;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    box-shadow:
        0 20px 60px rgba(125, 211, 252, .45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 30px 90px rgba(125, 211, 252, .65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.cta:active {
    transform: scale(0.98);
}

/* Privat24 Button */
.cta--privat {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: #fff;
    padding: 16px 28px;
}

.privat-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8bc34a;
    flex-shrink: 0;
}

.privat-logo span {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

/* Bank Card Section */
.card-section {
    flex-direction: column;
    gap: 32px;
    z-index: 1;
}

.card-container {
    text-align: center;
    perspective: 1000px;
}

/* Three.js 3D Card Container */
.card-3d-container {
    width: 100%;
    height: 350px;
    max-width: 500px;
    margin: 0 auto 24px;
    cursor: pointer;
}

/* GLB 3D Model Container */
.card-glb-container {
    width: 100%;
    height: 400px;
    max-width: 550px;
    margin: 0 auto 24px;
    cursor: grab;
    border-radius: 16px;
    overflow: hidden;
}

.card-glb-container:active {
    cursor: grabbing;
}

/* Photorealistic Card Image */
.card-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    border-radius: 16px;
    filter: drop-shadow(0 20px 60px rgba(6, 182, 212, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card-photo:hover {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 30px 80px rgba(6, 182, 212, 0.5));
}

@media (max-width: 768px) {
    .card-photo {
        max-width: 90%;
    }
}

@media (max-width: 768px) {

    .card-3d-container,
    .card-glb-container {
        height: 300px;
    }
}

/* 3D Card Wrapper */
.card-3d-wrapper {
    display: inline-block;
    perspective: 1000px;
    margin-bottom: 24px;
}

.card-3d {
    position: relative;
    width: 380px;
    max-width: 90vw;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    cursor: pointer;
}

.card-3d__img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(125, 211, 252, 0.15);
    transition: box-shadow 0.3s ease;
}

.card-3d__glow {
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: radial-gradient(circle at 50% 50%,
            rgba(125, 211, 252, 0.3),
            transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.card-3d__shine {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.5) 45%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.5) 55%,
            transparent 60%);
    background-size: 200% 200%;
    background-position: 200% 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover states */
.card-3d:hover .card-3d__glow {
    opacity: 1;
}

.card-3d:hover .card-3d__shine {
    opacity: 1;
    animation: shineMove 1.5s ease-in-out infinite;
}

.card-3d:hover .card-3d__img {
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(125, 211, 252, 0.25),
        0 0 40px rgba(168, 232, 248, 0.3);
}

/* Active/pressed state */
.card-3d:active {
    transform: scale(0.98) translateZ(-10px);
}

.card-3d:active .card-3d__img {
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(125, 211, 252, 0.4);
}

@keyframes shineMove {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.bank-card {
    width: 380px;
    max-width: 90vw;
    aspect-ratio: 1.586;
    background: linear-gradient(120deg,
            #e8d4e8 0%,
            #d4c4e8 15%,
            #c4d4f0 30%,
            #b4e0f8 45%,
            #a8e8f8 60%,
            #c4d4f0 75%,
            #d4c4e8 90%,
            #e8d4e8 100%);
    background-size: 300% 100%;
    animation: shimmer 8s ease-in-out infinite;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    margin: 0 auto 24px;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 70%);
    animation: shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.bank-card::after {
    display: none;
}

.bank-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.bank-card__icon {
    font-size: 16px;
}

.bank-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.01em;
}

.bank-card__number {
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.15em;
    position: relative;
    z-index: 1;
    font-family: 'Inter', system-ui, sans-serif;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.card-cta {
    font-size: 16px;
    color: var(--ice-3);
    margin-bottom: 12px;
}

.card-title {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.card-desc {
    font-size: 18px;
    color: var(--ice-3);
    margin-top: 20px;
    margin-bottom: 8px;
}

.card-cta {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 16px;
}

.card-cta strong {
    color: var(--ice-2);
}

.card-note {
    font-size: 15px;
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.card-btn {
    margin-top: 40px;
}

.gov-note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 20px;
}

/* Info Section */
.info-section {
    min-height: auto;
    padding: 80px 24px;
    scroll-snap-align: none;
}

.info-content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-block {
    padding: 32px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ice-2);
}

.info-block p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block strong {
    color: var(--text);
}

.info-block--highlight {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.12), rgba(125, 211, 252, 0.04));
    border-color: rgba(125, 211, 252, 0.25);
    text-align: center;
}

.amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.amount {
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff, var(--ice-2), var(--ice-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--ice-3);
}

.note {
    font-size: 14px !important;
    color: var(--ice-3) !important;
    font-style: italic;
}

/* Snap blocks */
.snap-block {
    scroll-snap-align: start;
}

/* How Section */
.how-section {
    flex-direction: column;
    z-index: 1;
}

.how-content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.how-content .info-block {
    text-align: left;
}

.how-content .cta {
    margin-top: 16px;
}

.final-note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 16px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 48px;
    }

    .bank-card {
        width: 300px;
        padding: 20px;
    }

    .bank-card__name {
        font-size: 18px;
    }

    .info-block {
        padding: 24px;
    }

    .info-block h3 {
        font-size: 20px;
    }

    .info-block p {
        font-size: 16px;
    }
}