* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    margin: 0;
    padding: 0;
}

/* Premium 100vh Wrapper Fitting Exactly on One Screen */
.ecosystem-container-wrapper {
    height: 100vh;
    max-height: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* Soft white-to-rich-lavender vertical gradient background */
    background: linear-gradient(to bottom, #FFFFFF 0%, #FCF9FF 35%, #F0E2FF 70%, #E1CCFF 85%, #F6EDFF 100%);
}

/* Premium Apple-like Glows - Rich concentrated purple under the devices */
.eco-glow-back {
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(140, 85, 242, 0.12) 0%, rgba(140, 85, 242, 0) 70%);
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
}

.eco-glow-floor {
    position: absolute;
    width: 1000px;
    height: 150px;
    /* Rich purple concentrated glow under the devices */
    background: radial-gradient(ellipse at center, rgba(140, 85, 242, 0.28) 0%, rgba(140, 85, 242, 0) 75%);
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(10px);
    z-index: 1;
    pointer-events: none;
}

.ecosystem-container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 4vh 20px 2vh 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Header */
.eco-header {
    text-align: center;
}

.eco-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8C55F2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.eco-title {
    /* Reduced headline size to be much more harmonious */
    font-size: 2.2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.text-black { color: #111111; }
.text-purple { color: #8C55F2; }

.eco-subtitle {
    font-size: 1.05rem;
    color: #666666;
    font-weight: 400;
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 4vh auto 1.5vh auto;
    position: relative;
}

.tabs-scroll-area {
    flex: 1;
    overflow-x: auto;
    /* Hide scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.tabs-scroll-area::-webkit-scrollbar {
    display: none;
}

.eco-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    width: max-content; /* allows it to be wider than container */
    padding: 0 20px;
}

.tab-scroll-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #C0B6D0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tab-scroll-arrow:hover {
    color: #8C55F2;
    transform: scale(1.1);
}

.eco-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    min-width: 110px;
    transition: all 0.2s ease;
}

.eco-tab span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888888;
}

.tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    mix-blend-mode: multiply; /* Removes any white background seamlessly */
    transition: all 0.2s ease;
}

.eco-tab.active {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(140, 85, 242, 0.05);
    border: 1px solid rgba(140, 85, 242, 0.08);
}

.eco-tab.active span {
    color: #8C55F2;
}

.eco-tab.active .tab-icon {
    opacity: 1;
    filter: none;
}

.tab-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #E2D6F5;
}

/* Showcase Area */
.eco-showcase {
    position: relative;
    width: 100%;
    max-width: 1200px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0; /* allows flex children to shrink properly */
    margin: 1.5vh 0 1vh 0; /* Reduced top margin to let tabs sit very close to the laptop top edge */
}

.device-container {
    width: 100%;
    height: 100%;
    max-height: 520px; /* Constrained height to fit 100vh perfectly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockup {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s ease-in-out;
}

.nav-arrow {
    background: #ffffff;
    border: 1px solid #E5E0F2; /* Soft gray-purple border matching the color scheme */
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(140, 85, 242, 0.03);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: #FAF8FF; /* Slightly lighter grayish-lavender hover state */
    box-shadow: 0 6px 16px rgba(140, 85, 242, 0.06);
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

/* Footer */
.eco-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    color: #8C55F2;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(140, 85, 242, 0.08);
    border: 1px solid rgba(140, 85, 242, 0.12);
    transition: all 0.2s ease;
}

.download-btn:hover {
    box-shadow: 0 6px 20px rgba(140, 85, 242, 0.12);
    transform: translateY(-1px);
}

.dl-arrow {
    font-size: 1.1rem;
    font-weight: 300;
    margin-left: 2px;
}

.dl-subtext {
    font-size: 0.85rem;
    color: #888888;
}

/* Responsive adjustment for laptop heights */
@media (max-height: 800px) {
    .eco-title { font-size: 2.4rem; }
    .device-container { max-height: 440px; }
}
