/* =============================================================
   CLON - Apple-Style Design System
   ============================================================= */

/* --- CSS Custom Properties --- */
:root {
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-soft: #FBBF24;
    --accent-rgb: 245, 158, 11;

    --bg-primary: #FBFBFD;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #FFFFFF;
    --bg-dark: #1D1D1F;
    --bg-dark-secondary: #2D2D2F;
    --bg-green: #F0F5EC;
    --bg-green-solid: #c7d7ba;

    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --text-inverse: #F5F5F7;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 980px;

    --ease-apple: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.6s;

    --section-pad: 120px;

    --accent-ink: #78350F;

    --glass-bg: rgba(251, 251, 253, 0.72);
    --glass-bg-dark: rgba(29, 29, 31, 0.82);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-blur: 20px;
    --glass-saturate: 180%;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: clip;
    line-height: 1.47;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

::selection {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Scrollbar (subtle Apple-style) --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }

/* =============================================================
   NAVIGATION - Frosted Glass
   ============================================================= */

.navbar-custom {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1080;
    padding: 0;
    height: 52px;
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 0.5px solid transparent;
}

.navbar-custom.scrolled {
    background: transparent;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
}

.navbar-brand .brand-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0;
    padding: 0 1.2rem !important;
    transition: color var(--duration-fast) var(--ease-apple);
    position: relative;
}


.nav-link-custom:hover {
    color: var(--accent) !important;
}

.nav-link-custom::after {
    display: none;
}

.btn-nav-cta {
    background: var(--accent);
    color: var(--bg-dark) !important;
    padding: 0.45rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.82rem;
    border: none;
    transition: all var(--duration-fast) var(--ease-apple);
    line-height: 1.4;
}

.btn-nav-cta:hover {
    background: var(--accent-hover);
    color: var(--bg-dark) !important;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

/* --- Hamburger Toggle (premium pill style, mobile only) --- */
.navbar-custom .navbar-toggler,
.navbar-expand-lg .navbar-toggler {
    border: none !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    background-image: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-pill) !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative;
    z-index: 1090;
    overflow: visible !important;
    transition: all 0.3s var(--ease-apple);
}

/* Hide on desktop, show on mobile */
@media (min-width: 992px) {
    .navbar-custom .navbar-toggler,
    .navbar-expand-lg .navbar-toggler {
        display: none !important;
    }
}
@media (max-width: 991.98px) {
    .navbar-custom .navbar-toggler,
    .navbar-expand-lg .navbar-toggler {
        display: flex !important;
    }
}

.navbar-custom .navbar-toggler:focus,
.navbar-custom .navbar-toggler:active {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-custom .navbar-toggler:hover {
    box-shadow: none !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

.navbar-toggler.active {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Toggler bars container */
.navbar-toggler .toggler-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 18px;
    height: 18px;
}

span.toggler-bar {
    display: block !important;
    width: 18px !important;
    height: 1.5px !important;
    background-color: #ffffff !important;
    border-radius: 1px !important;
    transition: all 0.35s var(--ease-apple);
    transform-origin: center;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-toggler.active span.toggler-bar {
    background-color: var(--text-primary) !important;
}

.navbar-toggler.active span.toggler-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.navbar-toggler.active span.toggler-bar:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0);
}

.navbar-toggler.active span.toggler-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* --- Mobile Drawer --- */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-apple);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    z-index: 1060;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 2rem 2.5rem;
}

.mobile-drawer.active {
    transform: translateY(0);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.15rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s var(--ease-apple);
    letter-spacing: -0.025em;
    position: relative;
}

.drawer-link i {
    font-size: 1.1rem;
    color: var(--accent);
    transition: transform 0.25s var(--ease-apple);
}

.drawer-link:hover,
.drawer-link:active {
    color: var(--accent);
}

.drawer-link:hover i {
    transform: translateX(3px);
}

.drawer-link:last-child {
    border-bottom: none;
}

.drawer-cta {
    padding-top: 2rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.drawer-cta-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

/* Hide drawer/overlay on desktop */
@media (min-width: 992px) {
    .mobile-drawer,
    .mobile-drawer-overlay {
        display: none !important;
    }
}

/* =============================================================
   HERO SECTION
   ============================================================= */

.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: url('hero-bg-5.webp') center center / cover no-repeat;
    background-image: image-set(
        url('hero-bg-5.webp') type('image/webp'),
        url('hero-bg-5.jpg') type('image/jpeg')
    );
    background-color: var(--bg-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section > .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--accent-rgb), 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    padding: 0.5rem 1.3rem;
    border-radius: var(--radius-pill);
    color: var(--accent-soft);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-apple);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1.2rem;
    margin-top: 0;
    animation: fadeInUp 0.8s var(--ease-apple) 0.15s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.58;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    text-align: center;
    animation: fadeInUp 0.8s var(--ease-apple) 0.3s both;
    letter-spacing: 0;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-apple) 0.45s both;
}

