/* ============================================================
   Codewave — Light Theme
   ============================================================ */

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

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-dark: #3730a3;
    --accent-color: #d97706;
    --text-color: #1e293b;
    --text-light: #475569;
    --text-lighter: #94a3b8;
    --bg-color: #f8fafc;
    --bg-light: #ffffff;
    --bg-dark: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --error-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
    --radius: 14px;
    --radius-sm: 10px;
    --max-width: 1160px;
    --sidebar-width: 232px;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================================
   App shell + Sidebar
   ============================================================ */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
    padding: 6px 10px 20px;
}

.sidebar-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
    background: var(--bg-dark);
    color: var(--text-color);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.sidebar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    flex-shrink: 0;
}

.sidebar-link.active .sidebar-dot {
    opacity: 1;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-auth {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-auth.primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.sidebar-auth.primary:hover {
    background: var(--primary-hover);
}

.sidebar-auth.secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.sidebar-auth.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-light);
    border-color: var(--border-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-danger {
    background: #fff1f2;
    color: var(--error-color);
    border-color: #fecdd3;
}

.btn-danger:hover {
    background: var(--error-color);
    color: #fff;
    border-color: var(--error-color);
}

.btn-small {
    padding: 7px 14px;
    font-size: 13px;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
    padding: 64px 0;
}

.section-soft {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: 16px;
}

.section-head {
    margin-bottom: 36px;
}

.section-head-copy {
    color: var(--text-light);
    font-size: 15px;
}

.home-section-intro {
    max-width: 720px;
    margin-bottom: 40px;
}

.home-section-intro p {
    color: var(--text-light);
    font-size: 16px;
}

/* ============================================================
   Hero (home)
   ============================================================ */

.hero {
    padding: 40px 0 8px;
}

.hero-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 380px;
    display: flex;
    align-items: stretch;
}

.hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.5) 48%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 56px;
    max-width: 560px;
    color: #fff;
}

.hero-kicker {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-mobile-title,
.hero-mobile-summary {
    display: none;
}

/* ============================================================
   Feature cards
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================================
   Cards (activities)
   ============================================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.card-clickable {
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.card-image-placeholder {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-lighter);
    font-size: 28px;
}

.card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.45;
}

.card-action-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 72px 24px;
    color: var(--text-lighter);
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 6px;
}

/* ============================================================
   About / Members hero
   ============================================================ */

.about-hero {
    padding: 88px 0 72px;
    text-align: center;
    background:
        radial-gradient(560px 220px at 50% 0%, rgba(79, 70, 229, 0.08), transparent),
        var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.about-hero h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-color);
    margin-bottom: 14px;
}

.about-hero p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-section {
    padding: 56px 0;
}

.about-section + .about-section {
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 840px;
    margin: 0 auto;
}

.about-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-content h2 svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.about-content > p {
    font-size: 15.5px;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 14px;
}

.about-content strong {
    color: var(--text-color);
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 26px 28px;
}

.info-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
}

/* ============================================================
   Member cards
   ============================================================ */

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.member-grid-staff {
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
}

.member-card-link {
    display: block;
}

.member-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 22px 26px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.member-card-staff {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--card-bg) 45%);
}

.member-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-large {
    width: 84px;
    height: 84px;
    font-size: 32px;
}

.member-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.member-role {
    font-size: 13px;
    color: var(--text-lighter);
    margin-bottom: 12px;
}

.member-bio-snippet {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}

.member-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.member-badge.president {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.member-badge.member {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid #c7d2fe;
}

/* ============================================================
   Board
   ============================================================ */

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.board-header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.board-shell {
    max-width: 880px;
}

.board-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.board-hero h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 6px 0 8px;
}

.board-hero p {
    color: var(--text-light);
    font-size: 15px;
}

.editor-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.post-list-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-list-head {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    transition: background 0.15s;
}

.post-item + .post-item {
    border-top: 1px solid var(--border-color);
}

.post-item:hover {
    background: var(--bg-dark);
}

.post-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-info {
    min-width: 0;
}

.post-title {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-lighter);
}

/* ============================================================
   Post detail
   ============================================================ */

.post-detail-shell {
    padding: 56px 28px;
}

.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.post-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 34px;
    margin-bottom: 20px;
}

.post-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

.post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-header-card h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 14px;
}

.post-author-info {
    display: flex;
    align-items: center;
}

.post-author-block {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13.5px;
}

.post-author {
    font-weight: 700;
    color: var(--text-light);
}

.post-date {
    color: var(--text-lighter);
}

.post-content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 34px;
    margin-bottom: 24px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   Markdown body
   ============================================================ */

.markdown-body,
.activity-content {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--text-light);
    word-break: break-word;
}

.markdown-body h1, .activity-content h1,
.markdown-body h2, .activity-content h2,
.markdown-body h3, .activity-content h3,
.markdown-body h4, .activity-content h4 {
    color: var(--text-color);
    font-weight: 700;
    margin: 28px 0 12px;
    line-height: 1.4;
}

.markdown-body h1, .activity-content h1 { font-size: 24px; }
.markdown-body h2, .activity-content h2 { font-size: 20px; }
.markdown-body h3, .activity-content h3 { font-size: 17px; }
.markdown-body h4, .activity-content h4 { font-size: 16px; }

.markdown-body h1:first-child, .activity-content h1:first-child,
.markdown-body h2:first-child, .activity-content h2:first-child,
.markdown-body h3:first-child, .activity-content h3:first-child {
    margin-top: 0;
}

.markdown-body p, .activity-content p {
    margin-bottom: 14px;
}

