@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@100;400;700;900&display=swap');

:root {
    --primary-blue: #0066ff;
    --soft-blue: #f0f7ff;
    --navy-dark: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    word-break: keep-all;
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 102, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-link--dropdown {
    gap: 6px;
}

.nav-link--dropdown i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-link--dropdown i,
.nav-item-dropdown:focus-within .nav-link--dropdown i {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f1f5f9;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 70;
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: #ffffff;
    color: #1e3a8a;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-link--dropdown {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.btn-gradient {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-white-hover-shadow {
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-white-hover-shadow:hover {
    box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.22);
}

.home-demo-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    color: #45556d;
    font-weight: 700;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.home-demo-link::before {
    content: "▶";
    margin-right: 8px;
    font-size: 0.9rem;
    color: #0f4bff;
}

.home-demo-link:hover {
    color: #0f4bff;
    background: #eff4ff;
}

.home-hero__visual {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    padding-top: clamp(2.6rem, 3.2vw, 3.4rem);
}

.home-preview {
    width: 94%;
    max-width: 560px;
    min-height: 300px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid #dbe6fa;
    overflow: hidden;
    background: linear-gradient(160deg, #0e1c36 0%, #14284a 100%);
    box-shadow: 0 20px 40px rgba(17, 29, 48, 0.28);
    color: #dce8ff;
}

.home-preview__top {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.76rem;
    border-bottom: 1px solid rgba(203, 223, 255, 0.2);
}

.home-preview__top strong {
    letter-spacing: 0.08em;
    color: #f0f6ff;
}

.home-preview__kpi {
    padding: 20px 16px 18px;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-preview__kpi article {
    border: 1px solid rgba(182, 207, 247, 0.24);
    border-radius: 12px;
    background: rgba(14, 28, 54, 0.4);
    padding: 12px 10px 10px;
}

.home-preview__kpi p {
    margin: 0;
    font-size: 0.7rem;
    color: #b8cae9;
}

.home-preview__kpi strong {
    margin-top: 4px;
    display: block;
    font-size: 1.25rem;
    color: #ffffff;
}

.home-preview__bars {
    margin-top: auto;
    padding: 0 16px 22px;
    display: grid;
    gap: 10px;
}

.home-preview__bars span {
    height: 9px;
    border-radius: 999px;
    width: var(--w);
    background: linear-gradient(90deg, #2f6fff 0%, #19abc1 100%);
}

.home-demo-link--outlined {
    border: 1px solid #d7e3ff;
    background: #ffffff;
}

.home-demo-link--outlined:hover {
    border-color: #c3d5ff;
}

.text-gradient {
    background: linear-gradient(120deg, #0f172a 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.compliance-tag {
    background: var(--soft-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-bt {
    background: #f1f5f9;
    color: #64748b;
}

.badge-ed {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-ts {
    background: #dcfce7;
    color: #15803d;
}

.badge-cs {
    background: #fef3c7;
    color: #b45309;
}

.matrix-table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.matrix-table td {
    border-bottom: 1px solid #f1f5f9;
}

.chart-container {
    position: relative;
    height: 320px;
}

.compliance-card {
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.compliance-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px -12px rgba(0, 102, 255, 0.28);
}

.client-logo {
    color: #64748b;
    transition: transform 0.25s ease, color 0.25s ease;
}

.client-logo:hover {
    transform: translateY(-3px);
    color: #2563eb;
}


.page-transition {
    animation: fadeIn 0.35s ease;
}

.nav-scroll {
    overflow: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-menu-toggle:hover {
    border-color: #bfd3ff;
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #334155;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
    margin: 0 1rem 1rem;
    padding: 0.8rem;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 38px -22px rgba(15, 23, 42, 0.45);
}

.mobile-nav-link {
    display: block;
    width: 100%;
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    color: #475569;
    font-weight: 800;
    font-size: 0.92rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link + .mobile-nav-link {
    margin-top: 0.2rem;
}

.mobile-nav-link:hover {
    background: #f8fafc;
    color: #1e293b;
}

.mobile-nav-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.mobile-nav-cta {
    margin-top: 0.7rem;
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 800;
}

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

@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.85rem;
    }

    .nav-scroll {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .demo-full-wrap {
        height: calc(100vh - 74px);
    }

    .demo-connection-alert__error h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    h1, h2 {
        line-height: 1.25;
    }
}

/* DEMO style override (user provided) */
.demo-select-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.demo-select-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e6edf7;
    border-radius: 32px;
    background: #ffffff;
    padding: 32px 28px 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.demo-select-card:hover {
    transform: translateY(-4px);
    border-color: #d3ddec;
    box-shadow: 0 26px 48px rgba(17, 26, 45, 0.09);
}

.demo-select-card__glow {
    position: absolute;
    top: -92px;
    right: -92px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0;
    transition: opacity 0.24s ease, background-color 0.24s ease;
}

.demo-select-card:hover .demo-select-card__glow {
    opacity: 0.92;
}

.demo-select-card__top,
.demo-select-card h3,
.demo-select-card p,
.demo-select-card__action {
    position: relative;
    z-index: 1;
}

.demo-select-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.demo-select-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.demo-select-card__chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: right;
}

.demo-select-card__visual {
    position: relative;
    z-index: 1;
    height: 192px;
    margin-bottom: 24px;
    border: 1px solid #edf2f8;
    border-radius: 24px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-select-card h3 {
    margin: 0;
    font-size: 1.75rem;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-kerning: normal;
}

.demo-select-card p {
    margin: 14px 0 0;
    color: #5f6e84;
    font-size: 0.94rem;
    line-height: 1.78;
}

.demo-select-card__desc {
    flex-grow: 1;
}

.demo-select-card__action {
    margin-top: 24px;
    min-height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-select-card__action::after {
    content: "→";
    font-size: 1rem;
}

.demo-policy-visual,
.demo-finance-visual {
    position: relative;
    width: 220px;
    height: 150px;
}

.demo-policy-visual__dot,
.demo-policy-visual__panel,
.demo-finance-visual__halo,
.demo-finance-visual__icon {
    position: absolute;
}

.demo-policy-visual__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    opacity: 0.36;
}

.demo-policy-visual__dot--one {
    left: 30px;
    top: 28px;
}

.demo-policy-visual__dot--two {
    right: 30px;
    top: 42px;
    width: 10px;
    height: 10px;
}

.demo-policy-visual__panel {
    left: 50%;
    top: 50%;
    width: 128px;
    height: 112px;
    transform: translate(-50%, -50%);
    border: 1px solid #dbe6f7;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.12);
    overflow: hidden;
}

.demo-policy-visual__panel-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 0;
}

.demo-policy-visual__panel-head span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #dbeafe;
}

.demo-policy-visual__panel-head span:first-child {
    width: 36px;
}

.demo-policy-visual__panel-head span:last-child {
    width: 18px;
}

.demo-policy-visual__panel-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
}

.demo-policy-visual__panel-graph {
    flex: 1;
    display: flex;
    align-items: end;
    gap: 6px;
    height: 42px;
}

.demo-policy-visual__panel-graph span {
    width: 12px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
}

.demo-policy-visual__panel-graph span:nth-child(1) { height: 16px; }
.demo-policy-visual__panel-graph span:nth-child(2) { height: 24px; }
.demo-policy-visual__panel-graph span:nth-child(3) { height: 32px; }
.demo-policy-visual__panel-graph span:nth-child(4) { height: 22px; }

.demo-policy-visual__panel-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
    position: relative;
}

.demo-policy-visual__shield-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 6px;
    transform: translate(-50%, -58%) rotate(-45deg);
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.demo-policy-visual__panel-foot {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
}

.demo-policy-visual__panel-foot span {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: #eef4ff;
}

.demo-policy-visual__panel-foot span:last-child {
    width: 68%;
}

.demo-finance-visual__halo {
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 50%;
}

.demo-finance-visual__halo--outer {
    width: 164px;
    height: 164px;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
}

.demo-finance-visual__halo--inner {
    width: 118px;
    height: 118px;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    border-style: dashed;
}

.demo-finance-visual__icon {
    left: 50%;
    top: 48%;
    width: 134px;
    height: 108px;
    transform: translate(-50%, -50%);
    overflow: visible;
}

.demo-finance-visual__icon .is-fill { fill: #10b981; }
.demo-finance-visual__icon .is-cut {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.demo-finance-visual__icon .is-currency {
    fill: #ffffff;
    font-family: "Sora", "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 34px;
    font-weight: 800;
}

.demo-select-card.is-policy .demo-select-card__glow { background: #dbeafe; }
.demo-select-card.is-policy .demo-select-card__icon {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.22);
}
.demo-select-card.is-policy .demo-select-card__action { background: #4a5568; }
.demo-select-card.is-policy:hover .demo-select-card__action { background: #1e53cc; }

.demo-select-card.is-finance .demo-select-card__glow { background: #d1fae5; }
.demo-select-card.is-finance .demo-select-card__icon {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}
.demo-select-card.is-finance .demo-select-card__action { background: #4a5568; }
.demo-select-card.is-finance:hover .demo-select-card__action { background: #059669; }

.demo-select-note {
    margin-top: 16px;
    padding: 18px 18px;
    border: 1px solid #dce6f6;
    border-radius: 16px;
    background: #ffffff;
}

.demo-select-note h3 { margin: 0; }

.demo-select-note ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.demo-select-note li {
    position: relative;
    padding-left: 16px;
    color: #52657f;
    font-size: 0.9rem;
}

.demo-select-note li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3f75ea;
}

.demo-full {
    flex: 1;
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.demo-connection-alert {
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
}

.demo-connection-alert[hidden] {
    display: none !important;
}

.demo-connection-alert__panel {
    width: min(480px, 92vw);
    padding: 56px 40px;
    border: 1px solid #e7edf7;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #13223a;
    text-align: center;
    transform: translateY(0);
}

.demo-connection-alert__status {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-connection-alert__spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #f1f5f9;
    border-top-color: #0f4bff;
    animation: demo-spin 0.9s linear infinite;
}

.demo-connection-alert__icon {
    display: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    background: #fef2f2;
    color: #ef4444;
}

.demo-connection-alert__loading {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.demo-connection-alert__error {
    display: none;
    margin-top: 8px;
}

.demo-connection-alert p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.demo-connection-alert__error h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.demo-connection-alert__actions {
    margin-top: 32px;
    display: none;
}

.demo-connection-alert__actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.25);
}

.demo-connection-alert__error p + p {
    margin-top: 6px;
}

.demo-connection-alert__panel.is-error .demo-connection-alert__spinner {
    display: none;
}

.demo-connection-alert__panel.is-error .demo-connection-alert__loading {
    display: none;
}

.demo-connection-alert__panel.is-error .demo-connection-alert__icon {
    display: inline-flex;
}

.demo-connection-alert__panel.is-error .demo-connection-alert__error {
    display: block;
}

.demo-connection-alert__panel.is-error .demo-connection-alert__actions {
    display: block;
}

.demo-frame {
    display: block;
    width: 100%;
    min-height: 860px;
    border: 0;
}

.demo-frame--full {
    height: 100%;
    min-height: 100%;
}

@keyframes demo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Features: disable hover animations/transitions */
.page-features-static .glass-card,
.page-features-static .btn-gradient,
.page-features-static a {
    transition: none !important;
}

.page-features-static .glass-card:hover {
    transform: none !important;
    box-shadow: 0 10px 30px -5px rgba(0, 102, 255, 0.05) !important;
    border-color: #e2e8f0 !important;
}

.page-features-static .btn-gradient:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Resources: stronger card outlines and no glass-card hover animation */
.page-resources-static .glass-card {
    border-color: #e4e4e4;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    transition: none !important;
}

.page-resources-static .glass-card:hover {
    transform: none !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

@media (max-width: 1000px) {
    .demo-select-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .demo-select-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .demo-select-card__visual {
        height: 156px;
        margin-bottom: 16px;
        border-radius: 18px;
    }

    .demo-policy-visual,
    .demo-finance-visual {
        width: 184px;
        height: 124px;
    }

    .demo-policy-visual__panel {
        width: 106px;
        height: 92px;
    }

    .demo-policy-visual__dot--one {
        left: 18px;
        top: 24px;
    }

    .demo-policy-visual__dot--two {
        right: 18px;
        top: 34px;
    }

    .demo-finance-visual__icon {
        width: 112px;
        height: 90px;
        top: 48%;
    }

    .demo-finance-visual__halo--outer,
    .demo-finance-visual__halo--inner {
        top: 48%;
    }

    .demo-select-card h3 {
        font-size: 1.1rem;
    }

    .demo-select-card p {
        font-size: 0.86rem;
    }

    .demo-select-note {
        padding: 14px 14px;
    }

    .demo-select-note li {
        font-size: 0.84rem;
    }

    .demo-frame {
        min-height: 640px;
    }

    .demo-connection-alert {
        padding: 14px;
    }

    .demo-connection-alert__panel {
        padding: 36px 22px 24px;
        border-radius: 24px;
    }

    .demo-connection-alert__error h3 {
        font-size: 1.2rem;
    }

    .demo-frame--full {
        min-height: 100%;
    }
}
