:root {
    --primary: #FF8C00;
    --primary-soft: #fff4e6;
    --primary-dark: #cc7000;
    --bg-light: #ffffff;
    --bg-surface: #f8fafc;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    /* Solid white background */
    z-index: 9999;
    /* Ensure it's above everything */
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    padding-top: 2rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-cta {
    width: 100%;
    justify-content: center;
    padding: 1rem !important;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary);
    opacity: 1;
}

.cta-button {
    background-color: var(--text-main);
    color: white !important;
    padding: 0.75rem 1.8rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.primary-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #FF4500 100%);
    color: white !important;
}

.primary-cta:hover {
    box-shadow: 0 10px 20px -5px rgba(255, 140, 0, 0.35);
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    text-align: center;
    background: radial-gradient(circle at center, #fff5e6 0%, #ffffff 100%);
    overflow: hidden;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #FF4500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -5%;
}

.floating-card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Features */
.features {
    padding: 8rem 0;
    background: white;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
    line-height: normal;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scroll-snap-align: center;
    flex-shrink: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

/* Legal Pages */
.legal-content {
    padding: 8rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.legal-content p,
.legal-content li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: #020617;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-nav h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.95rem;
}

.social-links a {
    color: #64748b;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .floating-card-1,
    .floating-card-2 {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .features,
    .showcase {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Showcase Section */
.showcase {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 5rem;
    position: relative;
}

.showcase-item {
    position: sticky;
    display: flex;
    align-items: center;
    gap: 6rem;
    background: white;
    padding: 5rem;
    border-radius: 40px;
    border: 1px solid var(--border);
    margin-bottom: 25vh;
    /* Creates scroll space for the stacking animation */
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.08);
}

.showcase-item:nth-child(1) {
    top: 100px;
    z-index: 1;
}

.showcase-item:nth-child(2) {
    top: 130px;
    z-index: 2;
}

.showcase-item:nth-child(3) {
    top: 160px;
    z-index: 3;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-soft);
    line-height: 1;
    margin-bottom: 1.5rem;
    -webkit-text-stroke: 2px var(--primary);
    opacity: 0.5;
}

.showcase-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.showcase-text p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 500;
}

.showcase-image {
    flex: 1.2;
    position: relative;
    width: 100%;
}

.showcase-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.02);
}

@media (max-width: 968px) {

    .showcase-item,
    .showcase-item.reverse {
        position: relative !important;
        top: 0 !important;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        padding: 2rem 2rem;
        margin-bottom: 2rem;
        border-radius: 24px;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    }

    .showcase-grid {
        gap: 2rem;
    }

    .showcase-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 1rem 1rem 2rem;
        margin: 0 -1rem;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .feature-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .feature-card {
        width: 85%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .features,
    .showcase {
        padding: 4rem 0;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}