/* ============================================================
   EternaCloud-style green dark theme — public pages design system
   Scoped under body.theme-eterna so it can never leak elsewhere.
   ============================================================ */

.theme-eterna {
    /* New palette */
    --bg-deep: #0a120d;
    --bg-deep-2: #0d1812;
    --ink: #eaf6ee;
    --ink-dim: rgba(234, 246, 238, 0.65);
    --ink-faint: rgba(234, 246, 238, 0.45);
    --emerald: #10b981;
    --teal: #14b8a6;
    --mint: #6ee7b7;
    --lime: #84cc16;
    --grad-accent: linear-gradient(95deg, #10b981 0%, #14b8a6 45%, #84cc16 100%);
    --grad-cta: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --pill-bg: rgba(255, 255, 255, 0.06);
    --pill-border: rgba(110, 231, 183, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-light-bg: #f4faf6;

    /* Legacy variable names remapped to green so leftover page CSS recolors */
    --forest-green: #10b981;
    --champagne: #6ee7b7;
    --dark-green: #052e1d;
    --light-green: #34d399;
    --cream: #f4faf6;
    --charcoal: #0a120d;
    --premium-navy: #052e1d;
    --premium-royal: #10b981;
    --premium-blue: #14b8a6;
    --premium-sky: #6ee7b7;
    --premium-ice: #f4faf6;
    --premium-ink: #eaf6ee;
}

body.theme-eterna {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-deep);
    color: var(--ink);
    overflow-x: hidden;
}

.theme-eterna h1, .theme-eterna h2, .theme-eterna h3,
.theme-eterna h4, .theme-eterna h5, .theme-eterna h6 {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    font-weight: 700;
}
.theme-eterna p { color: var(--ink-dim); }
.theme-eterna a { color: var(--mint); text-decoration: none; }
.theme-eterna a:hover { color: var(--lime); }
.theme-eterna ::selection { background: rgba(16, 185, 129, 0.4); color: #fff; }

/* ---------- Ambient aurora backdrop ---------- */
.ec-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.ec-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}
.ec-aurora span:nth-child(1) {
    width: 60vw; height: 60vw; top: -25vw; left: 50%; margin-left: -30vw;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.22), transparent 70%);
    animation: ec-drift-a 70s ease-in-out infinite alternate;
}
.ec-aurora span:nth-child(2) {
    width: 45vw; height: 45vw; bottom: -18vw; left: -14vw;
    background: radial-gradient(closest-side, rgba(20, 184, 166, 0.16), transparent 70%);
    animation: ec-drift-b 85s ease-in-out infinite alternate;
}
.ec-aurora span:nth-child(3) {
    width: 42vw; height: 42vw; bottom: -16vw; right: -12vw;
    background: radial-gradient(closest-side, rgba(132, 204, 22, 0.10), transparent 70%);
    animation: ec-drift-c 95s ease-in-out infinite alternate;
}
@keyframes ec-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 5vh) scale(1.15); } }
@keyframes ec-drift-b { from { transform: translate(0, 0); } to { transform: translate(8vw, -6vh) scale(1.1); } }
@keyframes ec-drift-c { from { transform: translate(0, 0); } to { transform: translate(-7vw, -5vh) scale(1.12); } }

/* All real content above the aurora */
.theme-eterna main, .theme-eterna section, .theme-eterna footer, .theme-eterna header {
    position: relative;
    z-index: 1;
}

