/* Modern Wellness Design System */
:root {
    /* Base Colors */
    --color-bg-body: #fbfbfd;
    --color-bg-alt: #f5f5f7;
    --color-bg-card: #ffffff;

    /* Text Colors */
    --color-text-headline: #111111;
    --color-text-body: #3a3a3c;
    --color-text-gray: #86868b;

    /* Brand Colors - Modern Blue/Teal Gradient */
    --color-accent: #0071e3;
    --color-accent-gradient: linear-gradient(135deg, #0071e3 0%, #4facfe 100%);

    /* Glassmorphism & UI */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 20px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

    /* Layout */
    --container-width: 1100px;
    --spacing-section: 6rem;
    --radius-l: 24px;
    --radius-m: 16px;

    /* Typography */
    --font-main: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

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

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    font-family: var(--font-main);
    line-height: 1.6;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-headline);
}

/* Typography Utilities */
.typography-hero {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--color-accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 20px 40px rgba(0, 113, 227, 0.15);
}

.typography-headline {
    color: var(--color-text-headline);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.typography-intro {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-text-body);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.9;
}

.typography-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.typography-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-headline);
    letter-spacing: -0.01em;
}

/* Navigation - Glassmorphism */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-logo {
    color: var(--color-text-headline);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 38px;
    width: auto;
    border-radius: 10px;
}

.nav-links a {
    color: var(--color-text-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: var(--color-accent);
    background: rgba(0, 113, 227, 0.08);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--color-bg-body);
    /* Subtle background gradient blob */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(79, 172, 254, 0.08) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-text-container {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto 5rem;
    padding: 0 24px;
    /* Synchronized motion */
    transform: translateY(calc(var(--scroll-y, 0px) * 0.3));
    opacity: calc(1 - (var(--scroll-y, 0px) / 400));
}

.hero-image-scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
    border-radius: var(--radius-l);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    /* Add a glass styling wrapper/border */
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.hero-image-parallax {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    /* Synchronized motion */
    transform: translateY(calc(var(--scroll-y, 0px) * -0.5));
    opacity: calc(1 - (var(--scroll-y, 0px) / 600));
    transition: transform 0.05s linear, opacity 0.05s linear;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-section:hover .hero-image {
    transform: scale(1.02);
}

.hero-scroll-mask {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, var(--color-bg-body) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    display: none;
    /* Removed mask for cleaner look */
}

/* Sections */
/* Sections */
.section-dark,
.section-alt,
.section-light {
    padding: var(--spacing-section) 0;
}

.section-dark {
    background-color: var(--color-bg-body);
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-light {
    background-color: #ffffff;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Symptom List */
/* Symptom List */
.symptom-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.symptom-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.symptom-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.2);
}

.check-icon {
    color: var(--color-accent);
    font-size: 1.25rem;
    background: rgba(0, 113, 227, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Headache/Feedback Section */
.headache-section {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-alt);
}

.headache-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.headache-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
}

.headache-image {
    width: 100%;
    height: auto;
}

.headache-description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Cause Grid */
/* Cause Grid */
.cause-section {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-body);
}

.cause-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.cause-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cause-item.reverse {
    direction: rtl;
}

.cause-item.reverse>* {
    direction: ltr;
}

.cause-image-wrapper {
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.cause-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.cause-image-wrapper:hover .cause-image {
    transform: scale(1.03);
}

.cause-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.cause-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-body);
    opacity: 0.9;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 4rem 0;
}

.bento-card {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--radius-l);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.bento-card.large {
    grid-column: span 2;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-content p {
    color: var(--color-text-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Warning Cards */
/* Warning Cards */
.warning-card {
    /* border-top removed as per user request */
}

.warning-grid .card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

/* About Cards - Features Section */
.about-card {
    position: relative;
    background: #222;
    color: #fff;
    border: none;
}

.about-card h3 {
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



/* Clinic Hours - Desktop & Mobile friendly */
/* Clinic Hours */
.clinic-hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
}

.clinic-hours-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--color-text-body);
    line-height: 1.6;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-bg-alt);
}

.clinic-hours-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-label {
    font-weight: 700;
    color: var(--color-text-headline);
    min-width: 90px;
    flex-shrink: 0;
}

.hours-label.closed {
    color: #ff3b30;
}

.hours-value {
    flex: 1;
    font-weight: 500;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.map-wrapper {
    border-radius: var(--radius-l);
    overflow: hidden;
    height: 500px;
    background: #f5f5f7;
    box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.2);
    transition: filter 0.3s;
}

.map-wrapper:hover iframe {
    filter: grayscale(0);
}

/* Footer */
footer {
    background: #111;
    color: #86868b;
    padding: 5rem 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.8;
}

footer p {
    margin-bottom: 8px;
}

/* Floating Buttons */
.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.61, 0.7, 1);
}

.floating-btn:hover {
    transform: scale(1.15);
}

.btn-call {
    background: var(--color-accent);
}

.btn-call svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.btn-kakao {
    background: #FEE500;
    overflow: hidden;
    padding: 0;
    border: none;
}

.btn-kakao img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-naver {
    background: #03C75A;
    width: 60px;
    height: 60px;
}

