/* =========================================================
   Vin Socialhub — Homepage v2 Enhancements
   Layers on top of home.css — do not delete home.css
   ========================================================= */

/* ---------- Global motion tokens ---------- */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Subtle noise texture overlay (sitewide) ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}
[data-theme="dark"] body::before { opacity: 0.06; }

/* ---------- Typography refinements ---------- */
body { font-feature-settings: "cv02","cv03","cv04","cv11","ss01"; }
h1, h2, h3 { font-feature-settings: "ss01","cv11"; }

.hero-copy h1,
.section-head h2 {
    letter-spacing: -0.04em;
    font-feature-settings: "ss01";
}

/* =========================================================
   HERO v2 — Cursor glow + ticker + refined card
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Cursor-follow radial glow */
.hero-cursor-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.18), rgba(168,85,247,0.08) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    z-index: 0;
    filter: blur(30px);
}
.hero:hover .hero-cursor-glow { opacity: 1; }
[data-theme="dark"] .hero-cursor-glow {
    background: radial-gradient(circle, rgba(139,92,246,0.28), rgba(99,102,241,0.12) 40%, transparent 70%);
}

/* Live activity ticker */
.hero-ticker {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem 0.55rem 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-muted);
    box-shadow: 0 4px 16px -6px rgba(15,23,42,0.08);
    max-width: 100%;
}
.hero-ticker .pulse {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}
.hero-ticker .pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(16,185,129,0.4);
    animation: tickerPulse 2s infinite;
}
@keyframes tickerPulse {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}
.hero-ticker .msg {
    display: inline-block;
    transition: opacity 0.5s, transform 0.5s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
.hero-ticker .msg strong { color: var(--text); font-weight: 700; }
.hero-ticker .msg.swap { opacity: 0; transform: translateY(-6px); }

/* Hero card — refined with animated chart bars */
.hero-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 40px 80px -30px rgba(99,102,241,0.35),
        0 20px 40px -20px rgba(15,23,42,0.12);
}
[data-theme="dark"] .hero-card {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 40px 80px -30px rgba(99,102,241,0.5),
        0 20px 40px -20px rgba(0,0,0,0.5);
}
.hc-bar {
    animation: barGrow 1.4s var(--ease-out-expo) forwards;
    transform-origin: bottom;
    transform: scaleY(0.2);
}
.hc-bar:nth-child(1) { animation-delay: 0.15s; }
.hc-bar:nth-child(2) { animation-delay: 0.25s; }
.hc-bar:nth-child(3) { animation-delay: 0.35s; }
.hc-bar:nth-child(4) { animation-delay: 0.45s; }
.hc-bar:nth-child(5) { animation-delay: 0.55s; }
.hc-bar:nth-child(6) { animation-delay: 0.65s; }
@keyframes barGrow { to { transform: scaleY(1); } }

/* =========================================================
   MARQUEE LOGO STRIP
   ========================================================= */

.logo-strip {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.logo-strip::before,
.logo-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.logo-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--surface), transparent);
}
.logo-strip::after {
    right: 0;
    background: linear-gradient(-90deg, var(--surface), transparent);
}
.logo-marquee {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    align-items: center;
}
.logo-marquee:hover { animation-play-state: paused; }
.logo-marquee .logo-item {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-muted);
    opacity: 0.55;
    white-space: nowrap;
    transition: opacity 0.3s, color 0.3s;
}
.logo-marquee .logo-item:hover { opacity: 1; color: var(--primary); }
.logo-strip .lead-label {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface);
    padding-right: 1rem;
    z-index: 3;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   STATS v2 — Animated counters
   ========================================================= */

.stat-block .num {
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-block .num .suffix {
    font-size: 0.55em;
    font-weight: 700;
    opacity: 0.9;
}

/* =========================================================
   BENTO FEATURE GRID
   ========================================================= */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo),
                border-color 0.4s,
                box-shadow 0.4s;
    display: flex;
    flex-direction: column;
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
                rgba(99,102,241,0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.35);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 24px 48px -20px rgba(99,102,241,0.3);
}
.bento-card:hover::before { opacity: 1; }

.bento-card.span-2 { grid-column: span 2; }

/* Card header icon */
.bento-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease-spring);
}
.bento-card:hover .bento-icon { transform: scale(1.08) rotate(-3deg); }

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}
.bento-card p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Feature visual mini-mockups inside bento cards */
.bento-visual {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Mock "wallet chip" */
.mock-wallet {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mock-wallet .lbl { font-size: 0.7rem; opacity: 0.75; letter-spacing: 0.06em; text-transform: uppercase; }
.mock-wallet .amt { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.mock-wallet .row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.mock-wallet .chip {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    font-weight: 600;
}

/* Mock "delivery" progress */
.mock-delivery {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.mock-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.83rem;
    color: var(--text-muted);
}
.mock-step .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.mock-step.done .dot { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.mock-step.done { color: var(--text); font-weight: 600; }
.mock-step .bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.mock-step .bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    border-radius: 2px;
    transform-origin: left;
    animation: fillBar 2.4s var(--ease-out-expo) infinite;
}
.mock-step:nth-child(2) .bar::after { animation-delay: 0.3s; }
.mock-step:nth-child(3) .bar::after { animation-delay: 0.6s; }
@keyframes fillBar {
    0%   { transform: scaleX(0); }
    60%  { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}

/* Mock "chat" preview */
.mock-chat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mock-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.82rem;
    max-width: 88%;
    line-height: 1.45;
}
.mock-bubble.from-user {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.mock-bubble.from-support {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 6px 14px -6px rgba(99,102,241,0.5);
}

/* =========================================================
   TESTIMONIALS v2
   ========================================================= */

.testimonial-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
}
.testimonial-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(99,102,241,0.25);
}
.testimonial-v2 .quote-mark {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.12;
    font-family: Georgia, serif;
    font-weight: 700;
}
.testimonial-v2 .verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16,185,129,0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    width: fit-content;
}
.testimonial-v2 .verified svg { width: 12px; height: 12px; }

/* =========================================================
   FAQ v2 — 2-column grid
   ========================================================= */

.faq-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out-expo),
                transform 0.9s var(--ease-out-expo);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.span-2 { grid-column: span 2; }
    .faq-grid-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.span-2 { grid-column: span 1; }
    .hero-cursor-glow { display: none; }
    .hero-ticker { font-size: 0.75rem; padding: 0.45rem 0.85rem 0.45rem 0.5rem; }
    .hero-ticker .msg { max-width: 220px; }
}

