/* Variables & Base Styles */
:root {
    --primary: #00C97B; /* Emerald Green - Neoleap Style */
    --primary-dark: #00a062;
    --primary-light: #e6f9f1;
    --secondary: #1a1a1a; /* Almost Black */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --danger: #ff4757;
    --success: #00C97B;
    --tabby-color: #3EE8B5; /* Tabby brand color approximation */
    --tamara-color: #FF7060; /* Tamara brand color approximation */
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 201, 123, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-danger { color: var(--danger); }
.text-success { color: var(--success); font-weight: bold; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--bg-light); }

/* Typography */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem; }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.highlight { color: var(--primary); }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 201, 123, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 201, 123, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo */
.brand-logo-container {
    text-decoration: none;
    display: inline-block;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 15px; /* space for the arc */
}

.brand-arc {
    width: 85%;
    height: 20px;
    border: 5px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 1.5px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-trust {
    display: flex;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

.trust-item i {
    color: var(--primary);
}

/* Mock App Animation in Hero */
.mock-app {
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 20px;
    width: 320px;
    margin: 0 auto;
    position: relative;
    border: 8px solid #f1f1f1;
    transform: rotate(2deg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.mock-app:hover {
    transform: rotate(0deg) scale(1.02);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(2deg); }
}

.mock-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: 20px;
}

.mock-header .mock-logo {
    transform: scale(0.7);
    transform-origin: top center;
    margin-bottom: -15px;
}

.mock-balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 25px 20px;
    color: var(--white);
    margin-bottom: 20px;
}

.mock-balance-card span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.mock-balance-card h3 {
    margin: 10px 0 0;
    font-size: 2rem;
}

.mock-actions .mock-btn {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.mock-apps {
    display: flex;
    gap: 10px;
}

.mock-app-icon {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

.mock-app-icon.tabby { background: #E8FCF6; color: #00D09C; }
.mock-app-icon.tamara { background: #FFEBE8; color: #FF7060; }

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.tabby-bg { background: #E8FCF6; color: #00D09C; }
.tamara-bg { background: #FFEBE8; color: #FF7060; }
.primary-bg { background: var(--primary-light); color: var(--primary); }

.service-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.service-link:hover {
    gap: 12px;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background-color: var(--secondary);
    color: var(--white);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-info h2 {
    color: var(--white);
}

.calc-info p {
    color: #aaaaaa;
}

.calc-features {
    list-style: none;
    margin-top: 30px;
}

.calc-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.calc-features i {
    color: var(--primary);
    background: rgba(0, 201, 123, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-box {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    color: var(--text-main);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

input[type="number"] {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    font-size: 1.2rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.radio-group {
    display: flex;
    gap: 15px;
}

input[type="radio"] {
    display: none;
}

.radio-label {
    flex: 1;
    padding: 15px;
    text-align: center;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

input[type="radio"]:checked + .radio-label {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
}

.calc-results {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 500;
}

.result-row.total {
    border-top: 1px dashed #ddd;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 1.2rem;
    font-weight: 800;
}

.calc-note {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.step {
    background: var(--white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 201, 123, 0.3);
}

/* Reviews */
.reviews {
    padding: 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--secondary);
    min-height: 80px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-question i {
    transition: var(--transition);
    color: var(--primary);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #aaaaaa;
    margin-top: 20px;
}

.footer-logo .brand-text {
    color: var(--white);
}

.footer-logo {
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-logo .brand-arc {
    left: 0;
    transform: none;
    width: 80%;
    margin-left: 10%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary);
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaaaaa;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaaaaa;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .services-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    
    .nav-links {
        display: none; /* simple mobile menu handling, hidden for brevity */
    }
    
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .calc-box {
        padding: 25px;
    }
}
