:root {
    --crm-primary: #22d3ee;
    --crm-secondary: #a855f7;
    --crm-muted: #9ca3af;
    --crm-surface: #111827;
    --crm-surface-2: #0f172a;
    --crm-bg: #0b1220;
    --crm-border: rgba(255, 255, 255, 0.08);
    --crm-card: rgba(255, 255, 255, 0.04);
    --crm-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.08), transparent 24%),
        radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.12), transparent 30%),
        linear-gradient(135deg, #0b1220, #0f172a);
    color: #e5e7eb;
    font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.65;
}

.page-container {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
}

hr,
.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--crm-border) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    color: #0b1220;
    border: none;
    box-shadow: 0 14px 30px rgba(168, 85, 247, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    filter: brightness(1.05);
    color: #0b1220;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    color: #e5e7eb;
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow);
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: #22d3ee;
    color: #e5e7eb;
}

.btn-outline-secondary {
    border: 1px solid var(--crm-border);
    color: #e5e7eb;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #0b1220;
    border-color: #22d3ee;
}

.btn-outline-light {
    border-color: var(--crm-border);
    color: #e5e7eb;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #0b1220;
}

.card-body img {
    max-width:100% !important;
    height:auto;
}

.base-shell {
    min-height: 100vh;
}

button:focus,
button:active,
.btn:focus,
.btn:active,
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

.crm-shell {
    backdrop-filter: blur(2px);
}

header.navbar,
.navbar {
    background: var(--crm-surface-2);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow);
}

.navbar-brand {
    letter-spacing: 0.1em;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 600;
    color: #e5e7eb;
}

.nav-link:hover,
.nav-link.active {
    color: var(--crm-primary);
}

.crm-utility-bar {
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(6px);
    color: #e5e7eb;
}


.crm-nav {
    border: 1px solid var(--crm-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.crm-nav .navbar-nav {
    gap: 0.2rem;
}

.crm-nav .nav-link {
    padding: 0.35rem 0.75rem;
    border-radius: 0.65rem;
    transition: all 0.15s ease;
}

.crm-nav .nav-link:hover,
.crm-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--crm-primary);
}

.crm-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: conic-gradient(from 120deg, #22d3ee 0deg, #0ea5e9 140deg, #a855f7 260deg, #22d3ee 360deg);
    position: relative;
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crm-brand-mark::after {
    content: "";
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0.05)),
        radial-gradient(circle at 70% 70%, rgba(14,165,233,0.6), rgba(10,37,64,0.2));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.crm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid var(--crm-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #e5e7eb;
}

.crm-nav-search .input-group,
.crm-nav-search .btn,
.crm-auth-actions .btn {
    height: 46px;
}

.crm-search-group {
    width: 100%;
    border: 1px solid var(--crm-border);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.crm-nav-search .input-group-text {
    border: 0;
    background: transparent;
    color: var(--crm-muted);
}

.crm-nav-search .form-control {
    border: 0;
    background: transparent;
    color: #e5e7eb;
    padding-inline: 14px;
}

.crm-nav-search .btn,
.crm-auth-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 16px;
    white-space: nowrap;
}

.crm-nav-search .btn {
    border: 0;
    border-left: 1px solid #e5e7eb;
    background: var(--crm-primary);
    color: #fff;
    border-radius: 0;
}

.crm-auth-actions .btn {
    border-radius: 999px;
}

.crm-auth-actions .btn-link {
    height: auto;
}

main {
    min-height: 70vh;
    color: #e5e7eb;
}

.crm-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.crm-section-title .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--crm-primary);
    box-shadow: 0 0 0 8px rgba(46, 124, 246, 0.12);
}

.crm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crm-chip {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-weight: 600;
    border: 1px solid var(--crm-border);
}

.crm-card,
.crm-article,
.crm-sidebar-card {
    border: 1px solid var(--crm-border);
    border-radius: 1rem;
    background: var(--crm-card);
    box-shadow: var(--crm-shadow);
    color: #e5e7eb;
}

.crm-board-header {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.12));
    border: 1px solid var(--crm-border);
}

.crm-stat {
    min-width: 110px;
    padding: 0.65rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.crm-stat .label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--crm-muted);
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
}

.crm-stat .value {
    font-weight: 800;
    font-size: 1.25rem;
    color: #111827;
}

.crm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #eff2f7;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
}

.crm-pill.subtle {
    background: #f7f9fc;
    color: #5f6a86;
    border-color: #e5e7eb;
}

.crm-pill.active {
    background: rgba(46, 124, 246, 0.12);
    color: #1d4ed8;
    border-color: rgba(46, 124, 246, 0.25);
}

.crm-pill.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.25);
}

.crm-article-card {
    padding: 1.2rem 1.25rem;
    border: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.list-group-flush .crm-article-card {
    padding-inline: 1.5rem;
    padding-block: 1.25rem;
}

.crm-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.crm-article-card.active {
    border-left: 4px solid var(--crm-primary);
    background: rgba(34, 211, 238, 0.08);
}

.crm-article-title {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    text-decoration: none;
    margin-top: 0.35rem;
    max-height:200px;
    overflow:hidden;
}

.crm-article-title:hover {
    color: var(--crm-primary);
}

.crm-article-excerpt {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.crm-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.crm-article-detail .card-footer {
    background: #f8fafc;
}

.crm-card + .crm-card,
.crm-card + .ad-slot,
.ad-slot + .crm-card {
    margin-top: 0.5rem;
}

.crm-hero {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(168, 85, 247, 0.18) 40%, rgba(15, 23, 42, 0.95) 100%);
    color: #e5e7eb;
    border-radius: 1.2rem;
    padding: clamp(1.8rem, 2.6vw, 3rem);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow);
}

