/* ============================================================
   MAILWOK HOMEPAGE STYLES
   Brevo-inspired premium dark design
   ============================================================ */

/* ── Text Gradient ── */
.text-gradient {
    background: linear-gradient(135deg, #FF5A28 0%, #ff8a5c 50%, #FFB088 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ── */
.hp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.hp-nav.scrolled {
    background: rgba(14, 14, 14, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.hp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.hp-nav-logo strong {
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
}

.hp-nav-links {
    display: flex;
    gap: 32px;
}

.hp-nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.hp-nav-links a:hover {
    color: #fff;
}

.hp-nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hp-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ── Hero ── */
.hp-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 32px 80px;
    overflow: hidden;
}

.hp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hp-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 40, 0.12) 0%, rgba(255, 90, 40, 0.04) 40%, transparent 70%);
    animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.2s;
}

.hp-hero-badge:hover {
    border-color: var(--orange);
    background: rgba(255, 90, 40, 0.05);
}

.hp-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hp-hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hp-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hp-hero-ctas .btn-lg {
    position: relative;
}

.btn-sub {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

.hp-hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

.counter-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 90, 40, 0.1);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

/* ── Stats Bar ── */
.hp-stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(10px);
}

.hp-stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hp-stat-item {
    text-align: center;
}

.hp-stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    color: var(--orange);
    margin-bottom: 4px;
}

.hp-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── Sections ── */
.hp-section {
    padding: 100px 0;
}

.hp-section-dark {
    background: var(--dark-bg);
}

.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.hp-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.hp-section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--orange);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hp-section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.hp-section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Features Grid ── */
.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-feature-card {
    padding: 32px !important;
    transition: all 0.3s ease;
}

.hp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hp-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.hp-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hp-feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── How It Works ── */
.hp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hp-step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.hp-step:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.hp-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), #ff8a5c);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.hp-step h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.hp-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hp-step-arrow {
    font-size: 28px;
    color: var(--text-muted);
    margin-top: 48px;
}

/* ── Pricing Preview ── */
.hp-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.hp-pricing-card {
    padding: 36px 28px !important;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

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

.hp-pricing-popular {
    border-color: var(--orange) !important;
    box-shadow: 0 0 40px rgba(255, 90, 40, 0.15);
}

.hp-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 20px;
    white-space: nowrap;
}

.hp-pricing-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.hp-pricing-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 48px;
    margin-bottom: 4px;
    line-height: 1;
}

.hp-pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.hp-pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hp-pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.hp-pricing-features li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Testimonials ── */
.hp-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-testimonial {
    padding: 32px !important;
    transition: all 0.3s ease;
}

.hp-testimonial:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.hp-testimonial-quote {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 800;
    color: var(--orange);
    line-height: 0.8;
    margin-bottom: 8px;
}

.hp-testimonial p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.hp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-testimonial-author strong {
    color: var(--text-primary);
    font-size: 14px;
}

/* ── Integrations ── */
.hp-integrations {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-integration-item {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: default;
}

.hp-integration-item:hover {
    border-color: var(--orange);
    color: var(--text-primary);
    background: rgba(255, 90, 40, 0.05);
    transform: translateY(-2px);
}

/* ── CTA Section ── */
.hp-cta-section {
    position: relative;
    text-align: center;
    padding: 100px 32px;
    overflow: hidden;
    background: var(--off-black);
}

.hp-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 40, 0.1) 0%, transparent 70%);
}

.hp-cta-section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.hp-cta-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ── */
.hp-footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.hp-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.hp-footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.hp-footer-social a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hp-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.hp-footer-col a:hover {
    color: var(--text-primary);
}

.hp-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Scroll Animations ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

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

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

/* ── Dashboard Preview (Brevo-style) ── */
.hp-hero-preview {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 60px auto 0;
    perspective: 1200px;
}

.preview-window {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 90, 40, 0.06);
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.preview-window:hover {
    transform: rotateX(0deg);
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 5px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) {
    background: #ff5f56;
}

.preview-dots span:nth-child(2) {
    background: #ffbd2e;
}

.preview-dots span:nth-child(3) {
    background: #27c93f;
}

.preview-url {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    flex: 1;
    text-align: center;
}

.preview-body {
    display: flex;
    min-height: 320px;
}

.preview-sidebar {
    width: 160px;
    border-right: 1px solid var(--border);
    padding: 16px 0;
    flex-shrink: 0;
}

.preview-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: default;
    transition: all 0.15s;
}

.preview-sidebar-item.active {
    color: var(--orange);
    background: rgba(255, 90, 40, 0.06);
    border-right: 2px solid var(--orange);
}

.preview-main {
    flex: 1;
    padding: 20px;
}

.preview-greeting {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.preview-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preview-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.preview-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.preview-stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
}

.preview-chart-area {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.preview-chart-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.preview-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.preview-chart-bars div {
    flex: 1;
    background: rgba(255, 90, 40, 0.3);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}

.preview-chart-bars div:nth-child(6) {
    background: var(--orange);
}

.preview-chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ── Trust Bar ── */
.hp-trust-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.hp-trust-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hp-trust-logo {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
    font-family: var(--font-display);
    transition: color 0.2s;
    cursor: default;
}

.hp-trust-logo:hover {
    color: rgba(255, 255, 255, 0.35);
}

/* ── Mobile ── */
@media (max-width: 900px) {

    .hp-features-grid,
    .hp-testimonials,
    .hp-pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hp-step-arrow {
        display: none;
    }

    .hp-steps {
        flex-direction: column;
        align-items: center;
    }

    .hp-stat-divider {
        display: none;
    }

    .hp-stats-inner {
        gap: 24px;
    }

    .preview-sidebar {
        display: none;
    }

    .preview-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-trust-logos {
        gap: 24px;
    }

    .hp-trust-logo {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hp-nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 32px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .hp-nav-links.open {
        display: flex;
    }

    .hp-nav-toggle {
        display: block;
    }

    .hp-nav-actions .btn-ghost {
        display: none;
    }

    .hp-hero-title {
        font-size: 40px;
    }

    .hp-hero-sub {
        font-size: 15px;
    }

    .hp-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hp-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}