@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-text: #0F172A;
    --color-text-muted: #475569;
    --color-primary: #0F172A; /* Dark Navy */
    --color-primary-hover: #1E293B;
    --color-border: #E2E8F0;
    
    /* Vibrant Colors for Features/Tags */
    --color-purple: #8B5CF6;
    --color-blue: #3B82F6;
    --color-green: #10B981;
    --color-red: #EF4444;
    --color-orange: #F59E0B;
    --color-teal: #14B8A6;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header & Mega Menu */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 32px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-item > a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item > a i {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.nav-item:hover > a {
    color: var(--color-blue);
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 600px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 0.75rem;
}

.mega-menu-column a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.mega-menu-column a:hover {
    color: var(--color-blue);
}

.mega-menu-column a i {
    width: 20px;
}

/* Dropdown Icon Colors */
.color-purple { color: var(--color-purple); }
.color-blue { color: var(--color-blue); }
.color-orange { color: var(--color-orange); }
.color-green { color: var(--color-green); }
.color-red { color: var(--color-red); }
.color-teal { color: var(--color-teal); }

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-contact {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-contact:hover {
    background: var(--color-primary-hover);
}

/* Base Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.section-header.center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.bg-alt {
    background: var(--color-bg-alt);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: var(--color-bg);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.color-blue-bg { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); }
.color-green-bg { background: rgba(16, 185, 129, 0.1); color: var(--color-green); }

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
}

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

.stat-item {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}
.stat-item strong {
    color: var(--color-text);
    font-size: 1.2rem;
    display: block;
}

.hero-visual {
    flex: 1.2;
}

.hero-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* Comprehensive Features Grid (Zoho Style) */
.features-comprehensive {
    background: var(--color-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.bg-purple { background: var(--color-purple); }
.bg-blue { background: var(--color-blue); }
.bg-green { background: var(--color-green); }
.bg-red { background: var(--color-red); }
.bg-orange { background: var(--color-orange); }
.bg-teal { background: var(--color-teal); }

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

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-blue);
}

/* ZigZag Highlights */
.zigzag-section {
    background: var(--color-bg);
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.zigzag-text {
    flex: 1;
}

.zigzag-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.zigzag-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

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

.check-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--color-green);
}

.zigzag-visual {
    flex: 1;
}

.zigzag-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Integrations Ecosystem */
.integrations-section {
    background: var(--color-bg-alt);
    text-align: center;
}

.integrations-banner {
    margin-bottom: 3rem;
}

.integrations-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.integrations-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag-pill {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.2s;
    cursor: default;
}

.tag-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Final CTA */
.cta-section {
    background: var(--color-primary);
    color: #fff;
    padding: 8rem 0;
}

.cta-section.center {
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary.large {
    background: #fff;
    color: var(--color-primary);
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

.cta-section .btn-primary.large:hover {
    background: var(--color-bg-alt);
}

/* Expanded Footer */
footer {
    background: var(--color-bg);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero .container, .zigzag-row {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-text p {
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Advanced UI Components for Subpages
   ========================================================================== */

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: var(--color-bg-alt);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.pricing-card.popular {
    border: 2px solid var(--color-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}
.pricing-card.popular::before {
    content: '가장 많이 선택함';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-blue);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--color-text); }
.pricing-card .price span { font-size: 1rem; color: var(--color-text-muted); font-weight: 400; }
.pricing-card ul { list-style: none; text-align: left; margin: 2rem 0; }
.pricing-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.pricing-card li i { color: var(--color-green); margin-right: 10px; }

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 3rem auto;
}
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    display: block; /* To be toggled by JS normally, default open for dummy */
    border-top: 1px dashed var(--color-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* API Code Block */
.api-code-block {
    background: #1E293B;
    color: #E2E8F0;
    padding: 2rem;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    overflow-x: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: left;
    margin: 2rem 0;
}
.api-code-block .keyword { color: #8B5CF6; }
.api-code-block .string { color: #10B981; }

/* Blog/Report Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.content-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}
.content-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.content-card-img { height: 200px; background: var(--color-bg-alt); width: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--color-border); }
.content-card-body { padding: 1.5rem; }
.content-card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.content-card-body p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Timeline for About Us */
.timeline {
    border-left: 2px solid var(--color-blue);
    margin: 3rem 0 3rem 2rem;
    padding-left: 2rem;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-blue);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--color-blue);
}
.timeline-date { font-weight: bold; color: var(--color-blue); margin-bottom: 0.5rem; }
.timeline-content h3 { margin-bottom: 0.5rem; }

