/* ============================================================
   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)
   로고에서 뽑아낸 orange / violet / cyan 팔레트를 쓴다.
   ════════════════════════════════════════════════════════════ */

:root {
    /* 브랜드 */
    --cw-blue:      #3d7bff;
    --cw-blue-deep: #1f4fd8;
    --cw-violet:    #6f5cff;
    --cw-cyan:      #35c8ff;
    --cw-orange:    #ff7a33;

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

    /* 표면 */
    --cw-paper:     #f5f8ff;
    --cw-white:     #ffffff;
    --cw-line:      #e2eaf9;
    --cw-line-soft: #edf2fc;

    /* 텍스트 */
    --cw-text:      #0b1225;
    --cw-text-mid:  #4b5872;
    --cw-text-dim:  #7c8aa6;

    --cw-shadow-sm: 0 2px 8px rgba(13, 23, 48, .05);
    --cw-shadow:    0 14px 38px -14px rgba(13, 23, 48, .18);
    --cw-shadow-lg: 0 34px 70px -28px rgba(13, 23, 48, .34);

    --cw-radius:    22px;
    --cw-radius-sm: 14px;

    --cw-grad: linear-gradient(115deg, var(--cw-orange) 0%, var(--cw-violet) 46%, var(--cw-cyan) 100%);

    /* 레거시 관리자 화면과의 호환 */
    --primary-color: #3d7bff;
    --primary-hover: #2a63e0;
    --primary-light: #eaf1ff;
    --primary-dark:  #1f4fd8;
    --accent-color:  #ff7a33;
    --text-color:    #0b1225;
    --text-light:    #4b5872;
    --text-lighter:  #7c8aa6;
    --bg-color:      #f5f8ff;
    --bg-light:      #fff;
    --bg-dark:       #edf3ff;
    --card-bg:       #fff;
    --border-color:  #e2eaf9;
    --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(61, 123, 255, .22);
}

/* ── 헤더 ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 248, 255, .78);
    border-bottom: 1px solid var(--cw-line);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

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

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    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: 4px;
}

.site-nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cw-text-mid);
    transition: color .2s ease, background-color .2s ease;
}

.site-nav a:hover {
    color: var(--cw-text);
    background: rgba(61, 123, 255, .09);
}

/* 히어로 위에서는 투명한 다크 헤더 */
body:has(.cw-hero) .site-header {
    position: fixed;
    right: 0;
    left: 0;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
}

body:has(.cw-hero) .site-header .wordmark {
    color: #fff;
    transition: color .35s ease;
}

body:has(.cw-hero) .site-header .site-nav a {
    color: rgba(255, 255, 255, .74);
    transition: color .35s ease, background-color .25s ease;
}

body:has(.cw-hero) .site-header .site-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

body:has(.cw-hero) .site-header.is-stuck {
    background: rgba(245, 248, 255, .86);
    border-bottom-color: var(--cw-line);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 10px 30px -18px rgba(11, 18, 37, .4);
}

body:has(.cw-hero) .site-header.is-stuck .wordmark {
    color: var(--cw-text);
}

body:has(.cw-hero) .site-header.is-stuck .site-nav a {
    color: var(--cw-text-mid);
}

body:has(.cw-hero) .site-header.is-stuck .site-nav a:hover {
    color: var(--cw-text);
    background: rgba(61, 123, 255, .09);
}

/* ── 공통 타이포 ──────────────────────────────────────── */
.cw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    padding: 7px 15px 7px 12px;
    border: 1px solid rgba(61, 123, 255, .22);
    border-radius: 999px;
    background: rgba(61, 123, 255, .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(61, 123, 255, .14);
}

.cw-eyebrow-light {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .82);
}

.cw-eyebrow-light i {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.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(111, 92, 255, .7);
}

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

.cw-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cw-btn-ghost:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .13);
    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%, #16234a 0%, var(--cw-ink-soft) 42%, var(--cw-ink) 100%);
    color: #fff;
    isolation: isolate;
}

.cw-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

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

.cw-aurora-a {
    width: 620px;
    height: 620px;
    top: -220px;
    left: -140px;
    background: radial-gradient(circle, rgba(255, 122, 51, .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(53, 200, 255, .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(111, 92, 255, .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(140, 180, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 180, 255, .07) 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 {
    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(255, 122, 51, .5), transparent 52%),
        radial-gradient(circle at 70% 62%, rgba(53, 200, 255, .45), transparent 54%),
        radial-gradient(circle at 52% 50%, rgba(111, 92, 255, .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(150, 190, 255, .26);
    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(53, 200, 255, .9);
}

.cw-ring-2 {
    inset: 8%;
    border-color: rgba(255, 150, 100, .24);
    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(255, 122, 51, .85);
}

.cw-ring-3 {
    inset: -8%;
    border-color: rgba(140, 125, 255, .18);
    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 46px rgba(0, 0, 0, .55)) drop-shadow(0 0 34px rgba(90, 130, 255, .32));
}

/* 로고 실루엣을 따라 흐르는 광택 */
.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(6, 10, 24, .78), 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;
    text-shadow: 0 10px 44px rgba(0, 0, 0, .4);
}

.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: rgba(255, 255, 255, .68);
    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;
}

.cw-scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .55);
}

.cw-scroll-cue span {
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .8));
    transform-origin: top;
    animation: cw-cue 1.9s ease-in-out infinite;
}

