/* ==========================================================================
   Estimio Landing Page Styles
   ========================================================================== */

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #007AFF;
    --primary-dark: #0051D4;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --bg-light: #FAFAFA;
    --text-primary: #3D3D3D;
    --text-secondary: rgba(61, 61, 61, 0.6);
    --separator: rgba(61, 61, 61, 0.12);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Entrance animation */
    animation: navSlideDown 0.6s ease-out forwards;
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 846px;
    width: 100%;
    background-color: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(61, 61, 61, 0.06);
    border-radius: 27px;
    padding: 6px 8px 6px 12px;
    box-shadow:
        0px 0.6px 0.6px -1.25px rgba(0, 0, 0, 0.18),
        0px 2.3px 2.3px -2.5px rgba(0, 0, 0, 0.16),
        0px 10px 10px -3.75px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Enhanced blur on scroll */
.nav.scrolled .nav-container {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0px 1px 2px rgba(0, 0, 0, 0.08),
        0px 4px 8px rgba(0, 0, 0, 0.08),
        0px 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(61, 61, 61, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.nav-logo:hover img {
    transform: scale(1.02);
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(0, 122, 255, 0.08);
}

/* Download Button */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

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

/* Hamburger Menu Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.nav-hamburger:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to X animation */
.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 846px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(61, 61, 61, 0.06);
    border-radius: 20px;
    margin-top: 12px;
    padding: 8px;
    box-shadow:
        0px 4px 16px rgba(0, 0, 0, 0.08),
        0px 8px 32px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.nav-mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-mobile-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.nav-mobile-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.nav-mobile-cta {
    background-color: var(--primary);
    color: white;
    text-align: center;
    margin-top: 4px;
}

.nav-mobile-cta:hover {
    background-color: var(--primary-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links,
    .nav-btn {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

    .nav-container {
        padding: 4px 4px 4px 12px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='%23d1d5db' stroke-width='1' stroke-dasharray='6 6'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #FFFFFF 0%, #E3F0FF 100%);
    background-size: 80px 80px, 100% 100%;
    padding-top: 109px;
    padding-bottom: 0;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 25px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 732px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Audience Pill */
.audience-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    background-color: var(--bg-gray);
    border-radius: 100px;
}

.audience-pill span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.pill-divider {
    width: 1px;
    height: 16px;
    background-color: var(--separator);
}

/* Title Section */
.title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero-headline {
    font-size: 70px;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.029em;
    color: var(--text-primary);
    text-wrap: balance;
}

.hero-subheadline {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.6;
    max-width: 670px;
}

/* App Store Badge */
.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.app-store-badge:active {
    transform: scale(0.98);
}

.app-store-badge img {
    height: 58px;
    width: auto;
}

/* ==========================================================================
   Phone Showcase
   ========================================================================== */
.phones-container {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='%23d1d5db' stroke-width='1' stroke-dasharray='6 6'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #E3F0FF 0%, #D6E8FF 100%);
    background-size: 80px 80px, 100% 100%;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    border-radius: 0 0 60px 60px;
    overflow: visible;
}

.hero-phones-wrapper {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding-top: 29px;
}

.hero-phone {
    flex-shrink: 0;
}

.hero-phone-left,
.hero-phone-right {
    width: 247px;
}

.hero-phone-left img,
.hero-phone-right img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-phone-center {
    width: 368px;
}

.hero-phone-center img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.35));
}

/* ==========================================================================
   Floating Metrics
   ========================================================================== */
.floating-metrics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.metric-card {
    position: absolute;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: auto;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.75);
    width: 200px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.metric-value .highlight {
    color: var(--primary);
}

.metric-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.3;
}

/* Metric positions - consistent distance from center phone */
.metric-card--hours {
    top: 25%;
    left: calc(50% - 400px);
    animation: floatMetric1 4s ease-in-out infinite;
}

.metric-card--jobs {
    top: 55%;
    left: calc(50% - 400px);
    animation: floatMetric3 5s ease-in-out infinite;
}

.metric-card--earned {
    top: 25%;
    right: calc(50% - 400px);
    left: auto;
    animation: floatMetric2 4.5s ease-in-out infinite;
}

.metric-card--profits {
    top: 55%;
    right: calc(50% - 400px);
    left: auto;
    animation: floatMetric4 4.2s ease-in-out infinite;
}

/* Floating animations */
@keyframes floatMetric1 {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes floatMetric2 {

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

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

@keyframes floatMetric3 {

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

    50% {
        transform: translateY(-14px) rotate(-0.5deg);
    }
}

@keyframes floatMetric4 {

    0%,
    100% {
        transform: translateY(0) rotate(-0.5deg);
    }

    50% {
        transform: translateY(-11px) rotate(0.5deg);
    }
}

/* Metric card load animations */
.metric-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.metric-card--hours {
    animation: floatMetric1 4s ease-in-out infinite, metricEnter 0.6s ease-out 0.7s forwards;
}

.metric-card--earned {
    animation: floatMetric2 4.5s ease-in-out infinite, metricEnter 0.6s ease-out 0.85s forwards;
}

.metric-card--jobs {
    animation: floatMetric3 5s ease-in-out infinite, metricEnter 0.6s ease-out 1s forwards;
}

.metric-card--profits {
    animation: floatMetric4 4.2s ease-in-out infinite, metricEnter 0.6s ease-out 1.15s forwards;
}

@keyframes metricEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

/* Metric card hover effect */
.metric-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.metric-card:hover {
    box-shadow:
        0 8px 12px -2px rgba(0, 0, 0, 0.08),
        0 20px 30px -6px rgba(0, 0, 0, 0.12),
        0 30px 40px -10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Social Proof Section
   ========================================================================== */
.social-proof {
    background-color: var(--bg-white);
    padding: 20px 30px 40px;
}

.social-proof-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-icon {
    font-size: 24px;
}

.proof-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proof-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.proof-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stars {
    display: flex;
    gap: 2px;
    color: #FFB800;
}

/* ==========================================================================
   How it Works Section
   ========================================================================== */
.how-it-works {
    background: #FFFFFF;
    padding: 80px 30px 100px;
    position: relative;
    z-index: 10;
}

.how-it-works-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.how-it-works-title {
    font-size: 36px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 280px;
    text-align: center;
    padding: 24px 16px;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    background-color: rgba(0, 122, 255, 0.03);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #5AC8FA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    opacity: 0.5;
    font-size: 24px;
    margin-top: -20px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    position: relative;
    padding: 80px 30px 80px;
    overflow: hidden;
}

.features-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='%23d1d5db' stroke-width='1' stroke-dasharray='6 6'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    background-size: 80px 80px, 100% 100%;
    border-radius: 60px 60px 0 0;
}

.features-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
}

/* Features Pill */
.features-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px dashed rgba(0, 122, 255, 0.2);
    border-radius: 6px;
}

.features-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
}

