/* ================================
   SECTION STYLES
   ================================ */

/* ================================
   SECTION 1: HERO
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    background: var(--bg-darker);
}

.hero__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-8xl);
    font-weight: var(--weight-extrabold);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.hero__title-line {
    display: block;
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.hero__title-line:nth-child(1) { animation-delay: 0.1s; }
.hero__title-line:nth-child(2) { animation-delay: 0.2s; }
.hero__title-line:nth-child(3) { animation-delay: 0.3s; }

.hero__title-line--gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-2xl);
    color: var(--text-secondary);
    font-weight: var(--weight-light);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.5s;
}

.hero__visual {
    position: relative;
    height: 600px;
    opacity: 0;
    animation: scaleIn 1s ease forwards 0.4s;
}

.hero__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
}

.hero__image[data-state="0"] {
    opacity: 1;
}

.hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.hero__glow--purple {
    background: var(--glow-purple);
    top: -200px;
    right: -200px;
}

.hero__glow--blue {
    background: var(--glow-blue);
    bottom: -200px;
    left: -200px;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s, float 3s ease-in-out infinite 1s;
}

/* ================================
   SECTION 2: PROBLEM
   ================================ */
.problem {
    position: relative;
    min-height: 300vh;
    background: var(--bg-dark);
}

.problem__container {
    position: sticky;
    top: 0;
    height: 100vh;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 40% 60%;
    gap: var(--spacing-lg);
    align-items: center;
}

.problem__content {
    position: relative;
}

.problem__item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.6s var(--ease-smooth);
}

.problem__item.active {
    opacity: 1;
}

.problem__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.problem__text {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
}

.problem__images {
    position: relative;
    height: 600px;
}

.problem__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    filter: grayscale(100%);
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-smooth);
}

.problem__image.active {
    opacity: 1;
    transform: translateX(0);
}

/* ================================
   SECTION 3: SOLUTION
   ================================ */
.solution {
    position: relative;
    min-height: 200vh;
    background: var(--bg-dark);
}

.solution__container {
    position: sticky;
    top: 0;
    height: 100vh;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.solution__device {
    position: relative;
    width: 500px;
    height: 700px;
    margin-bottom: var(--spacing-lg);
}

.solution__device-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.solution__device-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.solution__ui {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
}

.solution__ui.active {
    opacity: 1;
}

.solution__glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    transition: all 0.8s var(--ease-smooth);
}

.solution__labels {
    text-align: center;
    max-width: 600px;
    margin-bottom: var(--spacing-md);
}

.solution__label {
    opacity: 0;
    transition: opacity 0.6s var(--ease-smooth);
}

.solution__label.active {
    opacity: 1;
}

.solution__label h3 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--spacing-xs);
}

.solution__label p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* ================================
   SECTION 4: FRAME SEQUENCE
   ================================ */
.frame-sequence {
    position: relative;
    height: 400vh;
    background: #000;
}

#sequenceCanvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.sequence-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    transition: opacity 0.5s;
}

.sequence-progress.hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-text {
    display: block;
    color: white;
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    margin-bottom: var(--spacing-sm);
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s;
}

.frame-sequence__labels {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.frame-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.4s;
}

.frame-label.active {
    opacity: 1;
}

/* ================================
   SECTION 5: PARTNERS
   ================================ */
.partners {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.partners__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.partners__title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--weight-extrabold);
}

.partners__scroll-container {
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.partners__track {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.partner-card {
    position: relative;
    min-width: 350px;
    height: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 12px 40px var(--glow-purple);
}

.partner-card__bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-purple-blue);
    opacity: 0.05;
    border-radius: var(--radius-xl);
    transition: opacity var(--transition-normal);
}

.partner-card:hover .partner-card__bg {
    opacity: 0.15;
}

.partner-card__logo {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.partner-card__text {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.partners__cta {
    display: flex;
    margin: 0 auto;
}

/* ================================
   SECTION 6: SCENES
   ================================ */
.scenes {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--bg-darker);
}

.scenes__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.scenes__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.scenes__title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--spacing-sm);
}

.scenes__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
}