.btn-naver svg {
    width: 26px;
    height: 26px;
}

/* Animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-zoom-in {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s, transform 1.2s ease-out;
}

.scroll-fade.visible,
.scroll-scale.visible,
.scroll-reveal-left.visible,
.scroll-reveal-right.visible,
.scroll-zoom-in.visible {
    opacity: 1;
    transform: none;
}

/* Responsive - Mobile First Enhancement */
@media (max-width: 768px) {

    /* Typography */
    .typography-hero {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .typography-headline {
        font-size: 1.6rem;
    }

    .typography-intro {
        font-size: 1rem;
        line-height: 1.6;
    }

    .typography-label {
        font-size: 0.7rem;
    }

    /* Navigation */
    .global-nav {
        height: 50px;
    }

    .nav-logo {
        font-size: 1rem;
        gap: 8px;
    }

    .brand-logo {
        height: 32px;
    }

    .nav-links {
        display: none;
    }

    /* Hide desktop nav on mobile */
    .nav-content {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .hero-text-container {
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .hero-image {
        border-radius: 16px;
    }

    /* Section Spacing */
    .section-dark,
    .section-alt,
    .section-light {
        padding: 3rem 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Symptom List */
    .symptom-list {
        gap: 0.75rem;
    }

    .symptom-item {
        padding: 1rem;
        border-radius: 12px;
    }

    .symptom-item span {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .check-icon {
        font-size: 1.2rem;
    }

    /* Bento Grid */
    .bento-grid:not(.warning-grid) {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .bento-grid:not(.warning-grid) .bento-card {
        grid-column: span 1 !important;
        min-height: auto;
        padding: 1.5rem;
    }

    .bento-card.large {
        grid-column: span 1;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    /* Warning Grid - 1 column on mobile */
    .warning-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .warning-grid .bento-card {
        min-height: 250px;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 1rem;
    }

    .warning-grid .card-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .warning-grid .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }

    .warning-grid h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .warning-grid p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Headache/Feedback Section */
    .headache-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .headache-image-wrapper {
        border-radius: 16px;
    }

    .headache-description h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .headache-description p {
        font-size: 0.95rem;
    }

    /* Cause Grid */
    .cause-grid {
        gap: 3rem;
    }

    .cause-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .cause-item.reverse {
        direction: ltr;
    }

    .cause-image-wrapper {
        border-radius: 16px;
    }

    .cause-text h3 {
        font-size: 1.4rem;
    }

    .cause-text p {
        font-size: 0.95rem;
    }

    /* Insurance/Treatment Grid */
    .insurance-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .insurance-grid .bento-card:not(:first-child) {
        min-height: 350px;
    }

    /* Clinic Hours - Mobile */
    .clinic-hours-item {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(134, 134, 139, 0.2);
    }

    .clinic-hours-item:last-child {
        border-bottom: none;
    }

    .hours-label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .hours-value {
        font-size: 0.95rem;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .map-wrapper {
        min-height: 280px;
        border-radius: 16px;
    }

    /* Footer */
    footer {
        padding: 2.5rem 0;
        font-size: 11px;
    }

    footer p {
        margin-bottom: 8px;
    }

    /* Floating Buttons */
    .floating-actions {
        right: 12px;
        bottom: 12px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .btn-naver {
        width: 48px;
        height: 48px;
    }

    .btn-call svg {
        width: 20px;
        height: 20px;
    }

    .btn-naver svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra Small Devices (phones in portrait) */
@media (max-width: 480px) {
    .typography-hero {
        font-size: 1.8rem;
    }

    .typography-headline {
        font-size: 1.4rem;
    }

    .typography-intro {
        font-size: 0.95rem;
    }

    .hero-section {
        padding-top: 60px;
    }

    .section-dark,
    .section-alt,
    .section-light {
        padding: 2.5rem 0;
    }

    .symptom-item {
        padding: 0.8rem;
    }

    .symptom-item span {
        font-size: 0.9rem;
    }

    .bento-card {
        padding: 1.2rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .warning-grid .bento-card {
        padding: 1rem;
    }

    .warning-grid .card-icon {
        font-size: 1.8rem;
    }

    .warning-grid h3 {
        font-size: 0.9rem;
    }

    .warning-grid p {
        font-size: 0.8rem;
    }

    .cause-text h3 {
        font-size: 1.2rem;
    }

    .cause-text p {
        font-size: 0.9rem;
    }

    .map-wrapper {
        min-height: 220px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
    }

    .btn-naver {
        width: 44px;
        height: 44px;
    }

    .btn-call svg,
    .btn-naver svg {
        width: 18px;
        height: 18px;
    }
}

.insurance-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}/* Treatment Cards */
.treatment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem !important;
}

.treatment-card::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(0, 113, 227, 0.05);
    /* Very subtle watermark */
    z-index: 0;
    line-height: 1;
    font-family: var(--font-main);
    pointer-events: none;
}

.treatment-card .card-content {
    position: relative;
    z-index: 2;
}

.treatment-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.treatment-card p {
    font-size: 1rem !important;
    color: var(--color-text-body);
}