@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&display=swap');

:root {
    --bg: #faf9f7;
    --bg-alt: #ffffff;
    --surface: #f0eeeb;
    --surface-border: rgba(0, 0, 0, 0.06);
    --text-primary: #1a1a1a;
    --text-secondary: #6b6560;
    --text-muted: #9e9892;
    --accent: #e8553d;
    --accent-soft: #fbeae6;
    --accent-dark: #c9412c;
    --teal: #2a9d8f;
    --teal-soft: #e4f5f2;
    --warm-gradient: linear-gradient(135deg, #e8553d, #f4845f);
    --teal-gradient: linear-gradient(135deg, #2a9d8f, #56c5b8);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.05);
    --radius: 16px;
    --radius-lg: 24px;
    --font: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
}

p {
    font-weight: 400;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
}

/* ───── Utilities ───── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accent-text {
    color: var(--accent);
}

.teal-text {
    color: var(--teal);
}

/* ───── Buttons ───── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
}

.btn-primary {
    background: var(--warm-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 85, 61, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(232, 85, 61, 0.45);
    transform: translateY(-2px);
}

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

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

/* ───── Header ───── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    padding: 0.85rem 0;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.logo img {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-primary);
}

nav ul li a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ───── Hero ───── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite alternate;
}

.hero-bg-shape-2 {
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--teal-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 12s ease-in-out infinite alternate-reverse;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-warm {
    background: var(--accent-soft);
    color: var(--accent);
}

.badge-teal {
    background: var(--teal-soft);
    color: var(--teal);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: scale(1.02);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* ───── Value Props / Marquee ───── */
.value-strip {
    padding: 3rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.value-strip .container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
}

.value-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.value-icon.warm {
    background: var(--accent-soft);
    color: var(--accent);
}

.value-icon.teal {
    background: var(--teal-soft);
    color: var(--teal);
}

/* ───── Services ───── */
.services {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-alt);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--warm-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.service-card:nth-child(even) .service-icon {
    background: var(--teal-soft);
    color: var(--teal);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ───── Buy & Sell Section ───── */
.buy-sell {
    padding: 7rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.bs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bs-card {
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

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

.bs-card.sell {
    background: linear-gradient(135deg, #fef3f0, #fde8e2);
    border: 1px solid rgba(232, 85, 61, 0.15);
}

.bs-card.buy {
    background: linear-gradient(135deg, #eef9f7, #dcf2ee);
    border: 1px solid rgba(42, 157, 143, 0.15);
}

.bs-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.bs-card.sell .bs-icon {
    background: rgba(232, 85, 61, 0.15);
    color: var(--accent);
}

.bs-card.buy .bs-icon {
    background: rgba(42, 157, 143, 0.15);
    color: var(--teal);
}

.bs-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.bs-card p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.bs-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.bs-card ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bs-card ul li ion-icon {
    color: var(--teal);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bs-card.sell ul li ion-icon {
    color: var(--accent);
}

/* ───── How It Works ───── */
.workflow {
    padding: 7rem 0;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: var(--warm-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(232, 85, 61, 0.3);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.92rem;
}

.step-connector {
    display: none;
}

/* Show connectors on desktop between steps */
@media (min-width: 769px) {
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 2rem;
        right: -0.75rem;
        width: calc(100% - 64px);
        height: 0;
        border-top: 2px dashed var(--surface-border);
        transform: translateX(50%);
        z-index: 0;
    }
}

/* ───── CTA ───── */
.cta {
    padding: 7rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--surface-border);
}

.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fef3f0 0%, #eef9f7 100%);
    border: 1px solid var(--surface-border);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-inline: auto;
}

/* ───── Footer ───── */
footer {
    padding: 4rem 0 2rem;
    background: #1a1a1a;
    color: #ccc;
}

footer p, footer a {
    color: #999;
}

footer a:hover {
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 30px;
    border-radius: 6px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #fff;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #666;
}

/* ───── Animations ───── */
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-20px, 20px); }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ───── Mobile Menu Toggle ───── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ───── Carriers ───── */
.carriers {
    padding: 7rem 0;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0 3rem 0;
}

.marquee-row {
    display: flex;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem;
    flex-shrink: 0;
}

.right-to-left .marquee-track {
    animation: scroll-rtl 25s linear infinite;
}

.left-to-right .marquee-track {
    animation: scroll-ltr 25s linear infinite;
}

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

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

.carrier-card {
    background: var(--bg-alt);
    border: 1px solid var(--surface-border);
    padding: 1.5rem 3.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-card img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.carrier-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
    color: var(--teal);
}

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

    .hero-content .subtitle {
        margin-inline: auto;
    }

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

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

    .hero-image-wrapper {
        max-width: 550px;
        margin: 0 auto;
    }

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

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

    .workflow-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 150;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .header-cta .btn {
        display: none;
    }

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

    .workflow-steps {
        grid-template-columns: 1fr;
    }

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

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