:root {
    font-family: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    color: #f6eafa;
    background-color: #07030c;
    --bg-900: #07030c;
    --bg-800: #0e0615;
    --surface-700: rgba(33, 18, 46, 0.85);
    --surface-500: rgba(59, 20, 68, 0.88);
    --pink-700: #ff3f8a;
    --pink-500: #ff6bcc;
    --pink-300: #ff9fdf;
    --muted: rgba(246, 234, 250, 0.75);
    --card-width: 300px;
    --card-height: 400px;
    --card-flow-gap: 1.25rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 20% 0%, rgba(255, 111, 204, 0.25), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 63, 138, 0.25), transparent 50%),
        var(--bg-900);
    color: #fef3ff;
}

.page-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: rgba(9, 4, 16, 0.9);
    border-bottom: 1px solid rgba(255, 107, 204, 0.2);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 35px rgba(4, 0, 10, 0.55);
}

.header-inner {
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand img {
    height: 36px;
    width: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
}

.primary-nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav li.is-active a,
.primary-nav a:hover {
    color: var(--pink-300);
    border-color: var(--pink-300);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-links a {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-links a.primary {
    background: linear-gradient(120deg, var(--pink-700), var(--pink-500));
    border: none;
    color: #0f050f;
}

.auth-links a:hover {
    color: var(--pink-300);
    border-color: var(--pink-300);
}

.auth-links a.primary:hover {
    color: #0f050f;
    box-shadow: 0 10px 20px rgba(255, 63, 138, 0.35);
}

.site-main {
    flex: 1;
    padding: 3rem 1.5rem 5rem;
    display: flex;
    justify-content: center;
}

.content-container {
    width: 100%;
    max-width: 1300px;
}

.section {
    margin-bottom: 2.5rem;
    padding: 0;
}

.section h1,
.section h2 {
    margin-top: 0;
    color: #ffffff;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.pill {
    align-self: flex-start;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 111, 204, 0.18);
    color: var(--pink-300);
    border: 1px solid rgba(255, 107, 204, 0.3);
}

.card {
    border-radius: 1.3rem;
    padding: min(3vw, 2.25rem);
    background: linear-gradient(145deg, rgba(41, 16, 48, 0.85), rgba(16, 6, 24, 0.95));
    border: 1px solid rgba(255, 107, 204, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.card-shell {
    border-radius: 1.45rem;
    padding: 1.5px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(12, 0, 20, 0.4));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
    width: var(--card-width);
    flex: 0 0 var(--card-width);
}

.card-shell.flip-card {
    background-clip: padding-box;
}

.card-grid.tight {
    gap: 1.25rem;
}

.carousel-wrapper {
    position: relative;
    padding: 0 2.5rem;
}

.card-flow {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--card-flow-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 calc(var(--card-flow-gap) * 1.5) 2rem var(--card-flow-gap);
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-padding: calc(var(--card-flow-gap) + 0.5rem);
}

.card-flow .card-shell {
    scroll-snap-align: start;
}

.carousel-arrows {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-arrow {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(12, 2, 18, 0.85);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    z-index: 5;
}

.carousel-arrows .carousel-arrow:first-child {
    left: -1.5rem;
}

.carousel-arrows .carousel-arrow:last-child {
    right: -1.5rem;
}

.carousel-arrow:hover {
    color: var(--pink-500);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

.is-desktop-only {
    display: block;
}

.mobile-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mobile-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(130deg, rgba(23, 7, 29, 0.92), rgba(11, 2, 18, 0.95));
    border: 1px solid rgba(255, 107, 204, 0.15);
    box-shadow: 0 20px 40px rgba(6, 0, 12, 0.55);
    align-items: center;
}

.mobile-card img {
    width: 96px;
    height: 96px;
    border-radius: 1rem;
    object-fit: cover;
}

.mobile-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mobile-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
}

.mobile-card-extra {
    display: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.mobile-card[data-expanded="true"] .mobile-card-extra {
    display: block;
}

.mobile-card button {
    align-self: flex-start;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--pink-300);
    padding: 0.35rem 1rem;
    cursor: pointer;
}

.mobile-card button:hover {
    border-color: var(--pink-500);
    color: #fff;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-pill,
.filter-tag {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-pill.is-active,
.filter-tag.is-active {
    background: linear-gradient(120deg, var(--pink-700), var(--pink-500));
    color: #0b030e;
    border-color: rgba(255, 255, 255, 0.3);
}

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

.desktop-grid .card-shell {
    width: 100%;
    flex: 1 1 auto;
}

.card--info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card--form {
    max-width: 540px;
}

.form-mock {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-mock label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.input-placeholder {
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

.flip-card {
    perspective: 1200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: var(--card-height);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flip-card.is-flipped .flip-card-inner,
.card-shell.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-side {
    position: absolute;
    inset: 0;
    border-radius: 1.15rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-side.back {
    transform: rotateY(180deg);
}

.card-theme-gold .flip-side.front {
    background: linear-gradient(135deg, #3a1c18, #a66d3f);
}

.card-theme-gold .flip-side.back {
    background: linear-gradient(135deg, #1b0d0b, #4b2c24);
}

.card-theme-rose .flip-side.front {
    background: linear-gradient(135deg, #401033, #ab4d8c);
}

.card-theme-rose .flip-side.back {
    background: linear-gradient(135deg, #1a0917, #4a1f38);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    margin: 0;
    font-size: 1.3rem;
}

.card-badge {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.12);
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
}

.stat-pair {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.card-media {
    position: relative;
    border-radius: 1.15rem 1.15rem 0 0;
    overflow: hidden;
    height: calc(var(--card-height) * 0.5);
    background: rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    margin: -1.8rem -1.8rem 1rem -1.8rem;
}

.card-media-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}


.card--hero {
    position: relative;
    overflow: hidden;
}

.card--hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 63, 138, 0.4), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.card--hero > * {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    gap: 1.5rem;
    max-width: 760px;
}

.hero-title {
    font-size: clamp(2.6rem, 4vw, 4.5rem);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 620px;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 0.95rem 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--pink-700), var(--pink-500));
    color: #0f050f;
    box-shadow: 0 20px 40px rgba(255, 63, 138, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--pink-300);
    border: 1px solid rgba(255, 107, 204, 0.5);
}

.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.card--stat {
    text-align: center;
}

.card--stat h3 {
    margin: 0;
    font-size: 1.9rem;
    color: #ffffff;
}

.card--stat p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.flip-card h3 {
    margin: 0 0 0.5rem;
}

.flip-card p {
    margin: 0;
    color: var(--muted);
}

.testimonial-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card--testimonial {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-body {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 0, 10, 0.95);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.footer-links a {
    color: var(--pink-300);
    text-decoration: none;
}

.footer-notice {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(7, 3, 12, 0.95);
    border-top: 1px solid rgba(255, 107, 204, 0.2);
    display: none;
    z-index: 50;
}

.bottom-tabs ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    height: 100%;
}

.bottom-tabs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.bottom-tabs li.is-active a {
    color: var(--pink-300);
}

.bottom-tabs svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .site-main {
        padding: 2rem 1.25rem 3rem;
    }

    .section {
        padding: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .nav-group {
        display: none;
    }

    .auth-links {
        display: flex;
    }

    .bottom-tabs {
        display: block;
    }

    .carousel-wrapper {
        padding: 0 1.25rem;
    }

    .card-flow {
        padding-right: calc(var(--card-flow-gap) * 2);
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-arrows .carousel-arrow:first-child {
        left: 0.25rem;
    }

    .carousel-arrows .carousel-arrow:last-child {
        right: 0.25rem;
    }

    .is-desktop-only {
        display: none !important;
    }

    .mobile-list {
        display: flex;
    }
}
