/* Core Variables & Tokens */
:root {
    /* Brand Dark Green Theme Colors from Prompt */
    --primary-emerald: #336443; /* Heading primary green */
    --primary-emerald-hover: #2a3827; /* Button hover */
    --emerald-glow: 0 10px 30px rgba(51, 100, 67, 0.12);
    --emerald-glow-hover: 0 20px 40px rgba(51, 100, 67, 0.22);
    
    /* Colors from Prompt */
    --bg-primary: #F7F3EC;      /* Keep beige/cream */
    --bg-secondary: #ffffff;    
    --bg-tertiary: #ede6db;     
    --text-primary: #1f2a1d;    /* Dark green text/buttons */
    --text-secondary: #4b5b47;  /* Body text green */
    --text-muted: #85AB8B;      /* Heading accent green */
    --border-color: #e8e0d5;    
    
    /* Dark green override for header/footer to match new brand */
    --bg-dark-card: #1f2a1d;    /* Dark green background */
    --border-dark-card: #2d3a2a;
    
    /* Transitions */
    --reveal-transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --hover-transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --border-radius-pill: 50px;
    --border-radius-card: 20px;
}

/* Document & Base Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: 'Neue Haas Grotesk Display Pro 55 Roman', 'Neue Haas Grotesk Text Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Bilingual Font Swapping */
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] button,
html[lang="ar"] select {
    font-family: 'Cairo', sans-serif;
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    color: var(--primary-emerald);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-emerald-hover);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
    border-bottom: 1px solid var(--border-color);
}

.text-center { text-align: center; }
.justify-center { justify-content: center; }
.highlight-green { color: var(--primary-emerald); }
.hidden { display: none !important; }

/* --- HOVER LIFT ANIMATION SYSTEM --- */
.hover-lift {
    transition: var(--hover-transition);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 50px rgba(16, 42, 67, 0.08), 0 0 0 1.5px var(--primary-emerald);
}

.testimonial-card.hover-lift:hover {
    transform: translateY(-10px) rotate(0.5deg) scale(1.01);
}

/* --- SCROLL REVEAL (A11Y CONFLICT RESOLUTION) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: var(--reveal-transition);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Override transition once revealed to allow snappy hover lift */
.scroll-reveal.hover-lift:not(.revealed) {
    transition: var(--reveal-transition);
}

.scroll-reveal.hover-lift.revealed {
    transition: var(--hover-transition);
}


/* --- HEADER & NAVIGATION --- */
.main-header {
    background: rgba(16, 42, 67, 0.98); /* Exact logo background #102A43 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

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

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-link:hover {
    transform: scale(1.04);
}

.logo-link:hover .logo-img {
    animation: logoWiggle 0.6s ease-in-out infinite alternate;
}

@keyframes logoWiggle {
    0% {
        transform: rotate(-3deg) translateY(0);
    }
    100% {
        transform: rotate(3deg) translateY(-2px);
    }
}

.logo-img {
    height: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.footer-logo {
    height: 40px;
    max-height: 40px;
    margin-bottom: 16px;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-nav-cta {
    background: var(--primary-emerald);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--emerald-glow);
    transition: all 0.3s;
}

.btn-nav-cta:hover {
    background: var(--primary-emerald-hover);
    color: #ffffff;
    box-shadow: var(--emerald-glow-hover);
    transform: translateY(-1px);
}


/* --- SECTION 1: HERO & WAITLIST --- */
.hero-section {
    position: relative;
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.boomerang-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.boomerang-bg-container video,
.boomerang-bg-container canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.boomerang-bg-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 243, 236, 0.65); /* Elegant beige overlay tint for maximum readability */
    z-index: 2;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(51, 100, 67, 0.1);
    color: var(--primary-emerald);
    border: 1px solid rgba(51, 100, 67, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Neue Haas Grotesk Display Pro 55 Roman', 'Neue Haas Grotesk Text Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(2.25rem, 5.5vw, 5.25rem); /* Beautiful fluid size matching prompt */
    font-weight: normal;
    line-height: 0.95;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
    color: var(--primary-emerald);
}

.hero-title-accent {
    color: var(--text-muted); /* Heading accent green `#85AB8B` */
}

/* Framer-Motion style initial loading animations */
.animate-title {
    opacity: 0;
    transform: translateY(20px);
    animation: slideFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: slideFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.waitlist-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    padding: 12px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.waitlist-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

/* RTL Specific Input Adjustments */
html[lang="ar"] .form-input {
    direction: rtl;
}

.btn-submit {
    background: var(--primary-emerald);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--emerald-glow);
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-emerald-hover);
    box-shadow: var(--emerald-glow-hover);
}

