:root {
    --primary-navy: #1A1A40;
    --primary-blue: #2A5D85;
    /* Slightly darker for better readability on light backgrounds if needed, but sticking to requested palette */
    --accent-blue: #8ABFE8;
    --white: #FFFFFF;
    --bg-grey: #F0F2F5;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --text-main: #1A1A40;
    --text-muted: #555570;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-grey);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(at 0% 0%, hsla(216, 88%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(216, 88%, 92%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(216, 88%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(216, 88%, 92%, 1) 0, transparent 50%);
}

/* Background Animation Elements */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.globe-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-blue), transparent);
    top: -15%;
    left: -10%;
    animation: float 20s infinite ease-in-out;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4F7CAC, transparent);
    bottom: -10%;
    right: -5%;
    animation: float 25s infinite ease-in-out reverse;
}

.globe-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #D6EAFD, transparent);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 12s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Typography & Utilities */
h1,
h2,
h3 {
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 24px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    /* Slightly more squircle than pill */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    letter-spacing: -0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy), #252550);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 26, 64, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 26, 64, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.25rem;
    width: 100%;
    max-width: 400px;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.logo-img {
    height: 40px;
    width: auto;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--primary-navy);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-card {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* overflow: hidden; Removed to allow elements to pop out if needed, but safer to keep visual contained */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Fallback Visual styling - CSS Art if image missing */
.fallback-visual {
    position: absolute;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.message-bubble {
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.received {
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: var(--primary-navy);
    animation-delay: 0.2s;
}

.sent {
    align-self: flex-end;
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 2px;
    animation-delay: 1.2s;
    /* delays showing "sent" */
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.security-shield {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: bounce 3s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Bento Grid */
.benefits-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-rows: repeat(2, auto); */
    gap: 30px;
}

.bento-item {
    padding: 40px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.bento-item:hover {
    transform: translateY(-10px);
}

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.bento-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(138, 191, 232, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

/* Why Choose Us */
.why-section {
    padding: 100px 0;
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.why-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-card {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    padding: 100px 0 150px;
}

.cta-card {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(230, 240, 255, 0.8));
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.divider {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .header-actions {
        display: none;
        /* Simplify for mobile or add burger menu later */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .why-container {
        grid-template-columns: 1fr;
    }
}