/* =============================================================
   BUTTONS - Apple Pill Style
   ============================================================= */

.btn-primary-custom {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all var(--duration-normal) var(--ease-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
    cursor: pointer;
    line-height: 1.4;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.btn-primary-custom:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all var(--duration-normal) var(--ease-apple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1.4;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-secondary-custom:active {
    transform: translateY(0) scale(0.98);
}

/* Dark background secondary button variant */
.process-cta-card .btn-secondary-custom,
.final-cta-simple-card .btn-secondary-custom {
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.05);
    backdrop-filter: none;
}

.process-cta-card .btn-secondary-custom:hover,
.final-cta-simple-card .btn-secondary-custom:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* =============================================================
   SECTIONS - Apple Spacing
   ============================================================= */

.section-pad {
    padding: var(--section-pad) 0;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* =============================================================
   SERVICES SECTION
   ============================================================= */

.services-section {
    padding: var(--section-pad) 0 calc(var(--section-pad) * 0.75);
    background: var(--bg-primary);
}

/* 3-column services grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 20px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.service-col-side {
    display: flex;
}

.service-col-center {
    display: flex;
}

.service-card {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    width: 100%;
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--ease-apple);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before { display: none; }

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card-dark {
    background: var(--bg-green);
    border: none;
}

.service-card-dark:hover {
    box-shadow: var(--shadow-lg);
}

/* Featured card (center) */
.service-card-featured {
    background: var(--bg-dark);
    color: var(--text-inverse);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 2.8rem;
    overflow: visible;
}

.service-card-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card-featured .service-title {
    color: #fff;
    font-size: 1.8rem;
}

.service-card-featured .service-description {
    color: rgba(255,255,255,0.7);
}

.service-card-featured .service-badge {
    background: var(--accent);
    color: var(--accent-ink);
}

.service-card-featured .feature-icon {
    background: rgba(var(--accent-rgb), 0.15);
}

.service-card-featured .feature-icon i {
    color: var(--accent);
}

.service-card-featured .feature-text {
    color: rgba(255,255,255,0.85);
}

/* "Most requested" pill badge, straddling the top edge */
.service-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
    z-index: 2;
}

/* Inline form inside featured card */
.service-inline-form {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.service-inline-form h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.sif-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.sif-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-bottom: 10px;
}

.sif-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.09);
}

.sif-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.sif-textarea {
    resize: none;
}

.btn-featured-submit {
    width: 100%;
    padding: 13px 20px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-featured-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-featured-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-service-secondary-dark {
    color: rgba(255,255,255,0.7) !important;
    border-color: rgba(255,255,255,0.15) !important;
    background: transparent !important;
}

.btn-service-secondary-dark:hover {
    color: #fff !important;
    border-color: var(--accent) !important;
    background: rgba(var(--accent-rgb), 0.1) !important;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent-hover);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0;
}

.service-card-dark .service-badge {
    background: var(--accent);
    color: var(--accent-ink);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.service-card-dark .service-description {
    color: #44403C;
}

.service-features {
    margin-bottom: 1.5rem;
    border-top: 0.5px solid rgba(0,0,0,0.06);
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    padding: 1.2rem 0;
}

.service-card-dark .service-features {
    border-color: rgba(var(--accent-rgb), 0.25);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.feature-item:last-child { margin-bottom: 0; }

.feature-icon {
    width: 34px;
    height: 34px;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-dark .feature-icon {
    background: var(--accent);
}

.feature-icon i {
    color: var(--accent-hover);
    font-size: 1rem;
}

.service-card-dark .feature-icon i {
    color: var(--accent-ink);
}

.feature-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.service-card-dark .feature-text {
    font-weight: 600;
    color: #1C1917;
}

.service-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-service-primary {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    transition: all var(--duration-normal) var(--ease-apple);
    background: var(--accent);
    color: var(--bg-dark);
    cursor: pointer;
    line-height: 1.4;
}

.btn-service-primary:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.btn-service-secondary {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.92rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.15);
    transition: all var(--duration-normal) var(--ease-apple);
    cursor: pointer;
    line-height: 1.4;
}

.btn-service-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: rgba(var(--accent-rgb), 0.04);
}

.service-card-dark .btn-service-secondary {
    background: #fff;
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.08);
}

.service-card-dark .btn-service-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* =============================================================
   COMPANIES SECTION
   ============================================================= */

.companies-section {
    padding: var(--section-pad) 0;
    background: var(--bg-tertiary);
    overflow: hidden;
    border-top: 0.5px solid rgba(0,0,0,0.04);
    border-bottom: 0.5px solid rgba(0,0,0,0.04);
}

.companies-heading {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.companies-accent-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    margin: 0 auto 3.5rem;
    border-radius: 2px;
}

