/* ============================================
   MINDLOOPIA — Layout v2
   Photo-centric, magazine-quality design
   ============================================ */

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
    background: rgba(8, 12, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.nav__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
}

.nav__logo-ia {
    color: var(--color-orange);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-orange-light));
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

.nav__link:hover {
    color: var(--color-text-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.6rem 1.5rem;
    font-size: var(--text-xs);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__toggle-bar {
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
}

/* ── Hero — Full bleed image background ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(8, 12, 26, 0.92) 0%,
            rgba(8, 12, 26, 0.75) 40%,
            rgba(8, 12, 26, 0.5) 70%,
            rgba(8, 12, 26, 0.3) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero__badge {
    margin-bottom: var(--space-xl);
}

.hero__title {
    margin-bottom: var(--space-lg);
    font-size: var(--text-5xl);
    line-height: 1.05;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
    line-height: var(--leading-relaxed);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-orange), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── Trusted / Tech Bar ── */
.trusted {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-base);
}

.trusted__label {
    text-align: center;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.trusted__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trusted__logo {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease-out);
}

.trusted__logo:hover {
    border-color: var(--color-border-accent);
    color: var(--color-text-secondary);
}

/* ── Services ── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* ── Sectors — Photo cards ── */
.sectors {
    background: var(--color-bg-base);
    overflow: hidden;
}

.sectors__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.sector-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    transition: transform var(--duration-normal) var(--ease-out);
}

.sector-card:hover {
    transform: scale(1.02);
}

.sector-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.sector-card:hover .sector-card__image {
    transform: scale(1.08);
}

.sector-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 20%,
            rgba(8, 12, 26, 0.4) 50%,
            rgba(8, 12, 26, 0.92) 100%);
    transition: background var(--duration-normal) var(--ease-out);
}

.sector-card:hover .sector-card__overlay {
    background: linear-gradient(180deg,
            transparent 10%,
            rgba(8, 12, 26, 0.3) 40%,
            rgba(8, 12, 26, 0.95) 100%);
}

.sector-card__content {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl);
    width: 100%;
}

.sector-card__tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-orange);
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sector-card__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
    color: #fff;
}

.sector-card__text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.sector-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-orange);
    transition: gap var(--duration-fast) var(--ease-out);
}

.sector-card__link:hover {
    gap: var(--space-sm);
}

/* ── Product (CostOS) ── */
.product {
    position: relative;
    overflow: hidden;
}

.product__content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.product__info {
    position: relative;
    z-index: 1;
}

.product__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.product__text {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: var(--leading-relaxed);
}

.product__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.product__feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.product__feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product__feature-dot--orange {
    background: var(--color-orange);
    box-shadow: 0 0 8px var(--color-orange-glow);
}

.product__feature-dot--cyan {
    background: var(--color-cyan);
    box-shadow: 0 0 8px rgba(0, 160, 220, 0.3);
}

.product__feature-dot--purple {
    background: var(--color-purple-light);
    box-shadow: 0 0 8px rgba(139, 107, 191, 0.3);
}

.product__feature-dot--yellow {
    background: var(--color-yellow);
    box-shadow: 0 0 8px rgba(255, 225, 53, 0.3);
}

.product__feature-dot--pink {
    background: var(--color-pink);
    box-shadow: 0 0 8px rgba(233, 30, 141, 0.3);
}

.product__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product__mockup {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 60px rgba(255, 140, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform var(--duration-normal) var(--ease-out);
}

.product__mockup:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ── Process ── */
.process {
    background: var(--color-bg-base);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
}

/* Connecting line between steps */
.process__grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(12.5% + 32px);
    right: calc(12.5% + 32px);
    height: 1px;
    background: linear-gradient(90deg, var(--color-border), var(--color-orange), var(--color-border));
    z-index: 0;
}

.process__step {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    z-index: 1;
}

.process__step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-orange);
    background: var(--color-bg-deep);
    transition: all var(--duration-normal) var(--ease-out);
}

.process__step:hover .process__step-circle {
    border-color: var(--color-orange);
    box-shadow: var(--shadow-glow-orange);
    background: rgba(255, 140, 0, 0.08);
}

.process__step-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.process__step-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* ── About ── */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about__logo-img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(107, 79, 160, 0.25));
}

