/* ═══════════════════════════════════════════════════════════════════════════
   Balli Bolajon — Asosiy CSS
   Brand colors:  #F57C00 (to'q sariq), #FB8C00 (och sariq), #10B981 (yashil)
   Fonts:         Nunito (asosiy), Fredoka (sarlavhalar)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --color-primary:        #F57C00;
    --color-primary-dark:   #E65100;
    --color-primary-light:  #FFF3E0;
    --color-accent:         #FB8C00;
    --color-accent-dark:    #F57C00;
    --color-success:        #10B981;
    --color-danger:         #EF4444;
    --color-purple:         #A855F7;

    --color-text:           #1A1A2E;
    --color-text-light:     #6B7280;
    --color-bg:             #FFFFFF;
    --color-bg-soft:        #FFF8F0;
    --color-bg-card:        #FFFFFF;
    --color-border:         #E5E7EB;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:  0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg:  0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl:  0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    --container:  1200px;

    --font-sans:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fredoka', 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn-sm  { padding: 10px 20px; font-size: 14px; }
.btn-lg  { padding: 18px 36px; font-size: 18px; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.5);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.5);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-text);
}

.logo:hover { color: var(--color-primary); }
.logo-icon { font-size: 28px; }

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--color-text);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
}

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

.nav-link.nav-active {
    background: var(--color-primary);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.2s;
}

@media (max-width: 900px) {
    .header-cta { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
        display: none;
    }
    .nav-list.open { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E0 60%, #FFECB3 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 124, 0, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero { padding: 48px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .accent { color: var(--color-primary); font-style: italic; }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-mockup {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.hero-mockup:hover { transform: rotate(0); }

.hero-mockup-emoji {
    font-size: 120px;
    margin-bottom: 16px;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-mockup-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-mockup-subtitle {
    color: var(--color-text-light);
}

/* ── Section base ────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 48px 0; } }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats-section { background: white; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--color-text-light);
    font-weight: 600;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.features-section { background: var(--color-bg-soft); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-icon.bg-blue   { background: var(--color-primary-light); }
.feature-icon.bg-orange { background: #FFF3E0; }
.feature-icon.bg-green  { background: #D1FAE5; }
.feature-icon.bg-purple { background: #EDE9FE; }
.feature-icon.bg-pink   { background: #FCE7F3; }
.feature-icon.bg-red    { background: #FEE2E2; }

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* ── How it works ────────────────────────────────────────────────────────── */
.steps-section { background: white; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 40px 24px 24px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    text-align: center;
    counter-increment: step;
}

.step-card::before {
    content: counter(step);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4);
}

.step-icon { font-size: 56px; margin-bottom: 12px; }
.step-title { font-size: 18px; margin-bottom: 8px; }
.step-text  { color: var(--color-text-light); font-size: 14px; }

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2,
.cta-section .section-title { color: white; }

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-accent { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section { background: var(--color-bg-soft); }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.2s;
}

.faq-question:hover { background: var(--color-bg-soft); }

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--color-primary);
    transition: transform 0.2s;
    font-weight: 400;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .form-card { padding: 28px 20px; }
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    color: var(--color-text);
    transition: border-color 0.2s;
    background: white;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    display: block;
    color: var(--color-danger);
    font-size: 14px;
    margin-top: 6px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ── Page Hero (boshqa sahifalar uchun) ──────────────────────────────────── */
.page-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E0 100%);
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p  { color: var(--color-text-light); max-width: 600px; margin: 0 auto; }

/* ── Content sections ────────────────────────────────────────────────────── */
.content-section { padding: 60px 0; }

.content-prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.content-prose h2 { margin: 32px 0 16px; }
.content-prose h3 { margin: 24px 0 12px; }
.content-prose p  { margin-bottom: 16px; color: var(--color-text); }
.content-prose ul, .content-prose ol { margin: 16px 0 16px 28px; }
.content-prose li { margin-bottom: 8px; }
.content-prose strong { color: var(--color-text); }
.content-prose a { color: var(--color-primary); border-bottom: 1px solid currentColor; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: #111827;
    color: #D1D5DB;
    padding: 64px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-tagline {
    color: #9CA3AF;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list a {
    color: #9CA3AF;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: white;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #6B7280;
    font-size: 14px;
}

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeIn 0.6s ease-out;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