.markdown-body strong, .activity-content strong {
    color: var(--text-color);
}

.markdown-body a, .activity-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.markdown-body ul, .activity-content ul,
.markdown-body ol, .activity-content ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.markdown-body ul, .activity-content ul { list-style: disc; }
.markdown-body ol, .activity-content ol { list-style: decimal; }

.markdown-body li, .activity-content li {
    margin-bottom: 6px;
}

.markdown-body code, .activity-content code {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--primary-dark);
}

.markdown-body pre, .activity-content pre {
    background: #0f172a;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-body pre code, .activity-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e2e8f0;
}

.markdown-body blockquote, .activity-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 4px 0 4px 18px;
    color: var(--text-lighter);
    margin: 16px 0;
}

/* ============================================================
   Activity detail
   ============================================================ */

.activity-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 28px;
}

.activity-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.activity-header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 12px;
}

.activity-meta {
    font-size: 13.5px;
    color: var(--text-lighter);
}

.activity-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.activity-detail .detail-actions {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   Forms
   ============================================================ */

.form-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 28px;
}

.form-section h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-color);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.7;
}

.form-group small {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--text-lighter);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-dark);
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.inline-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* Upload dropzone */
.upload-dropzone {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1.5px dashed #c7d2fe;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
}

.upload-dropzone svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.upload-dropzone span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.upload-dropzone strong {
    font-size: 14px;
    color: var(--text-color);
}

.upload-input {
    display: none;
}

.file-meta {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-lighter);
}

/* ============================================================
   Editor pages
   ============================================================ */

.editor-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 28px;
}

.editor-header {
    margin-bottom: 28px;
}

.editor-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 6px 0 8px;
}

.editor-header p {
    color: var(--text-light);
    font-size: 15px;
}

.editor-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.editor-actions {
    justify-content: flex-end;
}

.editor-delete {
    margin-top: 24px;
    padding: 24px 28px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: var(--radius);
}

.editor-delete h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--error-color);
    margin-bottom: 6px;
}

.editor-delete p {
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* ============================================================
   Admin
   ============================================================ */

.admin-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 28px;
}

.admin-table-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.admin-table-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table-desc {
    color: var(--text-light);
    font-size: 14.5px;
}

.admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th {
    text-align: left;
    padding: 14px 18px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-dark);
}

.admin-inline-link {
    color: var(--text-color);
}

.admin-inline-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.admin-empty {
    margin-top: 16px;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-lighter);
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    font-size: 14.5px;
}

/* ============================================================
   Toasts
   ============================================================ */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 48px));
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.25s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-hide {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--error-color); }
.toast-info .toast-icon { color: var(--primary-color); }

.toast-message {
    font-size: 14px;
    color: var(--text-color);
    flex: 1;
}

.toast-close {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 0;
}

.toast-close:hover {
    color: var(--text-color);
}

.toast-close svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Auth pages (master login)
   ============================================================ */

.auth-body {
    background: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.auth-waves {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}

.auth-wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 100%;
}

.auth-wave path { fill: rgba(79, 70, 229, 0.06); }
.auth-wave-2 path { fill: rgba(79, 70, 229, 0.04); }
.auth-wave-3 path { fill: rgba(148, 163, 184, 0.12); }

.auth-back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.15s, border-color 0.15s;
}

