/* ═══════════════════════════════════════════════════════════════
   ENTANGLED TEXT — Public atmosphere (marketing + tools pages)
   Pixel grid, glass surfaces, distinctive CTAs — dashboard unchanged
   ═══════════════════════════════════════════════════════════════ */

.et-public-site {
    position: relative;
    background-color: var(--et-bg-deep);
}

/* ─── Fixed atmosphere stack ─────────────────────────────────── */
.et-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.et-atmosphere-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.et-atmosphere-grid {
    position: absolute;
    inset: -32px;
    background-image:
        radial-gradient(circle at center, rgba(139, 92, 246, 0.22) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(20, 184, 166, 0.08) 1px, transparent 1px);
    background-size: 24px 24px, 48px 48px;
    background-position: 0 0, 12px 12px;
    opacity: 0.35;
    animation: et-pixel-drift 90s linear infinite;
}

.et-atmosphere-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: et-glow-float 18s ease-in-out infinite;
}
.et-atmosphere-glow--violet {
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
}
.et-atmosphere-glow--teal {
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    bottom: -8%;
    right: -6%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, transparent 70%);
    animation-delay: -9s;
}
.et-atmosphere-glow--rose {
    width: min(35vw, 320px);
    height: min(35vw, 320px);
    top: 40%;
    right: 15%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.12) 0%, transparent 70%);
    animation-delay: -4s;
}

.et-atmosphere-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

@keyframes et-pixel-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 24px); }
}

@keyframes et-glow-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(24px, -18px) scale(1.06); opacity: 0.55; }
}

@keyframes et-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Stack page content above atmosphere; navbar stays on top of main */
.et-public-site #main-content,
.et-public-site .et-site-footer {
    position: relative;
    z-index: 0;
}

.et-public-site .skip-link:focus {
    position: relative;
    z-index: 10001;
}

/* Preserve sticky nav stacking (do not flatten to z-index: 1) */
.et-public-site .et-navbar {
    z-index: 1000;
}

.et-public-site .et-navbar .dropdown-menu {
    z-index: 1050;
}

/* ─── Navbar glass ───────────────────────────────────────────── */
.et-public-site .et-navbar {
    background: rgba(12, 12, 15, 0.78);
    border-bottom: 1px solid rgba(139, 92, 246, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.et-public-site .et-navbar .nav-link:hover,
.et-public-site .et-navbar .nav-link.active {
    background: rgba(139, 92, 246, 0.08);
}

/* ─── Buttons (public pages only) ────────────────────────────── */
.et-public-site .btn-et-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 4px 24px rgba(139, 92, 246, 0.38),
        0 0 0 1px rgba(139, 92, 246, 0.2);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.et-public-site .btn-et-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 62%
    );
    transform: translateX(-130%);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.et-public-site .btn-et-primary:hover::before,
.et-public-site .btn-et-primary:focus-visible::before {
    transform: translateX(130%);
}

.et-public-site .btn-et-primary:hover,
.et-public-site .btn-et-primary:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 8px 32px rgba(139, 92, 246, 0.45),
        0 0 0 1px rgba(167, 139, 250, 0.35);
}

.et-public-site .btn-lg.btn-et-primary {
    border-radius: 999px;
    padding: 0.8125rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.et-public-site .btn-et-secondary {
    background: rgba(17, 17, 26, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.et-public-site .btn-et-secondary:hover,
.et-public-site .btn-et-secondary:focus-visible {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
    color: #f3e8ff;
}

.et-public-site a.btn-et-ghost.btn-lg.border-0 {
    position: relative;
    color: var(--et-text-secondary);
    transition: color 0.2s ease;
}

.et-public-site a.btn-et-ghost.btn-lg.border-0::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.2rem;
    width: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--et-gradient-primary);
    transition: width 0.3s ease;
}

.et-public-site a.btn-et-ghost.btn-lg.border-0:hover,
.et-public-site a.btn-et-ghost.btn-lg.border-0:focus-visible {
    color: #fff;
    background: transparent;
}

.et-public-site a.btn-et-ghost.btn-lg.border-0:hover::after,
.et-public-site a.btn-et-ghost.btn-lg.border-0:focus-visible::after {
    width: calc(100% - 1.25rem);
}

/* ─── Hero & headings ────────────────────────────────────────── */
.et-public-site .et-hero::before {
    background:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
}

.et-public-site .et-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 720px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.45),
        rgba(20, 184, 166, 0.35),
        transparent
    );
    pointer-events: none;
}

.et-public-site .hero-title .gradient-text {
    background: linear-gradient(135deg, #ddd6fe 0%, #8b5cf6 35%, #14b8a6 70%, #c4b5fd 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: et-gradient-shift 10s ease infinite;
}

.et-public-site .display-heading {
    text-shadow: 0 0 48px rgba(139, 92, 246, 0.12);
}

.et-public-site .et-badge-primary {
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* ─── Glass cards & feature blocks ───────────────────────────── */
.et-public-site .et-card,
.et-public-site .feature-card,
.et-public-site .et-tool-card {
    background: rgba(18, 18, 24, 0.62);
    backdrop-filter: blur(16px);
    border-color: rgba(139, 92, 246, 0.12);
}

.et-public-site .feature-card:hover,
.et-public-site .et-tool-card:hover,
.et-public-site .et-card-hover-lift:hover {
    border-color: rgba(139, 92, 246, 0.42);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(139, 92, 246, 0.1);
}

.et-public-site .feature-card.feature-card-featured {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(
        180deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(18, 18, 24, 0.62) 48%
    );
}

.et-public-site .glow-pulse {
    box-shadow:
        0 0 36px rgba(139, 92, 246, 0.22),
        0 0 0 1px rgba(139, 92, 246, 0.15);
}

.et-public-site .feature-icon-primary {
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.et-public-site .feature-icon-secondary {
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.12);
}

.et-public-site .feature-icon-tertiary {
    background: rgba(244, 114, 182, 0.1);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.12);
}

/* ─── Section backgrounds ────────────────────────────────────── */
.et-public-site .et-home-highlights-wrap {
    background: linear-gradient(
        180deg,
        rgba(139, 92, 246, 0.05) 0%,
        transparent 45%,
        rgba(20, 184, 166, 0.04) 100%
    );
    border-top-color: rgba(139, 92, 246, 0.12);
    border-bottom-color: rgba(139, 92, 246, 0.12);
}

.et-public-site .et-tools-hero {
    position: relative;
    padding-top: 3.5rem;
}

.et-public-site .et-tools-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(70%, 560px);
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.et-public-site .et-site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(12, 12, 15, 0.95) 24%) !important;
    border-top-color: rgba(139, 92, 246, 0.12) !important;
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .et-atmosphere-grid,
    .et-atmosphere-glow,
    .et-public-site .hero-title .gradient-text {
        animation: none !important;
    }

    .et-atmosphere-canvas {
        display: none;
    }

    .et-public-site .btn-et-primary::before {
        display: none;
    }

    .et-public-site .btn-et-primary:hover,
    .et-public-site .btn-et-primary:focus-visible,
    .et-public-site .btn-et-secondary:hover,
    .et-public-site .btn-et-secondary:focus-visible {
        transform: none;
    }
}
