/* ============================================================
   EmailsWave — Homepage redesign (Omnisend-quality)
   Scoped entirely to  body.page-home  so the dark app theme
   (login, dashboard, etc.) is never affected.
   Design system:
     Primary #6C3CEC  Accent #FF6B9D  BG #FAF9FD
     Card #FFFFFF  Text #1A1538  Muted #5C587A
   ============================================================ */

body.page-home {
    --h-primary: #6C3CEC;
    --h-primary-2: #A362F0;
    --h-accent: #FF6B9D;
    --h-bg: #FAF9FD;
    --h-card: #FFFFFF;
    --h-ink: #1A1538;
    --h-muted: #5C587A;
    --h-radius: 16px;
    --h-shadow: 0 4px 24px rgba(107, 60, 236, 0.06);
    --h-shadow-lg: 0 24px 64px rgba(107, 60, 236, 0.16);
    --h-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --h-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
    --h-max: 1200px;

    background: var(--h-bg);
    color: var(--h-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 28px;
}

/* Kill the dark app nav/footer chrome on the marketing home only.
   The redesigned home ships its own header + footer. */
body.page-home > nav.navbar,
body.page-home > footer.footer { display: none; }

body.page-home main { padding-top: 0; }

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--h-ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

body.page-home .ewh-wrap {
    width: 100%;
    max-width: var(--h-max);
    margin: 0 auto;
    padding: 0 24px;
}

body.page-home .ewh-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--h-primary);
    margin: 0 0 16px;
}

body.page-home .ewh-section {
    padding: 120px 0;
    position: relative;
}

body.page-home .ewh-h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    max-width: 20ch;
    margin: 0 0 18px;
}

body.page-home .ewh-lead {
    font-size: 18px;
    line-height: 28px;
    color: var(--h-muted);
    max-width: 52ch;
    margin: 0;
}

body.page-home .ewh-gradtext {
    background: linear-gradient(135deg, var(--h-primary), var(--h-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
body.page-home .ewh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    padding: 0 28px;
    height: 52px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .22s var(--h-overshoot), box-shadow .22s var(--h-ease), background .2s var(--h-ease), color .2s var(--h-ease);
}

body.page-home .ewh-btn-primary {
    background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2));
    color: #fff;
    box-shadow: 0 8px 24px rgba(107, 60, 236, 0.28);
}
body.page-home .ewh-btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg);
    transition: left .6s var(--h-ease);
}
body.page-home .ewh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(107, 60, 236, 0.36);
}
body.page-home .ewh-btn-primary:hover::after { left: 120%; }

body.page-home .ewh-btn-outline {
    background: transparent;
    color: var(--h-primary);
    border: 1.5px solid rgba(108, 60, 236, 0.24);
}
body.page-home .ewh-btn-outline:hover {
    border-color: var(--h-primary);
    background: rgba(108, 60, 236, 0.06);
    transform: translateY(-2px);
}
body.page-home .ewh-btn-play {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .2s var(--h-ease);
}
body.page-home .ewh-btn-outline:hover .ewh-btn-play { transform: rotate(8deg); }