.auth-back-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-back-btn svg {
    width: 16px;
    height: 16px;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.auth-card .form-section {
    max-width: none;
    padding: 0;
    margin: 0;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 44px 0 24px;
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
    padding-bottom: 28px;
}

.footer-logo .logo-image {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.footer-info p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-info p:first-child {
    font-weight: 700;
    color: var(--text-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 13.5px;
    color: var(--text-light);
    transition: color 0.15s;
}

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

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

.footer-bottom p {
    font-size: 12.5px;
    color: var(--text-lighter);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 1000;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
    }

    .sidebar-brand {
        padding: 0 8px 0 0;
        font-size: 16px;
        flex-shrink: 0;
    }

    .sidebar-logo {
        width: 28px;
        height: 28px;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 2px;
        flex: 1;
    }

    .sidebar-link {
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .sidebar-dot {
        display: none;
    }

    .sidebar-footer {
        flex-direction: row;
        border-top: none;
        padding-top: 0;
        flex-shrink: 0;
    }

    .sidebar-auth {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 44px 0;
    }

    .section-title {
        font-size: 23px;
    }

    .hero {
        padding: 20px 0 4px;
    }

    .hero-banner {
        min-height: 0;
    }

    .hero-banner::after {
        display: none;
    }

    .hero-banner-image {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .hero-content {
        display: none;
    }

    .hero-mobile-title {
        display: block;
        position: absolute;
        top: 16px;
        left: 20px;
        z-index: 1;
    }

    .hero-mobile-title h1 {
        font-size: 26px;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 10px rgba(15, 23, 42, 0.5);
        letter-spacing: 0.02em;
    }

    .hero-mobile-summary {
        display: block;
        margin-top: 16px;
    }

    .hero-mobile-summary p {
        font-size: 14.5px;
        color: var(--text-light);
        line-height: 1.75;
    }

    .about-hero {
        padding: 56px 0 48px;
    }

    .about-hero h1 {
        font-size: 30px;
    }

    .about-section {
        padding: 40px 0;
    }

    .about-content h2 {
        font-size: 20px;
    }

    .post-detail-shell,
    .activity-detail,
    .editor-shell,
    .form-section,
    .admin-section {
        padding: 36px 20px;
    }

    .post-header-card,
    .post-content-card,
    .editor-card {
        padding: 22px;
    }

    .activity-header h1 {
        font-size: 24px;
    }

    .inline-inputs {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Admin table → stacked cards */
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        border-bottom: 1px solid var(--border-color);
        padding: 14px 16px;
    }

    .admin-table tr:last-child {
        border-bottom: none;
    }

    .admin-table td {
        padding: 4px 0;
        border-bottom: none;
    }

    .admin-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: var(--text-lighter);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 2px;
    }

    .toast-container {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}


/* ════════════════════════════════════════════════════════════
   CODEWAVE — 원페이지 공개 사이트 (v7)
   강조색은 #1d36eb 하나로 고정하고, 바탕은 밝은 회색을 쓴다.
   ════════════════════════════════════════════════════════════ */

:root {
    /* 브랜드 — 예전 이름은 남겨 두고 모두 강조색 계열로 맞춘다 */
    --cw-accent:    #1d36eb;
    --cw-blue:      #1d36eb;
    --cw-blue-deep: #1428c4;
    --cw-violet:    #1d36eb;
    --cw-cyan:      #5468f2;
    --cw-orange:    #1d36eb;

    /* 잉크 */
    --cw-ink:       #070c1a;
    --cw-ink-soft:  #0d1730;
    --cw-navy:      #101c3a;

    /* 표면 */
    --cw-paper:     #e2e2e3;
    --cw-white:     #ffffff;
    --cw-line:      #d4d4d7;
    --cw-line-soft: #ebebec;
    --cw-card:      #f1f1f2;

    /* 텍스트 */
    --cw-text:      #111114;
    --cw-text-mid:  #4a4a52;
    --cw-text-dim:  #7a7a84;

    --cw-shadow-sm: 0 2px 8px rgba(17, 17, 20, .05);
    --cw-shadow:    0 14px 38px -14px rgba(17, 17, 20, .18);
    --cw-shadow-lg: 0 34px 70px -28px rgba(17, 17, 20, .3);

    --cw-radius:    28px;
    --cw-radius-sm: 28px;

    --cw-grad: linear-gradient(115deg, var(--cw-blue-deep) 0%, var(--cw-accent) 50%, var(--cw-cyan) 100%);

    /* 레거시 관리자 화면과의 호환 */
    --primary-color: #1d36eb;
    --primary-hover: #1428c4;
    --primary-light: #e8ebfd;
    --primary-dark:  #1428c4;
    --accent-color:  #1d36eb;
    --text-color:    #111114;
    --text-light:    #4a4a52;
    --text-lighter:  #7a7a84;
    --bg-color:      #e2e2e3;
    --bg-light:      #fff;
    --bg-dark:       #ebebec;
    --card-bg:       #fff;
    --border-color:  #d4d4d7;
    --max-width:     1200px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--cw-paper);
    color: var(--cw-text);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.landing-wrap,
.site-header-inner,
.site-footer-inner {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
}

::selection {
    background: rgba(29, 54, 235, .22);
}

/* ── 헤더 (떠 있는 알약 두 개) ─────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 16px;
    pointer-events: none;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-header-pill {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 10px 28px -14px rgba(17, 17, 20, .22);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    pointer-events: auto;
    transition: box-shadow .3s ease;
}

.site-header.is-stuck .site-header-pill {
    box-shadow: 0 1px 2px rgba(17, 17, 20, .05), 0 14px 34px -14px rgba(17, 17, 20, .32);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    font: 700 21px/1 'Space Grotesk', sans-serif;
    letter-spacing: -.05em;
    color: var(--cw-text);
}

.wordmark-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.34, 1.4, .5, 1);
}

.wordmark:hover .wordmark-logo {
    transform: rotate(-14deg) scale(1.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--cw-text);
    transition: background-color .2s ease, color .2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: #ececed;
}

.site-nav a.is-active {
    color: var(--cw-accent);
    font-weight: 600;
}

.site-nav-join {
    display: none;
}

.site-header-actions {
    gap: 4px;
}

.site-header-text {
    padding: 10px 16px;
    border-radius: 11px;
    color: var(--cw-text);
    font-size: 14.5px;
    font-weight: 500;
    transition: background-color .2s ease;
}

.site-header-text:hover {
    background: #ececed;
}

.site-header-cta {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 11px;
    background: #111114;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    transition: background-color .2s ease;
}

.site-header-cta:hover {
    background: var(--cw-accent);
}

/* 히어로가 있는 랜딩에서는 히어로 위에 겹쳐 띄운다 */
body:has(.cw-hero) .site-header {
    position: fixed;
    right: 0;
    left: 0;
}

/* ── 공통 타이포 ──────────────────────────────────────── */
.cw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    padding: 7px 15px 7px 12px;
    border: 1px solid rgba(29, 54, 235, .22);
    border-radius: 999px;
    background: rgba(29, 54, 235, .07);
    color: var(--cw-blue-deep);
    font: 600 12px/1 'Space Grotesk', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cw-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cw-grad);
    box-shadow: 0 0 0 3px rgba(29, 54, 235, .14);
}


.cw-section h2 {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -.05em;
    word-break: keep-all;
}

.cw-section h2 em {
    position: relative;
    font-style: normal;
    background: var(--cw-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cw-lead {
    margin: 0;
    color: var(--cw-text-mid);
    font-size: 15.5px;
    line-height: 1.85;
    word-break: keep-all;
}

.cw-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.cw-head .cw-lead {
    margin-top: 20px;
}

.cw-head-center {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
}

/* 스크롤 등장 (JS가 있을 때만 숨겼다가 띄운다) */
.cw-js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.cw-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ── 버튼 ─────────────────────────────────────────────── */
.cw-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .22s cubic-bezier(.34, 1.3, .5, 1), box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}

.cw-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.cw-btn:hover svg {
    transform: translateX(4px);
}

.cw-btn-primary {
    background: var(--cw-grad);
    background-size: 180% 100%;
    color: #fff;
    box-shadow: 0 14px 34px -12px rgba(29, 54, 235, .7);
}

.cw-btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px -12px rgba(29, 54, 235, .8);
}

.cw-btn-ghost {
    border: 1px solid rgba(17, 17, 20, .1);
    background: rgba(255, 255, 255, .85);
    color: var(--cw-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cw-btn-ghost:hover {
    border-color: rgba(17, 17, 20, .2);
    background: #fff;
    transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   HERO — 3D 회전 로고
   ════════════════════════════════════════════════════════════ */

.cw-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 104px 0 80px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #efeff0 0%, var(--cw-paper) 60%);
    color: var(--cw-text);
    isolation: isolate;
}

.cw-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    /* 아래 티커와 경계가 생기지 않도록 바닥으로 갈수록 지운다 */
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* 은은하게 흐르는 오로라 */
.cw-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .28;
    will-change: transform;
}

.cw-aurora-a {
    width: 620px;
    height: 620px;
    top: -220px;
    left: -140px;
    background: radial-gradient(circle, rgba(29, 54, 235, .5), transparent 68%);
    animation: cw-drift-a 22s ease-in-out infinite alternate;
}

.cw-aurora-b {
    width: 720px;
    height: 720px;
    top: -80px;
    right: -220px;
    background: radial-gradient(circle, rgba(29, 54, 235, .42), transparent 68%);
    animation: cw-drift-b 26s ease-in-out infinite alternate;
}

.cw-aurora-c {
    width: 760px;
    height: 560px;
    bottom: -300px;
    left: 28%;
    background: radial-gradient(circle, rgba(29, 54, 235, .5), transparent 68%);
    animation: cw-drift-c 19s ease-in-out infinite alternate;
}

@keyframes cw-drift-a { to { transform: translate3d(90px, 60px, 0) scale(1.14); } }
@keyframes cw-drift-b { to { transform: translate3d(-110px, 70px, 0) scale(1.1); } }
@keyframes cw-drift-c { to { transform: translate3d(80px, -60px, 0) scale(1.16); } }

/* 격자 */
.cw-hero-grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(17, 17, 20, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 20, .05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(120% 78% at 50% 42%, #000 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 78% at 50% 42%, #000 15%, transparent 78%);
}

/* 반짝이는 점들 — 밝은 바탕에서는 쓰지 않는다 */
.cw-stars {
    display: none;
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 12% 22%, rgba(255, 255, 255, .7), transparent),
        radial-gradient(1.4px 1.4px at 82% 16%, rgba(180, 210, 255, .65), transparent),
        radial-gradient(1.8px 1.8px at 68% 74%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.3px 1.3px at 24% 82%, rgba(255, 190, 150, .6), transparent),
        radial-gradient(1.5px 1.5px at 46% 12%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(1.4px 1.4px at 92% 62%, rgba(160, 230, 255, .6), transparent),
        radial-gradient(1.2px 1.2px at 6% 58%, rgba(255, 255, 255, .5), transparent);
    animation: cw-twinkle 5s ease-in-out infinite alternate;
}

@keyframes cw-twinkle { from { opacity: .45; } to { opacity: 1; } }

.cw-hero-inner > .cw-eyebrow {
    margin-bottom: 14px;
}

.cw-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1200px, calc(100% - 48px));
    text-align: center;
}

/* ── 로고 스테이지 ────────────────────────────────────── */
.cw-logo-stage {
    position: relative;
    width: min(316px, 33vh, 62vw);
    aspect-ratio: 1;
    margin: 2px 0 clamp(16px, 2.4vw, 28px);
    perspective: 1100px;
    perspective-origin: 50% 46%;
}

/* 뒤에서 퍼지는 컬러 블룸 */
.cw-logo-bloom {
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 34%, rgba(29, 54, 235, .5), transparent 52%),
        radial-gradient(circle at 70% 62%, rgba(29, 54, 235, .45), transparent 54%),
        radial-gradient(circle at 52% 50%, rgba(29, 54, 235, .42), transparent 62%);
    filter: blur(46px);
    animation: cw-bloom 7s ease-in-out infinite;
}

@keyframes cw-bloom {
    0%, 100% { opacity: .72; transform: scale(.94); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

/* 3D 궤도 링 */
.cw-logo-orbit {
    position: absolute;
    inset: -14%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.cw-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(29, 54, 235, .2);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.cw-ring b {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #fff;
}

.cw-ring-1 {
    transform: rotateX(74deg);
    animation: cw-orbit 16s linear infinite;
}

.cw-ring-1 b {
    background: var(--cw-cyan);
    box-shadow: 0 0 14px 3px rgba(29, 54, 235, .9);
}

.cw-ring-2 {
    inset: 8%;
    border-color: rgba(29, 54, 235, .16);
    transform: rotateX(70deg) rotateY(26deg);
    animation: cw-orbit 21s linear infinite reverse;
}

.cw-ring-2 b {
    background: var(--cw-orange);
    box-shadow: 0 0 14px 3px rgba(29, 54, 235, .85);
}

.cw-ring-3 {
    inset: -8%;
    border-color: rgba(29, 54, 235, .1);
    transform: rotateX(78deg) rotateY(-18deg);
    animation: cw-orbit 30s linear infinite;
}

@keyframes cw-orbit { to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes cw-orbit-2 { to { transform: rotateX(70deg) rotateY(26deg) rotateZ(360deg); } }

.cw-ring-2 { animation-name: cw-orbit-2; }

/* 마우스 시차 (JS가 --cw-tx / --cw-ty 를 채운다) */
.cw-logo-tilt {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--cw-ty, 0deg)) rotateY(var(--cw-tx, 0deg));
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

/* 위아래로 떠 있는 움직임 */
.cw-logo-float {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: cw-float 6.5s ease-in-out infinite;
}

@keyframes cw-float {
    0%, 100% { transform: translate3d(0, -13px, 0); }
    50%      { transform: translate3d(0, 13px, 0); }
}

/* 핵심: 입체 회전 */
.cw-logo-spin {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: cw-spin3d 13s cubic-bezier(.45, .04, .55, .96) infinite;
    will-change: transform;
}

@keyframes cw-spin3d {
    0%   { transform: rotateY(-26deg) rotateX(9deg)  rotateZ(-3.5deg); }
    25%  { transform: rotateY(0deg)   rotateX(15deg) rotateZ(0deg); }
    50%  { transform: rotateY(26deg)  rotateX(9deg)  rotateZ(3.5deg); }
    75%  { transform: rotateY(0deg)   rotateX(-7deg) rotateZ(0deg); }
    100% { transform: rotateY(-26deg) rotateX(9deg)  rotateZ(-3.5deg); }
}

.cw-logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 26px 40px rgba(17, 17, 20, .2)) drop-shadow(0 0 30px rgba(29, 54, 235, .18));
}

/* 로고 실루엣을 따라 흐르는 광택 */
.cw-logo-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%);
    background-size: 260% 100%;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    opacity: .85;
    -webkit-mask-image: url('../3d_logo.png');
    mask-image: url('../3d_logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: cw-sheen 6.5s ease-in-out infinite;
}

@keyframes cw-sheen {
    0%, 62%, 100% { background-position: 190% 0; }
    30%           { background-position: -90% 0; }
}

/* 바닥 그림자 */
.cw-logo-shadow {
    position: absolute;
    right: 14%;
    bottom: -4%;
    left: 14%;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(17, 17, 20, .32), transparent 70%);
    filter: blur(11px);
    animation: cw-logo-shadow 6.5s ease-in-out infinite;
}