.cw-scroll-cue small {
    font: 600 9px/1 'Space Grotesk', sans-serif;
    letter-spacing: .22em;
}

@keyframes cw-cue {
    0%, 100% { transform: scaleY(.3); opacity: .35; }
    50%      { transform: scaleY(1);  opacity: 1; }
}

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

.cw-ticker {
    overflow: hidden;
    padding: 17px 0;
    background: var(--cw-ink);
    border-top: 1px solid rgba(140, 180, 255, .12);
    border-bottom: 1px solid rgba(140, 180, 255, .12);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

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

.cw-ticker-track span {
    color: rgba(255, 255, 255, .78);
    font: 700 14px/1 'Space Grotesk', 'Noto Sans KR', sans-serif;
    letter-spacing: .1em;
    white-space: nowrap;
}

.cw-ticker-track i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--cw-grad);
}

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

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

.cw-section {
    position: relative;
    padding: clamp(72px, 8vw, 110px) 0;
}

/* ── ABOUT ────────────────────────────────────────────── */
.cw-about {
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(61, 123, 255, .07), transparent 70%),
        var(--cw-white);
}

.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 26px;
    border: 1px solid var(--cw-line);
    border-radius: var(--cw-radius);
    background: var(--cw-paper);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.34, 1.2, .5, 1), box-shadow .3s ease, border-color .3s ease;
}

.cw-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cw-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}

.cw-stat:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--cw-shadow);
}

.cw-stat:hover::before { transform: scaleX(1); }

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

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

.cw-stat span {
    display: block;
    margin-top: 11px;
    color: var(--cw-text-dim);
    font-size: 13.5px;
    font-weight: 500;
}

/* ── FOCUS (3 pillars) ────────────────────────────────── */
.cw-focus {
    background:
        linear-gradient(180deg, var(--cw-white) 0%, var(--cw-paper) 22%),
        var(--cw-paper);
}

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

.cw-pillar {
    position: relative;
    padding: 34px 30px 32px;
    border: 1px solid var(--cw-line);
    border-radius: var(--cw-radius);
    background: var(--cw-white);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.34, 1.2, .5, 1), box-shadow .35s ease, border-color .35s ease;
}

.cw-pillar::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 123, 255, .13), transparent 68%);
    opacity: 0;
    transition: opacity .4s ease;
}

.cw-pillar:hover {
    transform: translateY(-7px);
    border-color: rgba(61, 123, 255, .3);
    box-shadow: var(--cw-shadow-lg);
}

.cw-pillar:hover::after { opacity: 1; }

.cw-pillar-no {
    display: block;
    color: var(--cw-text-dim);
    font: 600 12px/1 'Space Grotesk', sans-serif;
    letter-spacing: .16em;
}

.cw-pillar-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 18px 0 20px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(61, 123, 255, .13), rgba(111, 92, 255, .1));
    transition: transform .4s cubic-bezier(.34, 1.4, .5, 1);
}

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

.cw-pillar-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--cw-blue);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-pillar h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.035em;
}

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

/* ── CRAFT (배우는 것들) ──────────────────────────────── */
.cw-craft {
    background: var(--cw-white);
}

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

.cw-card {
    position: relative;
    padding: 30px 26px 32px;
    border: 1px solid var(--cw-line);
    border-radius: var(--cw-radius-sm);
    background: var(--cw-white);
    transition: transform .3s cubic-bezier(.34, 1.2, .5, 1), box-shadow .3s ease, border-color .3s ease;
}

.cw-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--cw-shadow);
}

.cw-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 13px;
    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: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-i-blue   { background: rgba(61, 123, 255, .12);  color: var(--cw-blue-deep); }