body.page-home .ewh-btn-white {
    background: #fff; color: var(--h-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body.page-home .ewh-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
body.page-home .ewh-btn-glass {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}
body.page-home .ewh-btn-glass:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

/* ---------- Glass sticky header ---------- */
body.page-home .ewh-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    z-index: 1000;
    background: rgba(250, 249, 253, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 1px 0 rgba(107, 60, 236, 0.06);
    border-bottom: 1px solid rgba(107, 60, 236, 0.08);
    transition: height .24s var(--h-ease), background .24s var(--h-ease), box-shadow .24s var(--h-ease);
}
body.page-home .ewh-nav.scrolled {
    height: 64px;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 4px 20px rgba(107, 60, 236, 0.08);
}
body.page-home .ewh-nav-inner {
    max-width: var(--h-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.page-home .ewh-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
body.page-home .ewh-brand-mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(107,60,236,0.3);
}
body.page-home .ewh-brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px; font-weight: 700; color: var(--h-ink);
}
body.page-home .ewh-nav-links {
    display: flex; align-items: center; gap: 36px;
    list-style: none; margin: 0; padding: 0;
}
body.page-home .ewh-nav-links a {
    position: relative;
    font-size: 15px; font-weight: 500;
    color: var(--h-muted);
    text-decoration: none;
    transition: color .18s var(--h-ease);
}
body.page-home .ewh-nav-links a::after {
    content: "";
    position: absolute; left: 0; bottom: -6px;
    width: 100%; height: 2px;
    background: linear-gradient(135deg, var(--h-primary), var(--h-accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform .22s var(--h-ease);
}
body.page-home .ewh-nav-links a:hover { color: var(--h-ink); }
body.page-home .ewh-nav-links a:hover::after { transform: scaleX(1); }

body.page-home .ewh-nav-cta { display: flex; align-items: center; gap: 18px; }
body.page-home .ewh-nav-ghost {
    font-size: 15px; font-weight: 500; color: var(--h-muted);
    text-decoration: none; transition: color .18s var(--h-ease);
}
body.page-home .ewh-nav-ghost:hover { color: var(--h-ink); }
body.page-home .ewh-nav-btn {
    height: 40px; padding: 0 20px; font-size: 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2));
    color: #fff; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center;
    box-shadow: 0 6px 18px rgba(107,60,236,0.26);
    transition: transform .2s var(--h-overshoot), box-shadow .2s var(--h-ease);
}
body.page-home .ewh-nav-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(107,60,236,0.34); }

body.page-home .ewh-nav-burger { display: none; }

/* ---------- Hero ---------- */
body.page-home .ewh-hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
}
body.page-home .ewh-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 78% 20%, rgba(163,98,240,0.14), transparent 55%);
    pointer-events: none;
}
body.page-home .ewh-hero-grid {
    position: relative;
    max-width: var(--h-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: center;
    gap: 24px;
}
body.page-home .ewh-hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(108,60,236,0.08);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px; font-weight: 600; color: var(--h-primary);
    margin-bottom: 22px;
}
body.page-home .ewh-hero-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--h-accent);
    animation: ewhPulse 2.4s infinite ease-in-out;
}
@keyframes ewhPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}
body.page-home .ewh-hero h1 {
    font-size: 56px; line-height: 64px; font-weight: 700;
    max-width: 560px; margin: 0 0 22px;
}
body.page-home .ewh-hero-sub {
    font-size: 18px; line-height: 28px; color: var(--h-muted);
    max-width: 480px; margin: 0 0 32px;
}
body.page-home .ewh-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
body.page-home .ewh-hero-social {
    display: flex; align-items: center; gap: 12px; margin-top: 28px;
}
body.page-home .ewh-avatars { display: flex; }
body.page-home .ewh-avatars span {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--h-bg);
    margin-left: -8px;
    background: linear-gradient(135deg, var(--h-primary), var(--h-accent));
}
body.page-home .ewh-avatars span:first-child { margin-left: 0; }
body.page-home .ewh-hero-social small { font-size: 14px; color: var(--h-muted); }