/* ---------- Floating pill navbar ---------- */
.ec-nav-wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2147483000;
    padding: 1.1rem 1rem 0;
    transition: padding 0.3s ease;
}
.theme-eterna .ec-nav-wrap {
    position: fixed;
    z-index: 2147483000;
}
.ec-nav {
    max-width: 1140px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 14px 44px rgba(2, 16, 9, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.6rem 0.55rem 1.4rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ec-nav-wrap.is-scrolled .ec-nav {
    box-shadow: 0 18px 54px rgba(2, 16, 9, 0.6);
}
.ec-nav .ec-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0c1f15;
    white-space: nowrap;
    min-width: 0;
}
.ec-nav .ec-logo img {
    display: block;
    width: auto;
    height: clamp(30px, 4vw, 42px);
    max-width: min(220px, 42vw);
    object-fit: contain;
    flex: 0 1 auto;
}
.ec-logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ec-nav-links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ec-nav-links > li { position: relative; }
.ec-nav-links a.ec-nav-link {
    color: #25382d;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.25s ease;
}
.ec-nav-links a.ec-nav-link:hover { color: #059669; }
.ec-nav-links a.ec-nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0.25rem;
    height: 2.5px;
    border-radius: 4px;
    background: var(--grad-accent);
    background-size: 200% 100%;
    transition: right 0.35s ease;
    animation: ec-grad-slide 3s linear infinite;
}
.ec-nav-links a.ec-nav-link:hover::after,
.ec-nav-links a.ec-nav-link.active::after { right: 0; }
@keyframes ec-grad-slide { to { background-position: -200% 0; } }

/* dropdown */
.ec-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translate(-50%, -8px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(2, 16, 9, 0.25);
    padding: 0.6rem;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
    z-index: 10;
}
.ec-nav-links li:hover > .ec-dropdown,
.ec-nav-links li.open > .ec-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.ec-dropdown a {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: #25382d;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.ec-dropdown a:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(132, 204, 22, 0.12));
    color: #059669;
    transform: translateX(4px);
}

.ec-nav-right { display: flex; align-items: center; gap: 0.6rem; }
.ec-nav-search {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(12, 31, 21, 0.12);
    background: #fff;
    color: #25382d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ec-nav-search:hover { border-color: var(--emerald); color: var(--emerald); }

.ec-btn-grad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.8rem;
    background: var(--grad-cta);
    background-size: 160% 160%;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.ec-btn-grad:hover {
    transform: translateY(-2px);
    background-position: 100% 100%;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #fff;
}
.ec-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--pill-border);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ec-btn-ghost:hover {
    border-color: var(--mint);
    background: rgba(110, 231, 183, 0.08);
    transform: translateY(-2px);
    color: var(--mint) !important;
}

.ec-nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(12, 31, 21, 0.12);
    background: #fff;
    color: #0c1f15;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    body.ec-nav-open { overflow: hidden; }
    .ec-nav-wrap::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(5, 18, 12, 0.46);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 2147482998;
    }
    body.ec-nav-open .ec-nav-wrap::before {
        opacity: 1;
        visibility: visible;
    }
    .ec-nav-wrap {
        padding: 0.8rem 0.75rem 0;
    }
    .ec-nav {
        padding: 0.55rem 0.55rem 0.55rem 1rem;
        gap: 0.7rem;
        border-radius: 28px;
        position: relative;
        z-index: 2147483002;
    }
    .ec-nav .ec-logo {
        flex: 1 1 auto;
        font-size: clamp(0.95rem, 4vw, 1.08rem);
    }
    .ec-nav .ec-logo img {
        height: 34px;
        max-width: min(180px, 48vw);
        flex: 0 0 auto;
    }
    .ec-nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0;
        right: 0;
        max-height: calc(100dvh - 6.2rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 20px 60px rgba(2, 16, 9, 0.45);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.9rem;
        z-index: 2147483003;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }
    .ec-nav-links *,
    .ec-nav-toggle {
        pointer-events: auto;
    }
    .ec-nav-wrap { position: fixed; }
    .ec-nav-wrap .ec-nav { position: relative; }
    .ec-nav-links.open { display: flex; animation: ec-mobile-nav-in 0.22s ease-out; }
    .ec-nav-links > li { border-bottom: 1px solid rgba(12, 31, 21, 0.07); }
    .ec-nav-links > li:last-child { border-bottom: none; }
    .ec-nav-links a.ec-nav-link {
        justify-content: space-between;
        padding: 1rem 0.9rem;
        width: 100%;
        min-height: 48px;
        border-radius: 14px;
    }
    .ec-nav-links a.ec-nav-link::after { display: none; }
    .ec-nav-links .has-dropdown > a i {
        transition: transform 0.22s ease;
    }
    .ec-nav-links .has-dropdown.open > a i {
        transform: rotate(180deg);
    }
    .ec-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: hidden;
        display: none;
        box-shadow: none;
        background: #f3faf5;
        border: 1px solid rgba(16, 185, 129, 0.1);
        border-radius: 16px;
        margin: 0.1rem 0.35rem 0.85rem;
        padding: 0.35rem;
        min-width: 0;
        width: auto;
    }
    .ec-nav-links li.open > .ec-dropdown {
        display: block;
        visibility: visible;
        transform: none;
    }
    .ec-dropdown a {
        padding: 0.85rem 0.9rem;
        border-radius: 12px;
        min-height: 44px;
    }
    .ec-nav-links .d-lg-none .ec-btn-grad {
        margin-top: 0.9rem !important;
        margin-bottom: 0.1rem;
        min-height: 48px;
    }
    .ec-nav-toggle { display: inline-flex; }
    .ec-nav-search { display: none; }
}

