/* =================================================================
   UI/UX DESIGN PAGE STYLES (The Human Interface)
   ================================================================= */

/* Page Wrapper to prevent horizontal overflow */
.ui-page {
    width: 100%;
    overflow-x: clip;
    /* Prevents overflow without breaking sticky positioning */
    position: relative;
}

/* --- 1. Hero --- */
.ui-hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Clip background glows */
}

.ui-hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.design-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 66, 255, 0.15), transparent 70%);
    filter: blur(80px);
}

.design-glow-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
    filter: blur(80px);
}

.ui-hero__content {
    position: relative;
    z-index: 2;
}

.ui-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lab-accent-cyan);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--lab-accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--lab-accent-cyan);
}

.ui-hero .title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.ui-hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.ui-hero__actions {
    display: flex;
    gap: 20px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--color-primary), var(--lab-accent-cyan));
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(138, 66, 255, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(138, 66, 255, 0.5);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}

.ui-hero__stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-item small {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visuals (Floating Cards) */
.ui-hero__visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.floating-interface-card {
    position: absolute;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease-out;
}

.card-1 {
    width: 300px;
    height: 400px;
    z-index: 1;
    transform: rotate(-5deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    top: 50px;
    left: 50px;
}

.card-2 {
    width: 280px;
    height: 180px;
    bottom: 50px;
    right: 0;
    z-index: 2;
    transform: rotate(5deg);
    background: #0a0f2e;
    border-color: var(--lab-accent-cyan);
}

/* --- 2. The Problem: Friction --- */
.ui-problem {
    padding: 120px 0;
    background: var(--color-bg);
}

.ui-problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.problem-list li {
    display: flex;
    gap: 20px;
}

.problem-list i {
    font-size: 1.5rem;
    color: #ef4444;
    /* Red for problem */
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 12px;
    height: fit-content;
}

.problem-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.problem-list p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Card Stack Visual */
.ui-card-stack {
    position: relative;
    height: 400px;
    width: 100%;
    /* Ensure it fits container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card {
    position: absolute;
    width: 100%;
    max-width: 300px;
    /* Responsive width */
    height: 380px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-back {
    transform: translateX(40px) translateY(-20px) rotate(5deg) scale(0.9);
    opacity: 0.5;
    background: #0a0f2e;
}

.card-mid {
    transform: translateX(20px) translateY(-10px) rotate(2deg) scale(0.95);
    opacity: 0.8;
    background: #1a1f4e;
}

.card-front {
    transform: translateX(0) translateY(0) rotate(0) scale(1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-color: var(--lab-accent-cyan);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ui-card-stack:hover .card-back {
    transform: translateX(60px) translateY(-30px) rotate(8deg) scale(0.9);
}

.ui-card-stack:hover .card-mid {
    transform: translateX(30px) translateY(-15px) rotate(4deg) scale(0.95);
}

.ui-card-stack:hover .card-front {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.15);
}

.ui-mock-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-mock-header .dots {
    display: flex;
    gap: 6px;
}

.ui-mock-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.ui-mock-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-hero {
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.skeleton-row {
    height: 20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.skeleton-row.short {
    width: 60%;
}

/* --- 2. Process: Pinned Phone --- */
.ui-process-lab {
    padding: 160px 0;
    background: var(--lab-bg);
    position: relative;
    overflow: visible;
    /* Fix for sticky positioning */
}

.ui-process-lab::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.center-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    align-items: start;
    z-index: 2;
}

.process-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15vh;
    /* Reduced gap for better pacing and less 'empty' scroll */
    padding-top: 10vh;
    /* Add padding to position the first step correctly */
    padding-bottom: 20vh;
    /* Ensure enough space for the last step to be active */
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.step-block {
    opacity: 0.3;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding-left: 60px;
    position: relative;
    border-left: none;
}

.step-block::before {
    content: '';
    position: absolute;
    left: -6px;
    /* Center on the 1px border line */
    top: 10px;
    width: 11px;
    height: 11px;
    background: var(--color-bg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: 1;
}

.step-block.active {
    opacity: 1;
}

.step-block.active::before {
    background: var(--lab-accent-cyan);
    border-color: var(--lab-accent-cyan);
    box-shadow: 0 0 20px var(--lab-accent-cyan);
    transform: scale(1.3);
}

.step-block .step-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    left: 40px;
    top: -40px;
    line-height: 1;
    z-index: -1;
    transition: all 0.6s ease;
    display: block;
    margin-bottom: 0;
}

.step-block.active .step-num {
    color: rgba(0, 240, 255, 0.08);
    transform: translateX(10px);
}

.step-block h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    transition: color 0.3s ease;
}

.step-block.active h3 {
    color: var(--lab-accent-cyan);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.step-block p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 550px;
}

.process-visual {
    flex: 1;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 360px;
    height: 720px;
    background: #050505;
    border-radius: 55px;
    border: 8px solid #1a1a1a;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 2px #2a2a2a,
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 240, 255, 0.05);
    transform: translateZ(0);
    /* Hardware acceleration */
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #050816;
    position: relative;
}

.screen-layer {
    position: absolute;
    inset: 0;
    padding: 50px 25px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
    transition:
        opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.6s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: none;
    will-change: transform, opacity;
}

.screen-layer.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

/* Skeleton Styles */
.sk-nav,
.sk-hero,
.sk-box,
.sk-row,
.sk-hero-img {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.sk-nav {
    height: 40px;
    width: 100%;
}

.sk-hero {
    height: 150px;
    width: 100%;
}

.sk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sk-box {
    height: 100px;
}

.sk-hero-img {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.sk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-row {
    height: 60px;
}

/* HiFi Styles */
.ui-nav {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-weight: bold;
}

.ui-hero-card {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    padding: 30px;
    border-radius: 20px;
    color: #fff;
    text-align: center;
}

.ui-hero-card button {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    margin-top: 10px;
    font-weight: bold;
}

.ui-stats {
    display: flex;
    gap: 10px;
}

.ui-stats .stat {
    flex: 1;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

/* Interaction Styles */
.interaction-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    animation: cursorMove 2s infinite;
}

.ui-success-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    animation: modalPop 2s infinite;
}

@keyframes cursorMove {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes modalPop {

    0%,
    40% {
        transform: translate(-50%, -50%) scale(0);
    }

    50%,
    90% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
    }
}

/* --- 3. Atomic Design --- */
.ui-atomic {
    padding: 140px 0;
    background: #02040a;
    overflow: hidden;
    /* Prevent animation overflow */
    position: relative;
}

.ui-atomic::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.atomic-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.atomic-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.atomic-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.atomic-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.atomic-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 280px;
}

.col-label {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.atomic-box {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.atomic-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--lab-accent-cyan);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.15);
    transform: translateY(-10px);
}

/* Atoms */
.atom-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.atom-el {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.atom-el:hover {
    transform: scale(1.1);
    border-color: var(--lab-accent-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.a-shape {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lab-accent-cyan);
}

.a-icon {
    font-size: 1.8rem;
    color: #fff;
}

.a-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    width: auto;
    padding: 0 15px;
}

/* Molecules */
.molecule-wrapper {
    width: 100%;
    padding: 0 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 24px;
    border-radius: 16px;
    width: 100%;
    color: var(--color-text-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.atomic-box:hover .search-bar {
    border-color: var(--lab-accent-cyan);
}

.search-bar i {
    color: var(--lab-accent-cyan);
    font-size: 1.2rem;
}

.search-bar span {
    font-size: 1rem;
}

/* Organisms */
.organism-wrapper {
    width: 100%;
    padding: 0 30px;
}

.header-comp {
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.atomic-box:hover .header-comp {
    transform: scale(1.02);
}

.logo-placeholder {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 8px;
}

.search-bar-clone {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    max-width: 140px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, #fff, #999);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.atomic-connector {
    color: var(--color-text-muted);
    opacity: 0.3;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 5. Tools Marquee --- */
.ui-tools {
    padding: 80px 0;
    background: var(--color-bg);
    border-top: 1px solid var(--lab-border);
    border-bottom: 1px solid var(--lab-border);
    overflow: hidden;
}

.tools-marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.tools-track {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.tools-track span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
    cursor: default;
}

.tools-track span:hover {
    color: var(--lab-accent-cyan);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 6. FAQ & CTA --- */
.ui-faq {
    padding: 120px 0;
    background: var(--color-bg);
}

.ui-faq__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.ui-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-trigger i {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.faq-item.active .faq-trigger i {
    transform: rotate(45deg);
    color: var(--lab-accent-cyan);
}

.faq-content {
    height: 0;
    overflow: hidden;
}

.faq-content p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.ui-cta-box {
    background: linear-gradient(135deg, #0a0f2e, #000);
    border: 1px solid var(--lab-border);
    padding: 50px;
    border-radius: 32px;
    text-align: center;
    position: sticky;
    top: 120px;
}

.ui-cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.ui-cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .ui-hero__container {
        grid-template-columns: 1fr;
    }

    .ui-hero__visual {
        display: none;
    }

    .ui-problem__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-layout {
        flex-direction: column;
    }

    .process-visual {
        display: none;
    }

    /* Hide complex phone on mobile for simplicity, or make it static */
    .step-block {
        opacity: 1;
    }

    /* Ensure steps are visible when animation is off */
    .atomic-stage {
        flex-direction: column;
        gap: 60px;
    }

    .atomic-col {
        width: 100%;
        max-width: 400px;
    }

    .atomic-connector {
        transform: rotate(90deg);
        margin: -30px 0;
    }

    .atomic-box {
        height: 260px;
    }

    .ui-faq__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ui-cta-box {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .ui-hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .ui-hero .title {
        font-size: 2.8rem;
    }

    .ui-hero__stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .ui-problem__grid {
        gap: 60px;
    }

    .ui-card-stack {
        height: 320px;
    }

    .stack-card {
        height: 300px;
    }

    .process-steps {
        padding: 0;
        gap: 60px;
    }

    .step-block {
        padding-left: 20px;
    }
}