/* =============================================================================
   HOME 3D — bright, scroll-choreographed home page
   A fixed WebGL particle layer (.h3-canvas) lives behind every section;
   sections are transparent so the 3D shows through, copy sits on white glass.
   ============================================================================= */

.home3d {
    --h3-ink: #0F172A;
    --h3-text: #475569;
    --h3-cyan: #5CE1E6;
    --h3-teal: #0891B2;
    --h3-green: #16A34A;
    --h3-glass: rgba(255, 255, 255, 0.74);
    --h3-line: rgba(15, 23, 42, 0.07);
    position: relative;
    overflow-x: clip;
}

/* Background, canvas, labels and the 3D reveal live in css/site3d.css (site-wide).
   Without 3D the home page still gets its own soft bright backdrop: */
body:not(.s3d-on) .home3d {
    background:
        radial-gradient(ellipse 60% 40% at 78% 8%, rgba(92, 225, 230, 0.18) 0%, transparent 70%),
        linear-gradient(180deg, #F2FEFF 0%, #FFFFFF 30%, #F7FBFF 100%);
}

/* ---------- Sections ---------- */
.home3d section,
.home3d section:nth-child(even) {
    background: transparent !important;
    padding: 0;
}

.h3-sec {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 !important;
}
.h3-block { min-height: auto; padding: 110px 0 !important; }

.h3-row { display: flex; width: 100%; }
.h3-row.h3-left  { justify-content: flex-start; }
.h3-row.h3-right { justify-content: flex-end; }
.h3-copy { width: min(540px, 100%); }

.h3-center { text-align: center; max-width: 860px; }
.h3-gap { display: none; }

/* ---------- Typography ---------- */
.home3d h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--h3-ink);
    margin-bottom: 22px;
}
.home3d h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--h3-ink);
    margin-bottom: 16px;
}
.h3-statement { font-size: clamp(2.2rem, 5vw, 4.2rem) !important; line-height: 1.06 !important; }

.h3-grad {
    background: linear-gradient(120deg, #0891B2 0%, #14B8A6 50%, #16A34A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h3-lead,
.h3-copy p,
.h3-head p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--h3-text);
    margin-bottom: 22px;
}
.h3-hero .h3-lead { font-size: 18.5px; max-width: 520px; margin-bottom: 30px; }
.h3-center .h3-lead { max-width: 640px; margin-left: auto; margin-right: auto; }

.h3-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0E7490;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 40px;
    box-shadow: 0 6px 24px rgba(8, 145, 178, 0.1);
}

.h3-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--h3-teal);
}
.h3-kicker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 11px;
    letter-spacing: 0;
    color: #fff;
    background: linear-gradient(135deg, #0891B2, #16A34A);
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.35);
}

.h3-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.h3-head p { margin-bottom: 0; }

/* ---------- Glass card ---------- */
.h3-glass {
    background: var(--h3-glass);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 24px 70px rgba(15, 23, 42, 0.08),
        0 0 0 1px var(--h3-line);
    border-radius: 26px;
}
.h3-copy.h3-glass { padding: 40px 40px 36px; }

/* ---------- Buttons & links ---------- */
.h3-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.h3-ctas.center { justify-content: center; }
.h3-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15.5px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.h3-btn.sm { padding: 12px 20px; font-size: 14px; border-radius: 12px; }
.h3-btn.primary {
    color: #04141A;
    background: linear-gradient(135deg, #5CE1E6, #3BD0D6);
    box-shadow: 0 12px 32px rgba(59, 208, 214, 0.4);
}
.h3-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(59, 208, 214, 0.5); }
.h3-btn.ghost {
    color: var(--h3-ink);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.h3-btn.ghost:hover { transform: translateY(-3px); border-color: rgba(8, 145, 178, 0.4); }

.h3-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--h3-teal);
    text-decoration: none;
}
.h3-link i { transition: transform 0.25s ease; }
.h3-link:hover i { transform: translateX(4px); }

.h3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }

/* ---------- Hero ---------- */
.h3-hero { padding-top: 140px !important; }
.h3-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.h3-stats div { display: flex; flex-direction: column; }
.h3-stats strong { font-size: 24px; font-weight: 800; color: var(--h3-ink); letter-spacing: -0.02em; }
.h3-stats span { font-size: 13px; color: var(--h3-text); }

.h3-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 26px; height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(15, 23, 42, 0.25);
    border-radius: 20px;
}
.h3-scroll-cue span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--h3-teal);
    animation: h3Wheel 1.8s ease-in-out infinite;
}
@keyframes h3Wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Pills, minis, prices ---------- */
.h3-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.h3-pills a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--h3-ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    transition: all 0.25s ease;
}
.h3-pills a i { color: var(--h3-teal); font-size: 12px; }
.h3-pills a:hover { border-color: var(--h3-cyan); background: rgba(92, 225, 230, 0.12); transform: translateY(-2px); }

