/* Sahab Budget - Custom Brand Styles */
/* Brand Color: #3b82f6 (Blue) */

:root {
    --sb-primary: #3b82f6;
    --sb-primary-dark: #2563eb;
    --sb-primary-light: #60a5fa;
    --sb-secondary: #1e293b;
    --sb-accent: #0f172a;
    --sb-text: #334155;
    --sb-text-light: #64748b;
    --sb-bg-light: #f1f5f9;
    --sb-bg-dark: #0f172a;
    --sb-white: #ffffff;
    --sb-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --sb-gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --sb-success: #10b981;
}

/* Page Base */
.sahab-budget-page {
    background-color: var(--sb-white);
}

/* Custom Navigation */
.sb-nav {
    background: var(--sb-white);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.sb-nav .nav-link {
    color: var(--sb-text);
}

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

.sb-nav .nav-cta {
    background: var(--sb-gradient);
    color: var(--sb-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-nav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sb-logo h2 {
    color: var(--sb-accent);
}

.sb-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--sb-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-white);
    font-size: 1.25rem;
}

/* Buttons */
.btn-sb-primary {
    background: var(--sb-gradient);
    color: var(--sb-white);
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sb-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-sb-secondary {
    background: transparent;
    color: var(--sb-primary);
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid var(--sb-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-sb-secondary:hover {
    background: var(--sb-primary);
    color: var(--sb-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.sb-hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.sb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.sb-hero .container {
    position: relative;
    z-index: 1;
}

.sb-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sb-white);
    color: var(--sb-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.sb-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--sb-accent);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.sb-hero-subtitle {
    font-size: 1.15rem;
    color: var(--sb-text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.sb-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sb-hero-meta {
    display: flex;
    gap: 2rem;
}

.sb-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--sb-text-light);
}

.sb-hero-meta i {
    color: var(--sb-primary);
}

/* Dashboard Mockup */
.sb-dashboard-mockup {
    background: var(--sb-white);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.sb-mockup-header {
    background: #e2e8f0;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.sb-mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
}

.sb-mockup-dot:first-child { background: #fc8181; }
.sb-mockup-dot:nth-child(2) { background: #f6e05e; }
.sb-mockup-dot:nth-child(3) { background: #68d391; }

.sb-mockup-content {
    display: flex;
    min-height: 300px;
}

.sb-mockup-sidebar {
    background: var(--sb-accent);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sb-sidebar-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.sb-sidebar-item.active {
    background: var(--sb-primary);
    color: var(--sb-white);
}

.sb-mockup-main {
    flex: 1;
    padding: 1.25rem;
}

.sb-mockup-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sb-accent);
    margin-bottom: 1rem;
}

.sb-mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sb-stat-card {
    background: var(--sb-bg-light);
    padding: 0.75rem;
    border-radius: 8px;
}

.sb-stat-label {
    font-size: 0.7rem;
    color: var(--sb-text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.sb-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sb-accent);
}

.sb-stat-value.positive {
    color: var(--sb-success);
}

.sb-mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    padding-top: 0.5rem;
}

.sb-chart-bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.sb-chart-bar.active {
    background: var(--sb-primary);
}

/* Section Headers */
.sb-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.sb-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sb-accent);
    margin-bottom: 1rem;
}

.sb-section-header p {
    font-size: 1.125rem;
    color: var(--sb-text-light);
}

/* Badge */
.sb-badge {
    display: inline-block;
    background: var(--sb-gradient);
    color: var(--sb-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Privacy Section */
.sb-privacy {
    padding: 6rem 0;
    background: var(--sb-white);
}

.sb-privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sb-privacy-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sb-device {
    background: var(--sb-gradient);
    color: var(--sb-white);
    padding: 2rem 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.sb-device i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.sb-device span {
    font-weight: 600;
}

.sb-data-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sb-success);
}

.sb-data-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-data-icon i {
    font-size: 1.5rem;
}

.sb-data-flow span {
    font-weight: 600;
}

.sb-cloud-crossed {
    position: relative;
    color: #ef4444;
    opacity: 0.5;
}

.sb-cloud-crossed i:first-child {
    font-size: 2.5rem;
}

.sb-cloud-crossed i:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.sb-privacy-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--sb-accent);
    margin-bottom: 1rem;
}

.sb-privacy-text > p {
    color: var(--sb-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sb-privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-privacy-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sb-privacy-list li i {
    color: var(--sb-success);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.sb-privacy-list li strong {
    color: var(--sb-accent);
}

.sb-privacy-list li span {
    color: var(--sb-text);
}

/* Features Section */
.sb-features {
    padding: 6rem 0;
    background: var(--sb-bg-light);
}

.sb-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sb-feature-card {
    background: var(--sb-white);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.12);
}

.sb-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--sb-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sb-feature-icon i {
    font-size: 1.5rem;
    color: var(--sb-white);
}

.sb-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sb-accent);
    margin-bottom: 0.75rem;
}

.sb-feature-card p {
    color: var(--sb-text-light);
    line-height: 1.6;
}

/* How It Works Section */
.sb-how-it-works {
    padding: 6rem 0;
    background: var(--sb-white);
}

.sb-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.sb-step {
    text-align: center;
    max-width: 220px;
}

.sb-step-number {
    width: 60px;
    height: 60px;
    background: var(--sb-gradient);
    color: var(--sb-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.sb-step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sb-accent);
    margin-bottom: 0.5rem;
}

.sb-step-content p {
    font-size: 0.9rem;
    color: var(--sb-text-light);
    line-height: 1.5;
}

.sb-step-connector {
    width: 60px;
    height: 2px;
    background: var(--sb-primary-light);
    margin-top: 30px;
}

/* Insights Section */
.sb-insights {
    padding: 6rem 0;
    background: var(--sb-bg-light);
}

.sb-insights-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sb-insights-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--sb-accent);
    margin-bottom: 1rem;
}

.sb-insights-text > p {
    color: var(--sb-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sb-insights-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sb-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sb-insight-item i {
    width: 45px;
    height: 45px;
    background: var(--sb-gradient);
    color: var(--sb-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sb-insight-item strong {
    display: block;
    color: var(--sb-accent);
    margin-bottom: 0.25rem;
}

.sb-insight-item span {
    font-size: 0.9rem;
    color: var(--sb-text-light);
}

/* Pie Chart Visual */
.sb-insights-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sb-pie-chart {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #3b82f6 0deg 126deg,
        #10b981 126deg 216deg,
        #f59e0b 216deg 288deg,
        #8b5cf6 288deg 360deg
    );
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.sb-pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--sb-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sb-pie-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sb-accent);
}

.sb-pie-label {
    font-size: 0.75rem;
    color: var(--sb-text-light);
}

.sb-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.sb-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--sb-text);
}

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

.sb-dot.dot-1 { background: #3b82f6; }
.sb-dot.dot-2 { background: #10b981; }
.sb-dot.dot-3 { background: #f59e0b; }
.sb-dot.dot-4 { background: #8b5cf6; }

/* CTA Section */
.sb-cta {
    padding: 6rem 0;
    background: var(--sb-gradient-dark);
}

.sb-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--sb-white);
}

.sb-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sb-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.sb-cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
.sb-footer {
    background: var(--sb-bg-dark);
    padding: 4rem 0 2rem;
}

.sb-footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.sb-footer-brand {
    color: rgba(255, 255, 255, 0.8);
}

.sb-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sb-footer-logo h3 {
    color: var(--sb-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.sb-footer-brand p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sb-footer-powered a {
    color: var(--sb-primary-light);
    text-decoration: none;
}

.sb-footer-powered a:hover {
    text-decoration: underline;
}

.sb-footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.sb-footer-col h4 {
    color: var(--sb-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.sb-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-footer-col li {
    margin-bottom: 0.75rem;
}

.sb-footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.sb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.sb-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sb-hero-content,
    .sb-privacy-content,
    .sb-insights-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sb-hero-actions,
    .sb-hero-meta {
        justify-content: center;
    }

    .sb-hero-visual {
        margin-top: 3rem;
    }

    .sb-privacy-visual {
        order: -1;
        margin-bottom: 2rem;
    }

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

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

    .sb-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sb-hero {
        padding: 5rem 0 3rem;
        min-height: auto;
    }

    .sb-hero h1 {
        font-size: 2.5rem;
    }

    .sb-hero-subtitle {
        font-size: 1.05rem;
    }

    .sb-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .sb-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .sb-section-header h2 {
        font-size: 2rem;
    }

    .sb-features-grid {
        grid-template-columns: 1fr;
    }

    .sb-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .sb-step {
        max-width: 100%;
    }

    .sb-step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    .sb-privacy-text h2,
    .sb-insights-text h2,
    .sb-cta h2 {
        font-size: 2rem;
    }

    .sb-footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .sb-privacy-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .sb-insight-item {
        flex-direction: column;
        text-align: center;
    }

    .sb-insight-item i {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .sb-hero h1 {
        font-size: 2rem;
    }

    .sb-section-header h2,
    .sb-privacy-text h2,
    .sb-insights-text h2,
    .sb-cta h2 {
        font-size: 1.75rem;
    }

    .sb-footer-links {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .sb-pie-chart {
        width: 180px;
        height: 180px;
    }

    .sb-pie-center {
        width: 100px;
        height: 100px;
    }

    .sb-pie-total {
        font-size: 1.25rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.sb-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sb-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
