/* SignPix Premium Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');
#stt-button{ display: none; }
:root {
    /* Brand Colors */
    --brand-primary: #0F172A;
    /* Navy for deep contrast */
    --brand-blue: #2563EB;
    /* Vibrant primary blue */
    --brand-blue-light: #E0F2FE;
    --brand-mint: #10B981;
    /* Success/Green accent */
    --brand-yellow: #FEE500;
    /* Kakao Yellow */

    /* Backgrounds */
    --bg-page: #F8FAFC;
    /* Slate-50 */
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.9);

    /* Typography */
    --text-heading: #1E293B;
    /* Slate-800 */
    --text-body: #475569;
    /* Slate-600 */
    --text-muted: #94A3B8;
    /* Slate-400 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-heading);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 150px;
    /* Safe space for sticky CTA */
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------
   Hero Section
------------------------------------------- */
.hero-section {
    position: relative;
    padding: 80px 20px 60px;
    background: radial-gradient(circle at top center, #F1F5F9 0%, #FFFFFF 60%, #F8FAFC 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    /* Blue tint */
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-heading);
    position: relative;
    z-index: 1;
    word-break: keep-all;
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--brand-blue) 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-body);
    font-weight: 400;
    margin-bottom: 32px;
    word-break: keep-all;
}

.hero-description {
    background: var(--bg-white);
    border: 1px solid var(--brand-blue-light);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: inline-block;
    max-width: 600px;
    width: 100%;
}

.hero-description p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading);
}

.hero-description p:first-child {
    color: var(--brand-blue);
    font-weight: 700;
}

/* -------------------------------------------
   Problem Section
------------------------------------------- */
.problem-section {
    margin-top: 40px;
    perspective: 1000px;
}

.problem-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease;
}

.problem-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.problem-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

.card-soft {
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------
   CTA Middle Section
------------------------------------------- */
.cta-section {
    margin-top: 60px;
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1E3A8A 100%);
    border-radius: 32px;
    color: white;
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.cta-now {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 400;
}

.cta-brand {
    font-size: 1.3em;
    color: var(--brand-mint);
    /* Pop color */
    display: block;
    margin: 4px 0;
}

.cta-action {
    display: block;
    margin-top: 8px;
    font-size: 1em;
}

/* -------------------------------------------
   Features Grid
------------------------------------------- */
.features-section {
    background-color: var(--bg-white);
    padding-top: 80px;
    padding-bottom: 40px;
}

.section-intro {
    font-size: 18px;
    color: var(--text-body);
    font-weight: 500;
    word-break: keep-all;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.service-badge i {
    font-size: 1.2em;
}

/* Feature Cards (Blue) */
.feature-card.blue-card {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border-radius: 20px;
    padding: 24px 16px;
    height: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-card.blue-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(4px);
}

.feature-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
}

.feature-card-text {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
    word-break: keep-all;
}

/* Service Detail Cards */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--brand-blue);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--brand-blue);
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.service-card-text {
    font-size: 15px;
    color: var(--text-body);
    margin: 0;
}

/* Step Cards */
.step-card {
    background: var(--bg-white);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px 16px;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--brand-blue);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-body);
    word-break: keep-all;
}

/* Benefit Cards */
.benefit-card {
    background: var(--bg-white);
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    padding: 20px 16px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--brand-mint);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 32px;
    color: var(--brand-blue);
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    text-align: center;
}

.benefit-desc {
    font-size: 12px;
    color: var(--text-body);
    text-align: center;
    word-break: keep-all;
    line-height: 1.5;
    margin: 0;
}

/* Sticky CTA - Mobile optimized */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding: 16px 0 32px;
    /* Extra bottom padding for safe area */
    z-index: 1000;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-premium {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-premium:active {
    transform: scale(0.95);
}

.btn-call {
    background: var(--brand-primary);
    color: white;
}

.btn-kakao {
    background: #FEE500;
    color: #3c1e1e;
}

.btn-smart {
  grid-column: span 2;
  background: var(--brand-mint);
  color: white;
}

/* -------------------------------------------
   Animations
------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* JS handles this, but default hidden */
}

/* JS override will handle opacity via IntersectionObserver, 
   but we keep keyframes valid for fallback */
.fade-in-up[style*="opacity: 1"] {
    animation: none;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

/* -------------------------------------------
   Responsive Tweaks
------------------------------------------- */
@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 22px;
    }

    .d-sm-flex {
        flex-direction: column;
    }

    .btn-pill,
    .btn-kakao {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .sticky-cta {
        padding: 12px 0 20px;
    }
}