@keyframes cw-logo-shadow {
    0%, 100% { transform: scale(.86); opacity: .5; }
    50%      { transform: scale(1.08); opacity: .8; }
}

/* ── 히어로 텍스트 ────────────────────────────────────── */
.cw-hero-title {
    margin: 0;
    font-size: clamp(36px, 5.6vw, 72px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.06em;
    word-break: keep-all;
}

.cw-hero-title em {
    font-style: normal;
    background: var(--cw-grad);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cw-grad-shift 7s ease-in-out infinite alternate;
}

@keyframes cw-grad-shift { to { background-position: 100% 0; } }

.cw-hero-sub {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--cw-text-mid);
    font-size: clamp(14px, 1.5vw, 16.5px);
    line-height: 1.85;
    word-break: keep-all;
}

.cw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* ════════════════════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════════════════════ */

/* 콘텐츠 폭에 맞춘 검은 둥근 카드 안에서 로고 + 키워드가 흐른다 */
.cw-ticker-band {
    background: var(--cw-paper);
}

.cw-ticker {
    overflow: hidden;
    padding: 28px 0;
    border-radius: var(--cw-radius);
    background: #111112;
}

.cw-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: cw-ticker 34s linear infinite;
}

/* gap 대신 오른쪽 여백을 써야 -50% 이동이 정확히 한 바퀴가 된다 */
.cw-ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-right: 64px;
    color: #fff;
    font: 800 30px/1 'Space Grotesk', 'Noto Sans KR', sans-serif;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.cw-ticker-track img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

