/* ==========================================================================
   Ling-Plan CSS Design System (B2B SaaS Theme - Dark Mode) - V3 Final
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --color-bg-base: #030712;       /* 초다크 배경 */
    --color-bg-deep: #0B0F19;       /* 메인 깊은 배경 */
    --color-bg-card: rgba(17, 24, 39, 0.7); /* 글래스모피즘 카드 배경 */
    --color-bg-input: #1f2937;
    
    --color-primary: #3b82f6;       /* 로얄 블루 */
    --color-secondary: #6366f1;     /* 인디고 */
    --color-cyan: #06b6d4;          /* 일렉트릭 시안 (악센트) */
    --color-cyan-glow: rgba(6, 182, 212, 0.15);
    
    --color-text-primary: #f9fafb;   /* 화이트 슬레이트 */
    --color-text-secondary: #cbd5e1; /* 밝은 회색 */
    --color-text-muted: #94a3b8;     /* 뮤티드 그레이 */
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-focus: rgba(6, 182, 212, 0.5);
    
    --font-sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
    --shadow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
}

/* Base Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    letter-spacing: -0.015em;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--color-text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Layout Classes */
.text-center { text-align: center; }
.section-header {
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Badges */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
}

.badge-accent {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.btn-secondary-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

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

.btn-tertiary {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-tertiary:hover {
    color: var(--color-text-primary);
}

.btn-cyan {
    background: var(--color-cyan);
    color: #000000;
    box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 8px 16px -8px rgba(6, 182, 212, 0.6);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Premium Card Styles (Glassmorphism) */
.premium-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

/* Ambient Glow Spheres */
.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -50px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--color-cyan);
    top: 300px;
    left: -200px;
}

.glow-3 {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    top: 30%;
    right: -200px;
}

.glow-4 {
    width: 450px;
    height: 450px;
    background: var(--color-cyan);
    bottom: -100px;
    left: 20%;
}

/* ==========================================================================
   Header Style
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--color-cyan);
}

.logo-text span {
    color: var(--color-cyan);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.main-nav a:hover {
    color: var(--color-text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 140px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, #0c1224 0%, var(--color-bg-base) 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    box-shadow: var(--shadow-cyan);
    animation: pulse-glow 2s infinite;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.trust-item i {
    color: var(--color-cyan);
    width: 18px;
    height: 18px;
}

/* Hero Visual Panel (Session Plan Preview) */
.hero-visual {
    position: relative;
    z-index: 1;
}

.preview-card {
    border-color: rgba(255, 255, 255, 0.12);
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.card-title-bar {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--color-text-muted);
}

.status-indicator {
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Document Style Preview inside Card */
.doc-preview {
    background: #0d111d;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.doc-tag {
    color: var(--color-cyan);
    font-weight: 600;
}

.doc-date {
    color: var(--color-text-muted);
}

.doc-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.doc-section {
    margin-bottom: 1.25rem;
}

.doc-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-title i {
    width: 16px;
    height: 16px;
    color: var(--color-cyan);
}

.skeleton-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.full { width: 100%; }
.skeleton-line.seventy { width: 70%; }

.timeline-step {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 6px;
    font-size: 0.825rem;
    border-left: 2px solid var(--color-cyan);
    line-height: 1.5;
}

.step-time {
    color: var(--color-cyan);
    font-weight: 700;
    min-width: 55px;
}

.step-desc {
    color: var(--color-text-secondary);
}

/* Material Preview styling in Hero Section */
.material-preview-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
}

.mat-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0 0 0 var(--border-radius-sm);
}

.mat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mat-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.mat-items-row {
    display: flex;
    gap: 0.5rem;
}

.mat-item-chip {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.feedback-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background: rgba(6, 182, 212, 0.05);
    border-left: 2px solid var(--color-cyan);
    padding: 0.75rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    line-height: 1.5;
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-section {
    padding: 100px 0;
    background-color: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.problem-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.problem-card:nth-child(2) .problem-icon-wrapper {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-secondary);
}

.problem-card:nth-child(3) .problem-icon-wrapper {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-cyan);
}