@media (max-width: 420px) {
    .ec-nav-wrap { padding-left: 0.55rem; padding-right: 0.55rem; }
    .ec-nav { padding-left: 0.85rem; }
    .ec-nav .ec-logo img {
        height: 30px;
        max-width: min(150px, 46vw);
    }
    .ec-nav-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }
    .ec-nav-links {
        left: 0;
        right: 0;
        top: calc(100% + 0.55rem);
        max-height: calc(100dvh - 5.8rem);
        border-radius: 20px;
    }
}

@keyframes ec-mobile-nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography & section primitives ---------- */
.ec-section { padding: 6rem 0; position: relative; overflow: hidden; }
.ec-section--tight { padding: 4rem 0; }

.ec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mint);
    backdrop-filter: blur(8px);
}
.ec-eyebrow i { font-size: 0.85rem; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.ec-grad-text {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ec-h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.ec-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.16; letter-spacing: -0.015em; margin-bottom: 1.1rem; }
.ec-lead { font-size: 1.1rem; line-height: 1.8; color: var(--ink-dim); }
.ec-center { text-align: center; }
.ec-center .ec-lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.ec-card-dark {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.ec-card-dark:hover {
    transform: translateY(-6px);
    border-color: rgba(110, 231, 183, 0.3);
    box-shadow: 0 24px 60px rgba(2, 16, 9, 0.5), 0 0 40px rgba(16, 185, 129, 0.08);
}
.ec-card-dark h3, .ec-card-dark h4 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.ec-card-dark p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0; }

.ec-card-light {
    background: var(--card-light-bg);
    border-radius: 24px;
    padding: 2rem;
    color: #11241a;
    box-shadow: 0 18px 50px rgba(4, 24, 14, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.ec-card-light:hover { transform: translateY(-6px); box-shadow: 0 26px 64px rgba(4, 24, 14, 0.26); }
.ec-card-light h3, .ec-card-light h4 { color: #0c1f15; font-size: 1.25rem; margin-bottom: 0.7rem; }
.ec-card-light p { color: rgba(12, 31, 21, 0.7); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0; }
.ec-card-light a { color: #059669; font-weight: 600; }

.ec-icon-tile {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--grad-cta);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35);
    margin-bottom: 1.3rem;
}

/* ---------- Gradient check list ---------- */
.ec-check-list { list-style: none; margin: 0; padding: 0; }
.ec-check-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}
.ec-check {
    flex: 0 0 26px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--grad-cta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    margin-top: 0.15rem;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
.ec-check-list strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.2rem; }
.ec-check-list span.ec-check-desc { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Dark → light transition section ---------- */
.ec-section--light-transition {
    background: linear-gradient(180deg,
        var(--bg-deep) 0%,
        #11241a 18%,
        #2b5c43 38%,
        #9fd8b8 62%,
        #eef9f1 82%,
        #f7fcf8 100%);
    padding: 9rem 0 7rem;
}
/* heading block sits in the still-dark upper part of the gradient — keep it light */
.ec-section--light-transition h2 { color: #ffffff; text-shadow: 0 2px 24px rgba(4, 24, 14, 0.5); }
.ec-section--light-transition .ec-lead { color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 14px rgba(4, 24, 14, 0.5); }

/* ---------- Decorations ---------- */
/* glowing orb */
.ec-orb {
    position: relative;
    width: 110px; height: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(110, 231, 183, 0.55) 18%, rgba(16, 185, 129, 0.25) 45%, rgba(16, 185, 129, 0.06) 70%, transparent 100%);
    box-shadow: 0 0 70px rgba(16, 185, 129, 0.45), 0 0 120px rgba(20, 184, 166, 0.2);
    animation: ec-pulse 6s ease-in-out infinite;
}
.ec-orb--sm { width: 70px; height: 70px; }
@keyframes ec-pulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* floating particles (children spans) */
.ec-particles { position: absolute; inset: 0; pointer-events: none; }
.ec-particles span {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--mint);
    opacity: 0;
    animation: ec-float 9s ease-in-out infinite;
}
.ec-particles span:nth-child(2n) { width: 3px; height: 3px; background: var(--lime); animation-duration: 12s; }
.ec-particles span:nth-child(3n) { background: var(--teal); animation-duration: 10s; }
@keyframes ec-float {
    0% { transform: translateY(20px); opacity: 0; }
    20% { opacity: 0.85; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-90px); opacity: 0; }
}

/* spirograph spin wrappers (SVG inside) */
.ec-spiro { display: inline-block; }
.ec-spiro .spin-slow { transform-origin: center; animation: ec-spin 44s linear infinite; }
.ec-spiro .spin-rev { transform-origin: center; animation: ec-spin 60s linear infinite reverse; }
@keyframes ec-spin { to { transform: rotate(360deg); } }

/* planet horizon (hero bottom arc) */
.ec-horizon {
    position: absolute;
    left: 50%;
    bottom: -142vw;
    transform: translateX(-50%);
    width: 160vw;
    height: 160vw;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 18%, #0e1d14 0%, #0a120d 40%);
    box-shadow:
        0 -10px 60px rgba(52, 211, 153, 0.55),
        0 -2px 18px rgba(110, 231, 183, 0.8),
        inset 0 6px 40px rgba(110, 231, 183, 0.25);
    pointer-events: none;
}
@media (max-width: 768px) {
    .ec-horizon { width: 300vw; height: 300vw; bottom: -276vw; left: 50%; }
}

/* flowing connector line */
.ec-flow-line path {
    stroke-dasharray: 8 10;
    animation: ec-dash 2.6s linear infinite;
}
@keyframes ec-dash { to { stroke-dashoffset: -180; } }

/* ---------- Scroll reveal ---------- */
.theme-eterna .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease var(--reveal-delay, 0ms), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.theme-eterna .reveal--left { transform: translateX(-44px); }
.theme-eterna .reveal--right { transform: translateX(44px); }
.theme-eterna .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Stats band ---------- */
.ec-stat { text-align: center; padding: 1.5rem 1rem; }
.ec-stat .ec-stat-num {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.ec-stat .ec-stat-label { color: var(--ink-dim); font-size: 0.95rem; font-weight: 500; }

/* ---------- Orb timeline ---------- */
.ec-timeline { position: relative; }
.ec-timeline .ec-tl-spine {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.6) 12%, rgba(132, 204, 22, 0.6) 88%, transparent);
}
.ec-tl-row { display: flex; align-items: center; gap: 3rem; margin-bottom: 4.5rem; position: relative; }
.ec-tl-row:last-child { margin-bottom: 0; }
.ec-tl-row .ec-tl-text { flex: 1; }
.ec-tl-row .ec-tl-visual { flex: 1; display: flex; justify-content: center; }
.ec-tl-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--pill-border);
    color: var(--mint);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--pill-bg);
}
@media (max-width: 991px) {
    .ec-timeline .ec-tl-spine { left: 20px; }
    .ec-tl-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-left: 3.2rem; }
    .ec-tl-row .ec-tl-visual { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.ec-footer {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #08100b 100%);
    border-top: 1px solid rgba(110, 231, 183, 0.1);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.ec-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 3.5rem;
}
.ec-footer-logo { display: flex; align-items: center; gap: 0.7rem; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.ec-footer-logo img {
    display: block;
    width: auto;
    height: clamp(38px, 5vw, 56px);
    max-width: min(260px, 70vw);
    object-fit: contain;
}
.ec-footer-slogan {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.08;
    margin: 0 auto 4rem;
    max-width: 1000px;
}
.ec-footer h4 {
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: 0.7rem;
}
.ec-footer h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 3px;
    border-radius: 4px;
    background: var(--grad-accent);
}
.ec-footer ul { list-style: none; margin: 0; padding: 0; }
.ec-footer ul li { margin-bottom: 0.7rem; }
.ec-footer ul a {
    color: var(--ink-dim);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-block;
}
.ec-footer ul a:hover { color: var(--mint); transform: translateX(4px); }
.ec-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--ink-faint);
    position: relative;
    z-index: 2;
}
.ec-footer-legal a { color: var(--ink-faint); margin-right: 1.2rem; }
.ec-footer-legal a:hover { color: var(--mint); }

