:root {
    --primary: #A83618;
    --dark: #000000;
    --btn-dark: #191922;
    --btn-dark-border: rgba(72, 71, 80, 0.3);
    --text-muted: #ACAAB5;
    --text-gray: #5C5B60;
    --text-light-gray: #818086;
    --bg-white: #FFFFFF;
    --bg-light: #F7F7F7;
    --bg-hero: #F6EBE8;
    --accent-cyan: #00F4FE;
    --accent-purple: #BD9DFF;
    --accent-yellow: #FFC965;
    --accent-pink: #FF6E84;
    --border-radius: 9999px;
    --card-radius: 24px;
}

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

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg-white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
}
.btn-primary:hover {
    background: #8e2b12;
}
.btn-dark {
    background: var(--btn-dark);
    color: var(--bg-white);
    border: 1px solid var(--btn-dark-border);
}
.btn-dark:hover {
    background: #0d0d12;
}
.btn-white {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-white:hover {
    background: #fdfdfd;
}
.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* Header */
.header {
    padding: 24px 0;
    width: 100%;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 40px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-item {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}
.nav-item.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.icon-menu {
    width: 36px; height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-flex;
    padding: 6px 16px;
    background: rgba(168, 54, 24, 0.1);
    color: var(--primary);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 56px;
    letter-spacing: -1.8px;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-img {
    max-width: 100%;
    height: auto;
}

/* Worlds Section */
.worlds {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 12px;
}
.section-desc {
    font-size: 18px;
    color: var(--text-gray);
}

.world-card {
    background: rgba(168, 54, 24, 0.05);
    border-radius: var(--card-radius);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s;
}
.world-card:hover { transform: translateY(-5px); }
.icon-box {
    width: 80px; height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-red { background: rgba(255,110,132,0.1); border: 2px solid var(--accent-pink); color: var(--accent-pink); }
.icon-yellow { background: rgba(255,201,101,0.1); border: 2px solid var(--accent-yellow); color: var(--accent-yellow); }
.icon-purple { background: rgba(189,157,255,0.1); border: 2px solid var(--accent-purple); color: var(--accent-purple); }
.icon-cyan { background: rgba(0,244,254,0.1); border: 2px solid var(--accent-cyan); color: var(--accent-cyan); }
.world-card h3 { font-size: 24px; }
.world-card p { font-size: 14px; color: #3c3b3c; }

/* Why Playvio */
.why-playvio {
    padding: 100px 0;
}

.feature-card {
    background: var(--primary);
    border: 1px solid rgba(72,71,80,0.15);
    border-radius: 32px;
    padding: 40px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    z-index: 1;
}
.feature-card > * { position: relative; z-index: 2; }
.f-icon-box {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-yellow);
    color: var(--accent-yellow);
}
.f-icon-box.f-cyan { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.f-icon-box.f-purple { border-color: var(--accent-purple); color: var(--accent-purple); }
.feature-card h3 { font-size: 24px; color: #efecf8; margin-bottom: 16px; text-align: center; }
.feature-card p { font-size: 16px; text-align: center; line-height: 1.6; }

/* Play Anywhere */
.play-anywhere {
    padding: 60px 0;
}
.anywhere-banner {
    background: var(--bg-hero);
    border-radius: 48px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.anywhere-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.anywhere-circle {
    width: 60px; height: 60px;
    background: var(--primary);
    border: 1px solid rgba(72,71,80,0.2);
    border-radius: 50%;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}
.anywhere-item h4 { font-size: 20px; }

/* Steps */
.steps {
    padding: 80px 0;
}

.step-card {
    background: var(--primary);
    border-radius: 24px;
    padding: 32px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}
.step-num {
    position: absolute;
    top: -40px;
    left: 20px;
    font-size: 160px;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    line-height: 1;
}
.step-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}
.step-content h3 { font-size: 24px; color: #efecf8; margin-bottom: 8px; }
.step-content p { font-size: 16px; color: #f7f7f7; }

/* CTA */
.cta-section {
    padding: 80px 0;
}
.cta-box {
    background: linear-gradient(81.91deg, var(--accent-purple) -10%, var(--primary) 58%);
    border-radius: 48px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.cta-box h2 { font-size: 48px; max-width: 600px; line-height: 1.2; }
.cta-box p { font-size: 18px; max-width: 700px; }

/* Footer */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.about-f h3 { font-size: 18px; line-height: 1.6; max-width: 400px; }
.links-f h4 { font-size: 18px; margin-bottom: 20px; color: rgba(255,255,255,0.6); }
.links-f a { display: block; font-size: 16px; color: #fff; margin-bottom: 12px; }
.links-f a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Modal Form Styles */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.close:hover { color: #000; }
.modal h2 { margin-bottom: 24px; font-size: 28px; }
.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.submit-btn { width: 100%; padding: 14px; font-size: 18px; }

/* Responsive tweaks */
@media (max-width: 992px) {
    .nav-links { display: none; /* Hide nav links on tablet/mobile; can attach logic to .icon-menu later */ }
}
@media (max-width: 768px) {
    .hero-title { font-size: 36px; line-height: 1.2; letter-spacing: -1px; }
    .hero-desc { font-size: 16px; }
    .section-title { font-size: 28px; line-height: 1.3; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 28px; }
    .cta-box p { font-size: 16px; }
    .anywhere-banner { padding: 40px 24px; }
    .feature-card, .world-card, .step-card { padding: 32px 24px; }
    .hero { padding: 40px 0; }
    .worlds, .why-playvio, .play-anywhere, .steps, .cta-section { padding: 60px 0; }
    .header-actions .btn { display: none; /* Hide large button on top mobile header to save space */ }
    .modal-content { padding: 24px; }
}