.arrow-icon {
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.btn-submit:hover .arrow-icon {
    transform: translateX(4px);
}

/* RTL Arrow direction flip */
html[lang="ar"] .arrow-icon {
    transform: rotate(180deg);
}
html[lang="ar"] .btn-submit:hover .arrow-icon {
    transform: rotate(180deg) translateX(-4px);
}


/* --- SUCCESS CARD OVERLAY --- */
.success-card {
    padding: 24px;
    text-align: start;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.success-checkmark {
    color: var(--primary-emerald);
    font-size: 1.8rem;
}

.success-card h3 {
    font-size: 1.4rem;
}

.success-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.position-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.position-label {
    font-weight: 700;
    color: var(--text-secondary);
}

.position-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-emerald);
}

.share-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.copy-input-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    background: var(--bg-primary);
    overflow: hidden;
    padding: 4px;
}

.copy-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    outline: none;
}

.btn-copy {
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-pill);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: #1e293b;
}


/* --- SECTION 2: STATS BANNER --- */
.stats-banner-section {
    background: var(--bg-secondary);
    padding: 50px 0;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}


/* --- SECTION 3: ADVANTAGES GRID --- */
.advantages-section {
    background: var(--bg-primary);
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

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

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.advantage-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.adv-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}


/* --- SECTION 4: SPEND LOGGER SPLIT --- */
.spend-logger-section {
    background: var(--bg-secondary);
}

.spend-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.spend-details .section-heading {
    font-size: 2.25rem;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.spend-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.spend-step {
    display: flex;
    gap: 20px;
}

.step-num {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-emerald);
    background: rgba(16, 185, 129, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-body h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.step-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Runway Visualizer Widget */
.spend-visual {
    display: flex;
    justify-content: center;
}

.runway-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    padding: 36px;
    width: 100%;
    max-width: 420px;
    animation: floatAnimation 5s ease-in-out infinite alternate;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-12px);
    }
}

.runway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.runway-header h3 {
    font-size: 1.1rem;
}

.runway-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-emerald-hover);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
}

.runway-progress-container {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.runway-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Animate dynamically via JS */
    background: var(--primary-emerald);
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.runway-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: barPulse 2.5s infinite linear;
}

@keyframes barPulse {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.runway-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 24px;
}