/* ---------- Accessibility — respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .logo-marquee { animation: none; }
}

/* ============ Members-only gate ============ */
.members-gate {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.members-gate::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    pointer-events: none;
}
.members-gate-icon {
    width: 88px; height: 88px;
    border-radius: 26px;
    background: var(--grad-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 40px -12px rgba(99,102,241,0.55);
    position: relative;
}
.members-gate .kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--grad-soft);
    border-radius: 999px;
}
.members-gate h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.85rem;
}
.members-gate p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}
.members-gate-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.members-gate-perks {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.members-perk { display: inline-flex; align-items: center; gap: 0.5rem; }
.perk-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

/* =========================================================
   Stats Section — Card Layout
   ========================================================= */
.stats-section {
    padding: 5rem 1.5rem 4rem;
    position: relative;
    background: var(--bg);
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 720px; height: 380px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.10), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
}

.stats-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}
.stats-head .kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    padding: 0.3rem 0.85rem;
    background: var(--grad-soft);
    border-radius: 999px;
    margin-bottom: 1rem;
}
.stats-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: var(--text);
}
.stats-head p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.stat-card-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s,
        border-color 0.35s;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 2px 8px -2px rgba(15,23,42,0.04);
}
.stat-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(99,102,241,0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.stat-card-v2:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.35);
    box-shadow:
        0 24px 48px -20px rgba(99,102,241,0.35),
        0 8px 20px -8px rgba(15,23,42,0.08);
}
.stat-card-v2:hover::before { opacity: 1; }

/* Icon bubble */
.stat-icon {
    width: 62px; height: 62px;
    border-radius: 18px;
    background: var(--grad-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.12) inset;
}
.stat-icon svg { width: 28px; height: 28px; }
.stat-card-v2:hover .stat-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow:
        0 0 0 1px rgba(99,102,241,0.25) inset,
        0 12px 24px -10px rgba(99,102,241,0.45);
}

/* Number */
.stat-number {
    font-size: clamp(2.1rem, 4.2vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
    margin-bottom: 0.6rem;
}
.stat-number .suffix {
    font-size: 0.6em;
    font-weight: 700;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Label */
.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

/* Trend line */
.stat-trend {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* =========================================================
   Responsive — keep 3-in-a-row at every breakpoint
   ========================================================= */

/* Tablet: slightly tighter */
@media (max-width: 900px) {
    .stats-section { padding: 3rem 1rem 2.5rem; }
    .stats-head { margin-bottom: 1.75rem; }
    .stats-head h2 { font-size: 1.6rem; }
    .stats-head p { font-size: 0.9rem; }

    .stats-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem !important;
    }
    .stat-card-v2 {
        padding: 1.25rem 0.75rem;
        border-radius: 16px;
    }
    .stat-icon {
        width: 46px; height: 46px;
        border-radius: 13px;
        margin-bottom: 0.75rem;
    }
    .stat-icon svg { width: 22px; height: 22px; }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: 0.82rem; }
    .stat-trend { font-size: 0.68rem; }
}

/* Small phones: still 3-in-a-row, more compact */
@media (max-width: 560px) {
    .stats-section { padding: 2.5rem 0.75rem 2rem; }
    .stats-head { margin-bottom: 1.5rem; }
    .stats-head .kicker { font-size: 0.68rem; padding: 0.25rem 0.7rem; }
    .stats-head h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
    .stats-head p { font-size: 0.82rem; }

    .stats-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    .stat-card-v2 {
        padding: 1rem 0.5rem;
        border-radius: 14px;
    }
    .stat-icon {
        width: 38px; height: 38px;
        border-radius: 11px;
        margin-bottom: 0.6rem;
    }
    .stat-icon svg { width: 18px; height: 18px; }
    .stat-number {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }
    .stat-number .suffix { font-size: 0.55em; }
    .stat-label {
        font-size: 0.72rem;
        line-height: 1.2;
        margin-bottom: 0.15rem;
    }
    .stat-trend {
        font-size: 0.62rem;
        line-height: 1.2;
    }
}

/* Very small phones (320–360px): tightest */
@media (max-width: 400px) {
    .stats-section { padding: 2rem 0.5rem 1.75rem; }
    .stats-cards { gap: 0.3rem !important; }
    .stat-card-v2 {
        padding: 0.85rem 0.35rem;
        border-radius: 12px;
    }
    .stat-icon {
        width: 34px; height: 34px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    .stat-icon svg { width: 16px; height: 16px; }
    .stat-number { font-size: 1.15rem; }
    .stat-number .suffix { font-size: 0.5em; }
    .stat-label { font-size: 0.66rem; }
    .stat-trend { font-size: 0.58rem; }
}

/* Dark mode tweaks */
[data-theme="dark"] .stat-card-v2::before {
    background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.12), transparent 55%);
}
[data-theme="dark"] .stat-icon {
    box-shadow: 0 0 0 1px rgba(139,92,246,0.2) inset;
}

