/* ── NCDRV Landing Page Styles ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 20px 60px rgba(15,23,42,0.15);
    --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

[lang="ar"] body,
[lang="ar"] {
    --font: 'Cairo', sans-serif;
    font-family: 'Cairo', sans-serif;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 5%;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-logo {
    font-size: 1.6rem; font-weight: 800; color: var(--primary);
    text-decoration: none; letter-spacing: -1px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none; color: var(--gray);
    font-size: .95rem; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.btn-lang {
    background: var(--gray-light); border: none; cursor: pointer;
    padding: .45rem 1rem; border-radius: 50px;
    font-size: .85rem; font-weight: 600; color: var(--dark);
    font-family: var(--font); transition: background .2s;
    text-decoration: none;
}
.btn-lang:hover { background: var(--border); }

.btn-primary {
    background: var(--primary); color: var(--white);
    padding: .55rem 1.4rem; border-radius: 50px;
    font-size: .9rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: background .2s, transform .2s;
    font-family: var(--font);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
    background: transparent; color: var(--primary);
    padding: .55rem 1.4rem; border-radius: 50px;
    font-size: .9rem; font-weight: 600;
    text-decoration: none; border: 2px solid var(--primary);
    cursor: pointer; transition: all .2s; font-family: var(--font);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--dark); border-radius: 2px; transition: all .3s;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 50%, #f0fdff 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute; bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; position: relative; z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--primary-light); color: var(--primary);
    padding: .4rem 1rem; border-radius: 50px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
    border: 1px solid rgba(37,99,235,.2);
}
.hero-badge i { font-size: .75rem; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; line-height: 1.15;
    color: var(--dark); margin-bottom: 1.25rem;
    letter-spacing: -1px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem; color: var(--gray);
    margin-bottom: 2rem; line-height: 1.75;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value {
    font-size: 1.8rem; font-weight: 800; color: var(--primary);
    line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--gray); margin-top: .25rem; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%; max-width: 420px;
    border: 1px solid var(--border);
}
.hero-card-header {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.hc-logo {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 1rem;
}
.hc-title { font-weight: 700; font-size: .95rem; }
.hc-sub { font-size: .75rem; color: var(--gray); }

.file-list { display: flex; flex-direction: column; gap: .75rem; }
.file-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem .75rem; border-radius: var(--radius-sm);
    background: var(--gray-light); transition: background .2s;
}
.file-item:hover { background: var(--primary-light); }
.file-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
}
.file-icon.pdf { background: #fee2e2; color: #dc2626; }
.file-icon.doc { background: #dbeafe; color: #2563eb; }
.file-icon.xls { background: #dcfce7; color: #16a34a; }
.file-icon.img { background: #fef3c7; color: #d97706; }
.file-icon.zip { background: #f3e8ff; color: #9333ea; }
.file-name { font-size: .82rem; font-weight: 500; flex: 1; }
.file-size { font-size: .75rem; color: var(--gray); }
.file-shared {
    font-size: .7rem; background: #dcfce7; color: #16a34a;
    padding: .2rem .5rem; border-radius: 50px; font-weight: 600;
}

.hero-card-footer {
    margin-top: 1.25rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.storage-bar-wrap { flex: 1; margin: 0 1rem; }
.storage-label { font-size: .72rem; color: var(--gray); margin-bottom: .3rem; }
.storage-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.storage-fill {
    height: 100%; width: 42%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}
.storage-pct { font-size: .75rem; font-weight: 700; color: var(--primary); }

/* ── SECTIONS COMMON ── */
section { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }

.section-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--primary-light); color: var(--primary);
    padding: .4rem 1rem; border-radius: 50px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
    border: 1px solid rgba(37,99,235,.2);
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800; color: var(--dark);
    margin-bottom: .75rem; letter-spacing: -.5px;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--gray);
    max-width: 600px; line-height: 1.7;
}
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ── FEATURES ── */
.features { background: var(--white); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    padding: 2rem; border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    background: var(--white);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary);
    margin-bottom: 1.25rem;
}
.feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-desc { font-size: .9rem; color: var(--gray); line-height: 1.65; }

/* ── HOW IT WORKS ── */
.how { background: var(--gray-light); }
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute; top: 40px;
    left: 12.5%; right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 0;
}
.step-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem 1.5rem; text-align: center;
    border: 1px solid var(--border);
    position: relative; z-index: 1;
    transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc { font-size: .875rem; color: var(--gray); line-height: 1.65; }