.runway-summary {
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.runway-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.runway-stat-item .stat-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.runway-stat-item .stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.btn-runway {
    width: 100%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    padding: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-runway:hover {
    background: var(--border-color);
}

.runway-details-expansion {
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { height: 0; opacity: 0; transform: translateY(-5px); }
    to { height: auto; opacity: 1; transform: translateY(0); }
}

.expansion-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.expansion-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.expansion-row:last-child {
    margin-bottom: 0;
}


/* --- SECTION 5: TESTIMONIALS --- */
.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stars-rating {
    color: #eab308;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 0.95rem;
}

.testimonial-author .author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}


/* --- SECTION 6: PRICING --- */
.pricing-section {
    background: var(--bg-secondary);
}

.pricing-grid {
    display: flex;
    gap: 32px;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.pricing-card {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.pricing-card.advanced {
    background: var(--bg-dark-card);
    border-color: var(--border-dark-card);
    color: #ffffff;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-emerald);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pricing-card .card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.pricing-card.advanced .card-header {
    border-color: var(--border-dark-card);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-card.advanced h3 {
    color: #ffffff;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing-card.advanced .card-desc {
    color: var(--text-muted);
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value .amount {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.text-white .amount {
    color: #ffffff !important;
}

.price-value .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.card-features li {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.check-icon.green {
    color: var(--primary-emerald);
}

.btn-pricing-cta {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.basic-btn {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.basic-btn:hover {
    background: var(--bg-tertiary);
}

.advanced-btn {
    background: var(--primary-emerald);
    color: #ffffff;
    box-shadow: var(--emerald-glow);
}

.advanced-btn:hover {
    background: var(--primary-emerald-hover);
    box-shadow: var(--emerald-glow-hover);
    transform: translateY(-2px);
}


/* --- SECTION 7: BOTTOM CTA --- */
.bottom-cta-section {
    background: radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 60%), var(--bg-primary);
    padding: 100px 0;
}

.bottom-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.bottom-card {
    margin-top: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}


/* --- FOOTER --- */
.main-footer {
    background: #102A43; /* Matches header background exactly */
    color: #a3b8cc;
    padding: 80px 0 40px 0;
}

.main-footer a {
    color: #94a3b8;
}

.main-footer a:hover {
    color: #ffffff;
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-left .logo-link {
    font-size: 1.8rem;
}

.quantec-desc {
    font-size: 0.88rem;
    color: #7b8e9f;
    font-weight: normal;
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-center ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-center a {
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.copyright {
    font-size: 0.8rem;
    color: #7b8e9f;
    font-weight: 700;
}


/* --- RESPONSIVE BREAKPOINTS (LTR/RTL FLEX COMPATIBILITY) --- */

@media (max-width: 1024px) {
    .spend-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .spend-details {
        text-align: center;
    }
    .spend-steps {
        max-width: 600px;
        margin: 0 auto;
    }
    .spend-step {
        text-align: start;
    }
    .spend-visual {
        width: 100%;
    }
    .pricing-grid {
        flex-direction: column;
        max-width: 500px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .waitlist-form {
        flex-direction: column;
        width: 100%;
    }
    .form-input {
        width: 100%;
        text-align: center;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DOCUMENT PAGES (PRIVACY & TERMS) --- */
.document-page {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.document-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.02);
}

.document-card h1 {
    font-size: 2.75rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.document-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    border-left: 4px solid var(--primary-emerald);
    padding-left: 20px;
}

html[lang="ar"] .document-intro {
    border-left: none;
    border-right: 4px solid var(--primary-emerald);
    padding-left: 0;
    padding-right: 20px;
}

.document-section {
    margin-bottom: 32px;
}

.document-section:last-child {
    margin-bottom: 0;
}

.document-section h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.document-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- CONTACT PAGE --- */
.contact-page {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.02);
}

.contact-card h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.75px;
    text-align: center;
}

.contact-subtitle-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-control-input,
.form-control-textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.form-control-input:focus,
.form-control-textarea:focus {
    border-color: var(--primary-emerald);
    box-shadow: 0 0 0 4px rgba(219, 147, 22, 0.1);
}

.form-control-textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-contact-submit {
    background: var(--primary-emerald);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--emerald-glow);
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-contact-submit:hover {
    background: var(--primary-emerald-hover);
    box-shadow: var(--emerald-glow-hover);
    transform: translateY(-2px);
}

.btn-contact-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .document-card {
        padding: 30px;
    }
    .contact-card {
        padding: 30px;
    }
}

/* --- PREMIUM INTERACTIVE PHYSICS --- */
.btn-submit, .btn-nav-cta, .btn-contact-submit, .btn-runway {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.btn-submit:hover, .btn-nav-cta:hover, .btn-contact-submit:hover, .btn-runway:hover {
    transform: scale(1.03) translateY(-2px);
}

.btn-submit:active, .btn-nav-cta:active, .btn-contact-submit:active, .btn-runway:active {
    transform: scale(0.97) translateY(0);
}