.problem-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.problem-card p {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Solution Section (AI Automation Simulator)
   ========================================================================== */
.solution-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.debate-container {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Steps Header for AI debate */
.debate-steps-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.debate-steps-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.step-indicator {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.step-indicator.active {
    opacity: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.step-indicator.active .step-num {
    background: var(--color-bg-base);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: var(--shadow-cyan);
}

.step-label {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Board Styling */
.debate-board {
    display: flex;
    flex-direction: column;
    height: 570px;
    border-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(17, 24, 39, 0.9);
}

.board-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
}

.pulse-dot.active {
    background-color: var(--color-cyan);
    box-shadow: var(--shadow-cyan);
    animation: pulse-glow 1.5s infinite;
}

.board-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    flex-grow: 1;
    overflow: hidden;
}

/* Left: Processing flow */
.chat-flow-panel {
    border-right: 1px solid var(--color-border);
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(10, 15, 30, 0.5);
    position: relative;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.empty-chat-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--color-text-secondary);
    padding: 2rem;
}

.empty-chat-message i {
    width: 48px;
    height: 48px;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-chat-message p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.empty-chat-message strong {
    color: var(--color-cyan);
}

/* Active Message Bubbles */
.message-bubble {
    display: flex;
    gap: 0.75rem;
    animation: message-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.avatar-planner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.avatar-critic {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
}

.avatar-mediator {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.message-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 85%;
}

.agent-name-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.message-text {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) var(--border-radius-md);
    font-size: 0.85rem;
    color: var(--color-text-primary);
    line-height: 1.55;
}

/* Specific styling for critic's harsh feedback */
.avatar-critic + .message-body .message-text {
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.03);
}

/* Specific styling for mediator */
.avatar-mediator + .message-body .message-text {
    border-color: rgba(16, 185, 129, 0.15);
    background: rgba(16, 185, 129, 0.03);
}

/* Right: Live Result Panel with Tabs */
.live-result-panel {
    background: rgba(15, 23, 42, 0.9);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.result-tabs-container {
    padding: 1rem 1.25rem 0 1.25rem;
    background: rgba(17, 24, 39, 0.5);
    border-bottom: 1px solid var(--color-border);
}

.result-tabs {
    display: flex;
    gap: 0.5rem;
}

.result-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.result-tab-btn i {
    width: 16px;
    height: 16px;
}

.result-tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

.result-tab-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.result-tab-btn:hover:not(:disabled):not(.active) {
    color: var(--color-text-primary);
}

.result-body {
    flex-grow: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.empty-result {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
}

/* Document Generation Live Effects */
.sim-doc {
    background: #ffffff;
    color: #1e293b;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    font-size: 0.825rem;
    animation: result-fade-in 0.5s ease forwards;
}

.sim-doc-header {
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.sim-doc-header h4 {
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sim-doc-meta {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.75rem;
}

.sim-doc-sec {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    animation: section-reveal 0.5s ease forwards;
}

.sim-doc-sec.delay-1 { animation-delay: 0.2s; }
.sim-doc-sec.delay-2 { animation-delay: 0.4s; }

.sim-sec-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
    border-left: 3px solid var(--color-primary);
    padding-left: 0.5rem;
}

.sim-doc-sec p {
    color: #334155;
    line-height: 1.5;
}

.sim-timeline-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.sim-timeline-box strong {
    color: var(--color-primary);
    display: inline-block;
    width: 65px;
}

/* Printable Material CSS (A4 Page Style inside Card) */
.printable-material-page {
    background: #ffffff;
    color: #1e293b;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    font-size: 0.8rem;
    animation: result-fade-in 0.5s ease forwards;
    border: 1px solid #cbd5e1;
    position: relative;
}

.material-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #94a3b8;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.material-sheet-title {
    display: flex;
    flex-direction: column;
}

.material-sheet-title h4 {
    color: #020617;
    font-size: 1.05rem;
    font-weight: 800;
}

.material-sheet-title span {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.material-sheet-stamp {
    border: 2px solid #ef4444;
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    transform: rotate(-10deg);
}

.material-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vocab-card {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    text-align: center;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vocab-image-placeholder {
    width: 100%;
    height: 60px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.7rem;
}

.vocab-word {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.vocab-phonetic {
    font-size: 0.7rem;
    color: #2563eb;
    font-weight: 600;
    margin-top: 0.1rem;
}

.trace-guide-section {
    border-top: 1px dashed #cbd5e1;
    padding-top: 0.75rem;
}

.trace-guide-section h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}

.trace-circle-group {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
}

.trace-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.trace-char {
    font-size: 1.2rem;
    font-weight: 300;
    color: #cbd5e1;
    border: 1px dashed #cbd5e1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    background: #ffffff;
}

.trace-desc {
    font-size: 0.65rem;
    color: #64748b;
}

/* ==========================================================================
   Roadmap Section (Timeline)
   ========================================================================== */
.roadmap-section {
    padding: 100px 0;
    background-color: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

/* Line connecting nodes */
.timeline-line {
    position: absolute;
    top: 50px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.timeline-progress {
    width: 35%; /* Progress indicator showing we are in Phase 1 */
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    border-radius: 9999px;
    box-shadow: var(--shadow-cyan);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.node-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #111827;
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.node-marker i {
    width: 24px;
    height: 24px;
}

.timeline-node.active .node-marker {
    background: var(--color-bg-base);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: var(--shadow-cyan);
}

.node-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    width: 100%;
    min-height: 180px;
}

.timeline-node.active .node-content {
    background: rgba(6, 182, 212, 0.02);
    border-color: rgba(6, 182, 212, 0.15);
}

.phase-tag {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.phase-tag.current {
    color: var(--color-cyan);
}

.node-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.node-content p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Contact Section & Interactive Calendar
   ========================================================================== */
.contact-section {
    position: relative;
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

/* Premium Gift Banner above reservation Form */
.gift-banner {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.gift-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-cyan);
}

.gift-icon i {
    width: 22px;
    height: 22px;
}

.gift-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gift-info h4 {
    font-size: 0.95rem;
    color: var(--color-cyan);
    font-weight: 700;
}

.gift-info p {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.gift-info strong {
    color: var(--color-text-primary);
}

/* Form Styles */
.contact-form-panel {
    padding: 2.5rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}



.register-form .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.register-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.register-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.register-form label .required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input,
.register-form textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.register-form textarea {
    padding-left: 1rem;
}

.input-wrapper input:focus,
.register-form textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.input-wrapper input:focus + i {
    color: var(--color-cyan);
}

/* V2 Contact Grid (no calendar) */
.contact-grid-v2 {
    grid-template-columns: 1.2fr 0.8fr;
}

/* Inquiry Panel (right column) */
.inquiry-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inquiry-card {
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inquiry-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-cyan);
}

.inquiry-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.inquiry-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.inquiry-card > p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.inquiry-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--border-radius-lg);
    color: var(--color-cyan);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.inquiry-email-link:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2);
}

.inquiry-email-link i {
    width: 20px;
    height: 20px;
}

.inquiry-response-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1.25rem;
}

/* Quick Info Cards */
.quick-info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.quick-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-info-icon i {
    width: 20px;
    height: 20px;
}

.quick-info-body h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.quick-info-body p {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.placeholder-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    width: 100%;
}

/* ==========================================================================
   Footer Style
   ========================================================================== */
.main-footer {
    background-color: #020617;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 500px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a:hover {
    color: var(--color-text-primary);
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-cyan);
}

.modal-icon i {
    width: 32px;
    height: 32px;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-details {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-row .label {
    color: var(--color-text-muted);
}

.detail-row .value {
    font-weight: 600;
}

.detail-row .value.highlighted {
    color: var(--color-cyan);
}

.modal-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes result-fade-in {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes section-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Responsive Media Queries & Strict Mobile Refits (V3)
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .board-content {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 300px; /* 고정 크기 배정하여 스크롤 유도 */
        height: 600px;
    }
    
    .chat-flow-panel {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .node-content {
        min-height: auto;
    }
    
    .contact-grid,
    .contact-grid-v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-nav {
        display: none;
    }
}

/* Mobile Viewports (iPhone, Galaxy 등 극상 방어) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
        width: 100%;
        max-width: 100vw;
    }
    
    body {
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 1.25rem;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .debate-steps-header {
        display: none;
    }
    
    .debate-board {
        height: 640px;
        width: 100%;
    }
    
    .board-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
    }
    
    .board-status {
        justify-content: center;
    }
    
    .board-content {
        grid-template-columns: 1fr;
        grid-template-rows: 290px 290px;
        height: 580px;
    }
    
    .chat-flow-panel {
        padding: 1rem;
    }
    
    .live-result-panel {
        height: 100%;
    }
    
    .result-body {
        padding: 1rem;
    }
    
    .sim-doc, 
    .printable-material-page {
        padding: 1rem;
    }
    
    .vocab-image-placeholder {
        height: 45px;
    }
    
    .vocab-word {
        font-size: 0.95rem;
    }
    
    .register-form .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-panel {
        padding: 1.25rem;
    }
    
    .inquiry-card {
        padding: 1.5rem;
    }
    
    .inquiry-email-link {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-links .divider {
        display: none;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
}
