/**
 * EDVICE Premium — ambient blobs, line tabs, portal explorer
 */

/* ——— Ambient section shell ——— */

.edv-ambient-section {
    position: relative;
    isolation: isolate;
    background: var(--edv-cream);
}

.edv-ambient-section > .container,
.edv-ambient-section > .edv-section-inner,
.edv-ambient-section > #awards,
.edv-ambient-section > .edv-portal-explorer {
    position: relative;
    z-index: 1;
}

.edv-ambient-bg {
    position: absolute;
    inset: -35% -20%;
    z-index: 0;
    pointer-events: none;
}

.edv-color-blobs {
    position: absolute;
    inset: 0;
}

.edv-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
    opacity: 0.72;
    transform: translate3d(0, 0, 0);
}

.edv-blob:nth-child(1) {
    width: clamp(220px, 38vw, 420px);
    height: clamp(240px, 42vw, 460px);
    background: radial-gradient(circle, rgba(0, 211, 80, 0.55) 0%, rgba(0, 211, 80, 0) 72%);
}

.edv-blob:nth-child(2) {
    width: clamp(200px, 34vw, 380px);
    height: clamp(220px, 36vw, 400px);
    background: radial-gradient(circle, rgba(90, 0, 255, 0.42) 0%, rgba(90, 0, 255, 0) 70%);
}

.edv-blob:nth-child(3) {
    width: clamp(160px, 28vw, 300px);
    height: clamp(180px, 30vw, 320px);
    background: radial-gradient(circle, rgba(0, 211, 80, 0.35) 0%, rgba(0, 211, 80, 0) 68%);
}

#discover-possibilities .edv-blob:nth-child(1) { top: 6%; left: 58%; }
#discover-possibilities .edv-blob:nth-child(2) { top: 52%; left: -4%; }
#discover-possibilities .edv-blob:nth-child(3) { top: 78%; left: 42%; }

#destinations .edv-blob:nth-child(1) { top: 12%; left: 8%; }
#destinations .edv-blob:nth-child(2) { top: 38%; left: 72%; }
#destinations .edv-blob:nth-child(3) { top: 70%; left: 28%; }

#atlas-portal .edv-blob:nth-child(1) { top: 4%; left: 74%; }
#atlas-portal .edv-blob:nth-child(2) { top: 48%; left: 6%; }
#atlas-portal .edv-blob:nth-child(3) { top: 82%; left: 55%; }

#trust-edvice .edv-blob:nth-child(1) { top: 8%; left: 18%; }
#trust-edvice .edv-blob:nth-child(2) { top: 44%; left: 68%; }
#trust-edvice .edv-blob:nth-child(3) { top: 76%; left: 36%; }

#faq .edv-blob:nth-child(1) { top: 10%; left: 62%; }
#faq .edv-blob:nth-child(2) { top: 50%; left: 12%; }
#faq .edv-blob:nth-child(3) { top: 84%; left: 48%; }

/* ——— Line tab value props (Your Journey) ——— */

.edv-line-tab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--edv-space-md);
}

@media (min-width: 768px) {
    .edv-line-tab-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.edv-line-tab {
    background: transparent;
    border: 1px solid rgba(14, 9, 35, 0.12);
    border-radius: var(--edv-radius-md);
    padding: var(--edv-space-lg);
    height: 100%;
    transition: border-color 0.2s ease;
}

.edv-line-tab:hover {
    border-color: rgba(90, 0, 255, 0.35);
}

.edv-line-tab__icon {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--edv-indigo);
    margin-bottom: var(--edv-space-md);
}

.edv-line-tab__title {
    font-family: var(--edv-font);
    font-size: var(--edv-text-lg);
    font-weight: 700;
    margin-bottom: var(--edv-space-xs);
    color: var(--edv-dark);
}

.edv-line-tab__text {
    font-family: var(--edv-font);
    font-size: var(--edv-text-sm);
    font-weight: 400;
    line-height: 1.55;
    color: var(--edv-muted);
    margin: 0;
}

/* ——— Portal explorer ——— */

.edv-portal-explorer {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: var(--edv-space-lg);
    padding-bottom: var(--edv-space-xl);
}

.edv-portal-explorer__intro {
    position: static;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    text-align: center;
    margin-bottom: var(--edv-space-xl);
    padding: 0;
    z-index: auto;
}

