/* ==========================================================================
   Refan Soft (شركة ريفان سوفت) - Complete Stylesheet
   ========================================================================== */

/* --- CSS Variables & High-Contrast Tokens --- */
:root[data-theme="dark"] {
    --bg-main: #0B0F19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(56, 189, 248, 0.4);
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-inverse: #0F172A;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --mockup-bg: #0F172A;
    --mockup-card-bg: #1E293B;

    /* High contrast vibrant blue tokens for dark mode */
    --primary-light: #38BDF8; /* Electric Cyan - Maximum legibility */
    --primary: #0284C7;
    --primary-hover: #0369A1;
    --accent: #38BDF8;
}

:root[data-theme="light"] {
    --bg-main: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(241, 245, 249, 1);
    --border-color: rgba(203, 213, 225, 0.8);
    --border-glow: rgba(29, 78, 216, 0.25);
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-inverse: #FFFFFF;
    --shadow-color: rgba(148, 163, 184, 0.25);
    --mockup-bg: #FFFFFF;
    --mockup-card-bg: #F8FAFC;

    /* High contrast deep blue tokens for light mode */
    --primary-light: #1D4ED8;
    --primary: #2563EB;
    --primary-hover: #1E40AF;
    --accent: #0284C7;
}

:root {
    --green: #10B981;
    --red: #EF4444;
    --purple: #8B5CF6;
    --gold: #F59E0B;
    --blue: #38BDF8;
    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Readex Pro', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Prominent & Large Official Logo Box --- */
.logo-white-box {
    width: 76px;
    height: 76px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(56, 189, 248, 0.4);
    border: 2px solid #FFFFFF;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-white-box:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.6), 0 0 0 3px var(--primary-light);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* --- Theme Toggle Button (Strict Single Line) --- */
.theme-toggle {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap; /* Ensures text never wraps into 2 lines */
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.theme-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-label-text {
    white-space: nowrap;
    display: inline-block;
}

/* --- Slogan Hero Box --- */
.slogan-hero-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(2, 132, 199, 0.18));
    border: 1px solid var(--border-glow);
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.footer-slogan {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.05rem;
    margin: 8px 0;
}

/* --- Coming Soon Badge (قريباً) --- */
.coming-soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 12px 0 20px 0;
}

.coming-soon-badge {
    background: rgba(245, 158, 11, 0.2) !important;
    color: var(--gold) !important;
}

.live-dot.yellow::before {
    background: var(--gold) !important;
}

.grid-2-only {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}

/* --- Global Reset & General Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Animated Glow Background Blobs --- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    bottom: 10%;
    left: -100px;
    animation: floatBlob 22s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 50%;
    right: 30%;
    animation: floatBlob 15s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.15); }
}

/* --- Typography Utilities & Badges --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--primary-light); }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--border-glow);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Glassmorphism Card Element --- */
.glass-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);
    box-shadow: 0 20px 40px var(--shadow-color);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glow);
}

/* --- Buttons & UI Controls --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #0284C7, #38BDF8);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369A1, #0284C7);
    transform: translateY(-2px);
}

.shadow-glow {
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.shadow-glow:hover {
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 16px 36px;
    font-size: 1.15rem;
    border-radius: 16px;
}

/* --- Navigation Header --- */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 90px;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    height: 80px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-text {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
}

.nav-mobile-download-btn {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
}

/* --- Hero Dashboard Screen Mockup --- */
.hero-preview-wrapper {
    position: relative;
}