/* =========================================================
   Services Section — "What We Offer"
   ========================================================= */
.services-section {
    padding: 5rem 1.5rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}
.services-section::before {
    content: '';
    position: absolute;
    top: -160px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 420px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.10), transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}

.services-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---------- Head ---------- */
.services-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.25rem;
}
.services-head .kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    padding: 0.3rem 0.85rem;
    background: var(--grad-soft);
    border-radius: 999px;
    margin-bottom: 1rem;
}
.services-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: var(--text);
}
.services-head p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ---------- Card ---------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s,
        border-color 0.4s;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(99,102,241,0.10), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 3;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.4);
    box-shadow:
        0 24px 48px -20px rgba(99,102,241,0.35),
        0 8px 20px -8px rgba(15,23,42,0.08);
}
.service-card:hover::before { opacity: 1; }

/* Index badge (top-left of card, above media) */
.service-index {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 4;
}

/* ---------- Media ---------- */
.service-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #1e293b;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 1;
}

/* Gradient fallbacks */
.service-media.g-instagram { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%); }
.service-media.g-facebook  { background: linear-gradient(135deg, #1877f2 0%, #0d4d9e 100%); }
.service-media.g-tiktok    { background: linear-gradient(135deg, #0a0a0a 0%, #1e293b 60%, #25f4ee 200%); }
.service-media.g-x         { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.service-media.g-green     { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.service-media.g-orange    { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.service-media.g-emerald   { background: linear-gradient(135deg, #059669 0%, #065f46 100%); }
.service-media.g-amber     { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }

/* Uploaded image */
.service-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-media img {
    transform: scale(1.08);
}

.service-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Oversized icon watermark (gradient mode) */
.service-bg-icon {
    position: absolute;
    top: -25%;
    right: -20%;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s;
    z-index: 0;
}
.service-bg-icon svg {
    width: 100% !important;
    height: 100% !important;
}
.service-card:hover .service-bg-icon {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(255, 255, 255, 0.22);
}

/* Grain texture */
.service-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Count pill (top-right of media) */
.service-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.02em;
    z-index: 4;
}

/* Frosted-glass icon badge (bottom-left) */
.service-icon-badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.35);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
    z-index: 4;
}
.service-icon-badge svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
}
.service-card:hover .service-icon-badge {
    transform: scale(1.1) rotate(-6deg);
    background: rgba(255, 255, 255, 0.28);
}

/* ---------- Body ---------- */
.service-body {
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}
.service-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.2s;
}
.service-card:hover .service-body h3 {
    color: var(--primary);
}
.service-body p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tag pills */
.service-tags {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.service-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary);
    background: var(--grad-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
}

/* CTA link */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: flex-start;
}
.service-card:hover .service-cta { gap: 0.6rem; }
.service-cta svg { transition: transform 0.25s; }
.service-card:hover .service-cta svg { transform: translateX(2px); }

/* =========================================================
   Services CTA band
   ========================================================= */
.services-cta {
    margin-top: 3.5rem;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top left, rgba(139,92,246,0.55), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(236,72,153,0.45), transparent 55%),
        linear-gradient(135deg, #0f172a, #1e1b4b 50%, #4c1d95);
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    box-shadow:
        0 40px 80px -30px rgba(99,102,241,0.4),
        0 20px 40px -20px rgba(15,23,42,0.4);
}
.services-cta-orb,
.services-cta-orb-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.services-cta-orb {
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
}
.services-cta-orb-2 {
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168,85,247,0.35), transparent 70%);
    filter: blur(20px);
}

.services-cta-inner {
    position: relative;
    z-index: 1;
}
.services-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem;
}
.services-cta p {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}
.services-cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.services-cta-primary,
.services-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-size: 0.98rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.services-cta-primary {
    background: #fff;
    color: #4c1d95;
    box-shadow: 0 12px 28px -10px rgba(255,255,255,0.4);
}
.services-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(255,255,255,0.5);
}
.services-cta-primary svg { transition: transform 0.25s; }
.services-cta-primary:hover svg { transform: translateX(3px); }
.services-cta-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
}
.services-cta-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .services-section { padding: 3.5rem 1.25rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .services-head { margin-bottom: 2.25rem; }
    .service-body { padding: 1rem; }
    .service-body h3 { font-size: 0.94rem; }
    .service-body p { font-size: 0.8rem; margin-bottom: 0.75rem; }
    .service-icon-badge { width: 36px; height: 36px; border-radius: 11px; }
    .service-icon-badge svg { width: 16px !important; height: 16px !important; }
    .service-count { font-size: 0.62rem; padding: 0.15rem 0.45rem; }
    .service-index { font-size: 0.62rem; padding: 0.15rem 0.4rem; }
    .services-cta { padding: 2.5rem 1.5rem; border-radius: 22px; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-media { aspect-ratio: 16 / 9; }
    .services-cta-actions { flex-direction: column; }
    .services-cta-primary,
    .services-cta-secondary { width: 100%; justify-content: center; }
}

/* Dark mode */
[data-theme="dark"] .service-media.g-tiktok {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f172a 60%, #25f4ee 200%);
}

/* =========================================================
   HERO SHOWCASE (image with overlays)
   ========================================================= */

.hero-visual {
    position: relative;
    perspective: 1400px;
    max-width: 620px;
    margin-left: auto;
}

.hero-showcase {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    box-shadow:
        0 50px 100px -40px rgba(99,102,241,0.45),
        0 30px 60px -30px rgba(15,23,42,0.4),
        0 1px 0 rgba(255,255,255,0.5) inset;
    transform: rotateY(-4deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s;
    isolation: isolate;
}
.hero-visual:hover .hero-showcase {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow:
        0 60px 120px -40px rgba(99,102,241,0.55),
        0 40px 80px -30px rgba(15,23,42,0.5),
        0 1px 0 rgba(255,255,255,0.5) inset;
}

/* ---------- Image ---------- */
.hero-showcase-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: heroZoom 16s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* ---------- Fallback (gradient + logo) ---------- */
.hero-showcase-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #7e22ce 100%);
    overflow: hidden;
}
.hero-showcase-fallback-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}
.hero-showcase-fallback-orb-1 {
    top: -80px; left: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    animation: heroOrbFloat 12s ease-in-out infinite;
}
.hero-showcase-fallback-orb-2 {
    bottom: -100px; right: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    animation: heroOrbFloat 14s ease-in-out -6s infinite;
}
@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0,0); }
    50%      { transform: translate(20px,-15px); }
}
.hero-showcase-fallback-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    mix-blend-mode: screen;
}
.hero-showcase.use-fallback .hero-showcase-fallback-logo { opacity: 0.6; }