.about__logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(107, 79, 160, 0.1);
}

.about__logo-ring--1 {
    width: 320px;
    height: 320px;
    animation: orbit-spin 25s linear infinite;
}

.about__logo-ring--2 {
    width: 400px;
    height: 400px;
    animation: orbit-spin 40s linear infinite reverse;
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about__text {
    margin-bottom: var(--space-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.about__guarantees {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about__guarantee {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.about__guarantee-icon {
    color: var(--color-orange);
    font-weight: bold;
}

/* ── Calculator ── */
.calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

/* Left: Input panel */
.calc__panel {
    background: #111838;
    border: 1px solid rgba(107, 79, 160, 0.2);
    border-radius: 20px;
    padding: clamp(1.5rem, 2vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2vw, 2rem);
}

.calc__panel-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.calc__field {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.calc__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.calc__label-hint {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-normal);
    font-size: 0.85em;
}

.calc__field-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ── Slider + Number Box Row ── */
.calc__slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc__slider-row .calc__slider {
    flex: 1;
}

.calc__num-box {
    min-width: 56px;
    padding: 0.5rem 0.75rem;
    background: #0D1225;
    border: 1px solid rgba(107, 79, 160, 0.15);
    border-radius: 8px;
    color: #F5F6FA;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

/* ── Range Slider (with JS-driven colored fill) ── */
.calc__slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    /* Default background; overridden by JS for colored fill */
    background: linear-gradient(to right, #00A0DC 0%, #00A0DC 20%, #1A2048 20%, #1A2048 100%);
    transition: background 0.1s ease;
}

/* WebKit thumb */
.calc__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(0, 160, 220, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 3px solid #00A0DC;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    position: relative;
    z-index: 2;
}

.calc__slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(0, 160, 220, 0.2), 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Firefox thumb */
.calc__slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid #00A0DC;
    box-shadow: 0 0 0 3px rgba(0, 160, 220, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Firefox filled track */
.calc__slider::-moz-range-progress {
    background: linear-gradient(90deg, #00A0DC, #4FC3F7);
    height: 8px;
    border-radius: 999px;
}

.calc__slider::-moz-range-track {
    background: #1A2048;
    height: 8px;
    border-radius: 999px;
    border: none;
}

/* Purple slider variant */
.calc__slider--purple::-webkit-slider-thumb {
    border-color: #8B6BBF;
    box-shadow: 0 0 0 3px rgba(139, 107, 191, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.calc__slider--purple::-moz-range-thumb {
    border-color: #8B6BBF;
    box-shadow: 0 0 0 3px rgba(139, 107, 191, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.calc__slider--purple::-moz-range-progress {
    background: linear-gradient(90deg, #6B4FA0, #8B6BBF);
}

/* ── Text Input with € Prefix ── */
.calc__input-wrap {
    display: flex;
    align-items: center;
    background: #0D1225;
    border: 1px solid rgba(107, 79, 160, 0.15);
    border-radius: 8px;
    padding: 0 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.calc__input-wrap:hover {
    border-color: var(--color-border-hover);
}

.calc__input-wrap:focus-within {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.calc__input-prefix {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-lg);
    margin-right: 0.5rem;
    user-select: none;
}

.calc__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #F5F6FA;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.875rem 0;
    outline: none;
    width: 100%;
    -moz-appearance: textfield;
    appearance: textfield;
}

.calc__input::-webkit-outer-spin-button,
.calc__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Right: Result Cards ── */
.calc__results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc__result-card {
    background: #111838;
    border: 1px solid rgba(107, 79, 160, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.calc__result-card:hover {
    border-color: rgba(107, 79, 160, 0.3);
    transform: translateY(-1px);
}

.calc__result-card--main {
    border-color: rgba(0, 160, 220, 0.25);
    background: linear-gradient(145deg, #0F1B3D 0%, #111838 100%);
}

.calc__result-card--main:hover {
    box-shadow: 0 0 24px rgba(0, 160, 220, 0.15);
    border-color: rgba(0, 160, 220, 0.4);
}

.calc__result-card--highlight {
    background: linear-gradient(145deg, #1A1535 0%, #111838 100%);
    border-color: rgba(255, 140, 0, 0.25);
}

.calc__result-card--highlight:hover {
    box-shadow: 0 0 24px rgba(255, 140, 0, 0.12);
    border-color: rgba(255, 140, 0, 0.4);
}

.calc__result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.calc__result-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

.calc__result-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.calc__result-number--green {
    color: #4ADE80;
}

.calc__result-number--cyan {
    color: var(--color-cyan);
}

.calc__result-sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* CTA footer */
.calc__result-cta {
    background: linear-gradient(145deg, #1A1230 0%, #111838 100%);
    border: 1px solid rgba(255, 140, 0, 0.18);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

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

.calc__cta-text strong {
    color: #4ADE80;
    font-weight: var(--font-weight-bold);
}

.calc__cta-btn {
    width: 100%;
    justify-content: center;
}




/* ── Testimonials ── */
.testimonials {
    background: var(--color-bg-base);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.testimonial:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial__stars {
    color: var(--color-orange);
    font-size: var(--text-lg);
    letter-spacing: 2px;
}

.testimonial__quote {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    font-style: italic;
    flex: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-sm);
    color: #fff;
    flex-shrink: 0;
}

.testimonial__name {
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
}

.testimonial__role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ── FAQ ── */
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gradient-card);
    transition: border-color var(--duration-normal) var(--ease-out);
}

.faq__item.active {
    border-color: rgba(255, 140, 0, 0.25);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) var(--space-xl);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    cursor: pointer;
    text-align: left;
    background: transparent;
    border: none;
    gap: var(--space-md);
}

.faq__question:hover {
    color: var(--color-orange);
}

.faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform var(--duration-normal) var(--ease-out);
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
    color: var(--color-orange);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out),
        padding var(--duration-slow) var(--ease-out);
}

.faq__item.active .faq__answer {
    max-height: 300px;
}

.faq__answer p {
    padding: 0 var(--space-xl) var(--space-xl);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ── Contact Form ── */
.contact {
    position: relative;
    overflow: hidden;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact__detail svg {
    width: 20px;
    height: 20px;
    color: var(--color-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.contact__detail-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

a.contact__detail-value:hover {
    color: var(--color-orange);
}

.contact__form {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form__input {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

.form__input::placeholder {
    color: var(--color-text-muted);
}

.form__input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form__select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA3BE' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__submit {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-base);
}

.form__success {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: var(--radius-md);
    color: #81c784;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.form__success-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.contact__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.contact__subtitle {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: var(--leading-relaxed);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Footer ── */
.footer {
    background: var(--color-bg-base);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer__col-title {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.footer__col-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__col-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__col-link:hover {
    color: var(--color-orange);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__socials {
    display: flex;
    gap: var(--space-md);
}

.footer__social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) var(--ease-out);
    border: 1px solid var(--color-border);
}

.footer__social:hover {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-orange);
}

.footer__social svg {
    width: 16px;
    height: 16px;
}

/* ── Comparison Slider ── */
.comparison-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.comparison-slider img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
}

/* Bottom layer (CostOS - The "After" state) */
.comparison-slider .img-after {
    display: block;
    width: 100%;
}

/* Top layer (Excel - The "Before" state) */
.comparison-slider .img-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    /* Initial state */
    overflow: hidden;
    border-right: 2px solid var(--color-orange);
    z-index: 2;
}

/* Fix inner image to prevent squishing */
.comparison-slider .img-before img {
    height: 100%;
    width: auto;
    max-width: none;
    /* Allow full width to be visible */
}

/* Slider Handle */
.comparison-slider__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Initial state matching img-before width */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: col-resize;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
    /* Touch target expansion */
    touch-action: none;
}

.comparison-slider__handle::before,
.comparison-slider__handle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.comparison-slider__handle::before {
    border-right: 8px solid #fff;
    margin-right: 2px;
}

.comparison-slider__handle::after {
    border-left: 8px solid #fff;
    margin-left: 2px;
}

.comparison-label {
    position: absolute;
    top: 20px;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: bold;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-label--before {
    left: 20px;
}

.comparison-label--after {
    right: 20px;
    background: rgba(255, 140, 0, 0.8);
    /* Orange tint for the solution */
    color: #fff;
}