@font-face {
    font-family: 'SUIT';
    src: url('../fonts/SUIT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: 'SUIT', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Shared pastel hero styling */
.soft-hero {
    background: linear-gradient(140deg, #eef2ff 0%, #f8fafc 45%, #e0f2fe 100%);
    color: #0f172a;
    position: relative;
    overflow: hidden;
}

.soft-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 80% 18%, rgba(186, 230, 253, 0.55), rgba(255, 255, 255, 0) 65%),
                radial-gradient(circle at 50% 100%, rgba(209, 213, 255, 0.5), rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
    z-index: 0;
}

.soft-hero::after {
    content: '';
    position: absolute;
    inset: -120px -100px;
    background: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.18), transparent 60%);
    opacity: 0.6;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-bubble {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.24), transparent 65%);
    opacity: 0.65;
    filter: blur(0);
    animation: floatLarge 8s ease-in-out infinite;
    z-index: 0;
}

.hero-bubble.secondary {
    background: radial-gradient(circle at 60% 40%, rgba(14, 165, 233, 0.24), transparent 60%);
    animation-delay: 1.5s;
}

@keyframes floatLarge {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(10px, -14px, 0); }
}

.glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(148, 163, 184, 0.22);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 246, 255, 0.9) 100%);
    backdrop-filter: blur(18px);
    border-radius: 32px;
    box-shadow: 0 35px 80px -40px rgba(79, 70, 229, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.feature-card-blue {
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
}

.feature-card-cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #bae6fd 100%);
}

.feature-card-purple {
    background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%);
}

.feature-card-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card-blue .feature-card-number {
    color: #2563eb;
}

.feature-card-cyan .feature-card-number {
    color: #0891b2;
}

.feature-card-purple .feature-card-number {
    color: #7c3aed;
}

/* Prevent awkward mid-word breaks in smart factory copy blocks */
.smart-text :is(p, li, h1, h2, h3, h4, h5, span, strong) {
    word-break: keep-all;
}

.family-tab {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    color: #475569;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.family-tab.active {
    border-color: #fb7185;
    color: #dc2626;
    background: #fff7ed;
    box-shadow: 0 15px 25px -12px rgba(251, 113, 133, 0.45);
}

.family-panel {
    display: none;
}

.family-panel.active {
    display: block;
}

@media (max-width: 1023px) {
    .family-tab-list {
        position: sticky;
        top: 1rem;
        z-index: 10;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

.family-spec-table th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    background: #f8fafc;
}

.family-spec-table th,
.family-spec-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.family-spec-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .soft-hero {
        background: linear-gradient(150deg, #eef2ff 0%, #f8fafc 55%, #e0f2fe 100%);
    }

    .hero-bubble,
    .hero-bubble.secondary {
        display: none;
    }

    .glass-chip {
        gap: 0.5rem;
        padding: 0.6rem 1.2rem;
    }
}
