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

:root {
    --np-bg: #fafbfc;
    --np-white: #ffffff;
    --np-dark: #0d1117;
    --np-text: #24292f;
    --np-text2: #57606a;
    --np-muted: #8b949e;
    --np-border: #d0d7de;
    --np-primary: #635bff;
    --np-primary-dark: #4b44c9;
    --np-green: #22c55e;
    --np-blue: #3b82f6;
    --np-purple: #8b5cf6;
    --np-orange: #f97316;
    --np-red: #ef4444;
    --np-radius: 8px;
    --np-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--np-bg);
    color: var(--np-text);
    line-height: 1.5;
}

/* Nav */
.np-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 56px;
    background: var(--np-white);
    border-bottom: 1px solid var(--np-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.np-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--np-dark);
}

.np-logo { color: var(--np-primary); font-size: 1.4rem; }
.np-logo.lg { font-size: 2.5rem; }

.np-nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.np-link {
    color: var(--np-text2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.np-user-info {
    color: var(--np-muted);
    font-size: 0.85rem;
}

/* Buttons */
.np-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: var(--np-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-family: inherit;
}

.np-btn.primary { background: var(--np-primary); color: white; }
.np-btn.primary:hover { background: var(--np-primary-dark); }
.np-btn.outline { background: none; color: var(--np-text2); border: 1px solid var(--np-border); }
.np-btn.outline:hover { background: var(--np-bg); }
.np-btn.lg { padding: 0.7rem 1.8rem; font-size: 1rem; }
.np-btn.sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.np-btn.block { width: 100%; text-align: center; }

.np-cta {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    background: var(--np-primary);
    color: white;
    border-radius: var(--np-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.np-cta:hover { background: var(--np-primary-dark); }

/* Hero */
.np-hero {
    position: relative;
    text-align: center;
    padding: 6rem 2rem 5rem;
    background: linear-gradient(135deg, #0d1117 0%, #1a1f36 50%, #2d1b69 100%);
    color: white;
    overflow: hidden;
}

.np-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 91, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.np-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.np-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.np-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.np-highlight {
    background: linear-gradient(135deg, var(--np-primary), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.np-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.np-hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.np-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: -3rem auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.np-feature {
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    padding: 1.5rem;
    box-shadow: var(--np-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.np-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.np-feat-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.np-feature h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.np-feature p { font-size: 0.85rem; color: var(--np-text2); }

/* Stats */
.np-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 2rem;
    background: var(--np-white);
    border-top: 1px solid var(--np-border);
    border-bottom: 1px solid var(--np-border);
}

.np-stat { text-align: center; }
.np-stat-val { font-size: 2rem; font-weight: 800; color: var(--np-primary); }
.np-stat-label { font-size: 0.85rem; color: var(--np-muted); }

/* Footer */
.np-footer {
    text-align: center;
    padding: 2rem;
    color: var(--np-muted);
    font-size: 0.85rem;
}

/* Login */
.np-login-page {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1117, #1a1f36);
}

.np-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

.np-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--np-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.np-login-head {
    text-align: center;
    margin-bottom: 2rem;
}

.np-login-head h1 { font-size: 1.4rem; margin: 0.5rem 0 0.2rem; }
.np-login-head p { color: var(--np-text2); font-size: 0.9rem; }

.np-form { display: flex; flex-direction: column; gap: 1rem; }

.np-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--np-text2);
    margin-bottom: 0.3rem;
}

.np-field input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    font-size: 0.9rem;
    font-family: inherit;
}

.np-field input:focus {
    outline: none;
    border-color: var(--np-primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.np-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--np-red);
    padding: 0.6rem 1rem;
    border-radius: var(--np-radius);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.np-login-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--np-muted);
}

.np-login-foot code {
    background: var(--np-bg);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--np-primary);
    font-size: 0.8rem;
}

/* Dashboard */
.np-dash {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.np-dash h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.np-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.np-card {
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    padding: 1.2rem;
    box-shadow: var(--np-shadow);
    border-top: 3px solid transparent;
}

.np-card.green { border-top-color: var(--np-green); }
.np-card.blue { border-top-color: var(--np-blue); }
.np-card.purple { border-top-color: var(--np-purple); }
.np-card.orange { border-top-color: var(--np-orange); }

.np-card-val { font-size: 1.6rem; font-weight: 700; }
.np-card-label { font-size: 0.8rem; color: var(--np-muted); }

/* Table */
.np-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    overflow: hidden;
    box-shadow: var(--np-shadow);
}

.np-table thead { background: var(--np-bg); }

.np-table th {
    padding: 0.6rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--np-text2);
    font-weight: 600;
}

.np-table td {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--np-border);
}

.status-ok { color: var(--np-green); font-weight: 600; }
.status-fail { color: var(--np-red); font-weight: 600; }

/* Sections */
.np-section { margin-bottom: 2rem; }
.np-section h2 { font-size: 1.15rem; margin-bottom: 1rem; }

/* Action cards */
.np-actions {
    display: grid;
    gap: 1rem;
}

.np-action-card {
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    padding: 1.5rem;
    box-shadow: var(--np-shadow);
}

.np-action-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.np-action-card p { font-size: 0.85rem; color: var(--np-text2); margin-bottom: 1rem; }

.np-inline-form {
    display: flex;
    gap: 0.5rem;
}

.np-inline-form input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    font-size: 0.85rem;
}

.np-inline-form input:focus {
    outline: none;
    border-color: var(--np-primary);
}

.np-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--np-bg);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    font-size: 0.8rem;
    font-family: monospace;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    display: none;
}

.np-result:not(:empty) { display: block; }

@media (max-width: 768px) {
    .np-features { grid-template-columns: 1fr 1fr; }
    .np-cards { grid-template-columns: 1fr 1fr; }
    .np-stats { flex-wrap: wrap; gap: 1.5rem; }
    .np-hero h1 { font-size: 2rem; }
}