.cw-i-violet { background: rgba(111, 92, 255, .13);  color: #5541e6; }
.cw-i-orange { background: rgba(255, 122, 51, .13);  color: #e05e15; }
.cw-i-cyan   { background: rgba(53, 200, 255, .15);  color: #0f8ab8; }
.cw-i-ghost  { background: rgba(255, 255, 255, .16); color: #fff; }

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

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

.cw-card-accent {
    border-color: transparent;
    background: linear-gradient(150deg, #1c2b52, var(--cw-ink-soft));
    color: #fff;
}

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

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

.cw-card-accent:hover {
    box-shadow: 0 24px 50px -20px rgba(13, 23, 48, .6);
}

/* ── STAGE (대회 / 기대효과) ──────────────────────────── */
.cw-stage {
    position: relative;
    background: radial-gradient(90% 70% at 50% 0%, #16234a 0%, var(--cw-ink-soft) 55%, var(--cw-ink) 100%);
    color: #fff;
    overflow: hidden;
}

.cw-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140, 180, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 180, 255, .05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent 75%);
    pointer-events: none;
}

.cw-stage > .landing-wrap { position: relative; }

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

.cw-stage-card {
    position: relative;
    padding: 38px 32px 36px;
    border: 1px solid rgba(150, 190, 255, .16);
    border-radius: var(--cw-radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.34, 1.2, .5, 1), border-color .35s ease, background-color .35s ease;
}

.cw-stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--cw-grad);
    opacity: 0;
    transition: opacity .35s ease;
}

.cw-stage-card:hover {
    transform: translateY(-6px);
    border-color: rgba(150, 190, 255, .38);
}

.cw-stage-card:hover::before { opacity: 1; }

.cw-stage-no {
    display: block;
    margin-bottom: 20px;
    font: 700 30px/1 'Space Grotesk', sans-serif;
    letter-spacing: -.04em;
    background: var(--cw-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cw-stage-card h3 {
    margin: 0 0 11px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.cw-stage-card p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.8;
    word-break: keep-all;
}

.cw-effects {
    margin-top: 18px;
    padding: 42px 44px 44px;
    border: 1px solid rgba(150, 190, 255, .14);
    border-radius: var(--cw-radius);
    background: rgba(255, 255, 255, .03);
}

.cw-effects h3 {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .55);
    font: 600 12px/1 'Space Grotesk', sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cw-effects ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
}

.cw-effects li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

.cw-effects li::before {
    content: '';
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--cw-grad);
}

/* ── MEMBERS ──────────────────────────────────────────── */
.cw-members {
    background:
        radial-gradient(55% 45% at 12% 0%, rgba(111, 92, 255, .07), transparent 68%),
        var(--cw-paper);
}

.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: 1px solid var(--cw-line);
    border-radius: 20px;
    background: linear-gradient(150deg, #e8eefb, #f6f9ff);
    transition: transform .38s cubic-bezier(.34, 1.2, .5, 1), box-shadow .38s ease, border-color .38s ease;
}

.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 {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--cw-shadow-lg);
}

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

.cw-member-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cw-grad);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px -6px rgba(111, 92, 255, .8);
}

.cw-member.is-lead .cw-member-photo {
    border-color: rgba(111, 92, 255, .35);
}

.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: 0 0 clamp(84px, 9vw, 120px);
    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: linear-gradient(145deg, #14204a 0%, var(--cw-ink) 62%);
    color: #fff;
    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(255, 122, 51, .42), transparent 52%),
        radial-gradient(circle at 73% 42%, rgba(53, 200, 255, .38), transparent 52%),
        radial-gradient(circle at 50% 58%, rgba(111, 92, 255, .42), transparent 56%);
    filter: blur(96px);
    opacity: .85;
    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 16px 30px rgba(0, 0, 0, .5));
    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: rgba(255, 255, 255, .68);
    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 rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    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(255, 255, 255, .4);
    background: rgba(255, 255, 255, .13);
    transform: translateY(-2px);
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
    background: var(--cw-ink);
    border-top: 1px solid rgba(150, 190, 255, .12);
}

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

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

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

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

.admin-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;
}

.admin-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-scroll-cue { display: none; }
    .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-stage-grid { grid-template-columns: 1fr; }
    .cw-effects ul { grid-template-columns: 1fr; }
    .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-inner { height: 66px; }
    .site-nav { gap: 0; }
    .site-nav a { padding: 7px 10px; font-size: 13px; }
    .wordmark { 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-scroll-cue { display: none; }

    .cw-craft-grid { grid-template-columns: repeat(2, 1fr); }
    .cw-member-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cw-effects { padding: 32px 26px 34px; }
    .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 p { order: 3; flex-basis: 100%; }
    .admin-link { margin-left: auto; }

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

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

    .site-nav a { padding: 6px 8px; font-size: 12px; }
    .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; }
    .cw-pillar { padding: 32px 26px 30px; }
}

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

@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-hero-title em,
    .cw-join-glow,
    .cw-join-logo,
    .cw-scroll-cue span {
        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-scroll-cue span { transform: scaleY(1); opacity: .7; }

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