@import url('https://cdn.jsdelivr.net/npm/galmuri@latest/dist/galmuri.css');
@font-face {
    font-family: 'Galmuri11-Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/Galmuri11-Bold.woff2') format('woff2');
    font-weight: 700;
}
@font-face {
    font-family: 'Xcu';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/exqt.woff2') format('woff2');
}

:root {
    --font-sans: 'Galmuri11', sans-serif;
    --font-bold: 'Galmuri11-Bold', sans-serif;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #888;
    --border: #e8e8e8;
    --accent: #667eea;
    --accent2: #764ba2;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,.04);
}

.dark {
    --bg: #0f0f0f;
    --bg-card: #1a1a1a;
    --text: #eee;
    --text-muted: #777;
    --border: #2a2a2a;
    --accent: #7b93ff;
    --accent2: #a277d6;
    --shadow: 0 2px 8px rgba(0,0,0,.2);
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .8; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.dark .site-header { background: rgba(15,15,15,.9); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-bold);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}

.logo-text { font-size: 1.15em; }
.accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: .9em; transition: color .2s; }
.site-nav a:hover { color: var(--text); }

.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px; color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: .9em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
}
.btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-sm { padding: 6px 16px; font-size: .83em; }
.btn-lg { padding: 14px 36px; font-size: 1em; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: linear-gradient(135deg, #f5576c, #e74c3c); }
.btn-xs { padding: 3px 10px; font-size: .78em; border-radius: 6px; }

.hero { padding: 100px 0 60px; text-align: center; }
.hero-badge { display: inline-block; background: rgba(102,126,234,.1); color: var(--accent); padding: 4px 14px; border-radius: 20px; font-size: .8em; margin-bottom: 20px; border: 1px solid rgba(102,126,234,.2); }
.hero h1 { font-family: var(--font-bold); font-size: 2.8em; line-height: 1.2; margin-bottom: 16px; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: var(--text-muted); font-size: 1.05em; max-width: 520px; margin: 0 auto 32px; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-bold); font-size: 1.6em; }
.hero-stats .stat span { color: var(--text-muted); font-size: .85em; }

section { padding: 80px 0; }
.section-title { font-family: var(--font-bold); font-size: 1.6em; text-align: center; margin-bottom: 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: .2s; box-shadow: var(--shadow); }
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 2em; margin-bottom: 12px; }
.feature-card h3 { font-family: var(--font-bold); font-size: 1.05em; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .9em; line-height: 1.7; }

.how-it-works { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.step { text-align: center; padding: 20px; min-width: 140px; }
.step-num { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; align-items: center; justify-content: center; font-family: var(--font-bold); font-size: 1.2em; margin-bottom: 12px; }
.step h3 { font-family: var(--font-bold); font-size: .95em; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: .82em; }
.step-arrow { font-size: 1.5em; color: var(--text-muted); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.template-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; box-shadow: var(--shadow); }
.template-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.template-preview { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.template-preview .preview-badge { font-size: 2.5em; margin-bottom: 8px; }
.template-preview h4 { font-family: var(--font-bold); font-size: 1.1em; opacity: .9; }
.template-info { padding: 20px; }
.template-info h3 { font-family: var(--font-bold); font-size: 1em; margin-bottom: 8px; }
.template-info p { color: var(--text-muted); font-size: .85em; margin-bottom: 16px; }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 60px); padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--font-bold); font-size: 1.4em; margin-bottom: 8px; }
.auth-sub { color: var(--text-muted); font-size: .85em; margin-bottom: 24px; line-height: 1.6; }
.auth-link { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: .88em; }
.auth-link a { color: var(--accent); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85em; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .9em;
    transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group small { display: block; color: var(--text-muted); font-size: .78em; margin-top: 4px; }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .88em; }
.alert-error { background: rgba(245,87,108,.1); border: 1px solid rgba(245,87,108,.2); color: #f5576c; }
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.2); color: #27ae60; }

.help-text { color: var(--text-muted); font-size: .8em; margin-top: 8px; }

.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-family: var(--font-bold); font-size: 1em; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: .88em; line-height: 1.7; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand p { color: var(--text-muted); font-size: .82em; margin-top: 4px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); font-size: .85em; }

@media (max-width: 768px) {
    .site-nav { display: none; }
    .hamburger { display: block; }
    .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 100; }
    .hero h1 { font-size: 2em; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .form-row { grid-template-columns: 1fr; }
}
