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

:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --primary-foreground: #F8FAFC;
    --background: #FFFFFF;
    --foreground: #0B1220;
    --muted: #F8FAFC;
    --muted-foreground: #64748B;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --border: #E2E8F0;
    --radius: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --card: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary);
    line-height: 1.1;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 65ch;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    gap: 0.75rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.02);
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

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

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

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Sections */
section {
    padding: 8rem 0;
}

.hero {
    padding: 12rem 0 8rem 0;
    background: radial-gradient(circle at 100% 0%, #eff6ff 0%, #ffffff 50%);
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-checkmarks {
    display: flex;
    gap: 2rem;
}

.checkmark-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.checkmark-item i {
    color: #16a34a;
    width: 20px;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card);
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card.highlighted {
    border: 2px solid var(--accent);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #f8fafc;
    color: var(--accent);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 6rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    z-index: 1;
}

/* Comparison Table */
.comparison-container {
    background: white;
    padding: 4rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    overflow-x: auto;
}

/* Mobile comparison layout — hidden on desktop */
.comparison-mobile {
    display: none;
    background: white;
    border-radius: 2rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.cmp-header {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    align-items: end;
    padding: 1.25rem 1.25rem 1rem;
    background: white;
    border-bottom: 2px solid var(--border);
    gap: 0.5rem;
}

.cmp-feature-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.cmp-col-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    line-height: 1.4;
}

.cmp-col-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.cmp-col-sub-blue {
    color: var(--accent);
}

.cmp-col-old {
    color: var(--primary);
}

.cmp-col-new {
    color: var(--primary);
}

.cmp-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.5rem;
    background: white;
}

.cmp-row:last-child {
    border-bottom: none;
}

.cmp-feature {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
    line-height: 1.3;
}

.cmp-val {
    display: flex;
    align-items: center;
    justify-content: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding-bottom: 3rem;
    font-size: 1.25rem;
    color: var(--primary);
}

td {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

td:first-child {
    font-weight: 500;
}

.check-container {
    text-align: center;
}

.check-icon {
    color: #10b981;
}

.cross-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-blue {
    background: #eff6ff;
    color: #2563eb;
}

/* Hero Visuals */
.hero-image-container {
    position: relative;
}

.hero-image-container img {
    border-radius: 2rem;
    box-shadow: var(--shadow-2xl);
    width: 100%;
    display: block;
}

.hero-overlay-card {
    position: absolute;
    bottom: 3rem;
    left: -3rem;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.section-dark {
    background: var(--primary);
    color: white;
}

.section-dark h2 {
    color: white;
}

.section-dark p {
    color: #94a3b8;
}

/* Mobile & Responsiveness */
@media (max-width: 1024px) {
    header {
        height: 70px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.125rem;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
        padding: 0.5rem;
    }

    section {
        padding: 4rem 0 !important;
    }

    .hero {
        padding: 7rem 0 3rem 0 !important;
    }

    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem auto;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-checkmarks {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-overlay-card {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .section-dark .container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .comparison-desktop {
        display: none;
    }

    .comparison-mobile {
        display: block;
    }

    #download {
        padding: 5rem 0 !important;
    }

    #download h2 {
        font-size: 2rem !important;
    }

    /* Fix download buttons on mobile — equal width, centered, stacked */
    #download .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #download .hero-actions>div {
        width: 100%;
        max-width: 320px;
        align-items: center;
    }

    #download .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    #download .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Fix fixed height image containers */
    [style*="height: 400px"],
    [style*="height: 450px"] {
        height: auto !important;
        aspect-ratio: 16/9;
    }


    /* Footer mobile fixes */
    footer .container {
        text-align: center;
    }
}

.mobile-menu-toggle {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Helpers */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.flex-row-to-col {
    display: flex;
    flex-direction: row;
}

@media (max-width: 1024px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .flex-row-to-col {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
}