.companies-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.company-logo {
    height: 90px;
    width: 200px;
    object-fit: contain;
    opacity: 0.6;
    transition: all var(--duration-normal) var(--ease-apple);
    filter: grayscale(100%);
}

.company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* =============================================================
   PROCESS SECTION — Sticky Scroll
   ============================================================= */

/* Outer = tall container that gives scroll room */
.sp-outer {
    background: var(--bg-primary);
}

.sp-pin {
    height: 250vh;
    position: relative;
}

/* Pinned = sticks to viewport while you scroll through .sp-pin */
.sp-pinned {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-pinned > .container {
    width: 100%;
}

.sp-header {
    text-align: center;
    margin-bottom: 36px;
}

/* --- Progress dots --- */
.sp-progress {
    display: flex;
    align-items: center;
    max-width: 380px;
    margin: 0 auto 44px;
    position: relative;
}

.sp-progress-line {
    position: absolute;
    top: 50%;
    left: 28px;
    right: 28px;
    height: 2px;
    background: rgba(0,0,0,0.07);
    transform: translateY(-50%);
    border-radius: 2px;
}

.sp-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s var(--ease-apple);
}

.sp-dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2.5px solid rgba(0,0,0,0.08);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-apple);
    flex-shrink: 0;
}

.sp-dot:first-of-type { margin-right: auto; }
.sp-dot:nth-of-type(2) { margin: 0 auto; }
.sp-dot:last-of-type { margin-left: auto; }

.sp-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.18);
    box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.4);
}

.sp-dot.done {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

/* --- Content split --- */
.sp-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

/* --- Image --- */
.sp-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--bg-dark);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

.sp-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.6s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.sp-image.active {
    opacity: 1;
    transform: scale(1);
}

.sp-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Text --- */
.sp-text-wrap {
    position: relative;
    min-height: 340px;
}

.sp-text {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.55s ease;
    will-change: opacity, transform;
    pointer-events: none;
}

.sp-text.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.sp-step-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.sp-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sp-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 480px;
}

.sp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.sp-checklist li i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- CTA section (outside sticky) --- */
.process-cta-section {
    padding: 40px 0 60px;
    background: var(--bg-primary);
}

.process-cta-card {
    background: var(--bg-green-solid);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
}

.process-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.process-cta-text {
    font-size: 1.1rem;
    color: #44403C;
    margin-bottom: 2rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .sp-pin { height: 220vh; }
    .sp-content { grid-template-columns: 1fr; gap: 32px; }
    .sp-image-wrap { max-width: 540px; margin: 0 auto; }
    .sp-text-wrap { min-height: auto; }
    .sp-text { position: relative; transform: none; }
    .sp-text:not(.active) { display: none; }
    .sp-text.active { display: block; opacity: 1; }
}

@media (max-width: 575px) {
    .sp-pin { height: 200vh; }
    .sp-header { margin-bottom: 20px; }
    .sp-progress { max-width: 280px; margin-bottom: 32px; }
    .sp-dot { width: 42px; height: 42px; font-size: 0.75rem; }
    .sp-title { font-size: 1.8rem; }
    .sp-desc { font-size: 0.95rem; }
    .sp-content { gap: 24px; }
}

/* =============================================================
   CUBOID CTA — Scroll-driven 3D flip
   Native CSS scroll-timeline where supported; a JS rAF fallback
   (Safari / older browsers) drives the SAME custom props below;
   prefers-reduced-motion collapses to an accessible card stack.
   The custom props are the single source of truth.
   ============================================================= */

