/* 
   Upcodo Exact Design Match
   Final Refinements for 100% Accuracy
*/

:root {
    --color-sage: #DEE8D9;
    --color-sage-light: #DEE8D9;
    --color-sage-warm: #FBDB9F;
    --color-btn: #075F48;
    --color-primary: #064E3B;
    /* Dark Green */
    --color-accent: #10B981;
    /* Mint */
    --color-white: #FFFFFF;
    --color-text: #1F2937;
    --color-muted: #6B7280;
    --color-border: rgba(0, 0, 0, 0.08);

    --font-main: 'Outfit', sans-serif;

    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 12px;
    --radius-pill: 100px;

    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 30px 60px rgba(0, 0, 0, 0.1);
    --container-max: 1280px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

section {
    padding: 40px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    font-weight: 800;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.section-header .label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--color-accent);
}

.section-header h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    color: #fff;
    border: 2px solid transparent;
    background:
        linear-gradient(135deg, var(--color-btn) 0%, #10B981 100%) padding-box,
        conic-gradient(from var(--btn-angle, 0deg), var(--color-btn) 0%, var(--color-btn) 55%, #6ee7b7 70%, #34d399 75%, #6ee7b7 80%, var(--color-btn) 100%) border-box;
    box-shadow: 0 4px 20px rgba(7, 95, 72, 0.35);
    animation: btn-spin 3s linear infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(7, 95, 72, 0.5);
}

.btn-white {
    color: var(--color-accent);
    border: 2px solid transparent;
    background:
        #fff padding-box,
        conic-gradient(from var(--btn-angle, 0deg), #e2e8f0 0%, #e2e8f0 55%, #10B981 70%, #34d399 75%, #10B981 80%, #e2e8f0 100%) border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    animation: btn-spin 3s linear infinite;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.btn-nav {
    padding: 12px 28px;
    font-size: 14px;
    background: var(--color-btn);
    border-radius: 100px;
}

/* Header */
.header {
    padding: 20px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #1b3a2d;
    font-weight: 600;
    font-size: 15px;
    padding: 0;
    background: #f5fcf8;
    border-radius: 0;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #075F48;
    background: #f5fcf8;
}

/* Section background utility classes */
.section-bg-green {
    background-color: var(--color-sage);
}

#contact {
    scroll-margin-top: -90px;
}

#portfolio {
    scroll-margin-top: -19rem;
}

.hero {
    background-color: var(--color-sage);
    padding: 80px 0 160px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-orb-lines {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 50vw;
    height: 50vw;
    max-width: 800px;
    max-height: 800px;
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.hero-orb-lines::after {
    content: '';
    position: absolute;
    inset: -60px;
    border: 1px solid rgba(16, 185, 129, 0.04);
    border-radius: 50%;
}

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

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

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-sage);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 18px;
    color: var(--color-muted);
    margin-bottom: 48px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-trust-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 40px;
}

.hero-trust-logos img {
    width: auto;
    object-fit: contain;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-clients {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.hero-clients-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
}

.hero-clients-text span {
    display: block;
    color: var(--color-muted);
    font-weight: 400;
    font-size: 12px;
}

.hero-badges-row {
    display: flex;
    gap: 20px;
}

.hero-badges-row img {
    height: 36px;
    opacity: 0.7;
}

/* Hero Visual Refined */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    /* Wider for laptop */
}

.main-mockup {
    width: 100%;
    filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 12px;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.card-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.card-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}

.card-trend {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-accent);
}

.card-growth {
    top: 5%;
    left: -10%;
    animation-delay: 0s;
}

.card-downloads {
    bottom: 15%;
    left: -5%;
    animation-delay: 1s;
}

.card-platform {
    top: 5%;
    right: -5%;
    flex-direction: column;
    gap: 6px;
    animation-delay: 0.5s;
    width: 120px;
}

.card-performance {
    bottom: 10%;
    right: 0%;
    flex-direction: column;
    gap: 6px;
    animation-delay: 1.5s;
    width: 140px;
}

.card-transactions {
    top: 35%;
    right: -15%;
    width: 200px;
    flex-direction: column;
    gap: 10px;
    animation-delay: 2s;
}

.trans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trans-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.trans-item span {
    flex-grow: 1;
    font-weight: 600;
}

.trans-item strong {
    color: var(--color-accent);
    font-weight: 800;
}

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

.dot.green {
    background: var(--color-accent);
}

.dot.orange {
    background: #F59E0B;
}

.dot.blue {
    background: #3B82F6;
}

.platform-icons {
    display: flex;
    gap: 10px;
    color: var(--color-primary);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent);
}

/* Trusted section override */
#trusted {
    padding: 48px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.trusted-lbl-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.trusted-lbl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2b6349;
    margin: 0 16px;
}

.trusted-lbl svg {
    width: 14px;
    height: 14px;
}

/* Section Content Styles (Minimal updates to match the new visual scale) */
/* Logo marquee — clean horizontal infinite scroll */
.logo-marquee-outer {
    overflow: hidden;
    width: 100%;
    padding: 32px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: logo-scroll 30s linear infinite;
}

.logo-marquee-img {
    display: block;
    flex-shrink: 0;
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-marquee-img:hover {
    opacity: 1;
    filter: grayscale(0);
}

@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

.clutch-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.clutch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.story-card {
    height: 400px;
}

.dark-features {
    background: #001A12;
    padding: 100px 0;
}

.phone-dark {
    max-width: 380px;
}

.portfolio-card {
    padding: 32px;
}

.port-img {
    height: 240px;
}

/* Rest of the styles... */
.trusted {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.trusted p {
    font-weight: 800;
    color: var(--color-muted);
    margin-bottom: 40px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-row img {
    height: 28px;
    filter: grayscale(1);
}

.footer {
    background: #001A12;
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .floating-card {
        display: none;
    }
}