/*
Theme Name: Flavor Starter
Theme URI: https://htxexchange.vsquaremall.co.kr
Author: VSquare Mall
Description: HTX 거래소 테더맥스 랜딩 페이지 - 다크모드, Inter 폰트, 글래스모피즘
Version: 1.0.0
Text Domain: flavor-starter
*/

/* Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Dark Theme */
:root {
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --accent-color: #22D3EE;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --bg-primary: #0A0A0F;
    --bg-secondary: #111118;
    --bg-tertiary: #1A1A24;
    --bg-card: rgba(26, 26, 36, 0.8);
    --border-color: rgba(99, 102, 241, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    --gradient-accent: linear-gradient(135deg, #22D3EE 0%, #6366F1 100%);
    --gradient-dark: linear-gradient(180deg, #0A0A0F 0%, #111118 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Orbs */
.floating-bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.bubble-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation: orb-float 25s ease-in-out infinite;
}

.bubble-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation: orb-float 30s ease-in-out infinite reverse;
}

.bubble-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: orb-float 20s ease-in-out infinite;
}

.bubble-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    bottom: 40%;
    right: 10%;
    animation: orb-float 22s ease-in-out infinite reverse;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

/* Header - Scroll Triggered */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.site-header.scrolled {
    transform: translateY(0);
    opacity: 1;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-light);
}

/* Glassmorphism Button */
.header-cta {
    padding: 0.625rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Main Content */
.site-main {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    background: var(--gradient-dark);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Typing Animation */
.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Glassmorphism Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

/* Section Styles */
section {
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

/* Minimal Line Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: transparent;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

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

/* Steps Section */
.steps-section {
    background: var(--gradient-dark);
}

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

.step-card {
    background: transparent;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.step-card:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.step-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

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

/* Benefits Section */
.benefits-section {
    background: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: transparent;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.benefit-card:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    font-size: 1.125rem;
}

.benefit-stat {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Trust Section */
.trust-section {
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.trust-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.trust-item {
    text-align: center;
    color: white;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--gradient-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

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

.testimonial-rating {
    color: #FBBF24;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
}

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

.faq-item {
    background: transparent;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.active {
    background: var(--bg-card);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

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

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Floating Animation */
.floating {
    animation: float-subtle 6s ease-in-out infinite;
}

.floating:nth-child(2) { animation-delay: 1s; }
.floating:nth-child(3) { animation-delay: 2s; }
.floating:nth-child(4) { animation-delay: 1.5s; }
.floating:nth-child(5) { animation-delay: 0.5s; }
.floating:nth-child(6) { animation-delay: 2.5s; }

@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .main-nav {
        display: none;
    }

    .hero-subtitle {
        white-space: normal;
        border-right: none;
        animation: none;
    }

    .hero-section {
        padding: 4rem 1.5rem;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

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

.post-thumbnail {
    height: 200px;
    background: var(--gradient-primary);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--primary-light);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Single Post */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.single-post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.single-post-content h2 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

/* Page Styles */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content h2 {
    color: var(--primary-light);
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating,
    .floating-bubble,
    .hero-subtitle,
    .btn-primary::before,
    .cta-section::before {
        animation: none;
    }
}
