/* ========================================
   천마톡브레인 - 공통 스타일시트
   ======================================== */

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

:root {
    --primary-color: #4C51BF;
    --secondary-color: #667EEA;
    --accent-color: #9F7AEA;
    --glow-color: #FFD700;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(159, 122, 234, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo i {
    color: var(--accent-color);
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(159, 122, 234, 0.2);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding-top: 80px;
}

.fireflies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.seasonal-message {
    font-size: 20px;
    color: var(--glow-color);
    margin: 20px 0;
    font-weight: 500;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero-description {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.badge {
    background: rgba(159, 122, 234, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.badge i {
    color: var(--accent-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 81, 191, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 81, 191, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(159, 122, 234, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 50px;
    font-size: 18px;
}

/* ========================================
   Page Hero (Sub Pages)
   ======================================== */

.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    margin-top: 70px;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-hero p {
    font-size: 20px;
    color: var(--text-gray);
    position: relative;
    z-index: 2;
}

/* Technology Page - Background Image Hero */
.hero.with-bg-image {
    background-image: url('https://www.genspark.ai/api/files/s/u4g5S1yP');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.with-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%);
    z-index: 1;
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 80px 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 50px;
}

/* ========================================
   Problem Section
   ======================================== */

.problem-section {
    background: rgba(159, 122, 234, 0.05);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(159, 122, 234, 0.2);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(159, 122, 234, 0.3);
}

.problem-card i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.problem-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   Solution Section
   ======================================== */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(159, 122, 234, 0.2);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(159, 122, 234, 0.4);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.solution-icon i {
    font-size: 36px;
    color: white;
}

.solution-card h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.solution-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.solution-card .ingredient {
    color: var(--glow-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.solution-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   Customer Reviews Section
   ======================================== */

.reviews-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(159, 122, 234, 0.2);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(159, 122, 234, 0.5);
    box-shadow: 0 10px 30px rgba(159, 122, 234, 0.3);
}

.stars {
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 15px;
}

.reviewer {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}

/* ========================================
   Trust Section
   ======================================== */

.trust-section {
    background: rgba(159, 122, 234, 0.05);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(159, 122, 234, 0.2);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(159, 122, 234, 0.3);
}

.trust-badge i {
    font-size: 48px;
    color: var(--glow-color);
    margin-bottom: 20px;
}

.trust-badge h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.trust-badge p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   Purchase Section
   ======================================== */

.purchase-section {
    background: linear-gradient(135deg, #4C51BF 0%, #667EEA 100%);
    padding: 60px 20px;
}

.purchase-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.purchase-box i:first-child {
    font-size: 64px;
    color: var(--glow-color);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.purchase-box h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
}

.purchase-box p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white !important;
    color: var(--primary-color) !important;
    font-size: 20px;
    padding: 20px 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.purchase-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.purchase-btn i {
    font-size: 24px;
}

.purchase-box small {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 10px;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-info-section {
    background: rgba(159, 122, 234, 0.05);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(159, 122, 234, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.contact-card i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.contact-card small {
    display: block;
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 5px;
}

/* ========================================
   Contact Form
   ======================================== */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(159, 122, 234, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(159, 122, 234, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(159, 122, 234, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(159, 122, 234, 0.1);
}

.faq-question i:first-child {
    color: var(--accent-color);
    margin-right: 10px;
}

.faq-question i:last-child {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   Partnership Section
   ======================================== */

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.partnership-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(159, 122, 234, 0.2);
    transition: all 0.3s ease;
}

.partnership-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(159, 122, 234, 0.3);
}

.partnership-card i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.partnership-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.partnership-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: rgba(15, 15, 30, 0.95);
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(159, 122, 234, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(159, 122, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(159, 122, 234, 0.1);
    color: var(--text-gray);
}

/* ========================================
   Scroll to Top Button
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(76, 81, 191, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(76, 81, 191, 0.6);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .seasonal-message {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}