@property --cube-rx     { syntax: '<angle>';  inherits: true; initial-value: 0deg; }
@property --cube-tilt   { syntax: '<angle>';  inherits: true; initial-value: 0deg; }
@property --cube-hh     { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --cube-radius { syntax: '<length>'; inherits: true; initial-value: 32px; }
@property --cube-d      { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --face-w      { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --cube-tiltN  { syntax: '<number>'; inherits: true; initial-value: 0; }

.cube-outer {
    background: var(--bg-primary);
}

/* Tall track = scroll distance + provides the view-timeline */
.cube-track {
    height: 280vh;
    position: relative;
    view-timeline-name: --cube;
    view-timeline-axis: block;
}

.cube-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-perspective: 1050px;          /* was 1300 — stronger, more dimensional */
    perspective: 1050px;
    -webkit-perspective-origin: 44% 32%;  /* look slightly down + toward the depth panel */
    perspective-origin: 44% 32%;
}

.cube-scene {
    width: 70%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    position: relative;
    container-type: size; /* enables cqh-based, responsive depth */
}

.cube-box {
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    border-radius: var(--cube-radius, 32px);
    /* No box-shadow here: it would paint in the rotated 3D plane and tumble.
       The scene-space two-layer .cube-shadow (below) is the real cast shadow. */
    transform:
        translateZ(calc(-1 * var(--cube-hh, 0px)))
        rotateY(calc(-1 * var(--cube-tilt, 0deg)))
        rotateX(calc(-1 * var(--cube-rx, 0deg)));
}

/* Each face */
.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 3rem;
    border-radius: var(--cube-radius, 32px);
    /* Satin micro-surface + WORLD-ANCHORED shading wash, layered over the
       per-face base colour. This is the face's OWN background, so it always
       paints BELOW the heading/body/CTA — no overlay z-order glitch in the
       3D-flattened plane. --face-w is the per-face Lambert (dark) term. */
    background:
        /* (a) shading wash — alpha driven by --face-w (0..0.38) */
        linear-gradient(0deg,
            rgba(16, 22, 11, var(--face-w, 0)),
            rgba(16, 22, 11, var(--face-w, 0))),
        /* (b) top-left key rim where the light lands */
        radial-gradient(120% 90% at 20% 4%,
            rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 42%),
        /* (c) satin band, upper-biased, calm over the text */
        linear-gradient(168deg,
            rgba(255, 255, 255, 0.20) 0%,
            rgba(255, 255, 255, 0.04) 26%,
            rgba(255, 255, 255, 0)    48%,
            rgba(0, 0, 0, 0)          72%,
            rgba(0, 0, 0, 0.05)      100%),
        /* (d) per-face base colour */
        var(--face-base, #c7d7ba);
}

/* Face base colours. The satin sheen + shading wash are layered OVER these
   inside .cube-face's OWN background (below all text/CTA), so no positioned
   overlay can mis-sort above the button in the 3D-flattened plane. */
.cube-front  { --face-base: var(--bg-green-solid); }
.cube-bottom { --face-base: #e9e4d6; }
.cube-back   { --face-base: var(--bg-green-solid); }
.cube-top    { --face-base: #e9e4d6; }

/* Beveled arrises — lit top edge, occluded bottom, lit/dark side creases.
   STATIC inset shadows on leaf faces: preserve-3d-safe, no per-frame repaint. */
.cube-front, .cube-bottom, .cube-back, .cube-top {
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.50),    /* top edge highlight  */
        inset 0 0 1px rgba(255, 255, 255, 0.14),      /* faint inner glow    */
        inset 1.5px 0 0 rgba(255, 255, 255, 0.18),    /* leading-edge crease */
        inset -1.5px 0 0 rgba(0, 0, 0, 0.10),         /* trailing-edge crease*/
        inset 0 -2px 3px rgba(40, 50, 30, 0.16);      /* bottom edge shadow  */
}

/* Keep text/buttons above the seam patch */
.cube-face > * {
    position: relative;
    z-index: 1;
}

.cube-face h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cube-face p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #44403C;
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.6;
}

/* Face positions — X axis (vertical flip) */
.cube-front  { transform: rotateX(0deg)    translateZ(var(--cube-hh, 0px)); }
.cube-bottom { transform: rotateX(-90deg)  translateZ(var(--cube-hh, 0px)); }
.cube-back   { transform: rotateX(-180deg) translateZ(var(--cube-hh, 0px)); }
.cube-top    { transform: rotateX(90deg)   translateZ(var(--cube-hh, 0px)); }

/* Kill sub-pixel seam: each face extends 1px past its edge */
.cube-face::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--face-base, #c7d7ba);
    border-radius: inherit;
    z-index: -1;
}

/* Right side edge panel — the cuboid's depth/thickness */
.cube-side-r {
    position: absolute;
    top: 0;
    height: 100%;
    width: calc(var(--cube-hh, 0px) * 2);
    left: calc(100% - var(--cube-hh, 0px));
    transform: rotateY(90deg);
    background:
        /* lit top bevel */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.40) 0px,
            rgba(255, 255, 255, 0.10) 5px,
            rgba(255, 255, 255, 0)   16px),
        /* bottom contact AO */
        linear-gradient(0deg,
            rgba(20, 30, 12, 0.30) 0px,
            rgba(20, 30, 12, 0.10) 12px,
            rgba(20, 30, 12, 0)    28px),
        /* body: same hue as the faces, value-darkened so it reads as one folded material */
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg-green-solid) 100%, black 16%) 0%,
            color-mix(in srgb, var(--bg-green-solid) 100%, black 28%) 100%);
    box-shadow:
        inset 2px 0 0 rgba(255, 255, 255, 0.16),     /* lit front-corner crease */
        inset -1px 0 0 rgba(0, 0, 0, 0.20),          /* dark trailing crease    */
        inset 0 -2px 4px rgba(0, 0, 0, 0.12);        /* ground AO               */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: var(--cube-d, 0);
    pointer-events: none;
}

/* Two-layer ground shadow (non-3D, child of .cube-scene). Wide soft ambient
   halo + tight dark contact core. Blur radius is static (cached); only
   opacity/transform animate. Leans with --cube-tiltN, grows with --cube-d. */
.cube-shadow {
    position: absolute;
    bottom: -7%;
    left: 50%;
    width: 86%;
    height: 16%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}
