/* ============================================
   SPL 영어수학 학원 Landing Page
   Design System: Refined Academic Premium
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2C3E50;
    --primary-light: #3A4A5C;
    --secondary: #6366F1;
    --secondary-light: #818CF8;
    --secondary-dark: #4F46E5;
    --accent: #10B981;
    --accent-light: #34D399;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-gray: #F3F4F6;
    --text-dark: #1F2937;
    --text-body: #374151;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 50px;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    overflow-x: hidden;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Dev Banner --- */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-bottom: 2px solid #c44002;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    height: 44px;
    line-height: 28px;
}

@media (max-width: 768px) {
    .dev-banner {
        font-size: 12px;
        height: 35px;
        line-height: 19px;
        padding: 8px 10px;
    }
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in.stagger-1 { transition-delay: 0s; }
.fade-in.stagger-2 { transition-delay: 0.1s; }
.fade-in.stagger-3 { transition-delay: 0.2s; }
.fade-in.stagger-4 { transition-delay: 0.3s; }
.fade-in.stagger-5 { transition-delay: 0.4s; }
.fade-in.stagger-6 { transition-delay: 0.5s; }

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
}

body.has-dev-banner nav {
    top: 44px;
}

@media (max-width: 768px) {
    body.has-dev-banner nav {
        top: 35px;
    }
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Nav icon/text helpers */
.nav-icon { margin-right: 0.25rem; }
.nav-text { /* default: inline with icon */ }

/* Bright Navigation Links */
.nav-link-bright {
    position: relative;
    padding: 0.5rem 1.2rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    box-shadow: none;
}

.nav-link-bright:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

nav.scrolled .nav-link-bright {
    border-color: var(--border);
}

/* --- Hero Section --- */
.hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #F8FAFF 0%, #EEF2FF 40%, #F0FDF4 100%);
    position: relative;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.07;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    top: 5rem;
    left: 5rem;
    width: 20rem;
    height: 20rem;
    background: var(--secondary);
}

.blob-2 {
    top: 10rem;
    right: 5rem;
    width: 18rem;
    height: 18rem;
    background: var(--accent);
    animation-delay: 2s;
}

.blob-3 {
    bottom: 5rem;
    left: 50%;
    width: 22rem;
    height: 22rem;
    background: var(--secondary-dark);
    animation-delay: 4s;
}

@keyframes blobFloat {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.05) translate(10px, -10px); }
    66% { transform: scale(0.95) translate(-10px, 10px); }
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.45rem 1.2rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
}

.hero-badge span {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.9rem 2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 44rem;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.stat-blue { color: var(--secondary); }
.stat-purple { color: var(--text-dark); }
.stat-pink { color: var(--secondary-dark); }

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Sections Common --- */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto;
}

/* --- Features Section --- */
.features {
    padding: 6rem 1.5rem;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3.5rem auto 0;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.feature-card.purple,
.feature-card.pink,
.feature-card.green {
    background: var(--bg-white);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.icon-blue { background: var(--secondary); }
.icon-purple { background: var(--primary); }
.icon-pink { background: var(--secondary-dark); }
.icon-green { background: var(--accent); }

.icon-svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Traffic Light Section --- */
.traffic-light {
    padding: 6rem 1.5rem;
    background: var(--bg-light);
}

.traffic-light .section-title h2 { color: var(--text-dark); }
.traffic-light .section-title p { color: var(--text-muted); }

.traffic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3.5rem auto 0;
}

.traffic-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-dark);
    box-shadow: none;
}

.traffic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.traffic-card.yellow,
.traffic-card.green {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: none;
}

.traffic-card.yellow:hover,
.traffic-card.green:hover {
    box-shadow: var(--shadow-lg);
}

.traffic-light-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.light-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    animation: lightPulse 3s ease-in-out infinite;
}

@keyframes lightPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

