/**
 * Ryorder Landing Page Styles
 * Custom styles for the landing page
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #206bc4;
    --primary-dark: #1a5aa3;
    --secondary-color: #2fb344;
    --background-light: #f4f6fa;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== Navbar ===== */
.navbar-landing {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-landing .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-landing .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-landing .nav-link:hover {
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .text-highlight {
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-buttons .btn-light {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-light:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-2px);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

/* Hero Stats */
.hero-stats {
    padding-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Mockup - Dashboard Preview */
.hero-mockup {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #334155;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
}

.mockup-dots span:nth-child(1) {
    background: #ef4444;
}

.mockup-dots span:nth-child(2) {
    background: #fbbf24;
}

.mockup-dots span:nth-child(3) {
    background: #22c55e;
}

.mockup-title {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.mockup-content {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 60px;
    background: #0f172a;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mockup-menu-item {
    height: 8px;
    background: #334155;
    border-radius: 4px;
    margin: 0 4px;
}

.mockup-menu-item.active {
    background: var(--primary-color);
}

.mockup-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-stats {
    display: flex;
    gap: 0.75rem;
}

.mockup-stat-card {
    flex: 1;
    height: 50px;
    background: linear-gradient(135deg, #334155, #1e293b);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.mockup-stat-card:nth-child(2) {
    border-left-color: #22c55e;
}

.mockup-stat-card:nth-child(3) {
    border-left-color: #fbbf24;
}

.mockup-chart {
    height: 80px;
    background: linear-gradient(180deg, rgba(32, 107, 196, 0.2), transparent);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mockup-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #22c55e, #fbbf24);
}

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-row {
    height: 12px;
    background: #334155;
    border-radius: 4px;
}

.mockup-row:nth-child(1) {
    width: 100%;
}

.mockup-row:nth-child(2) {
    width: 85%;
}

.mockup-row:nth-child(3) {
    width: 70%;
}

/* ===== Features Section ===== */
.features-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.feature-icon i {
    font-size: 1.75rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== How It Works Section ===== */
.how-it-works-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Step connector line */
@media (min-width: 768px) {
    .step-card {
        position: relative;
    }

    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
        z-index: 0;
    }

    .step-number {
        position: relative;
        z-index: 1;
    }
}

/* ===== Plans Section ===== */
.plans-section {
    padding: 5rem 0;
    background: var(--white);
}

.plan-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.plan-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-description {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-light {
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: 0.9375rem;
    color: #94a3b8;
    max-width: 300px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #334155;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

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

    .hero-image {
        margin-top: 3rem;
    }

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

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .features-section,
    .how-it-works-section,
    .plans-section,
    .cta-section {
        padding: 3rem 0;
    }

    .plan-card {
        margin-bottom: 1.5rem;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animation delays for staggered effect */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