/* footer flowers */
.ec-flowers {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}
.ec-flowers--left { left: -20px; }
.ec-flowers--right { right: -20px; transform: scaleX(-1); }
.ec-flowers svg { display: block; }
.ec-flowers .bloom {
    transform-origin: bottom center;
    transform: scale(0);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ec-flowers.is-visible .bloom { transform: scale(1); }
.ec-flowers.is-visible .sway { animation: ec-sway 7s ease-in-out infinite alternate; transform-origin: bottom center; }
@keyframes ec-sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.4deg); } }
@media (max-width: 768px) { .ec-flowers { display: none; } }

/* ---------- Hero base ---------- */
.ec-hero {
    padding: 11rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.ec-hero--page { padding: 10rem 0 4.5rem; }

/* light "paper" card for long legal copy */
.ec-paper {
    background: var(--card-light-bg);
    border-radius: 28px;
    padding: clamp(1.6rem, 4vw, 3.5rem);
    color: #1c2e24;
    box-shadow: 0 24px 70px rgba(2, 16, 9, 0.5);
}
.ec-paper h1, .ec-paper h2, .ec-paper h3, .ec-paper h4, .ec-paper h5 { color: #0c1f15; }
.ec-paper p, .ec-paper li, .ec-paper span { color: rgba(12, 31, 21, 0.78); }
.ec-paper a { color: #059669; }

/* form controls on dark glass */
.theme-eterna .ec-input,
.theme-eterna .ec-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--ink);
    padding: 0.9rem 1.1rem;
    width: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.theme-eterna .ec-input::placeholder,
.theme-eterna .ec-form .form-control::placeholder { color: var(--ink-faint); }
.theme-eterna .ec-input:focus,
.theme-eterna .ec-form .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.15);
    color: var(--ink);
}