.cube-shadow::before {                 /* ambient halo */
    content: '';
    position: absolute;
    inset: 0;
    transform:
        scaleX(calc(0.82 + var(--cube-d, 0) * 0.45))
        scaleY(calc(0.70 + var(--cube-d, 0) * 0.55))
        skewX(calc(var(--cube-tiltN, 0) * -0.6deg));
    background: radial-gradient(ellipse 60% 52% at 50% 50%,
        rgba(20, 26, 16, 0.16) 0%, rgba(20, 26, 16, 0.07) 40%, rgba(20, 26, 16, 0) 72%);
    filter: blur(18px);
    opacity: calc(var(--cube-d, 0) * 0.60);
}
.cube-shadow::after {                  /* tight contact core */
    content: '';
    position: absolute;
    inset: 0;
    transform:
        translateX(calc(var(--cube-tiltN, 0) * 0.6px))
        scaleX(calc(0.55 + var(--cube-d, 0) * 0.16))
        scaleY(calc(0.40 + var(--cube-d, 0) * 0.18))
        skewX(calc(var(--cube-tiltN, 0) * -0.35deg));
    background: radial-gradient(ellipse 50% 46% at 50% 50%,
        rgba(12, 16, 10, 0.42) 0%, rgba(12, 16, 10, 0.22) 32%, rgba(12, 16, 10, 0) 62%);
    filter: blur(5px);
    opacity: calc(var(--cube-d, 0) * 0.85);
}

/* Native scroll-driven animation (Chrome/Edge/Firefox). Geometry on
   the box; ambient depth (shadow/side) on the scene so both sides
   read the same timeline. */
@supports (animation-timeline: view()) {
    .cube-box {
        animation: cube-drive linear both;
        animation-timeline: --cube;
        animation-range: contain 0% contain 100%;
    }
    .cube-scene {
        animation: cube-amb linear both;
        animation-timeline: --cube;
        animation-range: contain 0% contain 100%;
    }
    /* World-anchored per-face lighting: each leaf face runs its own wash
       curve on the SAME --cube timeline, so the lit region migrates across
       the form as it turns — the cue a flat card cannot fake. */
    .cube-front  { animation: lit-front  linear both; animation-timeline: --cube; animation-range: contain 0% contain 100%; }
    .cube-bottom { animation: lit-bottom linear both; animation-timeline: --cube; animation-range: contain 0% contain 100%; }
    .cube-back   { animation: lit-back   linear both; animation-timeline: --cube; animation-range: contain 0% contain 100%; }
    .cube-top    { animation: lit-top    linear both; animation-timeline: --cube; animation-range: contain 0% contain 100%; }
}

@keyframes cube-drive {
    0%   { --cube-rx: 0deg;   --cube-tilt: 0deg;  --cube-hh: 0px;   --cube-radius: 32px; }
    6%   { --cube-rx: 0deg;   --cube-tilt: 0deg;  --cube-hh: 0px;   --cube-radius: 32px; animation-timing-function: ease-in-out; }
    14%  { --cube-rx: 0deg;   --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; }
    20%  { --cube-rx: 0deg;   --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; animation-timing-function: ease-in-out; }
    32%  { --cube-rx: 90deg;  --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; }
    44%  { --cube-rx: 90deg;  --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; animation-timing-function: ease-in-out; }
    56%  { --cube-rx: 180deg; --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; }
    68%  { --cube-rx: 180deg; --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; animation-timing-function: ease-in-out; }
    80%  { --cube-rx: 270deg; --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; }
    86%  { --cube-rx: 270deg; --cube-tilt: 14deg; --cube-hh: 50cqh; --cube-radius: 0px; animation-timing-function: ease-in-out; }
    94%  { --cube-rx: 270deg; --cube-tilt: 0deg;  --cube-hh: 0px;   --cube-radius: 32px; }
    100% { --cube-rx: 270deg; --cube-tilt: 0deg;  --cube-hh: 0px;   --cube-radius: 32px; }
}

@keyframes cube-amb {
    0%   { --cube-d: 0; --cube-tiltN: 0; }
    6%   { --cube-d: 0; --cube-tiltN: 0; animation-timing-function: ease-in-out; }
    14%  { --cube-d: 1; --cube-tiltN: 14; }
    86%  { --cube-d: 1; --cube-tiltN: 14; animation-timing-function: ease-in-out; }
    94%  { --cube-d: 0; --cube-tiltN: 0; }
    100% { --cube-d: 0; --cube-tiltN: 0; }
}

/* Per-face shading wash = 1 - (0.62 + 0.38*max(0, N·L)), L = (0,-0.482,0.876).
   Anchors mirror cube-drive's rx schedule (20=rx0, 26=rx45, 32-44=rx90,
   50=rx135, 56-68=rx180, 74=rx225, 80-86=rx270). The lightest face migrates
   front → top → back → bottom → front. Values match the JS fallback exactly. */
