:root {
    --accent: #1b274c;
    --accent_rgb: 27, 39, 76;
    --sub-accent: #e62329;
    --sub-accent_rgb: 230, 35, 41;
    --color-1: #006B5F;
    --color-2: #e7eab8;
    --color-3: #D85C00;
    --bg-color-1: #eff5fea8;
    --bg-color-2: #cadcf7a8;
    --bg-color-3: #f9f0fda8;

    --primary-navy: var(--accent);
    --accent-red: var(--sub-accent);
    --card-blue-bg: var(--bg-color-1);
    --card-blue-border: var(--bg-color-2);
    --card-purple-bg: var(--bg-color-3);
    --card-purple-border: #e9d3f5;
    --text-dark: #232b38;
    --text-muted: #4b5563;
    --curve-line-color: var(--bg-color-2);
    --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg,
            #d8ecff 0%,
            #edf5fe 16%,
            #f5f9fe 40%,
            #f8f9fe 62%,
            #faecfb 85%,
            #f4e3f8 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: relative;
    overflow: hidden;
}



.bg-line {
    width: 100%;
    height: 1px;
    background: rgba(202, 220, 247, 0.45);
}

/* Container setup */
.wrapper {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0px 0;
}

/* Smooth continuous background wave matching image prototype exactly */
.background-curve {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 91%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.curve-path {
    stroke: var(--curve-line-color);
    stroke-width: 1.8;
    fill: none;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawPath 2s ease-out forwards;
}

.header {
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    flex-shrink: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo-box {
    display: inline-block;
    max-width: 190px;
    width: 48%;
    margin: 0 auto;
    transition: transform 0.3s ease;
    padding-top: 16px;
}

.logo-box:hover {
    transform: scale(1.03);
}

.logo-box img {
    width: 100%;
    max-height: 12.5vh;
    height: auto;
    display: block;
    object-fit: contain;
}

.cards-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex-grow: 1;
    margin-top: 2px;
    margin-bottom: 2px;
}

.card {
    width: 80%;
    padding: 3vh 12px 3vh;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(27, 39, 76, 0.05);
    border-style: solid;
    border-width: 1.5px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    animation: slideInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Blue card default style */
.card-blue {
    background-color: var(--card-blue-bg);
    border-color: var(--card-blue-border);
}

/* Purple card specific style (last card) */
.card-purple {
    background-color: var(--card-purple-bg);
    border-color: var(--card-purple-border);
}

/* Asymmetric capsule/dome shapes matching exact wireframe design */
.card-left {
    align-self: flex-start;
    border-radius: 0px clamp(80px, 10vh, 100px) clamp(80px, 10vh, 100px) 0px;
}

.card-right {
    align-self: flex-end;
    border-radius: clamp(80px, 10vh, 100px) 0px 0px clamp(80px, 10vh, 100px);
}

/* Overlapping stack margins and z-indexing matching prototype */
.card:nth-child(1) {
    animation-delay: 0.15s;
    z-index: 1;
}

.card:nth-child(2) {
    animation-delay: 0.35s;
    z-index: 2;
    margin-top: -2.2vh;
}

.card:nth-child(3) {
    animation-delay: 0.55s;
    z-index: 3;
    margin-top: -2.2vh;
}

.card:nth-child(4) {
    animation-delay: 0.75s;
    z-index: 4;
    margin-top: -2.2vh;
}

/* Hover animations */
.card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(27, 39, 76, 0.08);
    z-index: 10 !important;
}

.card-blue:hover {
    border-color: #a2c4f2;
}

.card-purple:hover {
    border-color: #dbb3f0;
}

.card-title {
    color: var(--primary-navy);
    font-size: clamp(0.92rem, 2vh, 1.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1px;
    letter-spacing: -0.3px;
}

.red-line {
    width: clamp(100px, 32vw, 140px);
    height: 1px;
    margin: 2px auto 4px auto;
    background: linear-gradient(90deg,
            rgba(var(--sub-accent_rgb), 0) 0%,
            rgba(var(--sub-accent_rgb), 0.85) 25%,
            var(--sub-accent) 50%,
            rgba(var(--sub-accent_rgb), 0.85) 75%,
            rgba(var(--sub-accent_rgb), 0) 100%);
    border-radius: 50%;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.card:hover .red-line {
    transform: scaleX(1.12) scaleY(1.2);
    filter: drop-shadow(0px 1px 3px rgba(var(--sub-accent_rgb), 0.4));
}

.card-address {
    font-size: clamp(0.72rem, 1.9vh, 1rem);
    color: var(--text-dark);
    line-height: 1.22;
    margin-bottom: 3px;
    font-weight: 500;
    padding: 0 4px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: clamp(0.72rem, 1.9vh, 1rem);
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.contact-item:hover {
    color: var(--sub-accent);
    background-color: rgba(var(--sub-accent_rgb), 0.05);
    transform: translateY(-1px);
}

.contact-icon {
    width: clamp(11px, 1.4vh, 14px);
    height: clamp(11px, 1.4vh, 14px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(-4deg);
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {

    .card {
        width: 90%;
    }

    .logo-box {
        max-width: 160px;
    }
}