/*
Theme Name: Flavor GateExchange
Description: 게이트거래소 - SUIT Font, Emerald Green, Zigzag Layout, Scale In Animation
Version: 1.0
*/

@import url('https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/variable/woff2/SUIT-Variable.css');

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --bg-white: #ffffff;
    --bg-light: #F0FDF4;
    --bg-section: #ECFDF5;
    --text-dark: #1a1a1a;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #D1FAE5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(16, 185, 129, 0.15);
    --shadow-hover: 0 20px 40px rgba(16, 185, 129, 0.2);
}

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

body {
    font-family: 'SUIT Variable', 'SUIT', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Grid Pattern Background */
.grid-bg {
    background-color: var(--bg-white);
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Header - Hamburger Menu */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    border-left: 1px solid var(--border-color);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.main-nav.active { right: 0; }

.main-nav ul { list-style: none; }
.main-nav li { margin: 20px 0; }

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%),
        linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { text-align: left; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: scaleIn 0.6s ease-out;
}

.hero-title span {
    color: var(--primary);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    animation: scaleIn 0.6s ease-out 0.1s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

/* Icon + Text Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out 0.3s both;
}

.btn-icon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-icon::before {
    content: '→';
    font-size: 1.2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    font-size: 150px;
    animation: scaleIn 0.8s ease-out 0.4s both;
}

/* Sections - Zigzag Layout */
.section {
    padding: 100px 20px;
}

.section-white { background: var(--bg-white); }

.section-grid {
    background-color: var(--bg-light);
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Zigzag Row */
.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.zigzag-row:nth-child(even) { direction: rtl; }
.zigzag-row:nth-child(even) > * { direction: ltr; }

.zigzag-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.zigzag-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.zigzag-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
}

/* Flat Cards + Hover Shadow */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.flat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.flat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-light);
}

.flat-card .card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.flat-card:hover .card-icon {
    transform: scale(1.2);
}

.flat-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.flat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-white);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.step-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.step-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    transition: all 0.4s;
}

.stat-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    text-align: left;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
}

.author-info h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover { background: var(--bg-light); }

.faq-question h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 25px 22px;
    display: none;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-white::before { content: '→'; font-size: 1.2rem; }

/* Footer */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 30px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Page Content */
.page-content {
    padding: 140px 20px 80px;
    min-height: 70vh;
}

.content-wrapper { max-width: 900px; margin: 0 auto; }

.page-content h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 800;
}

.entry-content {
    color: var(--text-muted);
    line-height: 1.9;
}

.entry-content p { margin-bottom: 20px; }

.entry-content h2, .entry-content h3 {
    color: var(--text-dark);
    margin: 35px 0 20px;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.blog-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.3s;
}

.blog-card h3 a:hover { color: var(--primary); }

.blog-card p {
    color: var(--text-muted);
    margin-top: 15px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .zigzag-row { grid-template-columns: 1fr; text-align: center; }
    .zigzag-row:nth-child(even) { direction: ltr; }
    .grid-3, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .grid-3, .grid-4, .steps-grid, .stats-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .hero-illustration { font-size: 100px; }
}
