/* hwagryul.com - Medical Clean Teal */
/* Palette: #f8fffe, #ffffff, #0d9488, #ccfbf1, #1e293b, #e2e8f0, #16a34a, #d97706 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fffe;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* ===== HERO SECTION (0-100vh) ===== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* CSS Cross Medical Mark */
.cross-mark {
    width: 32px;
    height: 32px;
    position: relative;
    margin-bottom: 1.5rem;
}

.cross-mark::before,
.cross-mark::after {
    content: '';
    position: absolute;
    background: #0d9488;
    border-radius: 1px;
}

.cross-mark::before {
    width: 6px;
    height: 32px;
    left: 13px;
    top: 0;
}

.cross-mark::after {
    width: 32px;
    height: 6px;
    top: 13px;
    left: 0;
}

.brand {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: #1e293b;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.9rem;
    color: #0d9488;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-metric {
    margin-top: 2.5rem;
    text-align: center;
    background: #ffffff;
    padding: 2rem 3rem;
    border-radius: 8px;
    border-left: 3px solid #0d9488;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
}

.metric-val {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 3rem;
    color: #0d9488;
    display: block;
    line-height: 1.1;
}

.metric-unit {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    display: block;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

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

.hero-stat-val {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #1e293b;
    display: block;
}

.hero-stat-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-top: 0.25rem;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #0d9488, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== DATA SECTION (100-260vh) ===== */

.data-section {
    padding: 4rem 1.5rem 6rem;
}

.data-container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.section-header:first-child {
    margin-top: 0;
}

/* Pill-shaped decorative bullet */
.pill-bullet {
    width: 20px;
    height: 8px;
    background: #0d9488;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
}

/* Teal-bordered data panels */
.data-panel {
    background: #ffffff;
    border-left: 3px solid #0d9488;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.data-panel:hover {
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
    transform: translateX(2px);
}

.data-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

/* Thin teal horizontal divider */
.teal-divider {
    height: 1px;
    background: #ccfbf1;
    margin-bottom: 0.75rem;
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-key {
    font-size: 0.8rem;
    color: #64748b;
    flex: 1;
}

.data-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    text-align: right;
}

/* ===== COMPOUNDS SECTION (260-340vh) ===== */

.compounds-section {
    padding: 4rem 1.5rem 6rem;
    background: #ffffff;
}

.compounds-container {
    max-width: 720px;
    margin: 0 auto;
}

/* Compound table */
.compound-table {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.compound-header {
    display: flex;
    padding: 0.75rem 1.25rem;
    background: #f8fffe;
    border-bottom: 2px solid #0d9488;
}

.compound-col {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.compound-col-name {
    flex: 2;
}

.compound-col-rate {
    flex: 1;
    text-align: center;
}

.compound-col-phase {
    flex: 1;
    text-align: center;
}

.compound-col-status {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.compound-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.compound-row:last-child {
    border-bottom: none;
}

.compound-row:hover {
    background: #f8fffe;
}

.compound-row .compound-col {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.compound-row .compound-col-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #0d9488;
}

.compound-row .compound-col-rate {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Status indicators */
.status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status.approved {
    background: #16a34a;
}

.status.pending {
    background: #d97706;
}

.status-text {
    font-size: 0.75rem;
    color: #1e293b;
}

/* Compound summary cards */
.compound-summary {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.summary-card {
    background: #f8fffe;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    max-width: 180px;
}

.summary-val {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #1e293b;
}

.summary-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.summary-card .status {
    margin-top: 0.25rem;
}

/* ===== COMPLIANCE FOOTER (340vh+) ===== */

.compliance-section {
    padding: 5rem 2rem;
    text-align: center;
    background: #f8fffe;
    border-top: 1px solid #e2e8f0;
}

.compliance-content {
    max-width: 480px;
    margin: 0 auto;
}

/* Small cross for footer */
.cross-small {
    width: 20px;
    height: 20px;
    margin: 0 auto 1.5rem;
}

.cross-small::before {
    width: 4px;
    height: 20px;
    left: 8px;
    top: 0;
}

.cross-small::after {
    width: 20px;
    height: 4px;
    top: 8px;
    left: 0;
}

.compliance-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.compliance-disclaimer {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
}

.compliance-divider {
    width: 40px;
    height: 1px;
    background: #0d9488;
    margin: 1.5rem auto;
}

.compliance-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.compliance-meta-item {
    font-size: 0.7rem;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.compliance-meta-sep {
    width: 3px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 50%;
}

.compliance-brand {
    font-size: 0.75rem;
    color: #0d9488;
    letter-spacing: 0.02em;
}

/* ===== ANIMATIONS ===== */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for compound rows */
.compound-row {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.compound-row.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero-metric {
        padding: 1.5rem 2rem;
    }

    .metric-val {
        font-size: 2.5rem;
    }

    .compound-header,
    .compound-row {
        padding: 0.6rem 0.75rem;
    }

    .compound-col {
        font-size: 0.65rem;
    }

    .compound-row .compound-col {
        font-size: 0.75rem;
    }

    .compound-col-phase {
        display: none;
    }

    .compound-summary {
        flex-direction: column;
        align-items: center;
    }

    .summary-card {
        max-width: 100%;
        width: 100%;
    }

    .compliance-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .compliance-meta-sep {
        display: none;
    }

    .data-panel {
        padding: 1.25rem;
    }
}
