/* 
   TGStore Premium SaaS Theme
   Style: Clean, Enterprise, Trustworthy
   Palette: Royal Blue, Slate, Emerald
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700;800&display=swap');

:root {
    /* Base Colors */
    --bg-body: #f8fafc;
    /* Very light slate */
    --bg-surface: #ffffff;
    /* Pure white for cards */

    /* Brand Colors */
    --primary: #2563eb;
    /* Royal Blue 600 */
    --primary-hover: #1d4ed8;
    /* Royal Blue 700 */
    --secondary: #0f172a;
    /* Slate 900 (Dark) */
    --accent: #10b981;
    /* Emerald 500 (Success/Pop) */

    /* Text Colors */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* UI Elements */
    --border: #e2e8f0;
    /* Slate 200 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows (Stripe-like) */
    --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-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.39);

    --font-main: 'Cairo', sans-serif;
}

/* Reset & Base */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main) !important;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main) !important;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: var(--font-main) !important;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background-color: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #f8fafc;
}

/* Components: Cards */
.glass-card,
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 5px 0;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 0%, #eff6ff 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-top: 3rem;
    transition: 0.5s;
}

.hero-img:hover {
    transform: translateY(-5px);
}

.badge {
    background-color: #ecfdf5;
    /* Emerald 50 */
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid #d1fae5;
}

/* Stats */
.stats {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features Mosaic */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.mosaic-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.mosaic-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.mosaic-item.wide {
    grid-column: span 2;
}

.mosaic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    transition: 0.5s;
    z-index: 0;
}

.mosaic-item:hover .mosaic-bg {
    opacity: 0.1;
    transform: scale(1.05);
}

.mosaic-item h3,
.mosaic-item p {
    position: relative;
    z-index: 1;
}

.mosaic-item h3 {
    margin-bottom: 0.5rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    align-items: center;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 10;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0;
    display: block;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-list li {
    margin: 1rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.check {
    color: var(--accent);
    font-weight: bold;
}

/* Footer */
footer {
    background: #0f172a;
    /* Dark Footer for contrast */
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: white;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: block;
}

.form-input,
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    transition: 0.2s;
}

.form-input:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-group-text {
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid,
    .mosaic-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-item.wide {
        grid-column: span 1;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .nav-links {
        display: none;
    }

    /* Consider hamburger later if needed */
}