:root {
    --majorelle-blue: #6050DC;
    --mint-tea-white: #F5F9F6;
    --zellige-green: #006A4E;
    --dark-text: #1A1A1A;
    --light-text: #757575;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--mint-tea-white);
    color: var(--dark-text);
    line-height: 1.6;
    padding-bottom: 80px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--dark-text);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--majorelle-blue), #8B7FF5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

p {
    color: var(--light-text);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--majorelle-blue);
    transition: all 0.2s;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--majorelle-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

.btn-primary {
    background: var(--majorelle-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(96, 80, 220, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 80, 220, 0.4);
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    max-width: 1200px;
    /* Wider for 2-column layout */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Premium Background Mesh */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 80, 220, 0.15) 0%, rgba(244, 196, 48, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 106, 78, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: float 15s ease-in-out infinite reverse;
}

/* 2-Column Hero Layout for Desktop */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--majorelle-blue), #8B7FF5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

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

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

/* Premium Phone Mockup (CSS Only) */
.phone-mockup {
    background: #fff;
    border: 8px solid #1a1a1a;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 9/19;
    width: 300px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s backwards, float 6s ease-in-out infinite 1s;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Simulating Screen Content if no image */
.screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--mint-tea-white) 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

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

.fake-avatar {
    width: 32px;
    height: 32px;
    background: #ddd;
    border-radius: 50%;
}

.fake-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fake-line {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    width: 60%;
    margin-bottom: 8px;
}

.fake-line.short {
    width: 30%;
}

.fake-chart {
    height: 100px;
    background: rgba(96, 80, 220, 0.1);
    border-radius: 12px;
    margin-top: auto;
}

/* ... Rest of CSS ... */
.btn-outline {
    background: transparent;
    border: 2px solid var(--majorelle-blue);
    color: var(--majorelle-blue);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(96, 80, 220, 0.05);
}

/* Features */
.features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: rgba(96, 80, 220, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--majorelle-blue);
    font-size: 24px;
}

/* Legal Pages */
.legal-content {
    padding-top: 140px;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-top: 120px;
    margin-bottom: 60px;
}

.legal-content h1 {
    font-size: 2.5rem;
    text-align: left;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    color: var(--majorelle-blue);
}

.legal-content ul {
    margin-left: 24px;
    margin-bottom: 24px;
    color: var(--light-text);
}

.legal-content li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: var(--light-text);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--majorelle-blue);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 12px;
    margin-left: 24px;
    font-weight: 600;
}

.lang-switch a {
    color: var(--light-text);
    font-size: 0.9rem;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--majorelle-blue);
}

/* RTL Support (Arabic) */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .nav-links {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

@media (max-width: 968px) {
    html[dir="rtl"] .hero-content {
        text-align: center;
    }

    html[dir="rtl"] .hero-buttons {
        justify-content: center;
    }
}

html[dir="rtl"] .feature-card {
    text-align: right;
}

html[dir="rtl"] .legal-content h1,
html[dir="rtl"] .legal-content h2,
html[dir="rtl"] .legal-content p,
html[dir="rtl"] .legal-content ul {
    text-align: right;
}

html[dir="rtl"] .legal-content ul {
    margin-left: 0;
    margin-right: 24px;
}

html[dir="rtl"] .fake-card {
    border-left: none !important;
    border-right: 4px solid;
}

html[dir="rtl"] .fake-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 24px;
}