/* ========================================
   Upway.uz - Powered by Upway.uz
   HTML/CSS Implementation
   ======================================== */

/* Root Variables */
:root {
    --cream: #faf8f4;
    --white: #ffffff;
    --ink: #0f0d0a;
    --ink2: #3d3830;
    --ink3: #8a8278;
    --orange: #f05a00;
    --orange2: #ff7a2f;
    --orange-light: #fff0e8;
    --green: #00a86b;
    --green-light: #e8f8f2;
    --blue: #1a56db;
    --blue-light: #eef2ff;
    --border: #e8e3db;
    --border2: #d4ccbf;
    --shadow: 0 1px 3px rgba(15, 13, 10, 0.06), 0 4px 16px rgba(15, 13, 10, 0.06);
    --shadow-lg: 0 8px 32px rgba(15, 13, 10, 0.1), 0 2px 8px rgba(15, 13, 10, 0.06);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 2px;
}

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

/* Background Noise */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-dot {
    color: var(--orange);
    font-size: 28px;
    line-height: 0;
    margin-top: 4px;
}

.logo-uz {
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-light);
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 2px;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink2);
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    background: none;
    font-family: 'DM Sans', sans-serif;
}

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

.nav-link.active {
    background: var(--orange-light);
    color: var(--orange);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-ghost {
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--border2);
    background: none;
    color: var(--ink2);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.18s;
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-orange {
    padding: 9px 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: var(--orange);
    color: var(--white);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.18s;
    box-shadow: 0 2px 8px rgba(240, 90, 0, 0.3);
}

.btn-orange:hover {
    background: var(--orange2);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(240, 90, 0, 0.35);
}

.btn-orange:active {
    transform: scale(0.98);
}

.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    flex-shrink: 0;
}

.hamburger:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hamburger svg {
    width: 20px;
    height: 20px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 99;
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    text-align: left;
    width: 100%;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background: var(--orange-light);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 384px;
    height: 384px;
    background: var(--green-light);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: -1;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-light);
    color: var(--green);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-title em {
    font-style: normal;
    color: var(--orange);
    position: relative;
    display: inline-block;
}

.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    opacity: 0.4;
}

.hero-desc {
    font-size: 17px;
    color: var(--ink3);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 300;
    max-width: 420px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-lg {
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-lg-orange {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(240, 90, 0, 0.3);
}

.btn-lg-orange:hover {
    background: var(--orange2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 90, 0, 0.35);
}

.btn-lg-outline {
    background: var(--white);
    color: var(--ink2);
    border: 1.5px solid var(--border2);
}

.btn-lg-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

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

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--orange);
    font-family: 'Syne', sans-serif;
}

.stat-label {
    font-size: 13px;
    color: var(--ink3);
    margin-top: 4px;
}

/* Card Stack */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.card-back {
    position: absolute;
    border-radius: 20px;
    border: 1px solid;
}

.card-back-1 {
    top: -12px;
    left: 12px;
    right: 12px;
    bottom: 0;
    background: #fff7f2;
    border-color: #fde4d0;
    z-index: 2;
}

.card-back-2 {
    top: -22px;
    left: 22px;
    right: 22px;
    bottom: 0;
    background: #fff3ec;
    border-color: #fad5bc;
    z-index: 1;
}

.card-main {
    position: relative;
    z-index: 3;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.card-main:hover {
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--orange);
}

.card-title-group {
    flex: 1;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.card-subtitle {
    font-size: 12px;
    color: var(--ink3);
}

.card-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.stat-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink2);
}

.stat-bar-value {
    font-weight: 700;
}

.stat-bar-bg {
    width: 100%;
    background: #f0f0f0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--orange);
}

.metric-label {
    font-size: 11px;
    color: var(--ink3);
    margin-top: 2px;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: 80px 0;
    background: var(--white);
}

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

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-title em {
    font-style: normal;
    color: var(--orange);
}

.section-desc {
    font-size: 17px;
    color: var(--ink3);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--orange);
    box-shadow: 0 12px 32px rgba(240, 90, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--orange-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--orange);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--orange);
    transition: color 0.3s;
}

.feature-card:hover .feature-icon svg {
    color: var(--white);
}

.feature-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--ink3);
    line-height: 1.6;
}

/* ========================================
   Clients Section
   ======================================== */

.clients {
    padding: 60px 0;
    background: var(--cream);
}

.clients-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink3);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    align-items: center;
}

.client-logo {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink3);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 1;
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
    padding: 80px 0;
    background: var(--ink);
}

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

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

.stats-value {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 8px;
}

.stats-label {
    font-size: 15px;
    color: var(--white);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--ink);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-actions .btn-ghost,
    .header-actions .btn-orange {
        display: none;
    }

    .header-inner {
        gap: 12px;
        padding: 0 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .section-title {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stats-value {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

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

    .hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .features {
        padding: 60px 0;
    }

    .stats {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-value {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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