/* Firecracker Theme (vue-020) */
:root {
    --night-sky: #030712;
    --night-deep: #0a1128;
    --night-mid: #111827;
    --firework-red: #EF4444;
    --spark-gold: #F59E0B;
    --firework-blue: #60A5FA;
    --spark-green: #34D399;
    --flash-white: #FFFFFF;
    --star-dim: rgba(255, 255, 255, 0.3);
    --star-bright: rgba(255, 255, 255, 0.7);
    --font-main: 'Do Hyeon', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--night-sky);
    color: var(--flash-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Keyframes */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes starburst {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes explode {
    0% { transform: scale(0); opacity: 1; }
    60% { transform: scale(1.5); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 60px currentColor; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Star Background */
.star-bg { position: relative; }
.star-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, var(--star-bright), transparent),
        radial-gradient(1px 1px at 30% 60%, var(--star-dim), transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, var(--star-bright), transparent),
        radial-gradient(1px 1px at 70% 80%, var(--star-dim), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, var(--star-bright), transparent),
        radial-gradient(1px 1px at 15% 90%, var(--star-dim), transparent),
        radial-gradient(1px 1px at 85% 15%, var(--star-bright), transparent),
        radial-gradient(1px 1px at 45% 45%, var(--star-dim), transparent),
        radial-gradient(1.5px 1.5px at 65% 30%, var(--star-bright), transparent),
        radial-gradient(1px 1px at 25% 75%, var(--star-dim), transparent);
    pointer-events: none;
    z-index: 0;
    animation: twinkle 3s ease-in-out infinite alternate;
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(3, 7, 18, 0.98);
    border-bottom-color: rgba(239, 68, 68, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--firework-red);
    letter-spacing: 2px;
    position: relative;
    text-decoration: none;
}

.logo::after {
    content: '';
    position: absolute;
    top: -3px; right: -8px;
    width: 8px; height: 8px;
    background: var(--spark-gold);
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list li:nth-child(1) a { color: var(--firework-red); }
.nav-list li:nth-child(2) a { color: var(--spark-gold); }
.nav-list li:nth-child(3) a { color: var(--firework-blue); }
.nav-list li:nth-child(4) a { color: var(--spark-green); }

.nav-list a {
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-list a:hover::after { width: 100%; }

.header-cta {
    padding: 0.6rem 1.5rem;
    background: var(--spark-gold);
    color: var(--night-sky);
    border: none;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.header-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 28px; height: 3px;
    background: var(--firework-red);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: slideDown 0.3s ease;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav a:nth-child(1) { color: var(--firework-red); }
.mobile-nav a:nth-child(2) { color: var(--spark-gold); }
.mobile-nav a:nth-child(3) { color: var(--firework-blue); }
.mobile-nav a:nth-child(4) { color: var(--spark-green); }
.mobile-nav a:nth-child(5) { color: var(--flash-white); }

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.05) 0%, var(--night-sky) 70%);
}

.hero-burst {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, rgba(245, 158, 11, 0.05) 30%, transparent 60%);
    border-radius: 50%;
    animation: starburst 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--flash-white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero-title .accent {
    color: var(--firework-red);
    position: relative;
}

.hero-title .accent::before {
    content: '';
    position: absolute;
    top: -20px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: radial-gradient(circle, var(--spark-gold) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-firework {
    padding: 1rem 2.5rem;
    font-family: var(--font-main);
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-red {
    background: var(--firework-red);
    color: var(--flash-white);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-gold {
    background: transparent;
    color: var(--spark-gold);
    border: 2px solid var(--spark-gold);
}

.btn-gold:hover {
    background: var(--spark-gold);
    color: var(--night-sky);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.hero-decoration {
    position: absolute;
    bottom: 5%; left: 0; width: 100%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    pointer-events: none;
}

.hero-decoration .trail {
    width: 2px; height: 80px;
    background: linear-gradient(to top, transparent, var(--firework-red), transparent);
    animation: floatUp 3s ease-in-out infinite;
}

.hero-decoration .trail:nth-child(2) { background: linear-gradient(to top, transparent, var(--spark-gold), transparent); animation-delay: 0.5s; }
.hero-decoration .trail:nth-child(3) { background: linear-gradient(to top, transparent, var(--firework-blue), transparent); animation-delay: 1s; }
.hero-decoration .trail:nth-child(4) { background: linear-gradient(to top, transparent, var(--spark-green), transparent); animation-delay: 1.5s; }

/* Features Section */
.features-section {
    position: relative;
    padding: 6rem 1.5rem;
    background: var(--night-deep);
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 1rem; }
.section-header p { color: rgba(255, 255, 255, 0.6); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    transition: height 0.3s ease;
}

.feature-card:nth-child(1)::before { background: var(--firework-red); }
.feature-card:nth-child(2)::before { background: var(--spark-gold); }
.feature-card:nth-child(3)::before { background: var(--firework-blue); }
.feature-card:nth-child(4)::before { background: var(--spark-green); }

.feature-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.15); }
.feature-card:hover::before { height: 5px; }

.feature-card:nth-child(1):hover { box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15); }
.feature-card:nth-child(2):hover { box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15); }
.feature-card:nth-child(3):hover { box-shadow: 0 20px 40px rgba(96, 165, 250, 0.15); }
.feature-card:nth-child(4):hover { box-shadow: 0 20px 40px rgba(52, 211, 153, 0.15); }

.feature-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card:nth-child(1) .feature-icon { background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%); color: var(--firework-red); }
.feature-card:nth-child(2) .feature-icon { background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%); color: var(--spark-gold); }
.feature-card:nth-child(3) .feature-icon { background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%); color: var(--firework-blue); }
.feature-card:nth-child(4) .feature-icon { background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, transparent 70%); color: var(--spark-green); }

