/* ==============================================================================
   FIRST CURTAIN & BLIND (퍼스트) - Ultra-Clean Precision Design System
   Concept: Modern Architectural Minimalist & Zero-Noise Editorial Layout
   Palette: Pure White (#FFFFFF), Crisp Surface (#F8FAFC), Slate Navy (#0F172A), Electric Cobalt (#2563EB)
   Performance: Core Web Vitals (LCP, CLS, INP) 100% Calibrated
   ============================================================================== */

:root {
    --bg-page: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F5F9;
    --bg-dark: #0F172A;
    --bg-subtle-blue: #EFF6FF;

    --text-strong: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-white: #FFFFFF;

    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --primary-soft: rgba(37, 99, 235, 0.08);

    --border-light: #E2E8F0;
    --border-subtle: #F1F5F9;
    --border-primary: rgba(37, 99, 235, 0.2);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.12);

    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

/* ------------------------------------------------------------------------------
   1. Ultra-Clean Header
   ------------------------------------------------------------------------------ */
.first-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    height: 64px;
    transition: all 0.2s ease;
}

.first-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.first-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-strong);
}

.first-brand-badge {
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
}

.first-brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-strong);
}

.first-brand-title span {
    color: var(--primary);
}

.first-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.first-quick-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.first-quick-call:hover {
    background: var(--bg-hover);
    border-color: var(--primary-light);
    color: var(--primary);
}

.first-quick-call i {
    color: var(--primary);
    font-size: 12px;
}

.tel-img {
    vertical-align: middle;
    display: inline-block;
    height: 18px;
    width: auto;
    max-height: 20px;
    object-fit: contain;
}

/* ------------------------------------------------------------------------------
   2. Breadcrumbs & Container
   ------------------------------------------------------------------------------ */
.first-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.first-breadcrumb {
    padding: 16px 0 10px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.first-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.first-breadcrumb a:hover {
    color: var(--primary);
}

.first-breadcrumb .sep {
    color: var(--text-light);
    font-size: 10px;
}

.first-breadcrumb .current {
    color: var(--text-strong);
    font-weight: 600;
}

/* ------------------------------------------------------------------------------
   3. Bold Minimalist Hero Section (CLS Zero 방어)
   ------------------------------------------------------------------------------ */
.first-hero {
    padding: 32px 0 44px;
    border-bottom: 1px solid var(--border-light);
}

.first-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.first-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.first-hero-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-primary);
}

.first-hero-pill i {
    font-size: 11px;
}

.first-headline {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.8px;
    color: var(--text-strong);
}

.first-subtext {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.75;
}

/* Minimal Stat Grid in Hero */
.first-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.first-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.first-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.first-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
}

.first-stat-val span {
    color: var(--primary);
}

.first-hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.first-btn-primary {
    background: var(--primary);
    color: var(--text-white);
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.first-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.first-btn-outline {
    background: var(--bg-card);
    color: var(--text-strong);
    border: 1px solid var(--border-light);
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.first-btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-strong);
}

/* Hero Visual Frame (16:9 비율 고정 - 찌그러짐 0% 및 CLS 방지) */
.first-hero-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.first-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.first-hero-visual:hover img {
    transform: scale(1.02);
}

.first-visual-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.first-visual-tag i {
    color: #60A5FA;
}

/* ------------------------------------------------------------------------------
   4. Minimalist Section Architecture (성능 최적화: content-visibility)
   ------------------------------------------------------------------------------ */
.first-section {
    padding: 52px 0;
    border-bottom: 1px solid var(--border-light);
    content-visibility: auto;
    contain-intrinsic-size: 1px 450px;
}

.first-section-header {
    margin-bottom: 28px;
}

.first-section-subtitle {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.first-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-strong);
    line-height: 1.4;
}

.first-section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.65;
}

/* ------------------------------------------------------------------------------
   5. Clean Cards & Dual Grid
   ------------------------------------------------------------------------------ */
.first-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.first-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.first-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.first-card-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--text-strong);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.first-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 10px;
    line-height: 1.4;
}

.first-card-body {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.7;
    flex-grow: 1;
}

/* ------------------------------------------------------------------------------
   6. 3-Step & 4D Flow Grid
   ------------------------------------------------------------------------------ */
.first-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.first-flow-step {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
    transition: border-color 0.2s;
}

.first-flow-step:hover {
    border-color: var(--border-primary);
}

.first-flow-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.first-flow-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.first-flow-desc {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.65;
}

/* ------------------------------------------------------------------------------
   7. Clean Gallery Showcase (1:1 비율 고정 - 찌그러짐 0%)
   ------------------------------------------------------------------------------ */
.first-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.first-gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    aspect-ratio: 1 / 1;
    position: relative;
    width: 100%;
}

.first-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.first-gallery-item:hover img {
    transform: scale(1.04);
}

.first-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
    color: var(--text-white);
    font-size: 12px;
    font-weight: 600;
}

/* ------------------------------------------------------------------------------
   8. Minimalist FAQ Accordion
   ------------------------------------------------------------------------------ */
.first-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.first-faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.first-faq-item:hover {
    border-color: var(--border-primary);
}

.first-faq-q {
    padding: 16px 20px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-strong);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.first-faq-q i {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.first-faq-a {
    padding: 0 20px 16px;
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.75;
    border-top: 1px dashed var(--border-light);
    padding-top: 14px;
}

/* ------------------------------------------------------------------------------
   9. Clean Cross Links (Tags & Hubs)
   ------------------------------------------------------------------------------ */
.first-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.first-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.15s ease;
}

.first-chip:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.first-chip.active {
    background: var(--text-strong);
    color: var(--text-white);
    border-color: var(--text-strong);
}

/* ------------------------------------------------------------------------------
   10. Minimalist Footer
   ------------------------------------------------------------------------------ */
.first-footer {
    padding: 44px 0 92px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.first-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
}

.first-footer-info strong {
    color: var(--text-strong);
}

.first-footer-tel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.first-footer-copy {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* ------------------------------------------------------------------------------
   11. Sticky Bottom Dock (Mobile Safe Area 완벽 대응)
   ------------------------------------------------------------------------------ */
.first-sticky-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 10px 20px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 99;
}

.first-sticky-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.first-sticky-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-strong);
}

.first-sticky-text span {
    color: var(--primary);
    font-weight: 800;
}

.first-sticky-btn {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.first-sticky-btn:hover {
    background: var(--primary-dark);
}

/* ------------------------------------------------------------------------------
   12. Responsive Breakpoints (CSS 깨짐 & 찌그러짐 원천 차단)
   ------------------------------------------------------------------------------ */
@media (max-width: 900px) {
    .first-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .first-headline {
        font-size: 26px;
    }
    .first-dual-grid {
        grid-template-columns: 1fr;
    }
    .first-flow-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .first-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .first-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .first-footer-tel {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .first-headline {
        font-size: 22px;
        line-height: 1.35;
    }
    .first-stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .first-hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .first-btn-primary, .first-btn-outline {
        width: 100%;
        justify-content: center;
    }
    .first-flow-grid {
        grid-template-columns: 1fr !important;
    }
    .first-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .first-header-inner {
        padding: 0 16px;
    }
    .first-brand-title {
        font-size: 16px;
    }
    .first-brand-title span {
        display: none;
    }
    .first-sticky-text {
        font-size: 12px;
    }
    .first-sticky-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}