/* ---------- Bottom overlay ---------- */
.hero-showcase-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(15,23,42,0.05) 0%, transparent 25%, rgba(15,23,42,0.15) 55%, rgba(15,23,42,0.75) 100%),
        linear-gradient(180deg, rgba(76,29,149,0.15) 0%, transparent 40%, rgba(76,29,149,0.35) 100%);
    pointer-events: none;
}

/* ---------- Light sweep shimmer ---------- */
.hero-showcase-shimmer {
    position: absolute;
    inset: -50% -50%;
    z-index: 3;
    background: linear-gradient(115deg,
        transparent 40%,
        rgba(255,255,255,0.10) 48%,
        rgba(255,255,255,0.28) 50%,
        rgba(255,255,255,0.10) 52%,
        transparent 60%);
    transform: translateX(-100%);
    animation: heroSweep 3.4s cubic-bezier(0.4, 0, 0.6, 1) 0.6s 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}
@keyframes heroSweep {
    0%   { transform: translateX(-100%) rotate(6deg); }
    100% { transform: translateX(120%) rotate(6deg); }
}

/* ---------- Floating glass badges ---------- */
.hero-badge {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    box-shadow: 0 10px 24px -8px rgba(15,23,42,0.35);
    animation: badgeFloat 5s ease-in-out infinite;
    white-space: nowrap;
}
.hero-badge-tl { top: 1.25rem; left: 1.25rem; }
.hero-badge-tr { top: 1.25rem; right: 1.25rem; animation-delay: -2.5s; }

.hero-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    flex-shrink: 0;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

[data-theme="dark"] .hero-badge {
    background: rgba(30, 41, 59, 0.85);
    color: #f1f5f9;
    border-color: rgba(255,255,255,0.15);
}