.crm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0, transparent 38%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.15) 0, transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}

.crm-hero .hero-slider-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.crm-hero .hero-slide {
    padding: 1.25rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--crm-border);
}

.crm-hero h1 {
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.22;
}

.crm-hero p {
    color: #eaf2ff;
    margin-bottom: 0;
}

.crm-card-with-thumb {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: var(--crm-surface);
    height: 100%;
    box-shadow: 0 12px 32px rgba(43, 69, 112, 0.08);
}

.crm-card-with-thumb .thumb {
    position: relative;
    width: 100%;
    padding-top: 55%;
    border-radius: 0.85rem;
    background: #eef2f7;
    background-image: var(--thumb);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.crm-card-with-thumb .content .title {
    display: block;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    text-decoration: none;
    line-height: 1.35;
}

.crm-card-with-thumb .content .title:hover {
    color: var(--crm-primary);
}

.crm-card-with-thumb .content .excerpt {
    margin: 0.35rem 0 0;
    color: #475467;
    font-size: 0.95rem;
    line-height: 1.55;
}

.crm-card-with-thumb .meta {
    color: var(--crm-muted);
}

.crm-card-with-thumb.no-thumb {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, #f9fbff 0%, #f3f6fb 100%);
}

.crm-card-with-thumb.no-thumb .content {
    padding: 0.25rem;
}

.crm-article .title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.crm-article .title:hover {
    color: var(--crm-primary);
}

.crm-article .meta {
    color: var(--crm-muted);
    font-size: 0.9rem;
}

.badge-soft-primary {
    color: var(--crm-primary);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.badge-soft-success {
    color: #1f9d5f;
    background: rgba(28, 206, 123, 0.12);
    border: 1px solid rgba(28, 206, 123, 0.18);
}

.badge-soft-danger {
    color: #d1434b;
    background: rgba(209, 67, 75, 0.12);
    border: 1px solid rgba(209, 67, 75, 0.2);
}

.crm-list .list-group-item {
    border: none;
    padding: 1.1rem 0;
}

.crm-list .list-group-item .title {
    font-weight: 700;
    color: #0f172a;
}

.crm-list .list-group-item .title:hover {
    color: var(--crm-primary);
}

.crm-list .list-group-item + .list-group-item {
    border-top: 1px solid #edf0f5;
}

.crm-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.85rem;
}

.crm-sidebar-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--crm-border);
    font-weight: 700;
    padding: 1rem 1.1rem;
    color: #e5e7eb;
}

.crm-sidebar-card .list-group-item {
    border: none;
    padding: 0.95rem 1.1rem;
    color: #1f2937;
}

.crm-sidebar-card .list-group-item + .list-group-item {
    border-top: 1px dashed #e1e7f0;
}

.crm-footer {
    color: #374151;
}

.crm-footer .link-secondary {
    text-decoration: none;
}

.card-header,
.list-group-item,
.crm-card,
.crm-sidebar-card,
.crm-card-with-thumb {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.list-group-flush > .list-group-item {
    padding-left: 1.25rem;
    padding-right: 1.25rem; 
}

.ad-slot {
    border: 1px dashed var(--crm-border);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08));
    padding: 1.1rem;
    color: #e5e7eb;
}

.ad-slot-wide {
    min-height: 140px;
}

.ad-slot-vertical {
    min-height: 340px;
}

/* Parallax / startup sections */
.startup-shell {
    position: relative;
    overflow: hidden;
}

.parallax-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    padding: clamp(1.5rem, 2vw, 2.4rem);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(11, 18, 32, 0.92));
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow);
    width: 100%;
}

/* Docs layout */
.docs-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.docs-nav {
    position: sticky;
    top: 96px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--crm-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--crm-shadow);
}

.docs-nav h6 {
    color: #e5e7eb;
    font-weight: 700;
    margin-bottom: 12px;
}

.docs-nav a {
    display: block;
    color: #cbd5e1;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.docs-nav a:hover,
.docs-nav a:focus {
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
}

.docs-content section + section {
    margin-top: 28px;
}

.docs-content h3 {
    color: #e5e7eb;
    font-weight: 700;
    margin-bottom: 10px;
}

.docs-content p,
.docs-content li {
    color: #cbd5e1;
}

.docs-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
    color: #22d3ee;
}

.docs-callout {
    border: 1px solid var(--crm-border);
    background: rgba(34, 211, 238, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    color: #e5e7eb;
}

@media (max-width: 992px) {
    .docs-shell {
        grid-template-columns: 1fr;
    }

    .docs-nav {
        position: static;
    }
}

.parallax-section::before,
.parallax-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.parallax-section::before {
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.16), transparent 30%);
    transform: translateY(-8%);
}

.parallax-section::after {
    background: radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.06), transparent 32%);
    transform: translateY(8%);
}

.parallax-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

@media (max-width: 991.98px) {
    .parallax-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .navbar .input-group {
        width: 100%;
    }

    .navbar .d-flex.align-items-center.gap-2.ms-lg-3 {
        width: 100%;
        justify-content: flex-start;
    }

    .crm-card-with-thumb {
        padding: 1rem;
    }

    .crm-hero .hero-slide {
        padding: 0.75rem;
    }
}

@media (min-width: 768px) {
    .crm-card-with-thumb {
        grid-template-columns: 38% 1fr;
        align-items: stretch;
    }

    .crm-card-with-thumb .thumb {
        padding-top: 0;
        min-height: 150px;
    }
}
