@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
    --c-primary: #3b82f6;
    --c-primary-dark: #1d4ed8;
    --c-accent: #6366f1;
    --c-surface: #ffffff;
    --c-bg: #f8fafc;
    --c-dark: #0f172a;
    --c-dark-soft: #1e293b;
    --c-text: #0f172a;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.06);
}

*,*::before,*::after { box-sizing: border-box; }

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--c-text);
    background: var(--c-bg);
    margin: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: auto;
    padding: 160px 24px 120px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59,130,246,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(99,102,241,.10) 0%, transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}

/* ── Badge pills ── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    background: rgba(59,130,246,.12);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* ── CTA buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(59,130,246,.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 700;
    color: #cbd5e1;
    background: transparent;
    border: 1.5px solid rgba(203,213,225,.3);
    cursor: pointer;
    transition: transform .2s, border-color .2s, color .2s, background .2s;
    text-decoration: none;
}
.btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(203,213,225,.6);
    background: rgba(255,255,255,.05);
    color: #f1f5f9;
}

.btn-primary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(59,130,246,.25);
}
.btn-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,.35);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 700;
    color: var(--c-text);
    background: transparent;
    border: 1.5px solid var(--c-border);
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    text-decoration: none;
}
.btn-outline-dark:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: var(--shadow-card);
}

/* ── Section layout ── */
.section {
    padding: 100px 24px;
}
.section-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
}
.section-alt {
    background: #f1f5f9;
}
.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    max-width: 640px;
}
.section-dark .section-subtitle {
    color: #94a3b8;
}

/* ── Cards ── */
.card {
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--c-border);
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
}
.card-icon-blue { background: rgba(59,130,246,.1); color: #3b82f6; }
.card-icon-indigo { background: rgba(99,102,241,.1); color: #6366f1; }
.card-icon-emerald { background: rgba(16,185,129,.1); color: #10b981; }
.card-icon-amber { background: rgba(245,158,11,.1); color: #f59e0b; }
.card-icon-rose { background: rgba(244,63,94,.1); color: #f43f5e; }

.card-dark {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s;
}
.card-dark:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.07);
}

/* ── Problem cards ── */
.problem-card {
    position: relative;
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 28px 28px 28px 72px;
    border: 1px solid var(--c-border);
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}
.problem-card .num {
    position: absolute;
    left: 24px;
    top: 26px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-weight: 800;
    font-size: .875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Before / After ── */
.compare-block {
    border-radius: var(--radius);
    overflow: hidden;
    font-family: 'Noto Sans KR', monospace;
    font-size: .85rem;
    line-height: 1.7;
}
.compare-before {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.compare-after {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.compare-header {
    padding: 12px 20px;
    font-weight: 700;
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.compare-before .compare-header {
    background: #fee2e2;
    color: #dc2626;
}
.compare-after .compare-header {
    background: #dcfce7;
    color: #16a34a;
}
.compare-body {
    padding: 16px 20px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ── Stat highlight ── */
.stat-big {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* ── Tab switcher ── */
.tab-btn {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    border: 1.5px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all .2s;
}
.tab-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Delivery points ── */
.delivery-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.delivery-point .dp-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59,130,246,.12);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Navbar ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.landing-nav.scrolled {
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.landing-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15,23,42,.97);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: .9375rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-menu a:hover { color: #fff; }

/* ── Login modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.open {
    display: flex;
}
.modal-box {
    background: #fff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    position: relative;
    animation: modalIn .25s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}
.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.modal-divider span {
    font-size: .75rem;
    font-weight: 600;
    color: #94a3b8;
}
.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .875rem;
    color: var(--c-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}
.modal-input::placeholder { color: #94a3b8; }
.modal-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.modal-btn-google {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    font-family: inherit;
}
.modal-btn-google:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.modal-btn-submit {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
}
.modal-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,.3);
}
.modal-error {
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: .8125rem;
    color: #dc2626;
    display: none;
}
.modal-error.show { display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .section { padding: 64px 16px; }
    .section-title { font-size: 1.5rem; }
    .stat-big { font-size: 2.5rem; }
    .hero { min-height: auto; padding: 120px 16px 80px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero { min-height: auto; padding: 120px 24px 80px; }
    .section { padding: 80px 24px; }
    .section-title { font-size: 1.75rem; }
}