.scenes__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.scenes__base {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scenes__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
    mix-blend-mode: screen;
}

.scenes__overlay.active {
    opacity: 1;
}

.scenes__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.scene-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
}

.scene-btn:hover,
.scene-btn.active {
    border-color: var(--primary-purple);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.scene-btn__icon {
    font-size: var(--text-3xl);
}

.scene-btn__label {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.scene-btn__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.scenes__cta {
    display: flex;
    margin: 0 auto;
}

/* ================================
   SECTION 7: PROCESS
   ================================ */
.process {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.process__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.process__title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--weight-extrabold);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.process__timeline {
    position: relative;
    padding-left: var(--spacing-md);
}

.process__timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.process__step {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-md);
}

.process__step-marker {
    position: relative;
    left: calc(-1 * var(--spacing-md) - 1px);
}

.process__step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    box-shadow: 0 0 40px var(--glow-purple);
}

.process__step-content {
    padding: var(--spacing-sm) 0;
}

.process__step-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--spacing-xs);
}

.process__step-time {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--primary-purple);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.process__step-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.process__step-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.process__cta {
    display: flex;
    margin: var(--spacing-lg) auto 0;
}

/* ================================
   SECTION 8: TESTIMONIALS
   ================================ */
.testimonials {
    position: relative;
    min-height: 200vh;
    background: var(--bg-darker);
    overflow: hidden;
}

.testimonials__bg {
    position: fixed;
    inset: 0;
    background-image: url('../assets/images/testimonials/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: 0;
}

.testimonials__container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--container-padding);
    z-index: 1;
}

.testimonial-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-smooth);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card__stars {
    font-size: var(--text-2xl);
    color: var(--accent-amber);
    margin-bottom: var(--spacing-sm);
}

.testimonial-card__quote {
    font-size: var(--text-2xl);
    font-weight: var(--weight-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-card__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-purple);
}

.testimonial-card__name {
    font-weight: var(--weight-semibold);
    margin-bottom: 0.25rem;
}

.testimonial-card__project {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ================================
   SECTION 9: CONFIGURATOR
   ================================ */
.configurator {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.configurator__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.configurator__preview {
    position: relative;
}

.configurator__3d {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
}

.configurator__room {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.configurator__form {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.configurator__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--spacing-xs);
}

.configurator__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.configurator__field {
    margin-bottom: var(--spacing-md);
}

.configurator__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.configurator__value {
    color: var(--primary-purple);
}

.configurator__select,
.configurator__slider {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-darker);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

.configurator__select:focus,
.configurator__slider:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.configurator__slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    padding: 0;
    background: linear-gradient(to right, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border-radius: var(--radius-full);
}

.configurator__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.configurator__slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.configurator__range-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--spacing-xs);
}

.configurator__estimate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.configurator__estimate-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}

.configurator__estimate-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
}

.configurator__submit {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.configurator__secondary {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.configurator__secondary:hover {
    color: var(--primary-purple);
}

/* ================================
   SECTION 10: FOOTER
   ================================ */
.footer {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.footer__tagline {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background: var(--primary-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer__heading {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.footer__links,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__links a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--primary-purple);
}

.footer__contact li {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer__certifications {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer__cert {
    width: 80px;
    height: auto;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.footer__cert:hover {
    opacity: 1;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__copyright {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.footer__legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer__legal a {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer__legal a:hover {
    color: var(--text-secondary);
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 1024px) {
    .hero__container,
    .problem__container,
    .configurator__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero__visual {
        height: 400px;
    }

    .solution__device {
        width: 400px;
        height: 600px;
    }

    .footer__main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-6xl);
    }

    .hero__subtitle {
        font-size: var(--text-lg);
    }

    .problem__container {
        grid-template-columns: 1fr;
    }

    .problem__title {
        font-size: var(--text-3xl);
    }

    .solution__device {
        width: 320px;
        height: 500px;
    }

    .partners__track {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .partner-card {
        scroll-snap-align: center;
    }

    .scenes__controls {
        grid-template-columns: 1fr;
    }

    .configurator__container {
        grid-template-columns: 1fr;
    }

    .footer__main {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}