/* Hero visual: blob + floating product card */
body.page-home .ewh-hero-visual {
    position: relative;
    height: 520px;
    display: flex; align-items: center; justify-content: center;
}
body.page-home .ewh-blob {
    position: absolute;
    width: 460px; height: 460px;
    background: linear-gradient(135deg, var(--h-primary), var(--h-accent));
    opacity: 0.28;
    filter: blur(8px);
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    animation: ewhBlobMorph 12s infinite ease-in-out, ewhBlobDrift 16s infinite ease-in-out;
}
@keyframes ewhBlobMorph {
    0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    50% { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; }
}
@keyframes ewhBlobDrift {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(-10px, 10px) rotate(3deg); }
}
body.page-home .ewh-product {
    position: relative;
    width: 440px;
    background: var(--h-card);
    border-radius: var(--h-radius);
    box-shadow: var(--h-shadow-lg);
    padding: 22px;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    animation: ewhFloat 6s infinite ease-in-out;
}
@keyframes ewhFloat {
    0%,100% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-14px); }
}
body.page-home .ewh-product-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
body.page-home .ewh-product-title { font-family: 'Plus Jakarta Sans'; font-size: 15px; font-weight: 700; }
body.page-home .ewh-chip {
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px;
}
body.page-home .ewh-chip.purple { background: rgba(108,60,236,0.12); color: var(--h-primary); }
body.page-home .ewh-preview {
    background: var(--h-bg); border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
body.page-home .ewh-preview .bar { height: 8px; border-radius: 4px; background: rgba(108,60,236,0.14); margin-bottom: 8px; }
body.page-home .ewh-preview .bar.w70 { width: 70%; }
body.page-home .ewh-preview .bar.w45 { width: 45%; background: rgba(255,107,157,0.2); }
body.page-home .ewh-stat-row { display: flex; gap: 10px; }
body.page-home .ewh-stat-box {
    flex: 1; background: var(--h-bg); border-radius: 10px; padding: 12px;
}
body.page-home .ewh-stat-box .n { font-family: 'Plus Jakarta Sans'; font-size: 22px; font-weight: 700; color: var(--h-primary); }
body.page-home .ewh-stat-box .l { font-size: 12px; color: var(--h-muted); }
body.page-home .ewh-stat-box.pink .n { color: var(--h-accent); }

/* Orbiting tokens */
body.page-home .ewh-token {
    position: absolute;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px; font-weight: 600; color: var(--h-ink);
    box-shadow: 0 8px 24px rgba(107,60,236,0.14);
    display: flex; align-items: center; gap: 6px;
}
body.page-home .ewh-token.t1 { top: 40px; left: -10px; animation: ewhFloatToken 7s infinite ease-in-out; }
body.page-home .ewh-token.t2 { bottom: 60px; right: -14px; animation: ewhFloatToken 9s infinite ease-in-out; }
body.page-home .ewh-token .tick { color: var(--h-accent); }
@keyframes ewhFloatToken {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Trust bar ---------- */
body.page-home .ewh-trust {
    background: rgba(255,255,255,0.5);
    padding: 48px 0;
}
body.page-home .ewh-trust-inner {
    max-width: var(--h-max); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    flex-wrap: wrap;
}
body.page-home .ewh-trust-label {
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--h-muted); white-space: nowrap;
}
body.page-home .ewh-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
body.page-home .ewh-logos .logo {
    font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 19px;
    color: var(--h-muted); opacity: 0.4;
    transition: opacity .2s var(--h-ease), transform .2s var(--h-ease);
}
body.page-home .ewh-logos .logo:hover { opacity: 1; transform: translateY(-2px); color: var(--h-primary); }
body.page-home .ewh-rating { display: flex; align-items: center; gap: 10px; }
body.page-home .ewh-stars { display: flex; gap: 2px; color: var(--h-accent); }
body.page-home .ewh-rating small { font-size: 15px; color: var(--h-ink); font-weight: 500; }

/* ---------- Bento features ---------- */
body.page-home .ewh-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
    margin-top: 56px;
}
body.page-home .ewh-card {
    background: var(--h-card);
    border-radius: var(--h-radius);
    padding: 32px;
    box-shadow: var(--h-shadow);
    position: relative;
    transition: transform .26s var(--h-ease), box-shadow .26s var(--h-ease);
    overflow: hidden;
}
body.page-home .ewh-card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: var(--h-radius);
    box-shadow: inset 0 0 0 1px rgba(108,60,236,0.12);
    opacity: 0; transition: opacity .26s var(--h-ease);
    pointer-events: none;
}
body.page-home .ewh-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(107,60,236,0.12); }
body.page-home .ewh-card:hover::before { opacity: 1; }
body.page-home .ewh-card:hover .ewh-card-icon { transform: rotate(-4deg); }
body.page-home .ewh-card-span2 { grid-column: span 2; }
body.page-home .ewh-card-tall { grid-row: span 2; }
body.page-home .ewh-card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(108,60,236,0.10);
    display: flex; align-items: center; justify-content: center;
    color: var(--h-primary);
    transition: transform .26s var(--h-ease), background .26s var(--h-ease);
}
body.page-home .ewh-card h3 { font-size: 22px; line-height: 30px; font-weight: 600; margin: 16px 0 0; }
body.page-home .ewh-card p { font-size: 16px; line-height: 24px; color: var(--h-muted); max-width: 40ch; margin: 10px 0 0; }

