/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(135deg, #6C63FF, #00D2FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, #6C63FF, #5A54E0); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #5A54E0, #4840C8); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,99,255,0.3); }
.btn-outline { border: 2px solid #6C63FF; color: #6C63FF; background: transparent; }
.btn-outline:hover { background: #6C63FF; color: #fff; }
.btn-white { background: #fff; color: #6C63FF; }
.btn-white:hover { background: #f0f0ff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; text-align: center; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 800; }
.logo-icon { font-size: 1.6rem; }
.logo-accent { background: linear-gradient(135deg, #6C63FF, #00D2FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: #555; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: #6C63FF; background: rgba(108,99,255,0.08); }
.nav-cta { background: linear-gradient(135deg, #6C63FF, #5A54E0); color: #fff !important; padding: 10px 22px; }
.nav-cta:hover { background: linear-gradient(135deg, #5A54E0, #4840C8); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: #333; border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero { position: relative; padding: 140px 0 80px; overflow: hidden; background: linear-gradient(135deg, #f8f7ff 0%, #e8f4fd 50%, #f0e6ff 100%); }
.hero-bg { position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%); border-radius: 50%; }
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.hero-content { max-width: 750px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(108,99,255,0.1); color: #6C63FF; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #1a1a2e; }
.hero-subtitle { font-size: 1.15rem; color: #555; margin-bottom: 32px; max-width: 600px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #6C63FF; }
.stat-label { font-size: 0.85rem; color: #777; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; color: #666; max-width: 600px; margin: 0 auto; }

/* ===== QUICK ASK / CHAT WIDGET ===== */
.quick-ask { padding: 80px 0; background: #fff; }
.chat-widget { background: #f8f9fa; border-radius: 20px; border: 1px solid #e8e8e8; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.chat-messages { height: 400px; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.message { display: flex; gap: 12px; max-width: 85%; animation: fadeIn 0.3s ease; }
.ai-message { align-self: flex-start; }
.user-message { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; background: #e8e6ff; }
.user-message .message-avatar { background: #e0f7fa; }
.message-content { padding: 14px 18px; border-radius: 16px; font-size: 0.92rem; line-height: 1.7; }
.ai-message .message-content { background: #fff; border: 1px solid #e8e8e8; border-top-left-radius: 4px; }
.user-message .message-content { background: linear-gradient(135deg, #6C63FF, #5A54E0); color: #fff; border-top-right-radius: 4px; }
.message-content pre { background: #1e1e2e; color: #cdd6f4; padding: 14px; border-radius: 10px; overflow-x: auto; margin: 10px 0; font-size: 0.85rem; }
.message-content code { font-family: 'Fira Code', monospace; }
.message-content p { margin-bottom: 8px; }
.message-content p:last-child { margin-bottom: 0; }
.chat-input-area { padding: 16px 24px; background: #fff; border-top: 1px solid #e8e8e8; }
.chat-input-row { display: flex; align-items: flex-end; gap: 12px; }
.chat-input-row textarea { flex: 1; border: 1px solid #ddd; border-radius: 12px; padding: 12px 16px; font-size: 0.92rem; font-family: inherit; resize: none; outline: none; max-height: 120px; transition: border-color 0.2s; }
.chat-input-row textarea:focus { border-color: #6C63FF; }
.upload-btn { cursor: pointer; font-size: 1.4rem; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.upload-btn:hover { background: #f0f0f0; }
.send-btn { padding: 12px 24px; background: linear-gradient(135deg, #6C63FF, #5A54E0); color: #fff; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(108,99,255,0.3); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.image-preview { margin-top: 12px; position: relative; display: inline-block; }
.image-preview img { max-height: 100px; border-radius: 8px; border: 1px solid #ddd; }
.remove-img { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #ff4757; color: #fff; border: none; cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }
.tutor-redirect { margin-top: 12px; padding: 12px 16px; background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(0,210,255,0.1)); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.tutor-redirect a { color: #6C63FF; font-weight: 600; }

/* ===== SUBJECT CARDS ===== */
.subjects { padding: 80px 0; background: #f8f9fa; }
.subject-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.subject-card { background: #fff; border-radius: 20px; padding: 36px 28px; text-align: center; border: 1px solid #e8e8e8; transition: all 0.3s; display: block; }
.subject-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(108,99,255,0.12); border-color: #6C63FF; }
.card-icon { font-size: 3rem; margin-bottom: 16px; }
.subject-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.subject-card p { color: #666; font-size: 0.9rem; margin-bottom: 16px; }
.card-link { color: #6C63FF; font-weight: 600; font-size: 0.9rem; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 80px 0; background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 32px 24px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #6C63FF, #00D2FF); color: #fff; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: #666; font-size: 0.9rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 80px 0; background: #f8f9fa; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border-radius: 20px; padding: 32px; border: 1px solid #e8e8e8; }
.stars { color: #FFB800; font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card p { color: #444; font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; flex-direction: column; }
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-info { color: #888; font-size: 0.8rem; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; }
.cta-box { background: linear-gradient(135deg, #6C63FF, #00D2FF); border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff; }
.cta-box h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SUBJECT HERO (shared) ===== */
.subject-hero { padding: 120px 0 60px; text-align: center; background: linear-gradient(135deg, #f8f7ff 0%, #e8f4fd 50%, #f0e6ff 100%); }
.subject-hero-content { max-width: 700px; margin: 0 auto; }
.subject-icon-lg { font-size: 4rem; display: block; margin-bottom: 16px; }
.subject-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; }
.subject-hero p { font-size: 1.1rem; color: #555; margin-bottom: 24px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag { padding: 6px 16px; background: rgba(108,99,255,0.1); color: #6C63FF; border-radius: 50px; font-size: 0.82rem; font-weight: 500; }

/* ===== SUBJECT CHAT LAYOUT ===== */
.subject-chat { padding: 60px 0 80px; }
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.chat-sidebar { padding: 24px; background: #f8f9fa; border-radius: 20px; border: 1px solid #e8e8e8; height: fit-content; position: sticky; top: 90px; }
.chat-sidebar h3 { margin-bottom: 16px; font-size: 1rem; }
.example-questions li { padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; color: #555; cursor: pointer; transition: all 0.2s; margin-bottom: 6px; }
.example-questions li:hover { background: rgba(108,99,255,0.08); color: #6C63FF; }
.sidebar-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e0e0e0; text-align: center; }
.sidebar-cta p { font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.chat-main { min-width: 0; }

/* ===== TUTORS ===== */
.tutors-section { padding: 60px 0 80px; }
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn { padding: 10px 24px; border-radius: 50px; border: 1px solid #ddd; background: #fff; font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: #6C63FF; color: #fff; border-color: #6C63FF; }
.tutor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tutor-card { background: #fff; border-radius: 20px; padding: 32px; border: 1px solid #e8e8e8; text-align: center; transition: all 0.3s; }
.tutor-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.tutor-avatar { font-size: 3.5rem; margin-bottom: 12px; }
.tutor-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.tutor-school { color: #888; font-size: 0.82rem; display: block; margin-bottom: 8px; }
.tutor-rating { color: #FFB800; font-size: 0.85rem; margin-bottom: 12px; }
.tutor-rating span { color: #888; }
.tutor-card p { color: #555; font-size: 0.85rem; margin-bottom: 12px; }
.tutor-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.tutor-tags span { padding: 4px 12px; background: #f0f0ff; color: #6C63FF; border-radius: 50px; font-size: 0.75rem; }
.tutor-price { font-size: 1.2rem; font-weight: 700; color: #6C63FF; margin-bottom: 16px; }

/* ===== ORDER FORM ===== */
.order-section { padding: 60px 0 80px; }
.order-form-wrapper { max-width: 680px; margin: 0 auto; }
.order-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: #333; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 16px; border: 1px solid #ddd; border-radius: 12px; font-size: 0.92rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #6C63FF; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-input { padding: 10px; }
.order-success { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.order-success h2 { font-size: 1.8rem; margin-bottom: 12px; }
.order-success p { color: #666; margin-bottom: 24px; }

/* ===== BLOG ===== */
.blog-section { padding: 60px 0 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { background: #fff; border-radius: 20px; padding: 32px; border: 1px solid #e8e8e8; transition: all 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.blog-tag { display: inline-block; padding: 4px 14px; background: rgba(108,99,255,0.1); color: #6C63FF; border-radius: 50px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; }
.blog-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: #666; font-size: 0.88rem; margin-bottom: 16px; }
.blog-meta { display: flex; gap: 16px; color: #999; font-size: 0.8rem; }

/* ===== ABOUT ===== */
.about-section { padding: 60px 0 80px; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.about-card { background: #f8f9fa; border-radius: 20px; padding: 36px; border: 1px solid #e8e8e8; }
.about-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: #6C63FF; }
.about-card p { color: #555; font-size: 0.92rem; margin-bottom: 16px; }
.about-card ul { display: flex; flex-direction: column; gap: 12px; }
.about-card li { color: #555; font-size: 0.9rem; line-height: 1.6; }
.contact-list li { font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: #ccc; padding: 60px 0 30px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col p { font-size: 0.88rem; line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: #6C63FF; }
.footer-col li { font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.82rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.typing-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6C63FF; animation: typingBounce 1.4s infinite; margin-right: 4px; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.4rem; }
    .subject-cards, .steps, .testimonial-grid, .tutor-grid { grid-template-columns: 1fr; }
    .blog-grid, .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .chat-layout { grid-template-columns: 1fr; }
    .chat-sidebar { position: static; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid #eee; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
    .nav-menu.open { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .section-header h2 { font-size: 1.8rem; }
    .subject-hero h1 { font-size: 2rem; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.6rem; }
}

/* ===== TEXT EMPHASIS EFFECTS ===== */
.mark-highlight, .scribble-underline, .circle-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mark-highlight, .scribble-underline, .circle-highlight {
        white-space: normal;
    }
}

.mark-highlight {
    padding: 0 4px;
    margin: 0 -4px;
    border-radius: 4px;
    background-image: linear-gradient(104deg, transparent 0%, rgba(0, 210, 255, 0.4) 3%, rgba(108, 99, 255, 0.3) 97%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    animation: drawMarker 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

@keyframes drawMarker {
    to { background-size: 100% 100%; }
}

.scribble-underline {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' preserveAspectRatio='none' viewBox='0 0 100 20'%3E%3Cpath d='M2,15 Q30,5 50,15 T98,15' fill='none' stroke='%236C63FF' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left bottom -4px;
    background-size: 0% 16px;
    padding-bottom: 2px;
    animation: drawScribble 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawScribble {
    to { background-size: 100% 16px; }
}

.circle-highlight {
    padding: 2px 4px;
}

.circle-highlight::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -4px;
    right: -4px;
    bottom: -6px;
    z-index: -1;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cpath d='M50,8 C70,6 94,25 94,50 C94,75 70,94 50,94 C30,94 6,75 6,50 C6,25 30,6 50,8 Z' fill='none' stroke='%236C63FF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    animation: drawCirclePath 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawCirclePath {
    to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
    .mark-highlight, .scribble-underline, .circle-highlight::before {
        animation: none;
    }
    .mark-highlight { background-size: 100% 100%; }
    .scribble-underline { background-size: 100% 16px; }
    .circle-highlight::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* ===== INTERACTIVE COMPARISON MATRIX ===== */
.comparison-matrix {
    --cm-primary: #6C63FF;
    --cm-primary-hover: #5A54E0;
    --cm-primary-light: rgba(108, 99, 255, 0.08);
    --cm-gray-light: #F9FAFB;
    --cm-gray-border: #E5E7EB;
    --cm-gray-dark: #1A1A2E;
    --cm-white: #FFFFFF;
    --cm-radius: 16px;
    --cm-shadow: 0 10px 25px rgba(0,0,0,0.05);

    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    font-family: inherit;
}

.cm-header {
    text-align: center;
    margin-bottom: 40px;
}

.cm-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cm-gray-dark);
}

.cm-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--cm-gray-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cm-tabs::-webkit-scrollbar {
    display: none;
}

.cm-tab {
    flex: 1;
    min-width: max-content;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.05rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    margin-bottom: -2px;
}

.cm-tab:hover {
    color: var(--cm-primary);
    background: var(--cm-primary-light);
}

.cm-tab[aria-selected="true"] {
    color: var(--cm-primary);
    border-bottom-color: var(--cm-primary);
    background: var(--cm-white);
}

.cm-tab:focus-visible {
    box-shadow: 0 0 0 3px var(--cm-primary-light);
    border-radius: 8px 8px 0 0;
}

.cm-panel {
    background: var(--cm-white);
    border: 1px solid var(--cm-gray-border);
    border-radius: var(--cm-radius);
    padding: 40px;
    box-shadow: var(--cm-shadow);
    min-height: 440px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), box-shadow 0.3s ease;
}

.cm-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.cm-content {
    animation: cm-fade-slide 0.4s ease forwards;
}

.cm-content h3 {
    font-size: clamp(1.4rem, 2vw + 1.2rem, 2rem);
    color: var(--cm-gray-dark);
    margin-bottom: 16px;
    font-weight: 800;
}

.cm-content p {
    font-size: 1.05rem;
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cm-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.cm-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cm-gray-dark);
    font-weight: 500;
}

.cm-feature svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--cm-primary);
    stroke-width: 2;
    flex-shrink: 0;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6C63FF, #5A54E0);
    color: var(--cm-white) !important;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.cm-btn:hover {
    background: linear-gradient(135deg, #5A54E0, #4840C8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,99,255,0.3);
}

.cm-illustration-box {
    background: var(--cm-gray-light);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cm-fade-scale 0.5s ease forwards;
    border: 1px solid var(--cm-gray-border);
}

.cm-illustration-box img, .cm-illustration-box svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes cm-fade-slide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cm-fade-scale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 968px) {
    .cm-panel {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        min-height: auto;
    }
    .cm-illustration-box {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 640px) {
    .cm-tabs {
        margin-bottom: 24px;
    }
    .cm-tab {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .cm-content h3 {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm-content, .cm-illustration-box { animation: none; }
    .cm-panel { transition: none; }
    .cm-panel:hover { transform: none; box-shadow: var(--cm-shadow); }
}