/* ---------- Caption ---------- */
.hero-showcase-caption {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 4;
    color: #fff;
}
.hero-showcase-tagline {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0 0 0.85rem;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.5);
}
.hero-showcase-author {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.hero-showcase-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.hero-showcase-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.hero-showcase-author-info strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hero-showcase-author-info span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* ---------- Bottom-right metric ---------- */
.hero-showcase-metric {
    position: absolute;
    right: 1.5rem;
    bottom: 1.75rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
    text-align: right;
}
.hero-showcase-metric-num {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-showcase-metric-lbl {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* ---------- Mobile chips ---------- */
.hero-chips {
    display: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 4px 12px -6px rgba(15,23,42,0.1);
}
.hero-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--grad-soft);
    color: var(--primary);
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-visual { max-width: 100%; margin: 0 auto; }
    .hero-showcase { transform: none; }
}
@media (max-width: 900px) {
    .hero-badge { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
    .hero-badge-tl, .hero-badge-tr { top: 0.85rem; }
    .hero-badge-tl { left: 0.85rem; }
    .hero-badge-tr { right: 0.85rem; }
    .hero-showcase-caption { left: 1rem; right: 1rem; bottom: 1rem; }
    .hero-showcase-tagline { font-size: 1rem; margin-bottom: 0.6rem; }
    .hero-showcase-metric { right: 1rem; bottom: 1.25rem; }
    .hero-showcase-metric-num { font-size: 0.95rem; }
    .hero-showcase-metric-lbl { font-size: 0.65rem; }
}
@media (max-width: 640px) {
    .hero-showcase { border-radius: 20px; }
    .hero-badge { display: none; }
    .hero-showcase-metric { display: none; }
    .hero-chips { display: flex; justify-content: center; }
    .hero-showcase-author-info span { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-showcase-image,
    .hero-showcase-fallback-orb-1,
    .hero-showcase-fallback-orb-2,
    .hero-badge { animation: none; }
    .hero-showcase-shimmer { display: none; }
    .hero-showcase { transform: none; }
}

/* Small polish: brighter gradient overlay so the V and icons stay visible */
.hero-showcase-overlay {
    background:
        linear-gradient(180deg, rgba(15,23,42,0.0) 0%, transparent 40%, rgba(15,23,42,0.15) 65%, rgba(15,23,42,0.75) 100%),
        linear-gradient(180deg, rgba(76,29,149,0.10) 0%, transparent 40%, rgba(76,29,149,0.30) 100%) !important;
}

/* Make the SVG render crisp */
.hero-showcase-image {
    image-rendering: -webkit-optimize-contrast;
}

/* Slightly stronger saturation on the showcase gradient */
.hero-showcase {
    background: linear-gradient(135deg, #0f0a2e, #3b0764) !important;
}

/* =========================================================
   How it works — always 2 columns on mobile (2x2 grid)
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
    .how-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    .step-card {
        padding: 1.25rem 1rem;
        text-align: left;
    }
    .step-num {
        width: 44px; height: 44px;
        font-size: 1.05rem;
        margin: 0 0 0.85rem 0;
    }
    .step-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }
    .step-card p {
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

/* Phones — still 2×2, more compact */
@media (max-width: 560px) {
    .how-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    .step-card {
        padding: 1rem 0.75rem;
        border-radius: 14px;
    }
    .step-num {
        width: 38px; height: 38px;
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }
    .step-card h3 {
        font-size: 0.85rem;
        line-height: 1.25;
        margin-bottom: 0.3rem;
    }
    .step-card p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* Very small phones (320–360px) — still 2×2, tightest */
@media (max-width: 400px) {
    .how-grid {
        gap: 0.5rem !important;
    }
    .step-card {
        padding: 0.85rem 0.6rem;
        border-radius: 12px;
    }
    .step-num {
        width: 32px; height: 32px;
        font-size: 0.85rem;
        margin-bottom: 0.55rem;
    }
    .step-card h3 {
        font-size: 0.78rem;
    }
    .step-card p {
        font-size: 0.68rem;
        line-height: 1.4;
    }
}

/* Kill the dashed connector on mobile — it doesn't make sense in a 2×2 */
@media (max-width: 900px) {
    .how-grid::before { display: none !important; }
}

/* =========================================================
   Services — 2 columns on mobile + stronger icons
   ========================================================= */

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Phone: enforce 2 columns (was collapsing to 1) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }
    .service-card { border-radius: 16px; }
    .service-body { padding: 1rem 0.9rem 1.1rem; }
    .service-body h3 { font-size: 0.9rem; }
    .service-body p { font-size: 0.78rem; margin-bottom: 0.75rem; }

    /* Bigger, brighter icon badge */
    .service-icon-badge {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 6px 16px -4px rgba(0,0,0,0.45) !important;
    }
    .service-icon-badge svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Bigger background watermark icon */
    .service-bg-icon {
        color: rgba(255, 255, 255, 0.28) !important;
    }
    .service-card:hover .service-bg-icon {
        color: rgba(255, 255, 255, 0.38) !important;
    }
}

/* Smaller phones: tighten further but stay 2 columns */
@media (max-width: 560px) {
    .services-section { padding: 3rem 1rem; }
    .services-head { margin-bottom: 1.75rem; }
    .services-head h2 { font-size: 1.35rem; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .service-media { aspect-ratio: 4 / 3; }
    .service-body { padding: 0.85rem 0.75rem 1rem; }
    .service-body h3 { font-size: 0.82rem; line-height: 1.25; }
    .service-body p { font-size: 0.72rem; line-height: 1.45; margin-bottom: 0.6rem; }

    /* Hide tags on phones to save space */
    .service-tags { display: none; }

    .service-cta { font-size: 0.75rem; }

    /* Bigger icon relative to smaller card */
    .service-icon-badge {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        left: 0.6rem !important;
        bottom: 0.6rem !important;
    }
    .service-icon-badge svg {
        width: 18px !important;
        height: 18px !important;
    }

    .service-count {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.4rem !important;
        top: 0.55rem !important;
        right: 0.55rem !important;
    }
    .service-index {
        font-size: 0.58rem !important;
        padding: 0.12rem 0.35rem !important;
        top: 0.55rem !important;
        left: 0.55rem !important;
    }

    /* Brighter watermark for small cards */
    .service-bg-icon {
        color: rgba(255, 255, 255, 0.32) !important;
    }
}

/* Tiny phones: still 2 columns, tightest */
@media (max-width: 400px) {
    .services-section { padding: 2.5rem 0.75rem; }
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .service-media { aspect-ratio: 5 / 4; }
    .service-body { padding: 0.7rem 0.6rem 0.85rem; }
    .service-body h3 { font-size: 0.76rem; }
    .service-body p { display: none; }
    .service-icon-badge {
        width: 32px !important;
        height: 32px !important;
        left: 0.5rem !important;
        bottom: 0.5rem !important;
    }
    .service-icon-badge svg { width: 16px !important; height: 16px !important; }
    .service-cta { font-size: 0.7rem; }
}

/* =========================================================
   Services — Centered, fully-visible watermark icon
   ========================================================= */

.service-bg-icon {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.35) !important;
    pointer-events: none !important;
    transform: none !important;
    z-index: 0 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s !important;
}

/* Fixed, moderate size — fits nicely in all card widths */
.service-bg-icon svg {
    width: 68px !important;
    height: 68px !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25)) !important;
}

/* Gentle hover effect — stays centered */
.service-card:hover .service-bg-icon {
    transform: scale(1.12) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Larger cards (desktop 4-col): slightly bigger icon */
@media (min-width: 1025px) {
    .service-bg-icon svg {
        width: 76px !important;
        height: 76px !important;
    }
}

/* Tablet / 3-col: compact */
@media (max-width: 1024px) {
    .service-bg-icon svg {
        width: 62px !important;
        height: 62px !important;
    }
}

/* Phones (2-col): smaller so it doesn't dominate the tiny card */
@media (max-width: 900px) {
    .service-bg-icon svg {
        width: 52px !important;
        height: 52px !important;
    }
    .service-bg-icon {
        color: rgba(255, 255, 255, 0.38) !important;
    }
}

/* Small phones: smallest size */
@media (max-width: 560px) {
    .service-bg-icon svg {
        width: 44px !important;
        height: 44px !important;
    }
    .service-bg-icon {
        color: rgba(255, 255, 255, 0.42) !important;
    }
}

/* Tiny phones: minimum viable size */
@media (max-width: 400px) {
    .service-bg-icon svg {
        width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   HERO COPY — Advanced design + animations
   ========================================================= */

/* ---------- Eyebrow badge ---------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.85rem 0.45rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: 0 4px 14px -6px rgba(15,23,42,0.08);
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}
.hero-eyebrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.08), transparent);
    background-size: 200% 100%;
    animation: eyebrowShimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes eyebrowShimmer {
    0%, 100% { background-position: 200% 0; }
    50%      { background-position: -200% 0; }
}
.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    flex-shrink: 0;
}
.hero-eyebrow-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(16,185,129,0.35);
    animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}
.hero-eyebrow-text { color: var(--text-muted); }
.hero-eyebrow-text strong { color: var(--text); font-weight: 700; }
.hero-eyebrow-sep {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
}
.hero-eyebrow-live {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Animated headline ---------- */
.hero-headline {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 1.5rem;
    color: var(--text);
    word-spacing: -0.02em;
}

/* Rotating keyword — bulletproof inline-grid stacking */
/* Rotating keyword — JS driven (see home.js) */
.hero-rotator {
    display: inline-grid;
    vertical-align: baseline;
    position: relative;
    overflow: hidden;
}
.hero-rotator-word {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.5s;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform, opacity;
}

/* Only the active word is visible */
.hero-rotator-word.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Exit animation */
.hero-rotator-word.exit {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}
.hero-rotator-word:nth-child(1) { animation-delay: 0s; }
.hero-rotator-word:nth-child(2) { animation-delay: 3s; }
.hero-rotator-word:nth-child(3) { animation-delay: 6s; }
.hero-rotator-word:nth-child(4) { animation-delay: 9s; }

@keyframes rotateWord {
    0%   { opacity: 0; transform: translateY(105%); }
    2%   { opacity: 1; transform: translateY(0); }
    23%  { opacity: 1; transform: translateY(0); }
    25%  { opacity: 0; transform: translateY(-105%); }
    100% { opacity: 0; transform: translateY(105%); }
}

/* "Instantly" with animated underline */
.hero-headline-instant {
    position: relative;
    display: inline-block;
    color: var(--text);
    white-space: nowrap;
}
.hero-headline-underline {
    position: absolute;
    left: -2%;
    bottom: -0.08em;
    width: 104%;
    height: 0.28em;
    overflow: visible;
    pointer-events: none;
    opacity: 0.9;
}
.hero-headline-underline path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawUnderline 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}
@keyframes drawUnderline {
    to { stroke-dashoffset: 0; }
}

/* Desktop line break */
.hero-br-desktop { display: none; }
@media (min-width: 640px) {
    .hero-br-desktop { display: block; }
}

/* ---------- Subtext ---------- */
.hero-subtext {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 2rem;
}
.hero-subtext strong {
    color: var(--text);
    font-weight: 700;
}

/* ---------- Trust row ---------- */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.hero-avatars {
    display: inline-flex;
    align-items: center;
}
.hero-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 2px solid var(--bg);
    margin-left: -10px;
    box-shadow: 0 4px 10px -4px rgba(15,23,42,0.2);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-avatar:hover { transform: translateY(-3px) scale(1.06); z-index: 2; }
.hero-avatar-more {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--border);
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-trust-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.hero-trust-text strong { color: var(--text); }
.hero-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 0.85rem;
    line-height: 1;
}

/* ---------- Staggered reveal ---------- */
.hero-copy > .hero-eyebrow {
    animation: heroStagger 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.hero-copy > .hero-headline {
    animation: heroStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.hero-copy > .hero-subtext {
    animation: heroStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-copy > .hero-actions {
    animation: heroStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-copy > .hero-meta {
    animation: heroStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-copy > .hero-trust-row {
    animation: heroStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes heroStagger {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-eyebrow { font-size: 0.75rem; padding: 0.4rem 0.7rem 0.4rem 0.55rem; margin-bottom: 1.25rem; }
    .hero-eyebrow-live { display: none; }
    .hero-headline { font-size: clamp(1.85rem, 6vw, 2.5rem); margin-bottom: 1.15rem; }
    .hero-rotator { height: 1.2em; }
    .hero-rotator-word { animation-duration: 12s; }
    .hero-subtext { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-avatars .hero-avatar { width: 32px; height: 32px; font-size: 0.75rem; }
    .hero-trust-row { gap: 0.75rem; margin-top: 1.25rem; }
    .hero-trust-text { font-size: 0.76rem; }
}

@media (max-width: 560px) {
    .hero-headline { font-size: clamp(1.7rem, 7vw, 2.1rem); }
    /* Do NOT change .hero-rotator display or height on mobile —
       the inline-grid stacking must be preserved. */
    .hero-avatar-more { display: none; }
    .hero-trust-text { font-size: 0.72rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow::before,
    .hero-eyebrow-dot::after,
    .hero-rotator-word,
    .hero-headline-underline path,
    .hero-copy > * { animation: none !important; }
    .hero-rotator-word { opacity: 0; }
    .hero-rotator-word:first-child { opacity: 1; transform: none; }
    .hero-headline-underline path { stroke-dashoffset: 0; }
}
/* Desktop: keep "Buy [word] instantly" flow natural */
@media (min-width: 900px) {
    .hero-headline {
        white-space: normal;
        line-height: 1.05;
    }
    .hero-rotator {
        line-height: 1.05;
    }
}

/* =========================================================
   HERO GRID — Mobile-first, splits at 900px
   ========================================================= */

.hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: center !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 2-column at 900px and above */
@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
        gap: 4rem !important;
    }
}

/* =========================================================
   Prevent rotator bleed — using overflow: clip (safer)
   ========================================================= */

.hero-copy {
    min-width: 0;
    overflow: visible;          /* never clip the copy column itself */
}

.hero-headline {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

/* Only the rotator clips its own children */
.hero-rotator {
    overflow: clip;             /* clip, not hidden — no scroll container */
    max-width: 100%;
}

@supports not (overflow: clip) {
    .hero-rotator { overflow: hidden; }
}

/* Grid columns can shrink without escaping their parent */
@media (min-width: 900px) {
    .hero .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
    }
}

/* Never let overflow or fixed heights interfere with the rotator */
.hero-copy,
.hero-headline,
.hero-rotator {
    height: auto !important;
    min-height: 0 !important;
}

/* Actions, meta, trust row — left on desktop, centered on mobile */
.hero-actions,
.hero-meta,
.hero-trust-row {
    justify-content: center !important;
}

@media (min-width: 900px) {
    .hero-actions,
    .hero-meta,
    .hero-trust-row {
        justify-content: flex-start !important;
    }
}

/* Visual column — always on the right on desktop */
.hero-visual {
    position: relative !important;
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
}

@media (min-width: 900px) {
    .hero-visual {
        margin: 0 0 0 auto !important;
    }
}

/* Remove the hard <br> on desktop */
.hero-br-desktop { display: none !important; }

/* Rotator — class-based states (no inline styles) */
.hero-rotator-word.pre-enter {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: none !important;
}

/* =========================================================
   HERO LAYOUT — single source of truth
   ========================================================= */

/* Outer wrapper — full width, centered content */
.hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr;              /* mobile: single column */
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Copy column — mobile centered */
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Visual column — mobile full width, centered */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    min-width: 0;
}

/* ---------- DESKTOP (900px+) — two columns ---------- */
@media (min-width: 900px) {

    .hero .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* 50/50 split */
        gap: 3rem;
    }

    /* Copy column → left aligned */
    .hero-copy {
        align-items: flex-start;
        text-align: left;
        max-width: none;
    }

    /* Visual column → right side of grid */
    .hero-visual {
        max-width: 100%;
        margin: 0;
        justify-self: end;
    }

    /* Actions, meta, trust row → left aligned on desktop */
    .hero-actions,
    .hero-meta,
    .hero-trust-row {
        justify-content: flex-start;
    }
}

/* ---------- Big desktop (1200px+) — more breathing room ---------- */
@media (min-width: 1200px) {
    .hero .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 4rem;
    }
}

/* =========================================================
   Footer — 2 columns on mobile
   ========================================================= */

@media (max-width: 900px) {
    .site-footer { padding: 2.5rem 1rem 1.5rem; }

    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.75rem 1.25rem !important;
    }

    /* Brand block spans full width at the top */
    .footer-brand {
        grid-column: 1 / -1 !important;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }
    .footer-brand p {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .footer-col h4 {
        font-size: 0.75rem;
        margin-bottom: 0.85rem;
    }
    .footer-col a,
    .footer-col .footer-hours {
        font-size: 0.83rem;
        line-height: 1.5;
        word-break: break-word;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 1.25rem;
    }
}

/* Very small phones — keep 2 columns, tighter */
@media (max-width: 400px) {
    .footer-grid {
        gap: 1.5rem 0.75rem !important;
    }
    .footer-col h4 { font-size: 0.72rem; }
    .footer-col a,
    .footer-col .footer-hours { font-size: 0.78rem; }
}

/* =========================================================
   HERO HEADLINE — MOBILE VISIBILITY FIX
   Appended last so it wins over every earlier rule
   ========================================================= */

/* 1. Free the rotator from fixed height and clipping */
.hero-rotator {
    display: inline-grid !important;
    height: auto !important;
    min-height: 1.1em !important;
    max-height: none !important;
    overflow: visible !important;
    vertical-align: bottom !important;
}

/* 2. Keep every word in the same grid cell, allow wrapping */
.hero-rotator-word {
    grid-area: 1 / 1 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    opacity: 0;
    visibility: hidden;
    transform: none !important;      /* drop the translateY — safer on iOS */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.hero-rotator-word.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. Hide the SVG underline (breaks inside background-clip: text on iOS) */
.hero-headline-underline { display: none !important; }

/* 4. Force "instantly" visible — never transparent, never clipped */
.hero-headline-instant {
    display: inline-block !important;
    position: relative !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    background: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
}

/* 5. CSS underline under "instantly" (replaces the SVG) */
.hero-headline-instant::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.12em;
    height: 0.15em;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    pointer-events: none;
}

/* 6. Let the h1 breathe — never clip its children */
.hero-headline {
    overflow: visible !important;
    padding-bottom: 0.25em;
}

/* 7. MOBILE — switch from opacity-toggling to display-toggling (100% reliable) */
@media (max-width: 900px) {
    .hero-headline {
        line-height: 1.15 !important;
    }

    .hero-rotator {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .hero-rotator-word {
        display: none !important;               /* hide all */
        text-align: center !important;
        width: 100% !important;
    }

    .hero-rotator-word.active {
        display: block !important;              /* show only the active one */
    }

    /* "instantly" — own line, guaranteed visible */
    .hero-headline-instant {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 0.2em !important;
    }

    /* Ensure the hero itself has space at the bottom */
    .hero {
        padding-bottom: 2rem !important;
    }
}
/* WhatsApp-green accent for the Web Development card */
.service-card[href*="wa.me"] .service-icon-badge,
.service-card[href*="wa.me"] .service-bg-icon {
    color: #25d366 !important;
}
.service-card[href*="wa.me"]:hover .service-bg-icon {
    color: rgba(37, 211, 102, 0.55) !important;
}
.service-card[href*="wa.me"] .service-cta {
    color: #25d366;
}
.service-card[href*="wa.me"]:hover .service-body h3 {
    color: #25d366;
}
/* =========================================================
   SERVICES — compact mobile cards
   ========================================================= */

@media (max-width: 640px) {
    /* Section padding */
    .services-section { padding: 2.5rem 0.85rem; }
    .services-head { margin-bottom: 1.5rem; }
    .services-head h2 { font-size: 1.25rem; line-height: 1.25; }
    .services-head p  { font-size: 0.82rem; }

    /* Grid — tighter gap */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }

    /* Card */
    .service-card { border-radius: 14px; }

    /* Shorter media area (was 4/3, now 1.6/1) */
    .service-media { aspect-ratio: 16 / 10 !important; }

    /* Index badge — smaller */
    .service-index {
        top: 0.45rem !important;
        left: 0.45rem !important;
        font-size: 0.55rem !important;
        padding: 0.1rem 0.35rem !important;
    }

    /* Count pill — smaller */
    .service-count {
        top: 0.45rem !important;
        right: 0.45rem !important;
        font-size: 0.56rem !important;
        padding: 0.12rem 0.4rem !important;
    }

    /* Icon badge — smaller */
    .service-icon-badge {
        left: 0.5rem !important;
        bottom: 0.5rem !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
    }
    .service-icon-badge svg {
        width: 15px !important;
        height: 15px !important;
    }

    /* Background watermark — smaller */
    .service-bg-icon svg {
        width: 40px !important;
        height: 40px !important;
    }

    /* Body — tighter padding */
    .service-body {
        padding: 0.7rem 0.7rem 0.8rem !important;
    }
    .service-body h3 {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.25rem !important;
    }
    .service-body p {
        font-size: 0.68rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Tags — hide on mobile (too crowded) */
    .service-tags { display: none !important; }

    /* CTA link — smaller */
    .service-cta {
        font-size: 0.7rem !important;
        gap: 0.25rem !important;
    }
    .service-cta svg {
        width: 11px !important;
        height: 11px !important;
    }
}

/* Even smaller phones */
@media (max-width: 400px) {
    .services-grid { gap: 0.5rem !important; }

    .service-media { aspect-ratio: 16 / 10 !important; }

    .service-body {
        padding: 0.6rem 0.55rem 0.7rem !important;
    }
    .service-body h3 {
        font-size: 0.72rem !important;
    }
    .service-body p {
        display: none !important;   /* hide description on tiny screens */
    }

    .service-icon-badge {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }
    .service-icon-badge svg {
        width: 13px !important;
        height: 13px !important;
    }

    .service-cta {
        font-size: 0.66rem !important;
    }
}
/* =========================================================
   SERVICE CARD ICONS — solid white, fully visible
   Overrides the previous watermark style
   ========================================================= */

.service-bg-icon {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* FULLY VISIBLE — solid white, no transparency */
    color: #ffffff !important;
    opacity: 1 !important;

    pointer-events: none !important;
    transform: none !important;
    z-index: 1 !important;      /* above the gradient, below the badge */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-bg-icon svg {
    width: 64px !important;
    height: 64px !important;
    /* Solid white fill — some icons use stroke, some use fill */
    fill: #ffffff !important;
    stroke: #ffffff !important;
    /* Strong drop shadow for depth against gradient */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)) !important;
}

/* Gentle scale on hover — stays solid white */
.service-card:hover .service-bg-icon {
    transform: scale(1.1) !important;
}

/* Remove the "grain" overlay so the icon isn't dimmed */
.service-grain {
    opacity: 0 !important;
}

/* ---------- SIZES PER BREAKPOINT ---------- */

/* Desktop — big */
@media (min-width: 1025px) {
    .service-bg-icon svg { width: 72px !important; height: 72px !important; }
}

/* Tablet */
@media (max-width: 1024px) {
    .service-bg-icon svg { width: 60px !important; height: 60px !important; }
}

/* Phone */
@media (max-width: 900px) {
    .service-bg-icon svg { width: 48px !important; height: 48px !important; }
}

/* Small phone — still readable */
@media (max-width: 560px) {
    .service-bg-icon svg { width: 42px !important; height: 42px !important; }
}

/* Tiny phone */
@media (max-width: 400px) {
    .service-bg-icon svg { width: 36px !important; height: 36px !important; }
}