:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #6c757d;
    --bg-dark: #0a0e14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --accent: #00f2fe;
    --gradient: linear-gradient(135deg, #0066ff 0%, #00f2fe 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Top Announcement Banner */
.top-announcement {
    background: #0f172a;
    color: #cbd5e1;
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1001;
    position: relative;
}

.top-announcement strong {
    color: #f8fafc;
    font-weight: 700;
}

.top-announcement p {
    margin: 0;
    letter-spacing: -0.01em;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header > .container {
    padding: 15px 0;
}

.top-announcement {
    background: #0f172a;
    color: #cbd5e1;
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.header-logo {
    height: 70px;
    width: auto;
    display: block;
    transform: scale(1.35);
    transform-origin: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-blog-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-blog-link:hover {
    color: var(--accent);
}

.nav-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.nav-nudge {
    font-size: 0.75rem;
    color: #00ff88;
    font-weight: 800;
    letter-spacing: -0.2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Hero Section */
.hero {
    padding: 250px 0 100px;
    position: relative;
    background: radial-gradient(circle at 80% 30%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.hero-content {
    flex: 1.3;
}

.hero-image {
    flex: 0.7;
    display: flex;
    justify-content: center;
}

.profile-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.profile-frame:hover img {
    transform: scale(1.03);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
    word-break: keep-all;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    word-break: keep-all;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px; /* 30% 이상 크게 조정 */
    background: linear-gradient(90deg, #0066ff, #00f2fe, #0066ff);
    background-size: 200% auto;
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.3rem; /* 30% 크게 조정 */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible; /* 손가락이 밖으로 나가야 하므로 visible */
    animation: flow-gradient-lr 3s linear infinite, pulse-glow 2s infinite;
}

@keyframes flow-gradient-lr {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4); }
    50% { box-shadow: 0 0 25px 15px rgba(0, 102, 255, 0.15); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

.finger-icon {
    position: absolute;
    right: -45px;
    top: 50%;
    width: 38px !important;
    height: 38px !important;
    color: #ffde00 !important;
    display: block !important;
    transform: translateY(-50%) rotate(-90deg) scaleX(-1); /* 진짜 상하반전으로 수정 */
    animation: finger-poke 0.8s infinite;
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

@keyframes finger-poke {
    0% { transform: translateY(-50%) rotate(-90deg) scaleX(-1) translateY(0); }
    50% { transform: translateY(-50%) rotate(-90deg) scaleX(-1) translateY(15px); }
    100% { transform: translateY(-50%) rotate(-90deg) scaleX(-1) translateY(0); }
}

.btn-sm {
    padding: 14px 28px;
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: none;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.nav-cta-wrapper {
    position: relative;
    overflow: visible !important; /* 헤더에서도 손가락이 보여야 함 */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Trust Section */
.trust-chain {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.notice-badge {
    display: inline-block;
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.trust-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-detail {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.case-detail strong {
    color: var(--accent);
    font-weight: 700;
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(0, 102, 255, 0.5);
}

.trust-card .icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--accent);
}

.trust-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.trust-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.link-text {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-blog-btn {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-blog-btn:hover {
    background: rgba(0, 102, 255, 0.1);
    color: white;
    border-color: var(--primary);
}

/* Expert Action */
.expert-action {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(255, 255, 255, 0.03);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
}

.action-image img {
    width: 100%;
    height: auto;
    display: block;
}

.action-content {
    flex: 1.2;
}

.action-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.action-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.action-stats {
    display: flex;
    gap: 40px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.process-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-num {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
}

.process-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.process-item h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.process-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.process-arrow {
    color: rgba(255, 255, 255, 0.1);
}

/* Diagnosis Section & Form */
.diagnosis-section {
    padding: 100px 0;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 60px;
    margin-bottom: 100px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.step {
    display: none; /* 기본적으로 숨김 */
}

.step.active {
    display: block; /* 활성화된 단계만 표시 */
    animation: fadeIn 0.5s ease;
}

.success-highlight {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.success-highlight p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.5;
}

.success-highlight strong {
    color: #00ff88;
}

.success-card-view {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.final-biz-card {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-card-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-wrapper:hover .profile-card-img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.profile-stack {
    position: relative;
    padding-bottom: 60px;
}

.paper-card-float {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 280px;
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: all 0.5s ease;
}

.paper-card-float img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stack:hover .paper-card-float {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px) scale(1.05);
    right: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -15px;
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08) !important; /* 다시 어둡게 수정 */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12) !important;
}

select option {
    background: #1a1f26;
    color: white;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* Floating Kakao Button */
.floating-kakao {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999999 !important;
    background: #fee500;
    color: #3c1e1e;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.floating-kakao:hover {
    transform: scale(1.05) translateY(-5px);
}

.floating-kakao img {
    width: 24px;
    height: 24px;
}

.form-actions, .form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* 1단계처럼 버튼이 하나일 때는 오른쪽 정렬 */
.step:first-child .form-actions {
    justify-content: flex-end;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #05070a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-number-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    margin-top: 10px;
}

.mobile-label {
    color: var(--accent);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .process-grid {
        justify-content: center;
    }
    .process-arrow {
        display: none;
    }
    .expert-action {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .action-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 160px 0 80px;
    }
    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    .hero-image {
        width: 100%;
        max-width: 250px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .floating-kakao span {
        display: none;
    }
    .floating-kakao {
        padding: 15px;
        right: 20px;
        bottom: 20px;
    }
}