.features-pill span {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
}

.section-title {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-align: center;
}

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.feature-row {
    display: grid;
    gap: 16px;
}

.feature-row.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.feature-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.1);
}

.feature-image {
    aspect-ratio: 1.5;
    border-radius: 8px;
    overflow: hidden;
    background-color: transparent;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 0 8px 8px;
}

.feature-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.6;
}

/* ==========================================================================
   Footer CTA
   ========================================================================== */
.footer-cta {
    padding: 0 30px;
    margin-top: 60px;
    overflow: hidden;
}

.footer-cta-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 30px;
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 50%, #007AFF 100%);
    background-size: 200% 200%;
    animation: shimmer 8s ease infinite;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .footer-cta-container {
        animation: none;
        background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
        background-size: cover;
    }

    /* Mobile Layout Adjustments */
    .hero {
        padding-top: 180px;
        /* Increase spacing between Navbar and "Contractors..." */
    }

    .hero-container {
        padding-bottom: 0;
        /* Reduce gap between Download Button and Phone */
    }

    .hero-phones {
        padding-top: 40px;
        /* Space for upward shadow */
        margin-top: 10px;
        /* Pull back up to maintain tight spacing */
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.footer-cta-social-proof {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.footer-cta-title {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -0.03em;
    color: white;
}

.footer-cta-subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: white;
    max-width: 540px;
}

.footer-cta .app-store-badge img {
    height: 50px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 50px 30px 40px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.footer-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.social-link:hover {
    background-color: var(--bg-gray);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--separator);
    padding-top: 24px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Use proportional scaling based on viewport width */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: clamp(36px, 6vw, 60px);
    }

    .hero-phone-left,
    .hero-phone-right {
        width: 20vw;
        min-width: 160px;
    }

    .hero-phone-center {
        width: 30vw;
        min-width: 240px;
    }

    .hero-phones-wrapper {
        min-height: clamp(400px, 50vw, 580px);
    }

    .section-title,
    .footer-cta-title {
        font-size: clamp(28px, 4vw, 38px);
    }

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

    .feature-card.full-width {
        grid-column: span 2;
    }

    /* Floating metrics - proportional sizing */
    .metric-card {
        padding: clamp(10px, 1.5vw, 20px) clamp(12px, 2vw, 24px);
        width: clamp(110px, 16vw, 200px);
        border-radius: clamp(12px, 1.5vw, 20px);
    }

    .metric-value {
        font-size: clamp(18px, 2.5vw, 32px);
    }

    .metric-label {
        font-size: clamp(10px, 1.2vw, 14px);
        margin-top: clamp(2px, 0.5vw, 6px);
    }

    /* Keep proportional distance from center phone */
    .metric-card--hours,
    .metric-card--jobs {
        left: calc(50% - clamp(165px, 32vw, 400px));
    }

    .metric-card--earned,
    .metric-card--profits {
        right: calc(50% - clamp(165px, 32vw, 400px));
        left: auto;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 10px 16px;
    }

    .nav-container {
        border-radius: 21px;
        padding: 5px 8px 5px 10px;
    }

    .nav-logo img {
        height: 28px;
    }

    .nav-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-container {
        gap: 16px;
        padding: 16px 16px;
    }

    .hero-content {
        gap: 14px;
    }

    .audience-pill {
        gap: 8px;
        padding: 3px 10px;
    }

    .audience-pill span {
        font-size: 13px;
    }

    .hero-subheadline {
        font-size: 14px;
        max-width: 320px;
    }

    .app-store-badge img {
        height: 42px;
    }

    .phones-container {
        padding: 0 10px;
        border-radius: 0 0 40px 40px;
    }

    /* Hero phones wrapper - same proportions as desktop */
    /* Hero phones wrapper - same proportions as desktop */
    .hero-phones-wrapper {
        min-height: auto;
        align-items: flex-start;
    }

    .hero-phones {
        padding: 20px 0 0;
    }

    .hero-phone-left,
    .hero-phone-right {
        display: none;
    }

    /* Phone size proportional to viewport - larger on mobile */
    .hero-phone-center {
        width: 55%;
        min-width: 220px;
        max-width: 320px;
    }

    .hero-phone-center img {
        filter: drop-shadow(0 0 15px rgba(0, 122, 255, 0.4));
    }

    /* Floating metrics - match desktop proportions */
    .floating-metrics {
        position: absolute;
        display: block;
    }

    /* Metric cards scale with viewport like desktop */
    .metric-card {
        position: absolute;
        padding: 12px 14px;
        width: 16%;
        min-width: 85px;
        max-width: 140px;
        border-radius: 12px;
    }

    .metric-value {
        font-size: clamp(14px, 2.5vw, 20px);
    }

    .metric-label {
        font-size: clamp(9px, 1.2vw, 12px);
        margin-top: 3px;
        line-height: 1.2;
    }

    /* Position metrics further from center to minimize overlap */
    .metric-card--hours,
    .metric-card--jobs {
        left: calc(50% - 42%);
    }

    .metric-card--earned,
    .metric-card--profits {
        right: calc(50% - 42%);
        left: auto;
    }

    .metric-card--hours,
    .metric-card--earned {
        top: 25%;
    }

    .metric-card--jobs,
    .metric-card--profits {
        top: 55%;
    }

    /* How it Works section */
    .how-it-works {
        padding: 50px 16px 60px;
    }

    .how-it-works-title {
        font-size: 26px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step {
        max-width: 280px;
        padding: 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-title {
        font-size: 16px;
    }

    .step-description {
        font-size: 14px;
    }

    .step-arrow {
        display: none;
    }

    /* Features section */
    .features {
        padding: 50px 16px 40px;
    }

    .features-background {
        border-radius: 40px 40px 0 0;
    }

    .section-header {
        padding: 16px 0;
    }

    .features-pill {
        padding: 5px 12px;
    }

    .features-pill span {
        font-size: 14px;
    }

    .section-title,
    .footer-cta-title {
        font-size: 28px;
        letter-spacing: -0.02em;
    }

    .feature-row.two-col,
    .feature-row.three-col {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 10px;
    }

    .feature-image {
        aspect-ratio: 1.4;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-description {
        font-size: 14px;
    }

    /* Footer CTA */
    .footer-cta {
        padding: 0 16px;
        margin-top: 40px;
    }

    .footer-cta-container {
        padding: 36px 20px;
        border-radius: 12px;
    }

    .footer-cta-social-proof {
        font-size: 12px;
    }

    .footer-cta-subtitle {
        font-size: 14px;
        max-width: 300px;
    }

    .footer-cta .app-store-badge img {
        height: 44px;
    }

    /* Footer */
    .footer {
        padding: 30px 16px 24px;
    }

    .footer-container {
        gap: 30px;
    }

    .footer-main {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        position: static;
        transform: none;
        gap: 16px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-logo img {
        height: 36px;
    }

    .social-proof-container {
        gap: 20px;
    }

    .footer-bottom {
        padding-top: 16px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* Extra small screens - only override what clamp can't handle */
@media (max-width: 400px) {
    .hero-headline {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 12px;
    }

    .section-title,
    .footer-cta-title {
        font-size: 22px;
    }

    .how-it-works-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero load animations */
.hero .audience-pill {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero .hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .hero-subheadline {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero .app-store-badge {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.phones-container .hero-phone-left {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.phones-container .hero-phone-center {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.phones-container .hero-phone-right {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Nav fade in */
.nav {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children .animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

/* Feature card stagger animations */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-row .feature-card:nth-child(1) {
    transition-delay: 0s;
}

.feature-row .feature-card:nth-child(2) {
    transition-delay: 0.15s;
}

.feature-row .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}