:root {
    --primary: #8d00ea;
    --primary-light: #b34aff;
    --secondary: #3d2051;
    --secondary-dark: #241133;
    --accent: #10B981;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --glass: rgba(255, 255, 255, 0.9);
    --border-radius: 20px;
    --container-width: 1200px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.section { padding: 8rem 0; }
.bg-light { background-color: var(--bg-light); }
.grid { display: grid; gap: 2.5rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 992px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 5rem 0; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background-color: var(--glass);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    transition: all 0.3s;
}

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

.logo img {
    height: 50px;
    transition: height 0.3s;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px 0 rgba(30, 58, 138, 0.4);
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 14rem 0 10rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #0F172A;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 25%, rgba(30, 58, 138, 0.4) 0%, transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.15) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    background: linear-gradient(135deg, white 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero .lead {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .lead { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
}

/* Sections */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

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

/* Ecosystem Cards */
.ecosystem-card {
    text-align: center;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.ecosystem-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon.blue { background-color: rgba(30, 58, 138, 0.08); color: var(--primary); }
.card-icon.gold { background-color: rgba(245, 158, 11, 0.08); color: var(--secondary); }
.card-icon.teal { background-color: rgba(16, 185, 129, 0.08); color: var(--accent); }

.ecosystem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ecosystem-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Demo Cards */
.demo-card {
    position: relative;
    padding-top: 4rem;
}

.card-badge {
    position: absolute;
    top: 1.8rem;
    left: 2rem;
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-badge.gold { background-color: var(--secondary); }

.card-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.card-meta {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.meta-item {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.meta-item:last-child { margin-bottom: 0; }

.meta-item strong { color: var(--primary); }

.card-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.link-btn {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
    padding: 0.9rem;
    text-align: center;
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.link-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.link-btn.secondary {
    border-color: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

.link-btn.secondary:hover {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: white;
}

/* Investor Features */
.investor-grid {
    margin-top: 4rem;
    gap: 3rem !important;
}

.feature-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 20px;
}

.feature-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .feature-item { flex-direction: column; text-align: center; }
    .feature-icon { margin: 0 auto; }
}

/* Footer */
.footer {
    padding: 10rem 0 4rem;
    background-color: #0F172A;
    color: white;
}

.footer h2 {
    font-size: 3rem;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-btns {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
