/* ====================================
   Tola Landing Page - Global Styles
   ==================================== */

/* CSS Variables */
:root {
    --primary-color: #2ecc71;      /* Green */
    --primary-dark: #27ae60;       /* Darker green */
    --primary-light: #58d68d;      /* Lighter green */
    --bg-color: #ffffff;           /* White background */
    --text-dark: #1a1a1a;          /* Dark text */
    --text-light: #666666;         /* Light gray text */
    --border-color: #e0e0e0;       /* Light border */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* ====================================
   Reset and Base Styles
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   Buttons
   ==================================== */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

/* ====================================
   Navigation Bar
   ==================================== */

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-link {
    color: var(--primary-color);
}

/* ====================================
   Hero Section
   ==================================== */

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(46, 204, 113, 0.02) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile Mockup */
.mockup-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-phone {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.mockup-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background-color: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-content {
    flex: 1;
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-header {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.mockup-item {
    height: 80px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    opacity: 0.7;
    animation: shimmer 2s ease-in-out infinite;
}

.mockup-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mockup-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.mockup-home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #000;
    border-radius: 50%;
}

.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ====================================
   Section Styles
   ==================================== */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* ====================================
   Features Section
   ==================================== */

.features {
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 28px;
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background-color: #fafffe;
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ====================================
   How It Works Section
   ==================================== */

.how-it-works {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0.03) 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

.step {
    display: flex;
    gap: 20px;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step:nth-child(1) {
    animation-delay: 0s;
}

.step:nth-child(3) {
    animation-delay: 0.2s;
}

.step:nth-child(5) {
    animation-delay: 0.4s;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.step-connector {
    display: none;
}

/* ====================================
   Why Choose Section
   ==================================== */

.why-choose {
    background-color: var(--bg-color);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.reason-card {
    padding: 32px 24px;
    background: linear-gradient(135deg, #fafffe 0%, #f0fdf4 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.reason-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.reason-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.reason-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ====================================
   Early Access CTA Section
   ==================================== */

.early-access-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 12px;
    color: white;
}

.cta-content > p {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 48px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-download,
.cta-qrcode {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 12px;
    color: var(--text-dark);
}

.cta-download h3,
.cta-qrcode h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cta-download p,
.cta-qrcode p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.cta-note {
    font-size: 12px;
    color: #999;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.cta-divider {
    display: none;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-placeholder svg {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.qr-note {
    font-size: 11px;
    color: #999!important;
    margin: 0 !important;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    opacity: 0.95;
}

.cta-feature .check {
    font-size: 24px;
    color: #fff;
}

/* ====================================
   Footer
   ==================================== */

.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-section h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-section a {
    color: var(--primary-light);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding-top: 20px;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
    }

    .nav-link {
        font-size: 13px;
    }

    /* Hero Section */
    .hero {
        padding: 50px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Steps */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* CTA Grid */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-divider {
        display: none;
    }

    .cta-download,
    .cta-qrcode {
        padding: 24px;
    }

    /* CTA Features */
    .cta-features {
        flex-direction: column;
        gap: 16px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    /* Mockup Phone */
    .mockup-phone {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    /* Sections */
    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 14px;
    }

    /* Feature Cards */
    .feature-card {
        padding: 24px 16px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    /* CTA */
    .early-access-cta {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content > p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .cta-grid {
        padding: 24px;
    }

    .cta-download h3,
    .cta-qrcode h3 {
        font-size: 16px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 16px;
    }

    .footer-section a {
        word-break: break-word;
    }
}

/* ====================================
   Dark Mode Support (Optional)
   ==================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f0f0f;
        --text-dark: #f5f5f5;
        --text-light: #aaa;
        --border-color: #333;
    }

    .feature-card,
    .reason-card {
        background-color: #1a1a1a;
        border-color: #333;
    }

    .feature-card:hover {
        background-color: #242424;
    }
}

/* ====================================
   Smooth Scroll Behavior
   ==================================== */

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ====================================
   Accessibility
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
