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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --background: #f4f6fb;
    --card: #ffffff;
    --muted: #6b7280;
    --border: #e2e8f0;
    --success: #22c55e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    color: var(--secondary);
    line-height: 1.6;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand span {
    color: #fff;
    font-weight: 600;
    font-size: 1.35rem;
}

.brand small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    border: none;
    background: transparent;
    color: #f8fafc;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(248, 250, 252, 0.1);
}

.nav-btn.primary {
    background: var(--primary);
    color: #fff;
}

.nav-btn.ghost {
    border: 1px solid rgba(248, 250, 252, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
    background: #fff;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn.ghost {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.w-100 {
    width: 100%;
}

.home-section {
    display: block;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    margin: 0.4rem 0 1rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.hero-stats li {
    background: var(--card);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.hero-stats strong {
    display: block;
    font-size: 1.6rem;
}

.hero-card {
    background: #0f172a;
    color: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.feature-section,
.steps-section,
.cta-panel,
.panel,
.auth-section,
.admin-section {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.section-heading {
    max-width: 640px;
}

.section-heading h2 {
    margin: 0.4rem 0 0.8rem;
}

.section-heading.compact {
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.steps-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 600;
}

.cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge.neutral {
    background: rgba(15, 23, 42, 0.08);
    color: var(--secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

label {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.3);
    border-color: transparent;
}

.form-control,
.form-action {
    display: flex;
    flex-direction: column;
}

.form-result {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.helper-text {
    text-align: center;
    font-weight: 600;
    color: #c0392b;
}

.auth-section {
    text-align: left;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-output {
    min-height: 120px;
    border: 1px dashed var(--border);
    border-radius: 1rem;
    padding: 1rem;
    background: #f8fafc;
}

.eyebrow {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        padding: 1rem;
        border-radius: 1rem;
        min-width: 220px;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .cta-panel,
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    main {
        padding: 5.5rem 1rem 2.5rem;
    }

    .hero-card,
    .feature-section,
    .steps-section,
    .cta-panel,
    .panel,
    .auth-section,
    .admin-section {
        padding: 1.5rem;
    }
}