/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f8fafc; color: #334155; min-height: 100vh; }

/* ── NAVBAR ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 20px;
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: 0 24px; height: 58px;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav-brand {
    font-weight: 800; font-size: 18px; color: #0f172a;
    text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.menu-item-pc {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 7px;
    font-size: 14px; font-weight: 500; color: #475569;
    text-decoration: none; transition: all .18s;
    white-space: nowrap;
}
.menu-item-pc:hover { background: #f1f5f9; color: #0f172a; }
.menu-item-pc.active { background: #dbeafe; color: #2563eb; font-weight: 700; }
.nav-loading { margin-left: auto; width: 3px; height: 3px; border-radius: 50%; background: #2563eb; opacity: 0; transition: opacity .2s; }
.nav-loading.loading {
    opacity: 1; width: 20px; height: 20px;
    border: 3px solid #dbeafe; border-top-color: #2563eb;
    border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── APP ── */
#app { min-height: calc(100vh - 58px); }

/* ── PAGE WRAP ── */
.page-wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px; }

/* ── HERO ── */
.hero {
    text-align: center; padding: 56px 20px 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: 16px; margin-bottom: 32px;
    border: 1px solid #dbeafe;
}
.hero-badge {
    display: inline-block; background: #dbeafe; color: #2563eb;
    font-size: 13px; font-weight: 700; padding: 4px 14px;
    border-radius: 20px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; color: #0f172a; line-height: 1.25; margin-bottom: 12px; }
.hero h1 span { color: #2563eb; }
.hero p { color: #64748b; font-size: 16px; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    font-size: 14px; cursor: pointer; border: none; text-decoration: none;
    transition: all .18s; font-family: inherit;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.btn-outline { background: #fff; color: #334155; border: 1.5px solid #e2e8f0; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.card h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.card p { font-size: 13px; color: #64748b; line-height: 1.6; }
.card code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ── QUICK NAV ── */
.quick-nav { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 28px; }
.page-header h2 { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.page-header p { color: #64748b; font-size: 14px; }

/* ── FLOW ── */
.flow-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-step { display: flex; flex-direction: column; align-items: center; background: #dbeafe; color: #1e40af; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 12px; text-align: center; line-height: 1.4; }
.flow-step code { font-size: 11px; font-weight: 700; }
.flow-step small { font-size: 10px; color: #3b82f6; font-weight: 400; }
.flow-arrow { color: #94a3b8; font-size: 18px; font-weight: 700; }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-block { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.info-block h4 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { background: #f1f5f9; padding: 6px 10px; text-align: left; font-weight: 700; border: 1px solid #e2e8f0; }
.compare-table td { padding: 6px 10px; border: 1px solid #e2e8f0; }

/* ── CODE BLOCK ── */
.code-block {
    background: #1e293b; color: #e2e8f0; border-radius: 8px;
    padding: 14px; font-size: 12.5px; overflow-x: auto;
    line-height: 1.7; margin: 8px 0; white-space: pre;
}

/* ── DEMO GRID ── */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.demo-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.demo-card-wide { grid-column: 1 / -1; }
.demo-card h4 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.demo-card p { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 10px; }
.demo-card code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: 12px; color: #0f172a; }
.demo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-input {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0;
    border-radius: 8px; font-size: 14px; font-family: inherit;
    outline: none; transition: border .18s;
}
.demo-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.demo-input { resize: vertical; min-height: 70px; }
.copy-demo-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f8fafc; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.copy-demo-row span { flex: 1; font-family: monospace; color: #334155; word-break: break-all; }
.result-box { background: #0f172a; color: #4ade80; border-radius: 8px; padding: 12px; font-size: 12px; overflow-x: auto; line-height: 1.6; margin-top: 10px; white-space: pre-wrap; }
.event-log { background: #0f172a; border-radius: 8px; padding: 12px; min-height: 90px; max-height: 160px; overflow-y: auto; font-size: 12px; font-family: monospace; line-height: 1.8; }

/* ── FORM BOX ── */
.form-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; max-width: 520px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 600; color: #334155; }
.result-success { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 14px 18px; color: #166534; font-size: 14px; line-height: 1.7; margin-top: 14px; }
.info-note { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.info-note p { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }

/* ── PRODUCT ── */
.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; display: flex; gap: 24px; align-items: flex-start; }
.product-img { flex-shrink: 0; width: 100px; height: 100px; background: #eff6ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.product-info h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.product-info p { font-size: 14px; color: #64748b; line-height: 1.7; }
@media (max-width: 480px) { .product-card { flex-direction: column; } }

/* ── NOTIFICATION ── */
#overlaynofi { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; }
#notification {
    display: none; position: fixed; bottom: 24px; right: 24px; z-index: 1001;
    background: #fff; border-radius: 14px; padding: 20px 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18); max-width: 340px;
    border: 1px solid #e2e8f0;
    animation: slideUp .35s ease-out;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(30px); opacity: 0; } }
.notif-content p { font-size: 14px; color: #334155; line-height: 1.6; margin: 10px 0 14px; }
.notif-btns { display: flex; gap: 8px; }
.notif-btns span { cursor: pointer; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; }
#closeBtn  { background: #f1f5f9; color: #334155; }
#closeBtnn { background: #dbeafe; color: #2563eb; }
#closeBtn:hover  { background: #e2e8f0; }
#closeBtnn:hover { background: #bfdbfe; }
