/* ========================================
   HERO SECTION STYLES
   ======================================== */

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease-smooth);
}

.nav.scrolled {
    padding: 12px 24px;
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 10px 20px !important;
    background: var(--text) !important;
    color: white !important;
    border-radius: 8px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
}

/* Mobile Menu Button */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }

/* HERO */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -20%;
    right: -30%;
    width: 100%;
    height: 80%;
    background: radial-gradient(ellipse at center, var(--accent-bg) 0%, transparent 60%);
    opacity: 0.6;
}

.hero-bg-glow {
    display: none;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: var(--accent-bg);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-title .accent {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 28px;
    line-height: 1.7;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-value .stat-suffix {
    font-size: 0.9rem;
    color: var(--accent);
    margin-left: 1px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* VISUAL */
.hero-visual {
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.mockup-wrapper {
    position: relative;
}

.mockup-container {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mockup-chrome {
    padding: 10px 14px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chrome-dots {
    display: flex;
    gap: 6px;
}

.chrome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chrome-dot.red { background: #FF5F57; }
.chrome-dot.yellow { background: #FFBD2E; }
.chrome-dot.green { background: #28CA41; }

.chrome-url {
    flex: 1;
    background: var(--bg);
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-body {
    padding: 16px;
    background: var(--bg-subtle);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.dashboard-period {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 5px;
    border: 1px solid var(--border);
}

.chart-container {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.chart-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
    margin-left: 6px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.chart-bar-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.chart-bar {
    width: 100%;
    min-height: 4px;
    background-color: #E2E8F0;
    border-radius: 4px 4px 2px 2px;
    transition: height 0.8s var(--ease-out);
}

.chart-bar.highlight {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.chart-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.metric-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}

.metric-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--accent);
}

.metric-icon svg {
    width: 14px;
    height: 14px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.metric-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Floating Cards - Mobile optimized */
.floating-cards-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.floating-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-md);
}

.floating-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-stat-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.floating-stat-icon svg {
    width: 16px;
    height: 16px;
}

.floating-stat-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.2;
}

.floating-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.floating-stat-trend {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
}

/* TRUSTED */
.trusted {
    padding: 32px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.trusted-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.trusted-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
}

.trusted-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.3;
}

/* ========== TABLET+ (640px) ========== */
@media (min-width: 640px) {
    .hero {
        padding: 120px 32px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .mockup-body {
        padding: 24px;
    }

    .chart-bars {
        height: 100px;
    }

    .floating-cards-mobile {
        gap: 16px;
    }

    .floating-stat {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .floating-stat-icon {
        flex-shrink: 0;
    }
}

/* ========== DESKTOP (1024px) ========== */
@media (min-width: 1024px) {
    .nav {
        padding: 20px 48px;
    }

    .nav.scrolled {
        padding: 16px 48px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .hero {
        padding: 140px 48px 80px;
        justify-content: center;
    }

    .hero-inner {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 60px;
        align-items: center;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .hero-subtitle {
        margin: 0 0 36px;
        max-width: 480px;
    }

    .hero-actions {
        justify-content: flex-start;
        margin-bottom: 48px;
    }

    .hero-stats {
        justify-content: flex-start;
        gap: 40px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .hero-bg-glow {
        display: block;
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
        filter: blur(60px);
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .mockup-container {
        border-radius: 20px;
        transition: transform 0.15s ease-out, box-shadow 0.4s ease;
    }

    .mockup-container:hover {
        box-shadow: 0 35px 80px rgba(0,0,0,0.18);
    }

    .mockup-body {
        padding: 28px;
    }

    .chart-bars {
        height: 120px;
        gap: 10px;
    }

    .metrics-grid {
        gap: 12px;
    }

    .metric-card {
        padding: 16px;
    }

    .metric-icon {
        width: 36px;
        height: 36px;
    }

    .metric-value {
        font-size: 1.3rem;
    }

    /* Floating cards - desktop absolute positioning */
    .floating-cards-mobile {
        display: block;
        margin-top: 0;
    }

    .floating-card {
        position: absolute;
        padding: 16px 20px;
        border-radius: 14px;
        opacity: 0;
        animation: floatIn 0.8s var(--ease-out) forwards;
    }

    .floating-card-1 {
        top: 10px;
        right: -20px;
        animation-delay: 1s;
    }

    .floating-card-2 {
        bottom: 60px;
        left: -30px;
        animation-delay: 1.2s;
    }

    @keyframes floatIn {
        to { opacity: 1; }
    }

    .floating-card.floating {
        opacity: 1;
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    .floating-stat-value {
        font-size: 1rem;
    }

    .trusted {
        padding: 48px;
    }

    .trusted-inner {
        display: flex;
        align-items: center;
        gap: 48px;
        text-align: left;
    }

    .trusted-label {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .trusted-logos {
        justify-content: flex-start;
        gap: 40px;
    }

    .trusted-logo {
        font-size: 1.2rem;
    }

    .trusted-logo:hover {
        opacity: 0.6;
    }
}

@media (min-width: 1200px) {
    .hero-inner {
        gap: 80px;
    }

    .floating-card-1 {
        right: -30px;
    }

    .floating-card-2 {
        left: -40px;
    }
}