.h3-minis { display: grid; gap: 12px; margin-bottom: 18px; }
.h3-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.h3-mini > i {
    flex: none;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, #0891B2, #16A34A);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
}
.h3-mini strong { display: block; font-size: 15.5px; color: var(--h3-ink); }
.h3-mini span { font-size: 13px; color: var(--h3-text); }
.h3-mini:hover { transform: translateX(6px); border-color: rgba(92, 225, 230, 0.7); box-shadow: 0 10px 30px rgba(8, 145, 178, 0.12); }

.h3-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.h3-prices a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    transition: all 0.25s ease;
}
.h3-prices strong { font-size: 22px; font-weight: 800; color: var(--h3-teal); }
.h3-prices span { font-size: 12px; color: var(--h3-text); }
.h3-prices a.hot { border: 2px solid var(--h3-cyan); box-shadow: 0 8px 24px rgba(92, 225, 230, 0.3); }
.h3-prices a:hover { transform: translateY(-3px); }
.h3-note { font-size: 12.5px; color: var(--h3-text); }
.h3-note a { color: var(--h3-teal); font-weight: 700; }

/* ---------- Cards (reuse site cards, glassified) ---------- */
.home3d .service-card,
.home3d .feature-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
}

/* ---------- Videos ---------- */
.h3-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 1100px; margin: 0 auto; }
.h3-video { overflow: hidden; display: flex; flex-direction: column; }
.h3-frame { position: relative; padding-bottom: 56.25%; background: #0F172A; }
.h3-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.h3-video-body { padding: 24px 26px 26px; }
.h3-video-body h3 { font-size: 18px; font-weight: 800; color: var(--h3-ink); margin: 10px 0 8px; }
.h3-video-body p { font-size: 14px; color: var(--h3-text); margin-bottom: 14px; }

.h3-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0E7490;
    background: #CFFAFE;
    border-radius: 20px;
}
.h3-tag.green { color: #15803D; background: #DCFCE7; }

/* ---------- Reviews & trust ---------- */
.h3-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-bottom: 40px; }
.h3-review { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.h3-review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.h3-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; }
.h3-review p { font-size: 14.5px; font-style: italic; color: var(--h3-ink); line-height: 1.65; margin-bottom: 22px; }
.h3-review-who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(15, 23, 42, 0.07); }
.h3-review-who strong { display: block; font-size: 14px; color: var(--h3-ink); }
.h3-review-who small { font-size: 12px; color: var(--h3-text); }
.h3-avatar {
    width: 42px; height: 42px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0891B2, #16A34A);
}

.h3-trust { display: grid; grid-template-columns: repeat(6, 1fr); padding: 30px 20px; text-align: center; }
.h3-trust div { padding: 6px 10px; border-right: 1px solid rgba(15, 23, 42, 0.07); }
.h3-trust div:last-child { border-right: 0; }
.h3-trust strong { display: block; font-size: 26px; font-weight: 800; color: var(--h3-ink); letter-spacing: -0.02em; }
.h3-trust span { font-size: 13px; color: var(--h3-text); }

/* ---------- Final CTA (text sits inside the 3D chat bubble) ---------- */
.h3-final { min-height: 110vh; }
.h3-final .h3-statement { font-size: clamp(3rem, 8vw, 6.4rem) !important; }

/* =============================================================================
   TABLET & MOBILE
   ============================================================================= */
@media (max-width: 991px) {
    .h3-sec { min-height: auto; padding: 90px 0 !important; }
    .h3-hero { min-height: 100svh; padding-top: 110px !important; }
    .h3-noise { min-height: 90svh; }
    .h3-story { padding: 0 0 70px !important; }
    .h3-gap { display: block; height: 56svh; }
    .h3-row.h3-left, .h3-row.h3-right { justify-content: center; }
    .h3-copy { width: 100%; max-width: 620px; }
    .h3-copy.h3-glass { padding: 28px 22px 26px; border-radius: 22px; }
    .h3-trust { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
    .h3-trust div:nth-child(3n) { border-right: 0; }
    .h3-final { min-height: 90svh; }
}

@media (max-width: 600px) {
    .home3d h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
    .h3-hero .h3-copy { text-align: left; }
    .h3-hero .h3-lead { font-size: 16px; }
    .h3-btn { padding: 14px 20px; font-size: 14.5px; }
    .h3-ctas .h3-btn { flex: 1 1 auto; justify-content: center; }
    .h3-stats { gap: 18px 26px; margin-top: 32px; }
    .h3-stats strong { font-size: 20px; }
    .h3-copy p, .h3-head p, .h3-lead { font-size: 15px; }
    .h3-prices strong { font-size: 18px; }
    .h3-trust { grid-template-columns: repeat(2, 1fr); }
    .h3-trust div { border-right: 0; }
    .h3-trust strong { font-size: 22px; }
    .h3-scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .h3-scroll-cue span { animation: none; }
}