@keyframes cw-ticker { to { transform: translateX(-50%); } }

/* ════════════════════════════════════════════════════════════
   섹션 공통
   ════════════════════════════════════════════════════════════ */

/* 섹션마다 둥근 흰 패널에 담고, 안쪽 카드는 옅은 회색으로 둔다 */
.cw-section {
    position: relative;
    width: calc(100% - 32px);
    margin: 16px auto 0;
    padding: clamp(72px, 8vw, 110px) 0;
    border-radius: 32px;
    background: var(--cw-white);
    overflow: hidden;
}

/* 패널이 화면에 들어올 때 아래에서 떠오른다 */
.cw-js [data-panel] {
    opacity: 0;
    transform: translateY(80px) scale(.965);
    transition: opacity .8s ease, transform 1s cubic-bezier(.2, .75, .25, 1);
}

.cw-js [data-panel].is-in {
    opacity: 1;
    transform: none;
}

/* 티커와 참여 카드도 패널과 같은 폭으로 맞춘다 */
.cw-ticker-band > .landing-wrap,
.cw-join > .landing-wrap {
    width: calc(100% - 32px);
}

.cw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── ABOUT ──────────────────────────────────────────── */
.cw-about-top {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 56px;
}

.cw-about-copy p {
    margin: 0 0 18px;
    color: var(--cw-text-mid);
    font-size: 15.5px;
    line-height: 1.9;
    word-break: keep-all;
}

.cw-about-copy p:last-child { margin-bottom: 0; }

.cw-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 56px;
}

.cw-stat {
    position: relative;
    padding: 30px 30px 32px;
    border-radius: var(--cw-radius);
    background: var(--cw-card);
}

.cw-stat strong {
    display: block;
    font: 700 clamp(34px, 3.6vw, 46px)/1 'Space Grotesk', sans-serif;
    letter-spacing: -.045em;
    color: var(--cw-text);
}