/* Mini flow diagram inside the hero feature card */
body.page-home .ewh-flow {
    display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap;
}
body.page-home .ewh-flow .node {
    padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
    background: var(--h-bg); color: var(--h-ink);
}
body.page-home .ewh-flow .conn { width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--h-accent) 0 4px, transparent 4px 8px); }

/* Integration token stack inside tall card */
body.page-home .ewh-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
body.page-home .ewh-stack .tok {
    display: flex; align-items: center; gap: 10px;
    background: var(--h-bg); border-radius: 10px; padding: 10px 12px;
    font-size: 14px; font-weight: 500; color: var(--h-ink);
}
body.page-home .ewh-stack .tok .d { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--h-primary), var(--h-accent)); }

/* ---------- How it works ---------- */
body.page-home .ewh-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 56px; position: relative;
}
body.page-home .ewh-step { position: relative; }
body.page-home .ewh-step-num {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2));
    color: #fff; font-family: 'Plus Jakarta Sans'; font-size: 32px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(107,60,236,0.24);
    transition: box-shadow .26s var(--h-ease);
}
body.page-home .ewh-step:not(:last-child) .ewh-step-num::after {
    content: "";
    position: absolute; top: 36px; left: 84px; right: -12px;
    border-top: 2px dotted rgba(108,60,236,0.28);
}
body.page-home .ewh-step h3 { font-size: 22px; font-weight: 600; margin: 22px 0 8px; }
body.page-home .ewh-step p { font-size: 16px; line-height: 24px; color: var(--h-muted); max-width: 34ch; margin: 0; }
body.page-home .ewh-step:hover { transform: translateY(-4px); }
body.page-home .ewh-step { transition: transform .26s var(--h-ease); }
body.page-home .ewh-step:hover .ewh-step-num { box-shadow: 0 12px 28px rgba(107,60,236,0.4); }

/* ---------- Testimonial carousel ---------- */
body.page-home .ewh-quote-panel {
    max-width: 1000px; margin: 0 auto;
    background: var(--h-card);
    border-radius: var(--h-radius);
    box-shadow: var(--h-shadow);
    padding: 64px;
    position: relative;
    overflow: hidden;
}
body.page-home .ewh-quote-mark {
    position: absolute; top: -20px; left: 24px;
    font-family: 'Plus Jakarta Sans'; font-size: 140px; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--h-primary), var(--h-accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0.18; pointer-events: none;
    transition: transform .5s var(--h-ease);
}
body.page-home .ewh-slides { position: relative; min-height: 200px; }
body.page-home .ewh-slide {
    position: absolute; inset: 0;
    opacity: 0; transform: translateX(24px);
    transition: opacity .5s var(--h-ease), transform .5s var(--h-ease);
    pointer-events: none;
}
body.page-home .ewh-slide.active { opacity: 1; transform: translateX(0); position: relative; pointer-events: auto; }
body.page-home .ewh-slide blockquote {
    font-family: 'Plus Jakarta Sans'; font-size: 28px; line-height: 38px; font-weight: 500;
    color: var(--h-ink); max-width: 46ch; margin: 0 0 28px; border: none;
}
body.page-home .ewh-author { display: flex; align-items: center; gap: 14px; }
body.page-home .ewh-author .pic {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--h-primary), var(--h-accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 20px;
}
body.page-home .ewh-author .name { font-size: 16px; font-weight: 600; color: var(--h-ink); }
body.page-home .ewh-author .role { font-size: 14px; color: var(--h-muted); }
body.page-home .ewh-quote-controls {
    display: flex; align-items: center; justify-content: space-between; margin-top: 32px;
}
body.page-home .ewh-dots { display: flex; gap: 8px; }
body.page-home .ewh-dot {
    width: 8px; height: 8px; border-radius: 100px; border: none;
    background: rgba(108,60,236,0.25); cursor: pointer;
    transition: width .3s var(--h-ease), background .3s var(--h-ease);
}
body.page-home .ewh-dot.active { width: 24px; background: var(--h-primary); }
body.page-home .ewh-arrows { display: flex; gap: 10px; }
body.page-home .ewh-arrow {
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(108,60,236,0.08); color: var(--h-primary);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--h-ease), color .2s var(--h-ease);
}
body.page-home .ewh-arrow:hover { background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2)); color: #fff; }