.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.feature-card p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; line-height: 1.7; }

/* Board Widgets Section */
.boards-section { position: relative; padding: 6rem 1.5rem; background: var(--night-sky); }

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.board-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.board-card:hover { border-color: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }

.board-card-top { height: 4px; }
.board-card:nth-child(1) .board-card-top { background: var(--firework-red); }
.board-card:nth-child(2) .board-card-top { background: var(--spark-gold); }
.board-card:nth-child(3) .board-card-top { background: var(--firework-blue); }

.board-sparkle {
    position: absolute;
    top: 15px; right: 15px;
    width: 6px; height: 6px;
    border-radius: 50%;
    animation: sparkle 2.5s ease-in-out infinite;
}

.board-card:nth-child(1) .board-sparkle { background: var(--firework-red); }
.board-card:nth-child(2) .board-sparkle { background: var(--spark-gold); }
.board-card:nth-child(3) .board-sparkle { background: var(--firework-blue); }

.board-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.75rem;
}

.board-card-header h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.board-card:nth-child(1) .board-card-header h3 { color: var(--firework-red); }
.board-card:nth-child(2) .board-card-header h3 { color: var(--spark-gold); }
.board-card:nth-child(3) .board-card-header h3 { color: var(--firework-blue); }

.board-more { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); transition: color 0.3s ease; }
.board-more:hover { color: var(--flash-white); }

.board-list { padding: 0.75rem 1.5rem 1.5rem; }

.board-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.board-item:last-child { border-bottom: none; }
.board-item:hover { padding-left: 0.5rem; }

.board-item-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.board-item-title:hover { color: var(--flash-white); }

.board-item-date { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

/* Stats Section */
.stats-section {
    position: relative;
    padding: 6rem 1.5rem;
    background: var(--night-deep);
    overflow: hidden;
}

.stats-burst {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item { text-align: center; position: relative; }

.stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.stat-item:nth-child(1) .stat-number { color: var(--firework-red); }
.stat-item:nth-child(2) .stat-number { color: var(--spark-gold); }
.stat-item:nth-child(3) .stat-number { color: var(--firework-blue); }
.stat-item:nth-child(4) .stat-number { color: var(--spark-green); }

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 2px;
    background: currentColor;
    opacity: 0.5;
}

.stat-label { font-size: 1rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.75rem; }

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 1.5rem;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.08) 0%, transparent 35%),
        var(--night-sky);
}

.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.cta-subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--flash-white);
    color: var(--night-sky);
    font-family: var(--font-main);
    font-size: 1.3rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(239, 68, 68, 0.2), 0 0 60px rgba(245, 158, 11, 0.1);
}

/* Footer */
.site-footer {
    position: relative;
    padding: 4rem 1.5rem 2rem;
    background: var(--night-sky);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col:nth-child(1) h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--firework-red); }
.footer-col:nth-child(2) h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--spark-gold); }
.footer-col:nth-child(3) h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--firework-blue); }
.footer-col:nth-child(4) h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--spark-green); }

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.5); font-size: 0.95rem; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--flash-white); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.pop-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pop-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 359px) {
    html { font-size: 13px; }
}

@media (min-width: 360px) and (max-width: 767px) {
    html { font-size: 14px; }
    .nav-list, .header-cta { display: none; }
    .mobile-toggle { display: flex; }
    .hero-section { padding: 6rem 1rem 3rem; min-height: 80vh; }
    .hero-burst { width: 300px; height: 300px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-firework { width: 100%; max-width: 280px; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .boards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-decoration { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 15px; }
    .nav-list, .header-cta { display: none; }
    .mobile-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    html { font-size: 16px; }
}

@media (min-width: 1280px) and (max-width: 1919px) {
    html { font-size: 16px; }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    html { font-size: 18px; }
    .container { max-width: 1400px; }
}

@media (min-width: 2560px) and (max-width: 3839px) {
    html { font-size: 20px; }
}

@media (min-width: 3840px) {
    html { font-size: 22px; }
}
/* HM_THEME_OVERFLOW_GUARD */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
body,
body * {
    box-sizing: border-box;
}
img,
video,
canvas,
svg {
    max-width: 100%;
}
main,
#app,
#index-app,
.main-content,
.container,
.section,
.hero,
.hero-content,
.hero-title,
.hero-desc,
.hero-actions {
    max-width: 100% !important;
    min-width: 0 !important;
}
.hero-content,
.hero-title,
.hero-desc {
    overflow-wrap: anywhere;
}
/* END_HM_THEME_OVERFLOW_GUARD */