.cw-stat strong i {
    font-style: normal;
    font-size: .48em;
    letter-spacing: -.02em;
}

.cw-stat span {
    display: block;
    margin-top: 12px;
    color: var(--cw-text-mid);
    font-size: 14px;
    font-weight: 500;
}

/* ── 카드 공통: 테두리·그림자 없이 둥근 면 + 단색 도형 ── */
.cw-shape {
    display: block;
    width: 76px;
    height: 76px;
    fill: currentColor;
    transition: transform .45s cubic-bezier(.34, 1.4, .5, 1);
}

/* ── FOCUS (3 pillars) ────────────────────────────────── */
.cw-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cw-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 40px 36px 38px;
    border-radius: var(--cw-radius);
    background: var(--cw-card);
    color: var(--cw-accent);
}

.cw-pillar:hover .cw-shape { transform: rotate(-8deg) scale(1.05); }

.cw-pillar h3 {
    margin: auto 0 12px;
    padding-top: 44px;
    color: var(--cw-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.045em;
}

.cw-pillar p {
    margin: 0;
    color: var(--cw-text-mid);
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
}

/* ── CRAFT (배우는 것들) ──────────────────────────────── */
.cw-craft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cw-card {
    position: relative;
    padding: 32px 30px 34px;
    border-radius: var(--cw-radius-sm);
    background: var(--cw-card);
    transition: background-color .25s ease;
}

.cw-card:hover {
    background: #e9e9eb;
}

.cw-card-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 36px;
    color: var(--cw-accent);
    transition: transform .35s cubic-bezier(.34, 1.4, .5, 1);
}

.cw-card:hover .cw-card-icon { transform: translateY(-2px) rotate(-7deg); }

.cw-card-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-i-ghost { color: #fff; }

.cw-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.cw-card p {
    margin: 0;
    color: var(--cw-text-mid);
    font-size: 14px;
    line-height: 1.75;
    word-break: keep-all;
}

.cw-card-accent {
    background: var(--cw-accent);
    color: #fff;
}

.cw-card-accent h3 { color: #fff; }

.cw-card-accent p { color: rgba(255, 255, 255, .75); }

.cw-card-accent:hover {
    background: var(--cw-blue-deep);
}

/* ── STAGE (대회 / 기대효과) ──────────────────────────── */
.cw-stage {
    padding-top: clamp(56px, 6vw, 88px);
    background: #0c0c0d;
    color: #fff;
}

/* 패널 폭 전체를 흐르는 큰 글자 */
.cw-marquee {
    overflow: hidden;
    margin-bottom: clamp(48px, 6vw, 88px);
}

.cw-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    font: 700 clamp(84px, 13vw, 210px)/1.05 'Space Grotesk', sans-serif;
    letter-spacing: -.055em;
    animation: cw-ticker 30s linear infinite;
}

/* 오른쪽 여백만 써야 -50% 이동이 정확히 반 바퀴가 된다 */
.cw-marquee-track span {
    padding-right: .32em;
    white-space: nowrap;
}

.cw-marquee-track i {
    flex: 0 0 1.1em;
    height: .09em;
    margin-right: .32em;
    background: #fff;
}

.cw-spec {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.cw-spec-figure {
    justify-self: center;
    width: 100%;
    max-width: 440px;
    margin: 0;
}

.cw-spec-figure svg {
    display: block;
    width: 100%;
    height: auto;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
}

.cw-spec-figure g path {
    vector-effect: non-scaling-stroke;
    transition: fill .3s ease;
}

.cw-spec-figure text {
    fill: #fff;
    stroke: none;
    font: 500 15px 'Space Grotesk', ui-monospace, monospace;
    letter-spacing: .08em;
    text-anchor: middle;
}

/* 오른쪽 행에 마우스를 올리면 왼쪽 도형이 채워진다 */
.cw-stage:has(.cw-spec-row:nth-child(1):hover) .cw-spec-figure g:nth-of-type(1) path,
.cw-stage:has(.cw-spec-row:nth-child(2):hover) .cw-spec-figure g:nth-of-type(2) path,
.cw-stage:has(.cw-spec-row:nth-child(3):hover) .cw-spec-figure g:nth-of-type(3) path {
    fill: #fff;
}

.cw-spec-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cw-spec-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: baseline;
    gap: 24px;
    padding: 20px 26px;
    border-radius: 18px;
    background: #1c1c1e;
    transition: background-color .25s ease;
}

.cw-spec-row:hover {
    background: #252528;
}

.cw-spec-row dt {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.cw-spec-row dd {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15.5px;
    line-height: 1.7;
    word-break: keep-all;
}

/* ── MEMBERS ──────────────────────────────────────────── */
.cw-members-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.cw-members-head h2 {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -.05em;
    word-break: keep-all;
}

.cw-members-head h2 em {
    font-style: normal;
    background: var(--cw-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cw-members-head > .cw-lead {
    max-width: 320px;
    margin-bottom: 8px;
}

.cw-member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cw-member {
    min-width: 0;
}

.cw-member-photo {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--cw-radius);
    background: var(--cw-card);
}

.cw-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.cw-member-photo span {
    font: 700 clamp(38px, 4vw, 52px)/1 'Space Grotesk', sans-serif;
    background: var(--cw-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cw-member:hover .cw-member-photo img { transform: scale(1.06); }

.cw-member-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--cw-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.cw-member-meta {
    padding-top: 16px;
}

.cw-member-meta h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.cw-member-meta p {
    margin: 5px 0 0;
    color: var(--cw-text-dim);
    font-size: 12.5px;
    font-weight: 500;
}

.cw-members-empty {
    padding: 72px 0;
    border-top: 1px solid var(--cw-line);
    border-bottom: 1px solid var(--cw-line);
    color: var(--cw-text-dim);
    text-align: center;
}

/* ── JOIN ─────────────────────────────────────────────── */
.cw-join {
    padding: 16px 0;
    background: var(--cw-paper);
}

.cw-join-card {
    position: relative;
    padding: clamp(56px, 7vw, 92px) clamp(28px, 6vw, 88px);
    border-radius: clamp(24px, 3vw, 36px);
    background: var(--cw-white);
    color: var(--cw-text);
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.cw-join-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    z-index: -1;
    width: 880px;
    height: 600px;
    margin-left: -440px;
    background:
        radial-gradient(circle at 27% 46%, rgba(29, 54, 235, .42), transparent 52%),
        radial-gradient(circle at 73% 42%, rgba(29, 54, 235, .38), transparent 52%),
        radial-gradient(circle at 50% 58%, rgba(29, 54, 235, .42), transparent 56%);
    filter: blur(96px);
    opacity: .3;
    animation: cw-bloom 9s ease-in-out infinite;
}

.cw-join-logo {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 auto 24px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(17, 17, 20, .18));
    animation: cw-join-spin 9s ease-in-out infinite;
}

@keyframes cw-join-spin {
    0%, 100% { transform: rotateY(-18deg) rotateX(6deg) translateY(-6px); }
    50%      { transform: rotateY(18deg)  rotateX(-4deg) translateY(6px); }
}

.cw-join-card h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.055em;
    word-break: keep-all;
}

.cw-join-card > p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--cw-text-mid);
    font-size: 15.5px;
    line-height: 1.85;
    word-break: keep-all;
}

.cw-join-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 34px;
}

