/* ========================================
   MeuPlantel Landing Page
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-700);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-logo {
    width: 2rem;
    height: 2rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-500);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    background: var(--primary-600);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-white {
    background: #ffffff;
    color: var(--primary-600);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn-white:hover {
    background: var(--slate-50);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 0.875rem;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 40%, var(--slate-950) 100%);
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-300);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-300);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-stat-icon {
    display: flex;
    align-items: center;
    color: var(--primary-400);
}

/* ========================================
   Sections Common
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.875rem;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--slate-500);
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================
   Features
   ======================================== */

.features {
    padding: 6rem 0;
    background: var(--slate-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon-blue   { background: var(--primary-50);  color: var(--primary-600); }
.feature-icon-pink   { background: #fdf2f8; color: #db2777; }
.feature-icon-yellow { background: #fefce8; color: #ca8a04; }
.feature-icon-green  { background: #f0fdf4; color: #16a34a; }
.feature-icon-red    { background: #fef2f2; color: #dc2626; }
.feature-icon-amber  { background: #fffbeb; color: #d97706; }

.feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ========================================
   How it Works
   ======================================== */

.how-it-works {
    padding: 6rem 0;
    background: #ffffff;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    flex: 1;
    max-width: 280px;
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.65;
}

.step-connector {
    color: var(--slate-300);
    flex-shrink: 0;
}

/* ========================================
   CTA
   ======================================== */

.cta {
    padding: 5rem 0;
    background: var(--slate-50);
}

.cta-card {
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    position: relative;
    letter-spacing: -0.025em;
}

.cta-desc {
    font-size: 1rem;
    color: var(--slate-300);
    margin-bottom: 2rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 2rem 0;
    background: var(--slate-900);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-300);
    font-weight: 600;
    font-size: 0.9375rem;
}

.brand-logo-sm {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-copy {
    color: var(--slate-500);
    font-size: 0.8125rem;
}

/* ========================================
   Login Modal
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-400);
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}
.modal-close:hover {
    color: var(--slate-600);
    background: var(--slate-100);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--slate-200);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--slate-800);
    background: #ffffff;
    transition: all 0.15s ease;
    outline: none;
}
.form-input::placeholder {
    color: var(--slate-400);
}
.form-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-error {
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 500;
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.btn-full {
    width: 100%;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-footer-text {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--slate-500);
    margin-top: 1.5rem;
}
.modal-footer-text a {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
}
.modal-footer-text a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat {
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-grid {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: none;
        padding: 1.5rem 1rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.375rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .navbar-actions .btn-ghost {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.25rem;
    }
}