/* ── SECURITY ── */
.security { background: var(--dark); }
.security .section-badge { background: rgba(37,99,235,.2); border-color: rgba(37,99,235,.4); }
.security .section-title { color: var(--white); }
.security .section-subtitle { color: #94a3b8; }
.security-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.security-card {
    padding: 2rem; border-radius: var(--radius);
    background: var(--dark-2); border: 1px solid rgba(255,255,255,.08);
    transition: border-color .3s, transform .3s;
}
.security-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.security-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(37,99,235,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent);
    margin-bottom: 1rem;
}
.security-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.security-desc { font-size: .875rem; color: #94a3b8; line-height: 1.65; }

/* ── CTA BANNER ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 50%, #0e7490 100%);
    padding: 100px 5%; text-align: center;
}
.cta-section .section-badge { background: rgba(255,255,255,.15); color: white; border-color: rgba(255,255,255,.3); }
.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800; color: white;
    margin-bottom: 1rem; letter-spacing: -.5px;
}
.cta-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2.5rem; }
.btn-white {
    background: white; color: var(--primary);
    padding: .85rem 2.5rem; border-radius: 50px;
    font-size: 1rem; font-weight: 700;
    text-decoration: none; display: inline-block;
    transition: transform .2s, box-shadow .2s;
    font-family: var(--font);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.cta-note { margin-top: 1.25rem; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ── CONTACT ── */
.contact { background: var(--white); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-detail {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-detail-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0;
}
.contact-detail-text p:first-child { font-weight: 600; font-size: .9rem; }
.contact-detail-text p:last-child { font-size: .875rem; color: var(--gray); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: .75rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); font-family: var(--font);
    font-size: .9rem; color: var(--dark); background: var(--white);
    transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }

/* ── FOOTER ── */
footer {
    background: var(--dark); color: #94a3b8;
    padding: 60px 5% 30px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 1rem; }
.footer-tagline { font-size: .875rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { color: #94a3b8; text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem; text-align: center;
    font-size: .8rem;
}

/* ── MOBILE NAV ── */
.mobile-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%; flex-direction: column; gap: 1rem;
    z-index: 999; box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    text-decoration: none; color: var(--dark); font-weight: 500;
    padding: .5rem 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { order: -1; }
    .hero-card { max-width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-stats { gap: 1.5rem; }
    section { padding: 70px 5%; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas a { text-align: center; }
}

/* ── RTL tweaks ── */
[dir="rtl"] .steps-grid::before { left: 12.5%; right: 12.5%; }
[dir="rtl"] .stat { text-align: center; }

/* ── STATIC PAGES ─────────────────────────────────────────────────────── */

/* Hero banner */
.sp-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 100px 5% 60px;
    color: #fff;
}
.sp-breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .85rem; color: rgba(255,255,255,.75);
    margin-bottom: 1.25rem;
}
.sp-breadcrumb a {
    color: rgba(255,255,255,.85); text-decoration: none;
    transition: color .2s;
}
.sp-breadcrumb a:hover { color: #fff; }
.sp-breadcrumb-sep { font-size: .7rem; color: rgba(255,255,255,.5); }
.sp-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800; color: #fff;
    line-height: 1.2; margin: 0;
}

/* Content area */
.sp-body {
    background: var(--bg, #f8fafc);
    padding: 60px 5% 80px;
    min-height: 50vh;
}
.sp-card {
    background: #fff;
    border-radius: var(--radius, 16px);
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    padding: 3rem 3.5rem;
    max-width: 860px;
    margin: 0 auto;
}
.sp-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #374151;
}
.sp-content h1, .sp-content h2, .sp-content h3 {
    color: var(--dark, #0f172a);
    margin-top: 2rem; margin-bottom: .75rem;
    font-weight: 700;
}
.sp-content h1 { font-size: 1.6rem; }
.sp-content h2 { font-size: 1.35rem; }
.sp-content h3 { font-size: 1.15rem; }
.sp-content p { margin-bottom: 1.1rem; }
.sp-content ul, .sp-content ol {
    padding-inline-start: 1.5rem;
    margin-bottom: 1.1rem;
}
.sp-content li { margin-bottom: .4rem; }
.sp-content a { color: var(--primary, #2563eb); }
.sp-content strong { color: var(--dark, #0f172a); }
.sp-content blockquote {
    border-inline-start: 4px solid var(--primary, #2563eb);
    padding: .75rem 1.25rem;
    background: var(--primary-light, #eff6ff);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: #1e40af;
    font-style: italic;
}
.sp-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}
.sp-back .btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .9rem;
}

@media (max-width: 768px) {
    .sp-hero { padding: 90px 5% 40px; }
    .sp-card { padding: 2rem 1.5rem; }
}
