/* CSS Reset & Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent-primary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-gradient-text: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    word-break: keep-all;  /* 한국어 어절 단위 줄바꿈 — 단어 중간 짤림 방지 */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Button Styles */
.btn-primary, .btn-secondary, .btn-primary-sm, .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 16px;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary-sm {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-primary-sm:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 24px;
}

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

.nav-links a:not(.btn-primary-sm) {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 40%, rgba(10, 10, 10, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 56px;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-visual {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    perspective: 1000px;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-panel:hover {
    transform: rotateX(0deg);
}

.dashboard-preview {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Generic Section Styles */
.section {
    padding: 120px 0;
}

.bg-darker {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    word-break: keep-all;
    text-wrap: balance;
}

/* Problems / Challenges Section */
.cards-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-normal);
}

.challenge-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.challenge-state {
    padding: 24px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.challenge-state p {
    color: var(--text-secondary);
    font-size: 15px;
}

.challenge-state strong {
    color: var(--text-primary);
}

.state-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.state-header h3 {
    font-size: 18px;
}

.icon-red { color: #ef4444; font-size: 24px; }
.icon-green { color: #10b981; font-size: 24px; }

.challenge-divider {
    text-align: center;
    padding: 16px 0;
    color: var(--text-muted);
    font-size: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Workflow Section */
.step-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.process-card:hover::before {
    opacity: 1;
}

.process-header {
    margin-bottom: 20px;
}

.process-header h3 {
    font-size: 24px;
    margin-top: 12px;
}

.process-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.process-list {
    list-style: none;
}

.process-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.process-list i {
    color: var(--accent-primary);
    font-size: 20px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 1), rgba(18, 18, 18, 1));
    border-top: 1px solid var(--border-color);
}

.cta-container {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.cta-container h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-container p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.footer-info {
    text-align: right;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-container h2 {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

/* ===== 6단계 원형 노드 플로우 (메인 랜딩 이식) ===== */
.flow {
    list-style: none;
    margin: 0 0 72px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 12px;
}
.flow-node { position: relative; text-align: center; padding: 0 6px; }
.flow-dot {
    position: relative; z-index: 1;
    width: 58px; height: 58px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    color: #93c5fd;
    font-size: 21px; font-weight: 800;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
}
.flow-node + .flow-node::before {
    content: ""; position: absolute; z-index: 0;
    top: 29px; right: calc(50% + 29px);
    width: calc(100% - 58px + 12px); height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-primary) 0 6px, transparent 6px 12px);
    opacity: 0.7;
}
.flow-node h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--text-primary); }
.flow-node p { margin: 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }

@media (max-width: 900px) {
    .flow { display: block; margin-bottom: 56px; }
    .flow-node {
        display: grid; grid-template-columns: 58px 1fr; column-gap: 18px;
        text-align: left; padding: 0 0 28px;
    }
    .flow-dot { margin: 0; grid-row: 1 / 3; }
    .flow-node h4 { align-self: center; }
    .flow-node p { grid-column: 2; }
    .flow-node + .flow-node::before { display: none; }
    .flow-node:not(:last-child)::after {
        content: ""; position: absolute; left: 28px; top: 64px;
        width: 2px; height: calc(100% - 70px);
        background: repeating-linear-gradient(180deg, var(--accent-primary) 0 6px, transparent 6px 12px);
        opacity: 0.7;
    }
}

/* ===== Case Study 통계 (메인 랜딩 이식) ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
}
.case-stat { border-top: 2px solid var(--accent-primary); padding-top: 18px; }
.case-stat b {
    display: block;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.case-stat b em { font-style: normal; font-size: 0.55em; font-weight: 700; margin-left: 2px; }
.case-stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-secondary); }

@media (max-width: 900px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .case-grid { grid-template-columns: 1fr; }
}

/* ===== Partners ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.partner-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 24px 32px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}
.partner-chip:hover { transform: translateY(-3px); }
.partner-chip img {
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
    filter: none;
}
.partner-chip img.logo-square { max-height: 84px; }
@media (max-width: 700px) {
    .partners-grid { grid-template-columns: 1fr; max-width: 320px; }
    .partner-chip { height: 92px; }
}