.mockup-card {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--mockup-bg);
    border: 1px solid var(--border-glow);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.mockup-header {
    background: var(--mockup-card-bg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

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

.mockup-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-title {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-badge {
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary-light);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.mockup-body {
    padding: 20px;
    font-size: 0.85rem;
}

.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-actions {
    display: flex;
    gap: 8px;
}

.btn-dash {
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-green { background: #10B981; color: white; }
.btn-red { background: #EF4444; color: white; }
.btn-gray { background: #3B82F6; color: white; }

.currency-filter {
    background: var(--mockup-card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-muted);
}

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.dash-card {
    background: var(--mockup-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.dash-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
}

.dash-amount.positive { color: var(--text-main); }
.dash-amount.negative { color: var(--text-muted); font-size: 0.95rem; }

.dash-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dash-panel {
    background: var(--mockup-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

.dash-panel h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-list, .txn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acc-item, .txn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.8rem;
}

.acc-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.txn-info {
    display: flex;
    flex-direction: column;
}

.txn-title {
    font-weight: 600;
}

.txn-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Section Structure & Headers --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section.alt-bg {
    background: var(--bg-secondary);
}

.section-header {
    max-width: 680px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

/* --- Free App Showcase Grid --- */
.free-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.app-feature-card {
    padding: 28px;
    transition: var(--transition);
}

.app-feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
}

.bg-indigo { background: linear-gradient(135deg, #0284C7, #38BDF8); }
.bg-gold { background: linear-gradient(135deg, #D97706, #F59E0B); }
.bg-teal { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.bg-blue { background: linear-gradient(135deg, #2563EB, #38BDF8); }
.bg-purple { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }
.bg-green { background: linear-gradient(135deg, #059669, #10B981); }

.app-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

/* --- Download Banner --- */
.download-banner {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(2, 132, 199, 0.15));
    border: 1px solid var(--border-glow);
    flex-wrap: wrap;
    gap: 24px;
}

.banner-badge {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.download-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.download-banner p {
    color: var(--text-muted);
}

.banner-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Grid Layout Helper Utilities --- */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Accounting System Showcase --- */
.system-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.highlight-box i {
    font-size: 1.8rem;
    padding-top: 4px;
}

.highlight-box h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.highlight-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.system-card-preview {
    padding: 30px;
}

.preview-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.preview-screen {
    background: var(--mockup-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.screen-header {
    padding: 12px 18px;
    background: var(--mockup-card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.live-dot {
    font-size: 0.75rem;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.screen-body {
    padding: 20px;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.m-card {
    background: var(--mockup-card-bg);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
}

.m-card strong {
    font-size: 0.95rem;
    margin-top: 4px;
}

.screen-chart-placeholder {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.screen-chart-placeholder .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s ease;
}

.screen-chart-placeholder .bar span {
    position: absolute;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Services Grid --- */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li i {
    color: var(--green);
    font-size: 0.8rem;
}

.service-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* --- Project Cost Calculator Card --- */
.calculator-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
}

.calc-step {
    margin-bottom: 32px;
}

.calc-step h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.calc-opt {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.calc-opt i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.calc-opt.active, .calc-opt:hover {
    border-color: var(--primary-light);
    background: rgba(56, 189, 248, 0.12);
}

.calc-opt.active i {
    color: var(--primary-light);
}

.calc-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--bg-main);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.calc-check input {
    accent-color: var(--primary-light);
    width: 18px;
    height: 18px;
}

.calc-result-box {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.price-display {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green);
}

.result-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Why Choose Us Cards --- */
.why-card {
    padding: 36px 24px;
}

.why-icon {
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Footer Section --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo-box {
    width: 64px;
    height: 64px;
}

.footer-desc {
    color: var(--text-muted);
    margin: 16px 0 24px 0;
    font-size: 0.92rem;
    max-width: 360px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    color: var(--text-muted);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Direct Download Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    padding: 36px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-main);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

.modal-info-box {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.w-100 { width: 100%; }

/* --- Responsive Breakpoints --- */
/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px auto;
    }

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

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

    .grid-2-cols, .footer-content {
        grid-template-columns: 1fr;
    }

    .grid-2-only {
        grid-template-columns: 1fr;
    }

    .calc-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 90px);
        background: var(--bg-card);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px var(--shadow-color);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 12px;
        overflow-y: auto;
        transition: var(--transition);
        z-index: 999;
    }

    .navbar.scrolled ~ .nav-links,
    .navbar.scrolled .nav-links {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .navbar.scrolled {
        height: 64px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .brand-logo {
        gap: 10px;
    }

    .logo-white-box {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        padding: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .brand-name {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .nav-actions {
        gap: 8px;
    }

    .theme-toggle {
        height: 38px;
        padding: 0 10px;
        border-radius: 10px;
    }

    .theme-toggle .theme-label-text {
        display: none;
    }

    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .navbar.scrolled ~ .nav-links,
    .navbar.scrolled .nav-links {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .dash-cards-grid {
        grid-template-columns: 1fr;
    }

    .dash-bottom-grid {
        grid-template-columns: 1fr;
    }

    .calc-checkboxes {
        grid-template-columns: 1fr;
    }

    .download-banner {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-white-box {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        padding: 3px;
    }

    .brand-name {
        font-size: 1.0rem;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .slogan-hero-box {
        font-size: 0.95rem;
        padding: 6px 16px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .calc-options {
        grid-template-columns: 1fr;
    }
}