@keyframes lit-front {
    0%, 14%  { --face-w: 0;     }
    20%      { --face-w: 0.047; }   /* rx0  key-lit (front to viewer)   */
    26%      { --face-w: 0.274; }   /* rx45                              */
    32%, 44% { --face-w: 0.380; }   /* rx90 edge-on toward floor        */
    50%      { --face-w: 0.380; }   /* rx135                            */
    56%, 68% { --face-w: 0.380; }   /* rx180 facing away                */
    74%      { --face-w: 0.380; }   /* rx225                            */
    80%, 86% { --face-w: 0.197; }   /* rx270 rising back to key         */
    94%, 100%{ --face-w: 0;     }
}
@keyframes lit-top {
    0%, 14%  { --face-w: 0;     }
    20%      { --face-w: 0.197; }   /* rx0                              */
    26%      { --face-w: 0.015; }   /* rx45 brightest (catches key)     */
    32%, 44% { --face-w: 0.047; }   /* rx90 top to viewer, key-lit      */
    50%      { --face-w: 0.274; }   /* rx135                            */
    56%, 68% { --face-w: 0.380; }   /* rx180                            */
    74%      { --face-w: 0.380; }   /* rx225                            */
    80%, 86% { --face-w: 0.380; }   /* rx270                            */
    94%, 100%{ --face-w: 0;     }
}
@keyframes lit-back {
    0%, 14%  { --face-w: 0;     }
    20%      { --face-w: 0.380; }   /* rx0                              */
    26%      { --face-w: 0.380; }   /* rx45                             */
    32%, 44% { --face-w: 0.197; }   /* rx90                             */
    50%      { --face-w: 0.015; }   /* rx135 brightest                  */
    56%, 68% { --face-w: 0.047; }   /* rx180 back to viewer, key-lit    */
    74%      { --face-w: 0.274; }   /* rx225                            */
    80%, 86% { --face-w: 0.380; }   /* rx270                            */
    94%, 100%{ --face-w: 0;     }
}
@keyframes lit-bottom {
    0%, 14%  { --face-w: 0;     }
    20%      { --face-w: 0.380; }   /* rx0                              */
    26%      { --face-w: 0.380; }   /* rx45                             */
    32%, 44% { --face-w: 0.380; }   /* rx90                             */
    50%      { --face-w: 0.380; }   /* rx135                            */
    56%, 68% { --face-w: 0.197; }   /* rx180                            */
    74%      { --face-w: 0.015; }   /* rx225 brightest                  */
    80%, 86% { --face-w: 0.047; }   /* rx270 bottom to viewer, key-lit  */
    94%, 100%{ --face-w: 0;     }
}

@media (max-width: 991px) {
    .cube-track { height: 260vh; }
    .cube-scene { width: 88%; max-width: 650px; }
    .cube-face { padding: 2.5rem 2rem; }
    .cube-sticky {
        -webkit-perspective: 1200px; perspective: 1200px;
        -webkit-perspective-origin: 47% 33%; perspective-origin: 47% 33%;
    }
}

@media (max-width: 575px) {
    .cube-track { height: 240vh; }
    .cube-scene { width: 92%; aspect-ratio: 4 / 3; }
    .cube-face { padding: 2rem 1.5rem; }
    .cube-face h3 { font-size: 1.4rem; }
    .cube-face p { font-size: 0.9rem; margin-bottom: 1.2rem; }
    .cube-sticky {
        -webkit-perspective: 1400px; perspective: 1400px;
        -webkit-perspective-origin: 50% 36%; perspective-origin: 50% 36%;
    }
}

/* No native scroll-timeline (e.g. Safari) and JS not active yet:
   keep the section short. The JS fallback adds .cube-js on <html>,
   restores the tall track, and drives the props via rAF. */
@supports not (animation-timeline: view()) {
    html:not(.cube-js) .cube-track { height: 130vh; }
}

