/* ===================================
   TANQIT LANDING PAGE - STYLE.CSS
   تطبيق تنقيط - الأنماط
   =================================== */

/* CSS Variables / Design Tokens */
:root {
    /* Colors */
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: rgba(37, 99, 235, 0.1);

    --secondary: #4CAF50;
    --secondary-dark: #43a047;
    --secondary-light: #66bb6a;

    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --bg-dark: #111827;

    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(76, 175, 80, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(76, 175, 80, 0.45);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    font-size: 1.25em;
}

/* ===================================
   HEADER / NAVBAR
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-btn {
    padding: 0.625rem 1.25rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 50%, var(--primary-bg) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-cta {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
    }

    50% {
        box-shadow: 0 4px 25px 0 rgba(37, 99, 235, 0.55);
    }
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: 30px;
    overflow: hidden;
}

.mockup-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

.screen-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mock-header {
    height: 40px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
}

.mock-card {
    height: 80px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.mock-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.mock-item {
    height: 50px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.12) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: 30%;
    right: 20%;
}

/* ===================================
   SECTIONS COMMON STYLES
   =================================== */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: var(--radius-xl);
    color: var(--primary);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--bg-white);
}

.feature-icon-green {
    background: rgba(76, 175, 80, 0.1);
    color: var(--secondary);
}

.feature-card:hover .feature-icon-green {
    background: var(--secondary);
    color: var(--bg-white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   SCREENSHOTS SECTION
   =================================== */
.screenshots {
    background: var(--bg-light);
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.screenshot-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-normal);
}

.screenshot-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-placeholder {
    aspect-ratio: 9/16;
    max-height: 450px;
    background: linear-gradient(145deg, var(--bg-white) 0%, var(--bg-gray) 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    transition: all var(--transition-normal);
}

.screenshot-placeholder:hover {
    border-color: var(--primary);
    border-style: solid;
    transform: scale(1.02);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.placeholder-text {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Screenshot Images */
.screenshot-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */
.download {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: var(--spacing-2xl) 0;
}

.download-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
}

.download-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.download-btn {
    margin-bottom: var(--spacing-lg);
}

.download-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   PRIVACY SECTION
   =================================== */
.privacy {
    background: var(--bg-white);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-card {
    background: var(--bg-light);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-normal);
}

.privacy-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.privacy-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.privacy-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.privacy-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--bg-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--bg-white);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .navbar {
        height: 70px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .phone-mockup {
        width: 180px;
        height: 360px;
        border-radius: 30px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 24px;
        padding: var(--spacing-md);
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .screenshots-gallery {
        grid-template-columns: 1fr;
    }

    .screenshot-placeholder {
        max-height: 350px;
    }

    .privacy-card {
        padding: var(--spacing-lg);
    }

    .privacy-card h3 {
        font-size: 1.25rem;
    }

    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #1e40af;
        --text-primary: #000000;
        --text-secondary: #374151;
        --border-color: #9ca3af;
    }
}

/* Print Styles */
@media print {

    .header,
    .hero-bg-shapes,
    .download,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===================================
   PRIVACY & TERMS PAGES
   =================================== */
.privacy-page {
    padding-top: 120px;
    padding-bottom: var(--spacing-3xl);
    min-height: 100vh;
    background: var(--bg-light);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.privacy-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
}

.privacy-section ul {
    list-style: disc;
    padding-right: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.privacy-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.privacy-section a {
    color: var(--primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.privacy-section a:hover {
    color: var(--primary-dark);
}

.back-home {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* Responsive for Privacy/Terms Pages */
@media (max-width: 768px) {
    .privacy-page {
        padding-top: 100px;
    }

    .privacy-content {
        padding: var(--spacing-lg);
    }
}