.edv-portal-explorer__intro .edv-section__lead {
    margin-left: auto;
    margin-right: auto;
}

.edv-eyebrow--glow {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(90, 0, 255, 0.08);
    border: 1px solid rgba(90, 0, 255, 0.2);
}

.edv-portal-stat-rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: var(--edv-space-md);
    font-family: var(--edv-font);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--edv-muted);
}

.edv-portal-stat-rail span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.edv-portal-stat-rail span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--edv-green);
}

.edv-portal-explorer__layout {
    display: flex;
    flex-direction: column;
    gap: var(--edv-space-lg);
}

.edv-portal-explorer__side {
    display: flex;
    flex-direction: column;
    gap: var(--edv-space-md);
    min-width: 0;
}

.edv-portal-explorer__frame {
    width: 100%;
    max-width: min(92vw, 640px);
    margin: 0 auto;
    min-width: 0;
}

@media (min-width: 992px) {
    .edv-portal-explorer__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--edv-space-xl);
    }

    .edv-portal-explorer__side {
        flex: 0 0 38%;
        max-width: 38%;
    }

    .edv-portal-explorer__frame {
        flex: 1 1 0;
        max-width: none;
        margin: 0;
    }
}

/* Feature tabs / chips */

.edv-portal-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.edv-portal-tabs::-webkit-scrollbar {
    display: none;
}

.edv-portal-tab {
    flex: 0 0 auto;
    font-family: var(--edv-font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--edv-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--edv-dark);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.edv-portal-tab:hover {
    border-color: rgba(90, 0, 255, 0.35);
    background: #fff;
}

.edv-portal-tab[aria-selected="true"] {
    border-color: var(--edv-green);
    background: rgba(0, 211, 80, 0.12);
    color: var(--edv-dark);
}

.edv-portal-tab:focus-visible {
    outline: 2px solid var(--edv-indigo);
    outline-offset: 2px;
}

/* Dynamic copy panel */

.edv-portal-copy__eyebrow {
    font-family: var(--edv-font);
    font-size: var(--edv-text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--edv-indigo);
    margin-bottom: 0.5rem;
}

.edv-portal-copy__title {
    font-family: var(--edv-font);
    font-size: var(--edv-text-2xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--edv-dark);
    margin-bottom: var(--edv-space-sm);
}

.edv-portal-copy__desc {
    font-size: var(--edv-text-base);
    line-height: 1.65;
    color: var(--edv-muted);
    margin-bottom: var(--edv-space-md);
}

.edv-portal-copy.is-fading .edv-portal-copy__title,
.edv-portal-copy.is-fading .edv-portal-copy__desc {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.edv-feature-pill {
    display: inline-block;
    font-family: var(--edv-font);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(90, 0, 255, 0.08);
    border: 1px solid rgba(90, 0, 255, 0.15);
    color: var(--edv-dark);
    margin: 0 0.35rem 0.35rem 0;
}

.edv-portal-tags {
    margin-bottom: var(--edv-space-md);
}

/* Device frame — solid panel, no blur or animation */

.edv-glass-panel {
    border-radius: 16px;
    border: 1px solid rgba(90, 0, 255, 0.2);
    background: #fff;
    box-shadow: 0 12px 32px rgba(14, 9, 35, 0.08);
    overflow: hidden;
}

.edv-glass-panel__inner {
    background: #fff;
}

.edv-glass-panel__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: rgba(14, 9, 35, 0.04);
    border-bottom: 1px solid rgba(14, 9, 35, 0.06);
}

.edv-glass-panel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(14, 9, 35, 0.15);
}

.edv-glass-panel__dot:first-child {
    background: #ff5f57;
}

.edv-glass-panel__dot:nth-child(2) {
    background: #febc2e;
}

.edv-glass-panel__dot:nth-child(3) {
    background: #28c840;
}

.edv-glass-panel__url {
    flex: 1;
    text-align: center;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--edv-muted);
    letter-spacing: 0.02em;
}

.edv-glass-panel__screen {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f4f6f4;
    overflow: hidden;
}

.edv-portal-screenshot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.edv-portal-explorer__footer {
    margin-top: var(--edv-space-xl);
}

.edv-portal-explorer.edv-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.edv-portal-explorer.edv-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .edv-portal-explorer__frame {
        max-width: min(92vw, 420px);
    }

    .edv-portal-copy__title {
        font-size: 1.35rem;
    }
}