.light-red { background: #EF4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
.light-yellow { background: #F59E0B; box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
.light-green { background: var(--accent); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }

.traffic-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.traffic-card > p {
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.traffic-card ul { list-style: none; }

.traffic-card li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-body);
    font-size: 0.95rem;
}

/* --- Subjects Section --- */
.subjects {
    padding: 6rem 1.5rem;
    background: var(--bg-white);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3.5rem auto 0;
}

.subject-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.subject-icon {
    width: 4rem;
    height: 4rem;
    background: var(--secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.subject-icon.purple {
    background: var(--primary);
}

.subject-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.subject-card > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.subject-card ul { list-style: none; }

.subject-card li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-body);
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.check-icon.purple {
    background: rgba(44, 62, 80, 0.1);
}

.check-svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: var(--secondary);
}

.check-svg.purple {
    fill: var(--primary);
}

.grade-banner {
    margin-top: 2.5rem;
    background: rgba(99, 102, 241, 0.05);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.grade-banner h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.grade-banner p {
    font-size: 1.1rem;
    color: var(--text-body);
    font-weight: 500;
}

/* --- Math Program Section --- */
.math-program {
    padding: 6rem 1.5rem;
    background: var(--bg-light);
}

.program-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-white);
    color: var(--text-muted);
    border: 1.5px solid var(--border);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.program-slider-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.program-content-box {
    flex: 1;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.program-content-box.tab-0 {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.program-content-box.tab-1 {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.program-content-box.tab-2 {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.program-content-box.tab-3 {
    background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
}

.program-slide {
    display: none;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.program-slide.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.program-slide h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

.program-slide[data-tab="0"] h3 { color: var(--secondary-dark); }
.program-slide[data-tab="1"] h3 { color: #1D4ED8; }
.program-slide[data-tab="2"] h3 { color: #047857; }
.program-slide[data-tab="3"] h3 { color: #B45309; }

.program-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.program-image-placeholder {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 0 auto;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.placeholder-text {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Program cards (old grid, hidden) */
.program-grid-old { display: none; }

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.program-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s;
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.program-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon.pink { background: rgba(99, 102, 241, 0.08); }
.program-icon.green { background: rgba(16, 185, 129, 0.1); }
.program-icon.orange { background: rgba(245, 158, 11, 0.1); }

.program-badge { color: var(--secondary); font-weight: 600; font-size: 0.875rem; }
.program-badge.pink { color: var(--secondary-dark); }
.program-badge.green { color: var(--accent); }
.program-badge.orange { color: #D97706; }

.program-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.program-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- SPL Bridge Section --- */
.spl-bridge {
    padding: 6rem 1.5rem;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.bridge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3.5rem auto 0;
}

.bridge-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bridge-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--secondary);
}

.bridge-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
}

.bridge-icon svg {
    width: 100%;
    height: 100%;
}

.bridge-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.bridge-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.bridge-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.bridge-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* --- Graduates Section --- */
.graduates-section {
    padding: 6rem 1.5rem;
    background: var(--bg-light);
    overflow: hidden;
}

.graduates-slider-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 3.5rem auto 0;
    position: relative;
}

/* Fade edges */
.graduates-slider-wrapper::before,
.graduates-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.graduates-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.graduates-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.graduates-slider {
    display: flex;
    gap: 1.5rem;
    animation: slideLeft 40s linear infinite;
    width: fit-content;
}

.graduates-slider:hover {
    animation-play-state: paused;
}

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.graduate-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    border: 1px solid var(--border);
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.graduate-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--accent);
    z-index: 10;
}

.graduate-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
}

.graduate-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 2.5rem;
    color: var(--accent);
}

.graduate-info { margin-bottom: 0.75rem; }

.university-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.university-name .department {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.graduate-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.graduate-details {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.high-school {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.student-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
}

.no-graduates {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    grid-column: 1 / -1;
}

/* --- Blog Section --- */
.blog-section {
    padding: 6rem 1.5rem;
    background: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3.5rem auto 0;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: none;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.06);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
}

.blog-more {
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- CTA Section --- */
.cta {
    padding: 6rem 1.5rem;
    background: var(--primary);
    color: white;
}

.cta-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: white;
}

.cta > .cta-content > p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-white:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.contact-card svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-light);
}

.contact-card h4 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: white;
    font-size: 1rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* --- Footer --- */
footer {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
}

.social-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.social-btn svg { color: inherit; }

.footer-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-details p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
    .cta-buttons { flex-direction: row; }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .logo { display: none; }

    .nav-container { justify-content: center; }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .nav-link-bright {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        border: none;
        background: none;
        border-radius: 0.5rem;
    }

    .nav-link-bright:hover {
        background: var(--bg-gray);
        border: none;
        box-shadow: none;
        transform: none;
        color: var(--secondary) !important;
    }

    .nav-icon {
        font-size: 1.25rem;
        line-height: 1;
        margin-right: 0;
    }

    .nav-text {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .hero-content { padding-top: 6.5rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.05rem; }
    .stats { grid-template-columns: 1fr; }

    .section-title h2 { font-size: 1.75rem; }
    .section-title p { font-size: 1rem; }

    .cta h2 { font-size: 2rem; }

    /* Math Program Mobile */
    .program-tabs {
        gap: 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }

    .program-slider-container { padding: 0 0.5rem; }
    .program-content-box { padding: 2rem 1rem; }
    .program-slide h3 { font-size: 1.2rem; }
    .program-description { font-size: 0.9rem; }

    /* 모바일: 복잡한 데모 UI 숨기고 텍스트만 표시 */
    .program-image-placeholder {
        display: none;
    }

    .program-content-box {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .program-slide h3 {
        margin-bottom: 0.5rem;
    }

    .program-description {
        margin-bottom: 0;
    }

    .graduates-slider { animation-duration: 30s; }
    .graduate-card { padding: 1.5rem; min-width: 260px; max-width: 260px; }
    .graduate-logo { width: 72px; height: 72px; }
    .university-name { font-size: 1.05rem; }
}

/* ============================================
   Program Demo Animations
   ============================================ */

/* Tab 1: Problem Selection Demo */
.problem-selection-demo {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.problem-sheet {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.sheet-header {
    height: 20px;
    background: linear-gradient(90deg, var(--border) 0%, var(--bg-light) 100%);
    border-radius: 4px;
    margin-bottom: 10px;
}

.problem-card {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.35s ease forwards;
    transition: all 0.2s ease;
}

.problem-card.selected {
    background: var(--secondary);
    border-color: var(--secondary-dark);
}

.problem-card.selected .card-label {
    color: white;
    background: var(--secondary-dark);
}

.problem-card.selected .line {
    background: rgba(255, 255, 255, 0.85);
}

.card-label {
    width: 32px;
    height: 32px;
    background: var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.card-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.line:last-child { width: 70%; }

.blank-sheet {
    background: white;
    border-radius: 12px;
    width: 220px;
    height: 300px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    animation: fadeInScale 0.4s ease forwards;
    position: relative;
}

.blank-sheet::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 15px;
    background: linear-gradient(90deg, var(--border) 0%, var(--bg-light) 100%);
    border-radius: 4px;
}

.twin-button {
    position: absolute;
    bottom: 80px;
    right: 100px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    opacity: 0;
    animation: fadeInBounce 0.4s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.twin-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.cursor-icon {
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(0 0, 0 100%, 30% 70%, 50% 100%, 60% 95%, 40% 65%, 70% 60%);
    animation: cursorPulse 1s ease infinite;
}

/* Repeat animation for active slides */
.program-slide.active .problem-card,
.program-slide.active .blank-sheet,
.program-slide.active .twin-button {
    animation-iteration-count: infinite;
    animation-duration: 4.5s;
}

/* Tab 2: Exam Analysis Demo */
.exam-analysis-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 40px;
}

.school-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.school-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
    transition: transform 0.3s ease;
}

.school-item:hover { transform: translateX(5px); }

.map-pin {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    flex-shrink: 0;
}

.map-pin::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.school-info { display: flex; flex-direction: column; gap: 4px; }
.school-name { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.exam-count { font-size: 13px; color: var(--text-muted); }

.analysis-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards;
    z-index: 2;
}

.gear {
    width: 60px;
    height: 60px;
    border: 8px solid var(--secondary);
    border-radius: 50%;
    position: relative;
}

.gear::before, .gear::after {
    content: '';
    position: absolute;
    background: var(--secondary);
}

.gear::before { width: 70px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gear::after { width: 12px; height: 70px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.gear-1 { animation: rotateGear 3s linear infinite; }

.gear-2 {
    width: 40px;
    height: 40px;
    border-width: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateGearReverse 2s linear infinite;
}

.gear-2::before { width: 50px; height: 8px; }
.gear-2::after { width: 8px; height: 50px; }

.analysis-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    animation: textPulse 1.5s ease infinite;
}

.custom-textbook {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
    z-index: 2;
}

.book-cover {
    width: 220px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
}

.region-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.book-title h4 { color: white; font-size: 24px; font-weight: 700; margin: 0 0 8px 0; }
.book-title p { color: rgba(255, 255, 255, 0.9); font-size: 16px; margin: 0; }

.book-stats { display: flex; flex-direction: column; gap: 12px; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 8px;
}

.stat-icon { font-size: 20px; }
.stat-text { color: white; font-size: 14px; font-weight: 500; }

/* SVG connection lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.connect-line {
    stroke: var(--secondary);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.3;
    animation: dashAnimation 2s linear infinite;
}

.line-2 { animation-delay: 0.1s; }
.line-3 { animation-delay: 0.2s; }
.line-4 { animation-delay: 0.3s; }
.line-5 { animation-delay: 0.4s; }

/* Tab 3: Wrong Answer Demo */
.wrong-answer-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
}

.wrong-problem-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 260px;
    box-shadow: var(--shadow-md);
    border: 2px solid #FEE2E2;
    opacity: 0;
    animation: slideInBounce 0.6s ease forwards;
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.problem-number { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.wrong-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FEE2E2;
    color: #EF4444;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.x-mark { font-size: 16px; font-weight: 700; }

.problem-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.problem-line {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
}

.problem-line.short { width: 60%; }
.problem-line:nth-child(3) { width: 80%; }

.mistake-tag {
    display: inline-block;
    background: #FFF7ED;
    color: #D97706;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.process-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.arrow {
    width: 40px;
    height: 40px;
    border-right: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    transform: rotate(-45deg);
    animation: arrowPulse 2s ease infinite;
}

.arrow-text { font-size: 12px; color: var(--secondary); font-weight: 600; }

.ai-processor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
}

.processor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: scanning 2s linear infinite;
}

.ai-text { color: white; font-size: 24px; font-weight: 700; z-index: 1; }
.process-text { font-size: 13px; color: var(--secondary); font-weight: 600; }

.similar-problems {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 260px;
}

.similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    opacity: 0;
    animation: fadeInDown 0.5s ease forwards;
}

.header-title { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.count-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.similar-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
    transition: all 0.3s ease;
}

.similar-card.completed {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.04);
}

.card-number {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.similar-card.completed .card-number {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-line {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.check-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    animation: checkPop 0.4s ease;
}

.progress-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress-summary {
    margin-top: 8px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.progress-bar-container {
    background: var(--border);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 10px;
    width: 0%;
    animation: progressGrow 2s ease forwards;
}

.progress-text { font-size: 13px; color: var(--accent); font-weight: 600; }

/* Tab 4: Bridge App Demo */
.bridge-app-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
}

.student-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    width: 240px;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.student-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.student-avatar-large {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.student-detail h4 { margin: 0 0 6px 0; font-size: 18px; color: var(--text-dark); }
.student-detail p { margin: 0; font-size: 13px; color: var(--text-muted); }

.quick-status { display: flex; flex-direction: column; gap: 12px; }

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
}

.status-item .label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.signal {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    animation: signalPulse 2s ease infinite;
}

.green-signal { background: var(--accent); box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
.yellow-signal { background: #F59E0B; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
.red-signal { background: #EF4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }

@keyframes signalPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Mobile phone */
.bridge-phone {
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
}

.phone-container {
    width: 320px;
    height: 640px;
    background: var(--primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.phone-top-bar {
    height: 30px;
    background: var(--primary);
    border-radius: 28px 28px 0 0;
}

.app-display {
    background: var(--bg-light);
    height: calc(100% - 30px);
    border-radius: 0 0 28px 28px;
    overflow: hidden;
}

.bridge-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 16px 20px;
    text-align: center;
}

.week-info { font-size: 12px; color: rgba(255, 255, 255, 0.9); margin-bottom: 4px; }
.student-name-header { font-size: 18px; font-weight: 700; color: white; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
    background: white;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.category-item.active {
    border-color: #F59E0B;
    background: #FFFBEB;
}

.category-icon { font-size: 20px; }
.category-item span { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.mini-signal {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.mini-signal.green { background: var(--accent); }
.mini-signal.yellow { background: #F59E0B; }
.mini-signal.red { background: #EF4444; animation: blink 1.5s ease infinite; }

.main-signal-display {
    background: white;
    padding: 24px;
    margin: 12px 16px;
    border-radius: 16px;
    text-align: center;
}

.signal-title { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }

.big-traffic-light {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-traffic-light.red-light {
    background: #EF4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.light-glow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: lightPulse 2s ease infinite;
}

.weekly-status {
    background: white;
    margin: 12px 16px;
    padding: 16px;
    border-radius: 16px;
}

.week-days { display: flex; justify-content: space-between; }

.day-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.day-item span { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.day-signal { width: 28px; height: 28px; border-radius: 50%; }
.day-signal.green { background: var(--accent); }
.day-signal.red { background: #EF4444; animation: blink 1.5s ease infinite; }
.day-signal.gray { background: var(--border); }

/* Right info cards */
.info-cards { display: flex; flex-direction: column; gap: 16px; }

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
    transition: transform 0.3s ease;
}

.info-card:hover { transform: translateX(-5px); }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.green-bg { background: rgba(16, 185, 129, 0.1); }
.yellow-bg { background: rgba(245, 158, 11, 0.1); }
.red-bg { background: rgba(239, 68, 68, 0.1); }

.card-text h5 { margin: 0 0 4px 0; font-size: 15px; color: var(--text-dark); font-weight: 700; }
.card-text p { margin: 0; font-size: 13px; color: var(--text-muted); }

.realtime-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    padding: 14px 20px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
    margin-top: 8px;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 1.5s ease infinite;
}

/* Misc demo styles */
.progress-section { display: flex; flex-direction: column; gap: 12px; }
.progress-item { display: flex; flex-direction: column; gap: 6px; }
.progress-label { font-size: 13px; color: var(--text-muted); }
.progress-bar-fill { height: 100%; background: var(--secondary); border-radius: 8px; transition: width 0.8s ease; }

.stats-grid {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex: 1;
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
    animation-delay: 0.4s;
}

.stats-title { font-weight: 600; font-size: 15px; color: var(--text-dark); margin-bottom: 16px; }

.stat-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stat-box {
    background: rgba(99, 102, 241, 0.06);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.stat-value { font-size: 24px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
/* .stat-label already defined above */

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    opacity: 0;
    animation: fadeInBounce 0.6s ease forwards;
    animation-delay: 0.8s;
}

.notification-icon::before { content: ''; font-size: 20px; }

.exam-preview {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex: 1.2;
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
    animation-delay: 0.6s;
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

.exam-title { font-weight: 600; font-size: 14px; color: var(--text-dark); }

.frequency-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.exam-problems { display: flex; flex-direction: column; gap: 10px; }

.exam-problem-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.problem-num {
    width: 28px;
    height: 28px;
    background: var(--secondary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.problem-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.similar-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.similar-line { height: 6px; background: rgba(16, 185, 129, 0.2); border-radius: 3px; }
.similar-line:last-child { width: 70%; }

.check-circle {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.arrow-icon {
    font-size: 32px;
    color: var(--accent);
    opacity: 0;
    animation: fadeInBounce 0.5s ease forwards;
    animation-delay: 0.4s;
}

/* ============================================
   Keyframes
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInBounce {
    0% { opacity: 0; transform: scale(0.8); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInBounce {
    0% { opacity: 0; transform: translateX(-50px); }
    70% { transform: translateX(5px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateGearReverse {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes dashAnimation {
    to { stroke-dashoffset: -10; }
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes cursorPulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2px, 2px); }
}

@keyframes arrowPulse {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(5px); }
}

@keyframes scanning {
    from { top: 0; }
    to { top: 100%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes progressGrow {
    from { width: 0%; }
    to { width: 67%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
