/* ============================================================
   MAILWOK HOMEPAGE STYLES — Light/Dark Theme Support
   Inter font · Pill UI · Brevo-inspired
   ============================================================ */

/* ── 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;
}

/* ── Blinking Logo Dot ── */
.logo-dot {
    color: #FF5A28;
    display: inline-block;
    animation: blinkDot 2s ease-in-out infinite;
}

@keyframes blinkDot {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(255, 90, 40, 0.6);
    }

    50% {
        opacity: 0.2;
        text-shadow: none;
    }
}

/* ── Scroll Animation ── */
.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);
}

/* ── 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: var(--bg-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.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: 400;
    color: var(--text-secondary);
}

.hp-nav-logo strong {
    font-weight: 800;
    color: var(--text-primary);
}

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

.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: var(--text-primary);
}

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

.hp-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ── Hero ── */
.hp-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 32px 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

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

.hp-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow) 0%, 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(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 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: 840px;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    cursor: pointer;
    transition: all 0.2s;
}

.hp-hero-badge:hover {
    border-color: var(--orange);
    background: var(--orange-light);
}

.hp-hero-title {
    font-family: var(--font);
    font-weight: 900;
    font-size: clamp(52px, 9vw, 88px);
    line-height: 1.02;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

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

.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: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    color: var(--text-secondary);
}

.counter-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-light);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

/* ── Dashboard Preview ── */
.hp-hero-preview {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.preview-window {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

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

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

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

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

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

.preview-url {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-tertiary);
    padding: 5px 16px;
    border-radius: var(--radius-pill);
}

.preview-body {
    display: flex;
    min-height: 320px;
    background: var(--bg-primary);
}

[data-theme="dark"] .preview-body {
    background: #0a0a0a;
}

.preview-sidebar {
    width: 180px;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.preview-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.preview-sidebar-item.active {
    background: var(--orange-light);
    color: var(--orange);
}

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

.preview-greeting {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

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

.preview-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.preview-stat-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.preview-stat-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.preview-chart-area {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

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

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

.preview-chart-bars>div {
    flex: 1;
    background: linear-gradient(to top, var(--orange), rgba(255, 90, 40, 0.3));
    border-radius: 4px 4px 0 0;
    min-height: 6px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Trust Bar ── */
.hp-trust-bar {
    padding: 48px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.hp-trust-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.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: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

.hp-trust-logo:hover {
    opacity: 0.8;
}

/* ── Stats Bar ── */
.hp-stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-primary);
}

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

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

.hp-stat-value {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.hp-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

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

/* ── Sections ── */
.hp-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

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

.hp-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.hp-section-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

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

.hp-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.hp-feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

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

.hp-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ── How It Works Steps ── */
.hp-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.hp-step {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.hp-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.hp-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 16px;
    border: 2px solid var(--orange);
}

.hp-step-arrow {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 300;
}

/* ── Pricing Cards (Homepage Preview) ── */
.hp-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.hp-pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}

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

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

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

.hp-pricing-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hp-pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.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;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.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);
}

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

.hp-testimonial {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.hp-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.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-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.hp-testimonial-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.hp-testimonial-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Code Block ── */
.hp-code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    overflow-x: auto;
}

.hp-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-code-lang {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hp-code-copy {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hp-code-copy:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hp-code-block pre {
    color: #d1d5db;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    white-space: pre;
}

.hp-code-block .code-keyword {
    color: #c084fc;
}

.hp-code-block .code-string {
    color: #86efac;
}

.hp-code-block .code-comment {
    color: #4b5563;
}

.hp-code-block .code-method {
    color: #93c5fd;
}

.hp-code-block .code-const {
    color: #fbbf24;
}

/* ── Integrations Grid ── */
.hp-integrations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.hp-integration-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.hp-integration-item:hover {
    border-color: var(--orange);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Footer Social ── */
.hp-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

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

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

/* ── CTA ── */
.hp-cta-section {
    text-align: center;
    padding: 120px 32px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hp-cta-section h2 {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hp-cta-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
}

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

.hp-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.hp-footer-brand {
    max-width: 280px;
}

.hp-footer-brand-name {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.hp-footer-brand-name strong {
    font-weight: 800;
    color: var(--text-primary);
}

.hp-footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.hp-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.hp-footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.hp-footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 24px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .hp-testimonials {
        grid-template-columns: 1fr;
    }

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

    .hp-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

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

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

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

    .hp-hero {
        padding: 120px 24px 60px;
    }

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

    .hp-features-grid {
        grid-template-columns: 1fr;
    }

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

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

    .preview-body {
        flex-direction: column;
    }

    .preview-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px;
    }

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

    .hp-integrations {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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