/* Reduced motion → accessible stacked cards, no 3D, no scroll-pin */
@media (prefers-reduced-motion: reduce) {
    .cube-track {
        height: auto;
    }
    .cube-sticky {
        position: static;
        height: auto;
        display: block;
        -webkit-perspective: none;
        perspective: none;
        padding: 3.5rem 1rem;
    }
    .cube-scene {
        width: 100%;
        max-width: 720px;
        aspect-ratio: auto;
        margin: 0 auto;
        container-type: normal;
        animation: none;
    }
    .cube-box {
        transform: none;
        -webkit-transform-style: flat;
        transform-style: flat;
        animation: none;
        height: auto;
        box-shadow: none;
        border-radius: 0;
        will-change: auto;
    }
    .cube-face {
        position: relative;
        transform: none !important;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
        width: 100%;
        height: auto;
        min-height: 240px;
        border-radius: 24px;
        margin-bottom: 1.25rem;
    }
    .cube-face::before,
    .cube-face::after { display: none; }
    .cube-face { background: var(--face-base, #c7d7ba); }
    .cube-front, .cube-bottom, .cube-back, .cube-top {
        box-shadow: none !important;
        animation: none !important;
        --face-w: 0;
    }
    .cube-side-r,
    .cube-shadow { display: none; }
}

/* =============================================================
   AGENTS SECTION
   ============================================================= */

.agents-section {
    padding: calc(var(--section-pad) * 0.75) 0 var(--section-pad);
    background: var(--bg-tertiary);
}

.agents-section .row {
    max-width: 1100px;
    margin: 0 auto;
}

.agent-card {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--ease-apple);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.agent-card::before { display: none; }

.agent-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.agent-card-dark {
    background: var(--bg-green);
    border: none;
}

.agent-card-dark:hover {
    box-shadow: var(--shadow-lg);
}

.agent-card-with-avatar {
    position: relative;
    padding: 2rem 230px 2rem 2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.agent-avatar {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-avatar img {
    object-fit: contain;
    transition: transform var(--duration-slow) var(--ease-apple);
}

.agent-card:hover .agent-avatar img {
    transform: scale(1.05);
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.agent-card-dark .agent-title {
    color: #1C1917;
}

.agent-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.agent-card-dark .agent-description {
    color: #44403C;
}

.agent-features { margin-bottom: 1.2rem; }

.agent-feature {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.agent-card-dark .agent-feature { color: #44403C; }

.agent-feature i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.agent-card-dark .agent-feature i { color: var(--accent-hover); }

.btn-agent-learn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.82rem;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    transition: all var(--duration-normal) var(--ease-apple);
    cursor: pointer;
    width: fit-content;
    white-space: nowrap;
    margin-top: auto;
    line-height: 1.4;
    text-decoration: none;
}

.btn-agent-learn:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.3);
}

.btn-agent-learn i {
    font-size: 0.78rem;
    transition: transform var(--duration-fast) var(--ease-apple);
}

.btn-agent-learn:hover i {
    transform: translateX(3px);
}

/* =============================================================
   FINAL CTA
   ============================================================= */

.final-cta-simple {
    padding: 0 0 calc(var(--section-pad) * 0.75);
    background: var(--bg-tertiary);
}

.final-cta-simple-card {
    background: var(--bg-green-solid);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    margin: 0 1rem;
}

.final-cta-simple-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.final-cta-simple-text {
    font-size: 1.05rem;
    color: #44403C;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.55;
}

.final-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =============================================================
   FOOTER
   ============================================================= */

.footer {
    background: #0A0A0A;
    border-top: 0.5px solid rgba(var(--accent-rgb), 0.08);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-brand .brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-tagline {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-copyright {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    text-align: center;
}

/* =============================================================
   MODAL - Bottom Sheet on Mobile
   ============================================================= */

.modal-content {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    padding: 1.5rem 1.75rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.modal-body {
    padding: 1.5rem 1.75rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.form-control {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    transition: all var(--duration-fast) var(--ease-apple);
    font-size: 0.95rem;
    background: var(--bg-secondary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
    outline: none;
    background: var(--bg-tertiary);
}

.form-control.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.invalid-feedback {
    font-size: 0.78rem;
    color: #EF4444;
    margin-top: 0.25rem;
}

.modal-footer-custom {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid rgba(0,0,0,0.06);
}

.btn-cancel-custom {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all var(--duration-fast) var(--ease-apple);
    font-size: 0.92rem;
    cursor: pointer;
    line-height: 1.4;
}

.btn-cancel-custom:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-submit-form {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    transition: all var(--duration-fast) var(--ease-apple);
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.btn-submit-form:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.25);
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================================
   TOAST NOTIFICATIONS
   ============================================================= */

.toast-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    top: 5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-notification {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-inverse);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastIn var(--duration-normal) var(--ease-spring);
    box-shadow: var(--shadow-xl);
    max-width: 360px;
    line-height: 1.4;
}

.toast-notification.toast-success {
    border-left: 3px solid #34D399;
}

.toast-notification.toast-error {
    border-left: 3px solid #EF4444;
}

.toast-notification.toast-exit {
    animation: toastOut var(--duration-fast) var(--ease-apple) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(20px) scale(0.95); }
}

/* =============================================================
   COOKIE CONSENT
   ============================================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 0.5px solid var(--glass-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-apple);
    line-height: 1.4;
}

.btn-cookie-accept {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-cookie-accept:hover {
    background: var(--accent-hover);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.12);
}

.btn-cookie-decline:hover {
    background: var(--bg-secondary);
}

/* =============================================================
   SCROLL ANIMATIONS
   ============================================================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-apple),
                transform var(--duration-slow) var(--ease-apple);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   RESPONSIVE - Tablet (1068px)
   ============================================================= */

@media (max-width: 1068px) {
    :root { --section-pad: 100px; }

    .agent-card-with-avatar {
        padding: 2rem !important;
        min-height: 300px !important;
    }

    .agent-avatar {
        width: 200px !important;
        height: 200px !important;
    }

    .agent-features { padding-right: 210px; }
}

/* =============================================================
   RESPONSIVE - Small Tablet / Large Phone (768px)
   ============================================================= */

@media (max-width: 768px) {
    .navbar-brand .brand-icon { width: 48px; height: 48px; }

    .services-section { padding: 60px 0 50px; }
    .sp-pin { height: 200vh; }
    .agents-section { padding: 50px 0 60px; }
    .companies-section { padding: 80px 0; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: auto;
        justify-content: center;
        padding: 0.85rem 2.5rem;
    }


    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-col-center { order: -1; }
    .service-card { padding: 1.8rem; }
    .service-card-featured { padding: 2rem; }
    .sif-row { grid-template-columns: 1fr; }
    .service-popular-badge { font-size: 0.65rem; right: -38px; top: 14px; }

    .process-cta-card { padding: 2.5rem 2rem; }
    .final-cta-simple-card { padding: 2.5rem 2rem; }

    /* Agent cards - alternate bg colors when stacked */
    .agents-section .row .col-lg-6:nth-child(odd) .agent-card {
        background: var(--bg-tertiary);
    }
    .agents-section .row .col-lg-6:nth-child(even) .agent-card {
        background: var(--bg-green);
    }

    .agent-card-with-avatar {
        padding: 1.5rem !important;
        min-height: auto !important;
    }

    .agent-avatar {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        text-align: center;
        margin-top: 0.5rem;
    }

    .agent-avatar img {
        width: 160px;
        height: 160px;
    }

    .agent-content { padding-right: 0; }
    .agent-features { padding-right: 0 !important; }
}

/* =============================================================
   RESPONSIVE - Mobile (734px) - Apple's breakpoint
   ============================================================= */

@media (max-width: 734px) {
    :root { --section-pad: 80px; }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Bottom-sheet modal */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: auto;
        align-items: flex-end;
        display: flex;
    }

    .modal-content {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border: none;
        box-shadow: var(--shadow-xl);
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-content::before {
        content: '';
        display: block;
        width: 36px;
        height: 5px;
        background: rgba(0,0,0,0.12);
        border-radius: 3px;
        margin: 0.6rem auto 0;
    }

    .modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform var(--duration-normal) var(--ease-out-expo);
    }

    .modal.show .modal-dialog {
        transform: translateY(0);
    }

    /* Toast at bottom on mobile */
    .toast-container {
        top: auto;
        bottom: 1.5rem;
        right: 1rem;
        left: 1rem;
    }

    .toast-notification {
        max-width: 100%;
    }

    @keyframes toastIn {
        from { opacity: 0; transform: translateY(20px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes toastOut {
        to { opacity: 0; transform: translateY(20px) scale(0.95); }
    }

    /* Companies horizontal scroll */
    .companies-carousel {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 2rem;
        padding: 0.5rem 0;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .companies-carousel::-webkit-scrollbar { display: none; }

    .company-logo {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: 160px;
        height: 70px;
    }

    /* Cookie banner stacked on mobile */
    .cookie-banner {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1.2rem;
    }
}

/* =============================================================
   RESPONSIVE - Small Phone (480px)
   ============================================================= */

@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }

    .agent-card-with-avatar {
        padding: 1.5rem !important;
        min-height: auto !important;
    }

    .agent-avatar {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        text-align: center;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .agent-avatar img {
        width: 160px;
        height: 160px;
    }

    .agent-content { padding-right: 0; }
    .agent-features { padding-right: 0 !important; }

    .service-card { padding: 1.5rem; }

    .process-cta-card { padding: 2rem 1.5rem; }
    .final-cta-simple-card { padding: 2rem 1.5rem; }

    .modal-header { padding: 1.2rem 1.25rem; }
    .modal-body { padding: 1.2rem 1.25rem; }
    .modal-title { font-size: 1.3rem; }
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip nav link */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--duration-fast) var(--ease-apple);
}

.skip-nav:focus {
    top: 1rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* =============================================================
   LANGUAGE SWITCHER (Navbar)
   ============================================================= */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.btn-lang-switcher {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lang-switcher:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(251, 251, 253, 0.95);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.03);
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown-item {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lang-dropdown-item:hover {
    background: rgba(245, 158, 11, 0.08);
    color: var(--text-primary);
}

/* =============================================================
   LANGUAGE POPUP (First Visit)
   ============================================================= */
.lang-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(240, 245, 236, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lang-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lang-popup {
    background: rgba(251, 251, 253, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 44px 40px 36px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.03);
}

.lang-popup-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.lang-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-popup-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-popup-btn:hover {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.lang-popup-flag {
    font-size: 1.6rem;
    line-height: 1;
}

.lang-popup-label {
    font-size: 1rem;
    font-weight: 500;
}

