/* ========================= */
/* SOFTWARE STUDIO           */
/* ========================= */

/* ---------------- Hero background SVG positioning ---------------- */
.hero-bg {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    min-height: 520px;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    transform: translateY(-6%);
}

.hero-bg svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    padding: clamp(4.5rem, 6vw, 5.625rem) 0 clamp(1rem, 1.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    background-image: url("../assets/studio_bg_pic.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

[data-theme="dark"] .hero {
    background-image: none;
    background:
        radial-gradient(80% 60% at 20% 12%, var(--hero-grad-1) 0%, rgba(203, 225, 252, 0) 68%),
        radial-gradient(90% 70% at 78% 10%, var(--hero-grad-2) 0%, rgba(222, 236, 255, 0) 74%),
        radial-gradient(70% 50% at 65% 78%, var(--hero-grad-3) 0%, rgba(214, 228, 250, 0) 72%),
        radial-gradient(50% 40% at -10% 100%, var(--hero-grad-4) 0%, rgba(183, 208, 255, 0) 66%),
        linear-gradient(180deg, var(--hero-grad-base-1) 0%, var(--hero-grad-base-2) 100%);
    background-repeat: no-repeat;
}

.hero-grid {
    z-index: 3;
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: clamp(1.75rem, 3vw, 2.5rem);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1); */
.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.hero-slide {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: clamp(1rem, 1.5vw, 1.5rem) 0 clamp(0.5rem, 0.8vw, 0.75rem);
    position: relative;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dark) 25%, transparent);
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
}

.hero-dot:hover {
    background: color-mix(in srgb, var(--primary) 60%, transparent);
}

.hero-dot.active {
    width: 36px;
    background: var(--primary);
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 4;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 540px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.5rem, 0.8vw, 0.625rem) clamp(1rem, 1.5vw, 1.375rem);
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: clamp(1.25rem, 2vw, 1.875rem);
}

.hero h1 {
    color: var(--heading-accent);
}

.hero p {
    max-width: 620px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 1.2vw, 1.125rem);
    margin-top: clamp(1.75rem, 3vw, 2.8125rem);
}

/* ========================= */
/* PLATFORMS SCROLLING RAIL  */
/* ========================= */
.platform-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1rem, 2vw, 1.875rem) 0;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
}

.platform-rail {
    position: relative;
    z-index: 3;
    margin-top: 0;
    overflow: hidden;
    padding: clamp(0.25rem, 0.4vw, 0.375rem);
    background: transparent;
    border: none;
    box-shadow: none;
}

.platform-rail::before,
.platform-rail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.platform-rail::before {
    left: 0;
}

.platform-rail::after {
    right: 0;
}

.platform-track {
    display: flex;
    width: max-content;
    padding: clamp(0.4rem, 0.6vw, 0.625rem) 0;
    animation: platform-scroll 180s linear 1s infinite;
    will-change: transform;
}

.platform-track-reverse {
    animation-direction: reverse;
}

.platform-group {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 2.25rem);
    padding-right: clamp(1.5rem, 2.5vw, 2.25rem);
    flex-shrink: 0;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 0.875rem);
    padding: clamp(0.5rem, 0.8vw, 0.875rem) clamp(1.5rem, 2.5vw, 2.5rem);
    border-radius: 999px;
    background: transparent;
    color: var(--rail-text);
    font-weight: 800;
    font-size: 32px;
    white-space: nowrap;
}

@keyframes platform-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hero-image-card {
    position: relative;
    width: min(100%, 860px);
    padding: clamp(0.75rem, 1.2vw, 1.125rem);
    border-radius: 32px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
}

.hero-image-card svg,
.hero-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-card .hero-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    padding: clamp(0.5rem, 0.8vw, 0.625rem);
    z-index: 5;
}

.hero-image-card .hero-icon-left {
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-image-card .hero-icon-top {
    right: -8px;
    top: -8px;
}

@media (max-width:900px) {
    .hero-image-card .hero-icon {
        display: none;
    }
}

@media (min-width:1200px) {
    .hero-bg {
        transform: translateY(-12%);
        min-height: 680px;
    }
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width:700px) {
    .hero-bg {
        left: -20%;
        width: 140%;
        transform: translateY(-4%);
        min-height: 360px;
    }

    .hero {
        padding: clamp(3.5rem, 5vw, 5rem) 0 clamp(0.875rem, 1.2vw, 1.25rem);
    }
}