.cw-join-tags span {
    padding: 9px 17px;
    border: 1px solid var(--cw-line);
    border-radius: 999px;
    background: var(--cw-paper);
    color: var(--cw-text);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.cw-join-tags span:hover {
    border-color: rgba(29, 54, 235, .35);
    background: rgba(29, 54, 235, .08);
    color: var(--cw-accent);
    transform: translateY(-2px);
}

.cw-join-cta {
    margin-top: 30px;
}

.cw-btn-dark {
    background: #111114;
    color: #fff;
}

.cw-btn-dark:hover {
    background: var(--cw-accent);
    transform: translateY(-2px);
}

.cw-btn-light {
    background: #fff;
    color: #111114;
}

.cw-btn-light:hover {
    background: #e6e8fd;
    transform: translateY(-2px);
}

/* ── FOOTER: 패널과 같은 모양의 검은 판 ──────────────── */
.site-footer {
    width: calc(100% - 32px);
    margin: 0 auto 16px;
    border-radius: 32px;
    background: #0c0c0d;
    color: #fff;
}

/* ── FAQ (랜딩에서만 푸터 위쪽에 들어간다) ──────────────── */
.cw-faq {
    padding: clamp(64px, 7vw, 104px) 0 clamp(48px, 5vw, 72px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.cw-faq h2 {
    margin: 0 0 clamp(32px, 4vw, 52px);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -.05em;
}

.cw-faq-list {
    display: grid;
    gap: 14px;
}

.cw-faq-item {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    transition: border-color .25s ease;
}

.cw-faq-item:hover,
.cw-faq-item.is-open {
    border-color: rgba(255, 255, 255, .38);
}

.cw-faq-item h3 {
    margin: 0;
    font: inherit;
}

.cw-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 24px 30px;
    border: 0;
    border-radius: 28px;
    background: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.02em;
    text-align: left;
    cursor: pointer;
}

.cw-faq-q:focus-visible {
    outline: 2px solid var(--cw-cyan);
    outline-offset: 2px;
}

/* 닫힘 ↑ → 열림 ↙ : 왼쪽으로 135도 돈다 */
.cw-faq-arrow {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .45s cubic-bezier(.34, 1.3, .5, 1);
}

.cw-faq-item.is-open .cw-faq-arrow {
    transform: rotate(-135deg);
}

/* 높이 0fr ↔ 1fr 로 부드럽게 연다. JS가 없으면 처음부터 펼쳐 둔다. */
.cw-faq-a {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .45s cubic-bezier(.2, .7, .3, 1);
}

.cw-faq-a > div {
    min-height: 0;
    overflow: hidden;
}

.cw-js .cw-faq-a {
    grid-template-rows: 0fr;
}

.cw-js .cw-faq-a > div {
    visibility: hidden;
    transition: visibility 0s .45s;
}

.cw-js .cw-faq-item.is-open .cw-faq-a {
    grid-template-rows: 1fr;
}

.cw-js .cw-faq-item.is-open .cw-faq-a > div {
    visibility: visible;
    transition: visibility 0s;
}

.cw-faq-a p {
    margin: 0;
    padding: 0 30px 26px;
    color: rgba(255, 255, 255, .62);
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
}

.cw-faq-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.cw-faq-contact p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
}

.site-footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 0;
}

.wordmark-footer {
    padding-left: 0;
    color: #fff;
    font-size: 17px;
}

.wordmark-footer .wordmark-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.site-footer-inner > p,
.footer-link {
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
}

.site-footer-links {
    display: flex;
    gap: 8px;
}

