/* assess.smilestory.ai — KAITRUST 12 그리드 디자인 차용 + SaaS 전용 확장 (가격 배지·통화·차별화 무기) */

:root {
    --primary: #00f5ff;
    --secondary: #ff6b35;
    --accent: #a855f7;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0a0a0f;
    --darker: #050508;
    --card-bg: rgba(15, 23, 42, 0.8);
    --glow: 0 0 20px rgba(0, 245, 255, 0.3);
    --max-width: 1600px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--darker);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background (KAITRUST 차용) */
.bg-animation {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0,245,255,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168,85,247,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255,107,53,0.05) 0%, transparent 70%);
}
.grid-overlay {
    position: fixed; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ─── Header ─── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(5, 5, 8, 0.78);
    border-bottom: 1px solid rgba(0, 245, 255, 0.10);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; gap: 24px;
}
.brand {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px;
}
.brand .brand-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    box-shadow: var(--glow);
    display: block;
    object-fit: contain;
    background: #0a0e1a;
    padding: 3px;
}
.brand strong {
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-left: 4px;
}
.brand small {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    margin-left: 6px;
}
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    transition: color .2s;
}
.nav a:hover { color: var(--primary); }
.lang-btn {
    background: rgba(0,245,255,0.08);
    border: 1px solid rgba(0,245,255,0.25);
    color: var(--primary);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.lang-btn:hover {
    background: rgba(0,245,255,0.18);
    border-color: var(--primary);
}
@media (max-width: 720px) {
    .nav a:not(.lang-btn) { display: none; }
}

/* ─── Hero ─── */
.hero {
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.hero .kicker {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(34,197,94,0.12);
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(34,197,94,0.30);
}
.hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 0%, #00f5ff 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: keep-all;
}
.hero p {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: #94a3b8;
    max-width: 760px;
    margin: 0 auto 32px;
    word-break: keep-all;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #050508;
    box-shadow: 0 8px 28px rgba(0,245,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,245,255,0.5); }
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.btn-secondary:hover { background: rgba(0,245,255,0.10); border-color: var(--primary); }

/* ─── Weapons (차별화 무기 3) ─── */
.weapons {
    padding: 60px 24px;
    max-width: 1300px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 36px;
}
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .weapons-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .weapons { padding: 40px 16px; }
    .weapon-card { padding: 20px; }
    .hero { padding: 60px 16px 30px; }
    .diagnostics { padding: 30px 16px 60px; }
    .compliance-strip { padding: 40px 16px; }
}
/* Prevent any single element from breaking the viewport on small screens */
@media (max-width: 360px) {
    .weapon-card h3 { font-size: 1.05rem; }
    .weapon-card p { font-size: 0.88rem; }
    body, html { overflow-x: hidden; }
}
.weapon-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 28px;
    transition: all .3s;
}
.weapon-card:hover {
    border-color: rgba(0,245,255,0.40);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,212,255,0.18);
}
.weapon-card .num {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #050508;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.weapon-card h3 {
    color: var(--primary);
    font-size: 1.18rem;
    margin-bottom: 10px;
    word-break: keep-all;
}
.weapon-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: keep-all;
}
.weapon-card .label-row {
    display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap;
}
.weapon-card .label-row img {
    width: 28px; height: 28px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ─── Diagnostics grid (KAITRUST 차용) ─── */
.diagnostics {
    padding: 40px 24px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .services-grid { grid-template-columns: 1fr; } }

.grid-section-title {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,245,255,0.12);
    margin-bottom: 4px;
}
.grid-section-title .section-emoji { font-size: 1.5rem; }
.grid-section-title .section-text {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
}
.grid-section-title .section-count {
    font-size: 0.75rem; color: #64748b;
    background: rgba(0,245,255,0.08);
    padding: 2px 10px; border-radius: 12px; font-weight: 500;
}
.grid-section-title .section-sub {
    font-size: 0.8rem; color: #64748b; margin-left: auto;
}

.service-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255,255,255,0.10);
    border-left: 3px solid var(--success);
    border-radius: 16px;
    padding: 26px 18px 18px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
}
.service-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,245,255,0.30);
    box-shadow: 0 15px 50px rgba(0,212,255,0.25);
}
.service-card .mvp-tag {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--warning));
    color: #050508;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.6px;
}
.service-icon { font-size: 2.6rem; margin-bottom: 6px; }
.service-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: keep-all;
}
.service-wia-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-wia-code {
    font-size: 0.86rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 12px;
}
.price-block {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.price-tier {
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    line-height: 1.3;
    white-space: nowrap;
}
.price-tier .tier-label {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.4px;
    margin-bottom: 1px;
}
.price-tier.std { border-color: rgba(34,197,94,0.40); }
.price-tier.dlx { border-color: rgba(0,245,255,0.45); background: rgba(0,245,255,0.06); }
.price-tier.prm { border-color: rgba(168,85,247,0.55); background: rgba(168,85,247,0.08); }

.pricing-note {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* ─── Compliance strip ─── */
.compliance-strip {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(0,245,255,0.10);
    border-bottom: 1px solid rgba(0,245,255,0.10);
    padding: 50px 24px;
}
.compliance-inner {
    max-width: 1300px;
    margin: 0 auto;
}
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}
@media (max-width: 900px) { .compliance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .compliance-grid { grid-template-columns: 1fr; } }
.compliance-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* ─── Disclaimer banner ─── */
.disclaimer-banner {
    background: rgba(245,158,11,0.06);
    border-top: 1px solid rgba(245,158,11,0.25);
    border-bottom: 1px solid rgba(245,158,11,0.25);
    padding: 18px 24px;
    text-align: center;
    color: #fbbf24;
    font-size: 0.92rem;
    font-weight: 500;
}
.disclaimer-banner small {
    display: block;
    color: rgba(251,191,36,0.7);
    font-weight: 400;
    margin-top: 4px;
    font-size: 0.82rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Footer ─── */
.site-footer {
    padding: 42px 24px 28px;
    background: #050508;
    border-top: 1px solid rgba(0,245,255,0.10);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-brand {
    max-width: 360px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.footer-brand .footer-mark {
    width: 36px; height: 36px;
    border-radius: 8px;
    box-shadow: var(--glow);
    object-fit: contain;
    background: #0a0e1a;
    padding: 4px;
    display: block;
    flex-shrink: 0;
}
.footer-brand h2,
.footer-brand h3,
.footer-brand h4 { color: #fff; font-size: 1rem; margin: 0; letter-spacing: 0.5px; }
.footer-brand p {
    color: #64748b;
    font-size: 0.88rem;
    flex-basis: 100%;
    margin: 4px 0 0 0;
}
.footer-links { display: flex; gap: 12px 18px; flex-wrap: wrap; }
.footer-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-rights {
    width: 100%;
    text-align: center;
    color: #475569;
    font-size: 0.78rem;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── Loading state ─── */
.skeleton {
    background: linear-gradient(90deg, #16213e 0%, #1f2a44 50%, #16213e 100%);
    background-size: 200% 100%;
    animation: skel 1.4s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