/* bank card showcase graphic */
.ec-bankcard {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.586;
    border-radius: 22px;
    background:
        radial-gradient(circle at 80% 10%, rgba(132, 204, 22, 0.35), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.4), transparent 55%),
        linear-gradient(135deg, #0c281c 0%, #113023 55%, #0a120d 100%);
    border: 1px solid rgba(110, 231, 183, 0.25);
    box-shadow: 0 30px 70px rgba(2, 16, 9, 0.65), 0 0 50px rgba(16, 185, 129, 0.12);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--ink);
    position: relative;
    overflow: hidden;
}
.ec-bankcard::after {
    content: '';
    position: absolute;
    top: -60%; left: -30%;
    width: 60%; height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: rotate(18deg);
    animation: ec-shine 6s ease-in-out infinite;
}
@keyframes ec-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ec-bankcard .chip {
    width: 44px; height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, #d8f3dc, #84cc16);
    opacity: 0.85;
}
.ec-bankcard .num { font-size: 1.25rem; letter-spacing: 0.18em; font-weight: 600; }

/* animated 3D security shield */
.ec-security3d {
    width: min(100%, 500px);
    aspect-ratio: 1.24;
    perspective: 1100px;
    display: grid;
    place-items: center;
    position: relative;
}
.ec-security3d::before {
    content: '';
    position: absolute;
    inset: 12% 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.36), transparent 72%);
    filter: blur(28px);
    opacity: 0.9;
}
.ec-security3d__scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: ec-security-float 7s ease-in-out infinite;
}
.ec-security3d__grid {
    position: absolute;
    inset: 7% 4%;
    border-radius: 34px;
    background:
        linear-gradient(90deg, rgba(110, 231, 183, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(110, 231, 183, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.12), transparent 58%);
    background-size: 38px 38px, 38px 38px, auto;
    transform: translateZ(-80px) rotateX(62deg);
    opacity: 0.72;
    z-index: 0;
}
.ec-security3d__art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotateX(10deg) rotateY(-13deg) translateZ(36px);
    transform-style: preserve-3d;
    filter: drop-shadow(0 38px 42px rgba(1, 11, 6, 0.58));
}
.ec-security3d__traces path {
    stroke: rgba(110, 231, 183, 0.28);
    stroke-width: 2;
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: ec-security-trace 4.2s ease-in-out infinite;
}
.ec-security3d__traces path:nth-child(2n) { animation-delay: 0.55s; }
.ec-security3d__traces path:nth-child(3n) { animation-delay: 1.1s; }
.ec-security3d__nodes circle {
    fill: var(--emerald);
    filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.85));
    animation: ec-security-node 3s ease-in-out infinite;
}
.ec-security3d__nodes circle:nth-child(2n) { fill: var(--teal); animation-delay: 0.7s; }
.ec-security3d__nodes circle:nth-child(3n) { fill: var(--mint); animation-delay: 1.3s; }
.ec-security3d__halo {
    animation: ec-security-pulse 4.6s ease-in-out infinite;
}
.ec-security3d__shield {
    transform-origin: 260px 210px;
    animation: ec-security-tilt 5.6s ease-in-out infinite;
    filter: drop-shadow(0 24px 22px rgba(2, 16, 9, 0.74)) drop-shadow(0 0 18px rgba(16, 185, 129, 0.3));
}
.ec-security3d__shield-back {
    fill: #07130d;
    opacity: 0.92;
    transform: translate(18px, 18px);
}
.ec-security3d__shield-edge {
    fill: #0f6d4b;
    stroke: rgba(110, 231, 183, 0.26);
    stroke-width: 6;
}
.ec-security3d__shield-face {
    fill: #10b981;
    stroke: rgba(234, 246, 238, 0.16);
    stroke-width: 2;
}
.ec-security3d__shine {
    fill: rgba(234, 246, 238, 0.18);
    mix-blend-mode: screen;
}
.ec-security3d__lock,
.ec-security3d__alert {
    fill: rgba(16, 185, 129, 0.72);
    stroke: rgba(110, 231, 183, 0.72);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 14px 20px rgba(2, 16, 9, 0.55)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.28));
}
.ec-security3d__lock {
    transform-origin: 70px 134px;
    animation: ec-security-badge-left 5.2s ease-in-out infinite;
}
.ec-security3d__alert {
    fill: rgba(20, 184, 166, 0.72);
    transform-origin: 430px 178px;
    animation: ec-security-badge-right 5.8s ease-in-out infinite;
}