/* ---------- Integration slider ---------- */
body.page-home .ewh-marquee { position: relative; overflow: hidden; margin-top: 48px; }
body.page-home .ewh-marquee::before,
body.page-home .ewh-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
body.page-home .ewh-marquee::before { left: 0; background: linear-gradient(90deg, var(--h-bg), transparent); }
body.page-home .ewh-marquee::after { right: 0; background: linear-gradient(270deg, var(--h-bg), transparent); }
body.page-home .ewh-track {
    display: flex; gap: 20px; width: max-content;
}
body.page-home .ewh-track.r1 { animation: ewhScrollL 40s linear infinite; }
body.page-home .ewh-track.r2 { animation: ewhScrollR 48s linear infinite; margin-top: 20px; }
body.page-home .ewh-marquee:hover .ewh-track { animation-play-state: paused; }
@keyframes ewhScrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ewhScrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
body.page-home .ewh-tile {
    width: 88px; height: 88px; border-radius: 14px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 4px 16px rgba(107,60,236,0.05);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 13px; color: var(--h-muted);
    flex-shrink: 0;
    transition: transform .2s var(--h-ease), color .2s var(--h-ease), box-shadow .2s var(--h-ease);
}
body.page-home .ewh-tile:hover { transform: scale(1.06); color: var(--h-primary); box-shadow: 0 8px 24px rgba(107,60,236,0.12); }

