@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #00857C;
    --primary-light: #00a896;
    --primary-dark: #006059;
    --primary-glow: rgba(0, 133, 124, 0.4);
    --secondary: #0d9488;
    --accent-emerald: #10b981;
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;

    --bg-dark: #070b13;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.85);

    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 133, 124, 0.3);

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(0, 133, 124, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 133, 124, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header / Navigation --- */
header {
    background: rgba(7, 11, 19, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: var(--transition-smooth);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-white), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-white);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.btn-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 133, 124, 0.3);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 133, 124, 0.5);
}

/* --- Container Layout --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem 2rem;
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-height: 90vh;
    padding-top: 8rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge-hero {
    align-self: flex-start;
    background: rgba(0, 133, 124, 0.12);
    border: 1px solid var(--border-hover);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-hero span {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 8px 24px rgba(0, 133, 124, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 133, 124, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 133, 124, 0.3) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preview-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-glass);
    z-index: 2;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.preview-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.preview-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 133, 124, 0.25);
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-white), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    transform: translateX(-100%);
    transition: all 0.8s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glass), 0 10px 25px rgba(0, 133, 124, 0.15);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(0, 133, 124, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    border: 1px solid rgba(0, 133, 124, 0.2);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.feature-icon-wrapper svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

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

/* --- Interactive Showcase --- */
.showcase-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    min-height: 520px;
}

.showcase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.showcase-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: right;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.showcase-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.showcase-tab.active {
    background: rgba(0, 133, 124, 0.1);
    border-color: var(--border-hover);
    color: var(--primary-light);
    font-weight: bold;
}

.showcase-tab-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.showcase-view {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.showcase-view.active {
    display: block;
}

.showcase-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 1rem;
}

.wa-chat-container {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.btn-action {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-action:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 133, 124, 0.2);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Mock UI CSS */
.mock-browser {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
}

.mock-browser-header {
    background: #0f172a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-dot.red {
    background: #ef4444;
}

.mock-dot.yellow {
    background: #eab308;
}

.mock-dot.green {
    background: #22c55e;
}

.mock-browser-address {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 15px;
    color: #94a3b8;
    font-size: 0.8rem;
    flex-grow: 1;
    direction: ltr;
    text-align: left;
    margin-right: 15px;
    font-family: monospace;
}

.mock-browser-content {
    padding: 20px;
    background: #0f172a;
    min-height: 280px;
    overflow-x: auto;
}

/* Mock table & styling */
.mock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.85rem;
}

.mock-table th,
.mock-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

.mock-table th {
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
}

/* --- Privacy Policy & Terms --- */
.terms-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-glass);
    max-width: 900px;
    margin: 0 auto;
}

.terms-header {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.terms-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

.terms-tab-btn:hover {
    color: var(--text-white);
}

.terms-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.terms-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.terms-pane.active {
    display: block;
}

.terms-pane h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.terms-pane p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.terms-list {
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-list li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.terms-list li strong {
    color: var(--text-white);
}

.security-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    color: #6ee7b7;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.security-box svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    flex-shrink: 0;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    user-select: none;
}

.faq-arrow {
    transition: var(--transition-smooth);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    fill: var(--primary-light);
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    /* arbitrary high value for animation */
    padding: 0 1.5rem 1.5rem 1.5rem;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), padding 0.4s ease;
}

/* --- Footer --- */
footer {
    background: #04060b;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-socials {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 9999;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.224);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    direction: rtl;
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
    margin: 0 13px;
    transition: var(--transition-smooth);
}

.social-link span {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 15px;
}

.social-link:hover {
    width: 140px;
    color: var(--text-white);
}

.social-link:hover span {
    opacity: 1;
}

.social-link.whatsapp:hover {
    border-color: #25D366;
    background: #25D366;
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.45);
}

.social-link.tiktok:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: #010101;
    color: var(--text-white);
    box-shadow: -3px 0 15px rgba(255, 0, 80, 0.5), 3px 0 15px rgba(0, 242, 254, 0.5);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 968px) {
    header {
        padding: 1rem;
    }

    .nav-container {
        padding: 0;
    }

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding-top: 7rem;
    }

    .badge-hero {
        align-self: center;
    }

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

    .showcase-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .showcase-sidebar {
        flex-direction: row;
        overflow-x: auto;
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        gap: 0.5rem;
    }

    .showcase-tab {
        flex-shrink: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wa-chat-container {
        grid-template-columns: 1fr !important;
    }

    .wa-chat-container > div:first-child {
        display: none !important;
    }

    .showcase-view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .section-container {
        padding: 3rem 1rem 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .terms-card {
        padding: 1.2rem;
    }

    .terms-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .terms-tab-btn {
        width: 100%;
        text-align: center;
    }

    .footer-socials {
        bottom: 1rem;
        right: 1rem;
        gap: 0.6rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
        margin: 0 12px;
    }

    .social-link:hover {
        width: 120px;
    }

    .mock-browser-content {
        padding: 10px;
        overflow-x: auto;
    }

    .mock-table th,
    .mock-table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }

    .btn-header {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }
}