/* ---------- Testimonials carousel ---------- */
.ec-testimonials-section {
    background:
        radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.13), transparent 34%),
        radial-gradient(circle at 85% 42%, rgba(20, 184, 166, 0.11), transparent 36%),
        var(--bg-deep);
}
.ec-testimonials {
    position: relative;
}
.ec-testimonials-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3.2rem;
}
.ec-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: var(--ink-dim);
}
.ec-rating-row strong {
    color: var(--ink);
}
.ec-rating-stars,
.ec-card-stars {
    display: inline-flex;
    gap: 0.28rem;
    color: var(--mint);
    text-shadow: 0 0 16px rgba(110, 231, 183, 0.45);
}
.ec-rating-stars i {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--grad-cta);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}
.ec-testimonial-controls {
    display: flex;
    gap: 0.8rem;
    flex: 0 0 auto;
}
.ec-testimonial-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(110, 231, 183, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ec-testimonial-btn:hover {
    transform: translateY(-2px);
    background: rgba(110, 231, 183, 0.12);
    color: #fff;
}
.ec-testimonial-btn--next {
    background: var(--grad-cta);
    color: #fff;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.32);
}
.ec-testimonial-viewport {
    overflow: hidden;
    padding: 0.5rem 0 2rem;
}
.ec-testimonial-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    gap: 1rem;
    transform: translate3d(0, 0, 0);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.ec-testimonial-card {
    min-height: 320px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.14);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(2, 16, 9, 0.42);
    padding: clamp(1.35rem, 2.5vw, 2.3rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(16px) scale(0.96);
    opacity: 0.72;
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.55s ease;
}
.ec-testimonial-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    border-color: rgba(110, 231, 183, 0.32);
}
.ec-card-stars {
    font-size: 1.45rem;
    margin-bottom: 1.6rem;
}
.ec-testimonial-card p {
    color: rgba(234, 246, 238, 0.78);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.ec-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ec-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #062015;
    font-weight: 800;
    background: linear-gradient(135deg, #6ee7b7, #10b981);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
    flex: 0 0 auto;
    overflow: hidden;
    padding: 3px;
}
.ec-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}
.ec-avatar--teal {
    background: linear-gradient(135deg, #99f6e4, #14b8a6);
}
.ec-avatar--lime {
    background: linear-gradient(135deg, #bef264, #34d399);
}
.ec-testimonial-author strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.ec-testimonial-author span {
    color: var(--ink-dim);
    font-size: 0.92rem;
}
.ec-testimonial-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.ec-testimonial-progress span {
    display: block;
    height: 100%;
    width: 33.333%;
    border-radius: inherit;
    background: var(--grad-accent);
    transform: translateX(0);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 991px) {
    .ec-testimonials-head {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 2.2rem;
    }
    .ec-testimonial-controls {
        align-self: flex-start;
    }
    .ec-testimonial-track {
        grid-auto-columns: min(82vw, 430px);
    }
    .ec-testimonial-card {
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .ec-testimonial-track {
        grid-auto-columns: 100%;
    }
    .ec-testimonial-card {
        min-height: 330px;
        border-radius: 22px;
    }
    .ec-testimonial-btn {
        width: 50px;
        height: 50px;
    }
    .ec-rating-row {
        gap: 0.65rem;
    }
}

@keyframes ec-security-float {
    0%, 100% { transform: translateY(0) rotateZ(-0.4deg); }
    50% { transform: translateY(-14px) rotateZ(0.6deg); }
}
@keyframes ec-security-tilt {
    0%, 100% { transform: rotateY(-4deg) rotateX(2deg); }
    50% { transform: rotateY(7deg) rotateX(-3deg); }
}
@keyframes ec-security-trace {
    0%, 15% { stroke-dashoffset: 180; opacity: 0.1; }
    45%, 70% { stroke-dashoffset: 0; opacity: 0.78; }
    100% { stroke-dashoffset: -180; opacity: 0.14; }
}
@keyframes ec-security-node {
    0%, 100% { transform: scale(0.82); opacity: 0.55; }
    50% { transform: scale(1.18); opacity: 1; }
}
@keyframes ec-security-pulse {
    0%, 100% { opacity: 0.54; transform: scale(0.96); }
    50% { opacity: 0.86; transform: scale(1.04); }
}
@keyframes ec-security-badge-left {
    0%, 100% { transform: translateY(0) rotateZ(-2deg); }
    50% { transform: translateY(-10px) rotateZ(4deg); }
}
@keyframes ec-security-badge-right {
    0%, 100% { transform: translateY(0) rotateZ(2deg); }
    50% { transform: translateY(12px) rotateZ(-4deg); }
}

/* ---------- Misc helpers ---------- */
.ec-divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.4), transparent);
    border: none;
    margin: 0;
}
.ec-phone-glow {
    position: relative;
    display: inline-block;
}
.ec-phone-glow::before {
    content: '';
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.3), transparent 75%);
    filter: blur(28px);
    z-index: 0;
}
.ec-phone-glow > * { position: relative; z-index: 1; }

/* keep Google translate widgets from breaking the dark theme too hard */
.theme-eterna .goog-te-gadget { color: var(--ink-faint) !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .theme-eterna *,
    .theme-eterna *::before,
    .theme-eterna *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .theme-eterna .reveal { opacity: 1; transform: none; }
}