.footer-link {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.footer-link:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* ── 토스트 / 관리자 화면 보정 ────────────────────────── */
.toast-container { top: 92px; right: 24px; }
.toast { background: #0d1830; border-color: rgba(159, 188, 255, .25); }
.toast-message { color: #eef4ff; }
.toast-close { font-size: 19px; color: #a9bbd9; }

body:has(.admin-section),
body:has(.editor-shell) { background: var(--cw-paper); }

.admin-section,
.editor-shell {
    min-height: calc(100vh - 172px);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.admin-section { width: min(1200px, calc(100% - 64px)); padding-top: 70px; padding-bottom: 70px; }
.editor-shell  { width: min(760px, calc(100% - 64px));  padding-block: 64px; }

@media (max-width: 760px) {
    .admin-section { width: min(100% - 40px, 620px); padding-top: 44px; padding-bottom: 52px; }
    .editor-shell  { width: min(100% - 40px, 620px); padding-block: 44px 52px; }
}

/* ════════════════════════════════════════════════════════════
   반응형
   ════════════════════════════════════════════════════════════ */

/* 세로가 짧은 노트북에서는 히어로 여백을 줄인다 */
@media (max-height: 780px) {
    .cw-hero { padding: 96px 0 64px; }
}

@media (max-width: 1080px) {
    .cw-craft-grid { grid-template-columns: repeat(3, 1fr); }
    .cw-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .cw-about-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
    .cw-pillars { grid-template-columns: 1fr; }
    .cw-spec { grid-template-columns: 1fr; }
    .cw-spec-figure { max-width: 320px; }
    .cw-members-head { display: block; }
    .cw-members-head > .cw-lead { max-width: 100%; margin-top: 20px; }
    .cw-member-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .landing-wrap,
    .site-header-inner,
    .site-footer-inner { width: min(100% - 40px, 620px); }

    .site-header { padding-top: 12px; }
    .site-header-pill { gap: 12px; padding: 6px; border-radius: 16px; }
    .site-nav { gap: 0; }
    .site-nav a { padding: 8px 11px; font-size: 13.5px; }
    .site-header-cta { height: 38px; padding: 0 16px; font-size: 13.5px; }
    .site-header-text { padding: 8px 11px; font-size: 13.5px; }
    .wordmark { padding-left: 8px; font-size: 19px; }
    .wordmark-logo { width: 28px; height: 28px; flex-basis: 28px; }

    .cw-hero { padding: 112px 0 92px; }
    .cw-logo-stage { width: min(260px, 66vw); }
    .cw-hero-sub { font-size: 14px; }
    .cw-hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .cw-btn { justify-content: center; }

    .cw-craft-grid { grid-template-columns: repeat(2, 1fr); }
    .cw-member-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cw-ticker { padding: 20px 0; border-radius: 22px; }
    .cw-ticker-track span { gap: 10px; padding-right: 40px; font-size: 21px; }
    .cw-ticker-track img { width: 28px; height: 28px; }
    .cw-pillar { min-height: 0; padding: 32px 28px 30px; }
    .cw-pillar h3 { padding-top: 32px; font-size: 24px; }
    .cw-section { width: calc(100% - 16px); margin-top: 8px; border-radius: 24px; }
    .cw-ticker-band > .landing-wrap,
    .cw-join > .landing-wrap { width: calc(100% - 16px); }
    .cw-join { padding-block: 8px; }
    .cw-spec-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
    .cw-shape { width: 60px; height: 60px; }
    .cw-stats { margin-top: 44px; }
    .cw-head { margin-bottom: 40px; }

    .site-footer-inner {
        min-height: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 20px;
    }

    .site-footer { width: calc(100% - 16px); margin-bottom: 8px; border-radius: 24px; }
    .site-footer-inner > p { order: 3; flex-basis: 100%; }
    .site-footer-links { margin-left: auto; }
    .cw-faq-q { padding: 20px 22px; font-size: 16px; }
    .cw-faq-a p { padding: 0 22px 22px; font-size: 15px; }
    .cw-faq-item, .cw-faq-q { border-radius: 22px; }
    .cw-faq-contact { flex-direction: column; align-items: stretch; text-align: center; }

    .toast-container { top: auto; right: 16px; bottom: 16px; left: 16px; }
}

@media (max-width: 560px) {
    .site-header-actions { display: none; }
    .site-nav-join { display: block; }
    .wordmark span { display: none; }
    .wordmark { padding: 0 4px 0 6px; }
}

@media (max-width: 460px) {
    .landing-wrap,
    .site-header-inner,
    .site-footer-inner { width: calc(100% - 32px); }

    .site-nav a { padding: 8px 9px; font-size: 13px; }
    .cw-craft-grid { grid-template-columns: 1fr; }
    .cw-stats { gap: 10px; }
    .cw-stat { padding: 22px 18px; }
    .cw-stat strong { font-size: 30px; }
    .cw-stat span { margin-top: 7px; font-size: 12.5px; }
}

/* ════════════════════════════════════════════════════════════
   모션 최소화 설정 존중
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .cw-aurora,
    .cw-stars,
    .cw-logo-bloom,
    .cw-ring,
    .cw-logo-float,
    .cw-logo-spin,
    .cw-logo-sheen,
    .cw-logo-shadow,
    .cw-ticker-track,
    .cw-marquee-track,
    .cw-hero-title em,
    .cw-join-glow,
    .cw-join-logo {
        animation: none !important;
    }

    /* 정지 상태에서도 입체감은 남긴다 */
    .cw-logo-spin { transform: rotateY(-16deg) rotateX(9deg); }
    .cw-ring-1 { transform: rotateX(74deg); }
    .cw-logo-sheen { opacity: .35; background-position: 40% 0; }

    .cw-js [data-reveal],
    .cw-js [data-panel] { opacity: 1; transform: none; transition: none; }
}