/* ---------- CTA banner ---------- */
body.page-home .ewh-cta-band {
    max-width: var(--h-max); margin: 0 auto;
    border-radius: 24px;
    padding: 80px;
    background: linear-gradient(135deg, #6C3CEC 0%, #8B4DEE 50%, #A362F0 100%);
    position: relative; overflow: hidden;
}
body.page-home .ewh-cta-band::before {
    content: ""; position: absolute; top: -80px; right: -60px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,157,0.5), transparent 70%);
    filter: blur(20px);
    animation: ewhBlobDrift 14s infinite ease-in-out;
}
body.page-home .ewh-cta-band h2 { color: #fff; font-size: 40px; line-height: 48px; max-width: 18ch; margin: 0 0 16px; position: relative; }
body.page-home .ewh-cta-band p { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 46ch; margin: 0 0 32px; position: relative; }
body.page-home .ewh-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
body.page-home .ewh-footer {
    background: #1A1538;
    padding: 80px 0 40px;
    color: rgba(255,255,255,0.72);
}
body.page-home .ewh-footer-grid {
    max-width: var(--h-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
body.page-home .ewh-footer-brand .ewh-brand-text { color: #fff; }
body.page-home .ewh-footer-mission { font-size: 15px; color: rgba(255,255,255,0.6); margin: 16px 0 20px; max-width: 34ch; }
body.page-home .ewh-social { display: flex; gap: 10px; margin-bottom: 20px; }
body.page-home .ewh-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--h-ease), color .2s var(--h-ease);
}
body.page-home .ewh-social a:hover { background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2)); color: #fff; }
body.page-home .ewh-subscribe { display: flex; gap: 8px; max-width: 320px; }
body.page-home .ewh-subscribe input {
    flex: 1; background: rgba(255,255,255,0.06); border: none; border-radius: 10px;
    padding: 0 14px; height: 42px; color: #fff; font-size: 14px; font-family: 'Inter';
}
body.page-home .ewh-subscribe input::placeholder { color: rgba(255,255,255,0.4); }
body.page-home .ewh-subscribe button {
    height: 42px; padding: 0 18px; border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2));
    color: #fff; font-weight: 600; font-size: 14px; font-family: 'Inter';
}
body.page-home .ewh-footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 18px; }
body.page-home .ewh-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
body.page-home .ewh-footer-col a {
    font-size: 15px; color: rgba(255,255,255,0.72); text-decoration: none;
    transition: color .16s var(--h-ease), transform .16s var(--h-ease); display: inline-block;
}
body.page-home .ewh-footer-col a:hover { color: #fff; transform: translateX(3px); }
body.page-home .ewh-footer-bottom {
    max-width: var(--h-max); margin: 48px auto 0; padding: 24px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 14px; color: rgba(255,255,255,0.55);
}
body.page-home .ewh-status-pill { display: inline-flex; align-items: center; gap: 8px; }
body.page-home .ewh-status-pill .live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: ewhPulse 2.4s infinite ease-in-out; }
body.page-home .ewh-footer-legal { display: flex; gap: 20px; }
body.page-home .ewh-footer-legal a { color: rgba(255,255,255,0.55); text-decoration: none; }
body.page-home .ewh-footer-legal a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
body.page-home .ewh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--h-ease), transform .6s var(--h-ease); }
body.page-home .ewh-reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    body.page-home .ewh-hero-grid { grid-template-columns: 1fr; }
    body.page-home .ewh-hero-visual { height: 420px; margin-top: 40px; }
    body.page-home .ewh-bento { grid-template-columns: repeat(2, 1fr); }
    body.page-home .ewh-card-span2, body.page-home .ewh-card-tall { grid-column: auto; grid-row: auto; }
    body.page-home .ewh-steps { grid-template-columns: 1fr; }
    body.page-home .ewh-step:not(:last-child) .ewh-step-num::after { display: none; }
    body.page-home .ewh-footer-grid { grid-template-columns: 1fr 1fr; }
    /* Swap desktop nav for the burger + dropdown menu. */
    body.page-home .ewh-nav-links,
    body.page-home .ewh-nav-cta { display: none; }
    body.page-home .ewh-nav-burger { display: inline-flex; }
}
@media (max-width: 640px) {
    body.page-home { font-size: 16px; }
    body.page-home .ewh-hero { padding: 120px 0 72px; }
    body.page-home .ewh-hero h1 { font-size: 40px; line-height: 46px; }
    body.page-home .ewh-h2, body.page-home .ewh-cta-band h2 { font-size: 30px; line-height: 38px; }
    body.page-home .ewh-section { padding: 72px 0; }
    body.page-home .ewh-bento { grid-template-columns: 1fr; }
    body.page-home .ewh-quote-panel, body.page-home .ewh-cta-band { padding: 40px 28px; }
    body.page-home .ewh-product { width: 100%; max-width: 380px; }
    body.page-home .ewh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    body.page-home .ewh-trust-inner { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    body.page-home * { animation: none !important; }
    body.page-home .ewh-reveal { opacity: 1; transform: none; transition: none; }
    body.page-home .ewh-product { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
}

/* ---------- Mobile burger + dropdown (home) ---------- */
body.page-home .ewh-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    border: 1px solid rgba(108,60,236,0.18);
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0 10px;
}
body.page-home .ewh-nav-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--h-ink, #1A1538);
    border-radius: 2px;
    transition: transform .22s ease, opacity .22s ease;
}
body.page-home .ewh-nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.page-home .ewh-nav-burger.active span:nth-child(2) { opacity: 0; }
body.page-home .ewh-nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.page-home .ewh-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 18px;
    background: rgba(250,249,253,0.98);
    backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(108,60,236,0.12);
    box-shadow: 0 12px 30px rgba(107,60,236,0.10);
}
body.page-home .ewh-mobile-menu.open { display: flex; }
body.page-home .ewh-mobile-menu a {
    padding: 13px 12px;
    font-size: 16px; font-weight: 500;
    color: #1A1538; text-decoration: none;
    border-radius: 10px;
}
body.page-home .ewh-mobile-menu a:hover { background: rgba(108,60,236,0.08); color: #6C3CEC; }
body.page-home .ewh-mobile-menu .ewh-mobile-cta {
    margin-top: 6px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #6C3CEC, #A362F0);
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(107,60,236,0.28);
}
body.page-home .ewh-mobile-menu .ewh-mobile-cta:hover { color: #fff; }
