/* ==========================================================================
   WeMatch Landing Page - Simplified Design
   Clean white background with blue/purple accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Clean and Simple */
    --ink: #1a1a1a;
    --ink-secondary: #4a4a4a;
    --ink-muted: #595959;
    --blue-core: #2563eb;
    --blue-deep: #1d4ed8;
    --purple-core: #7c3aed;
    --purple-light: #a78bfa;
    --error-red: #dc2626;
    --success-green: #16a34a;

    /* Simple backgrounds */
    --glass-bg: #ffffff;
    --glass-bg-hover: #f8fafc;
    --glass-border: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);

    /* Font Sizes */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-macro: 800ms;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Legacy mappings for compatibility */
    --cyan-highlight: var(--blue-core);
    --green-core: var(--success-green);
    --green-bright: var(--success-green);
    --shadow-glass: var(--shadow-card);
    --shadow-glow-blue: none;
    --shadow-glow-cyan: none;
    --gradient-iridescent: var(--gradient-primary);
    --gradient-background: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle blue/purple striations */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Remove the second overlay */
body::after {
    display: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

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

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

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

p {
    color: var(--ink-secondary);
    max-width: 65ch;
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
}

.section {
    padding: var(--space-20) 0;
    position: relative;
    z-index: 1;
}

.section--hero {
    display: flex;
    align-items: center;
    padding-top: var(--space-24);
    padding-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   Card Components (simplified)
   -------------------------------------------------------------------------- */
.glass {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

/* Remove the iridescent border effect */
.glass::before {
    display: none;
}

/* Remove the inner highlight */
.glass::after {
    display: none;
}

.glass:hover {
    box-shadow: var(--shadow-md);
}

.glass-card {
    padding: var(--space-6);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-glass {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
    background: #f8fafc;
    border-color: var(--blue-core);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    gap: var(--space-2);
}

.btn-icon-right {
    flex-direction: row-reverse;
}

.btn-icon-right svg {
    margin-left: 0;
}


/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: left;
    align-items: flex-start;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan-highlight);
}

.hero__eyebrow::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ============================================================================
   SITE HEADER
   ============================================================================ */
.site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: var(--space-4) 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header__content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-header__spacer {
    flex: 1;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.site-header__logo {
    max-width: 100px;
    height: auto;
}

@media (max-width: 768px) {
    .site-header__logo {
        max-width: 90px;
    }

    .site-header {
        padding: var(--space-3) 0;
    }
}

@media (max-width: 480px) {
    .site-header__logo {
        max-width: 80px;
    }
}

.hero__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--ink-secondary);
    max-width: 50ch;
}

.hero__social-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-3);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    width: fit-content;
}

.hero__stars {
    display: flex;
    gap: 1px;
    color: #f59e0b;
}

.hero__stars svg {
    width: 13px;
    height: 13px;
}

.hero__social-proof-text {
    font-size: 12px;
    color: var(--ink-muted);
}

.hero__social-proof-text strong {
    color: var(--ink-secondary);
}

.hero__guarantees {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
}


.guarantee {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
}

.guarantee__icon {
    width: 24px;
    height: 24px;
    color: var(--green-core);
    flex-shrink: 0;
}

.guarantee__text {
    color: var(--ink-secondary);
}

.guarantee__text strong {
    color: var(--ink);
    font-weight: 600;
}

.hero__cta {
    margin-top: var(--space-4);
}

/* Hero Visual / Animation Area */
.hero__visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Document Orbit */
.doc-orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.doc-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
    will-change: transform;
    animation: float 4s ease-in-out infinite;
}

.doc-icon svg {
    width: 28px;
    height: 28px;
}

.doc-icon.active {
    border-color: var(--blue-core);
    box-shadow: var(--shadow-lg);
    transform: scale(1.1);
}

.doc-icon.linked {
    border-color: var(--success-green);
    box-shadow: var(--shadow-md);
}

/* Position document icons around orbit */
.doc-icon:nth-child(1) {
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.doc-icon:nth-child(2) {
    top: 15%;
    right: -28px;
    animation-delay: 0.5s;
}

.doc-icon:nth-child(3) {
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.doc-icon:nth-child(4) {
    bottom: 15%;
    right: -28px;
    animation-delay: 1.5s;
}

.doc-icon:nth-child(5) {
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.doc-icon:nth-child(6) {
    bottom: 15%;
    left: -28px;
    animation-delay: 2.5s;
}

.doc-icon:nth-child(7) {
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
    animation-delay: 3s;
}

.doc-icon:nth-child(8) {
    top: 15%;
    left: -28px;
    animation-delay: 3.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Preserve original transform for positioned items */
.doc-icon:nth-child(1) {
    animation: float-center 4s ease-in-out infinite;
}

.doc-icon:nth-child(3) {
    animation: float-center 4s ease-in-out infinite 1s;
}

.doc-icon:nth-child(5) {
    animation: float-center 4s ease-in-out infinite 2s;
}

.doc-icon:nth-child(7) {
    animation: float-center 4s ease-in-out infinite 3s;
}

@keyframes float-center {

    0%,
    100% {
        transform: translate(-50%, 0) translateY(0);
    }

    50% {
        transform: translate(-50%, 0) translateY(-8px);
    }
}

/* Match Thread Panel */
.match-panel {
    position: relative;
    width: 280px;
    padding: var(--space-5);
    z-index: 10;
}

.match-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--glass-border);
}

.match-panel__title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
}

.match-panel__status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.match-panel__status--ok {
    background: rgba(0, 229, 160, 0.15);
    color: var(--success-green);
}

.match-panel__status--error {
    background: rgba(255, 77, 106, 0.15);
    color: var(--error-red);
}

.match-panel__docs {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.match-panel__doc {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    opacity: 0.5;
    transition: all var(--duration-base) var(--ease-smooth);
}

.match-panel__doc.linked {
    opacity: 1;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.match-panel__doc-icon {
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
}

.match-panel__doc.linked .match-panel__doc-icon {
    color: var(--green-core);
}

.match-panel__detail {
    padding: var(--space-3);
    background: rgba(255, 77, 106, 0.1);
    border: 1px solid rgba(255, 77, 106, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--error-red);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--duration-base) var(--ease-smooth);
}

.match-panel__detail.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Notification */
.toast {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    white-space: nowrap;
    will-change: transform, opacity;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast__icon {
    width: 20px;
    height: 20px;
    color: var(--cyan-highlight);
}

/* --------------------------------------------------------------------------
   Guarantees Section
   -------------------------------------------------------------------------- */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.guarantee-card {
    text-align: center;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guarantee-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    color: var(--cyan-highlight);
}

.guarantee-card__value {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guarantee-card__label {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Interactive Card Input Styles */
.guarantee-card__input {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid #cbd5e1 !important;
    /* Force visibility */
    width: 100%;
}



.guarantee-card__input-label {
    display: block;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-3);
    /* Enforce 2-line height to align dividers across cards */
    min-height: 3rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
}


.guarantee-card__select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
    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='%231a1a1a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.guarantee-card__select:hover {
    border-color: var(--blue-core);
    background-color: #f8fafc;
}

.guarantee-card__select:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.guarantee-card__select option {
    background: #ffffff;
    color: var(--ink);
    padding: var(--space-2);
}

/* Text Input for Guarantee Cards */
.guarantee-card__text-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    transition: all var(--duration-base) var(--ease-smooth);
}

.guarantee-card__text-input::placeholder {
    color: var(--ink-muted);
}

.guarantee-card__text-input:hover {
    border-color: var(--blue-core);
    background-color: #f8fafc;
}

.guarantee-card__text-input:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Guarantee Card Select Dropdown */
.guarantee-card__select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: var(--space-12);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    transition: all var(--duration-base) var(--ease-smooth);
}

.guarantee-card__select:hover {
    border-color: var(--blue-core);
    background-color: #f8fafc;
}

.guarantee-card__select:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.guarantee-card__select option {
    background: #ffffff;
    color: var(--ink);
    padding: var(--space-2);
}

/* Guarantee Card Description (replaces input) */
.guarantee-card__description {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid #cbd5e1;
}

.guarantee-card__description p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--ink-secondary);
    margin: 0;
}

/* Interactive Form Section */
.guarantees-interactive {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.guarantees-interactive__header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.guarantees-interactive__header h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--ink);
}

.guarantees-interactive__header p {
    font-size: var(--text-base);
    color: var(--ink-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.guarantees-interactive__fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.guarantees-interactive__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.guarantees-interactive__field label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink);
}

.guarantees-interactive__field select,
.guarantees-interactive__field input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    transition: all var(--duration-base) var(--ease-smooth);
}

.guarantees-interactive__field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-12);
}

.guarantees-interactive__field select:hover,
.guarantees-interactive__field input:hover {
    border-color: var(--blue-core);
    background-color: #f8fafc;
}

.guarantees-interactive__field select:focus,
.guarantees-interactive__field input:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.guarantees-interactive__field input::placeholder {
    color: var(--ink-muted);
}

.guarantees-interactive__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.guarantees-interactive__progress {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.guarantees-interactive__progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-smooth);
    width: 0%;
}

.guarantees-interactive__progress-text {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    font-weight: 500;
}

/* Info Cards below Interactive Form */
.guarantees-interactive__info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.guarantees-interactive__info-card {
    padding: var(--space-4);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.guarantees-interactive__info-card h5 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--ink);
}

.guarantees-interactive__info-card p,
.guarantees-interactive__info-card li {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.guarantees-interactive__info-card p:last-child {
    margin-bottom: 0;
}

.guarantees-interactive__info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guarantees-interactive__info-card li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.guarantees-interactive__info-card li svg {
    flex-shrink: 0;
    color: var(--success-green);
    margin-top: 2px;
}

/* ============================================================================
   MULTI-STEP WIZARD FORM
   ============================================================================ */
.multistep-wizard {
    margin-top: var(--space-8);
    /* Reduced vertical gap */
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    /* Widened for better fit */
    margin-left: auto;
    margin-right: auto;
}

.wizard-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.wizard-header h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--ink);
}

.wizard-header p {
    font-size: var(--text-base);
    color: var(--ink-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Step Indicator - Segmented Bars */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* Small gap between bars */
    margin-bottom: var(--space-8);
    padding: 0 var(--space-8);
    width: 100%;
    max-width: 600px;
    /* Keep indicator concentrated */
    margin-left: auto;
    margin-right: auto;
}

/* The Bar Segment */
.step-dot {
    flex: 1;
    /* Expand to fill space */
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    display: flex;
    font-size: 0;
    /* Hide text */
    color: transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.step-dot span {
    display: none;
    /* Absolutely hide numbers */
}

/* Active: The expanding/colored state */
.step-dot.active {
    background: var(--blue-core);
    box-shadow: 0 2px 8px rgba(0, 21, 255, 0.25);
    transform: scaleY(1.2);
    /* Slight pop */
}

/* Completed: Also colored */
.step-dot.completed {
    background: var(--blue-core);
    opacity: 0.5;
    /* Slightly muted to show 'past' */
}

.step-dot.completed::after {
    display: none;
    /* No checkmarks needed for bars */
}

/* Hide old lines */
.step-line {
    display: none;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeSlideIn var(--duration-base) var(--ease-smooth);
}

.wizard-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.wizard-step__content {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-4) 0;
}

.wizard-step__content--contact {
    min-height: auto;
}

.wizard-step__label {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-6);
    display: block;
    text-align: center;
    line-height: 1.4;
}

/* Wizard Inputs */
.wizard-select,
.wizard-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: #ffffff;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    transition: all var(--duration-base) var(--ease-smooth);
}

.wizard-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

.wizard-input::placeholder {
    color: var(--ink-muted);
}

.wizard-select:hover,
.wizard-input:hover {
    border-color: var(--blue-core);
    background-color: #f8fafc;
}

.wizard-select:focus,
.wizard-input:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Wizard Range Slider */
.wizard-slider-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.wizard-slider-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-slider-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink);
    text-align: center;
}

.wizard-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--blue-core) 0%, #e2e8f0 0%);
    outline: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wizard-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-core);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 21, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wizard-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(0, 21, 255, 0.45);
}

.wizard-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-core);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 21, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wizard-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.wizard-range-value {
    display: block;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
}

.wizard-step__description {
    font-size: var(--text-base);
    color: var(--ink-secondary);
}

/* Contact Grid (Step 9) */
.wizard-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.wizard-field--full {
    grid-column: 1 / -1;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.wizard-step-counter {
    font-size: var(--text-sm);
    color: var(--ink-muted);
    font-weight: 500;
}

.wizard-btn-back,
.wizard-btn-next {
    min-width: 120px;
}

.wizard-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-btn-next:not(:disabled) {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px -1px rgba(37, 99, 235, 0.5);
    }
}

/* Wizard Results */
.wizard-results {
    text-align: center;
    padding: var(--space-4) var(--space-6);
    animation: fadeSlideIn var(--duration-base) var(--ease-smooth);
}

.wizard-results__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.wizard-results__header svg {
    width: 32px;
    height: 32px;
}

.wizard-results__header h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink);
}

.wizard-results__content {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-4);
}

.wizard-results__stat {
    text-align: center;
}

.wizard-results__stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-results__stat-label {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
}

.wizard-results__details {
    margin-top: var(--space-3);
}

.wizard-results__details .results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.wizard-results__details .result-item {
    padding: var(--space-3);
    background: #f8fafc;
    border-radius: var(--radius-md);
    text-align: center;
}

.wizard-results__details .result-item.highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.wizard-results__details .result-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    margin-bottom: var(--space-2);
}

.wizard-results__details .result-value {
    display: block;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink);
}

.wizard-results__details .results-note {
    font-size: var(--text-xs);
    color: var(--ink-muted);
    margin-top: var(--space-4);
}

/* Wizard Mobile Responsive */
@media (max-width: 768px) {
    .multistep-wizard {
        padding: var(--space-5);
        margin-top: var(--space-8);
    }

    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-line {
        max-width: 16px;
    }

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

    .wizard-select,
    .wizard-input {
        font-size: var(--text-base);
        padding: var(--space-3) var(--space-4);
    }

    .wizard-contact-grid {
        grid-template-columns: 1fr;
    }

    .wizard-field--full {
        grid-column: 1;
    }

    .wizard-nav {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .wizard-step-counter {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .wizard-btn-back,
    .wizard-btn-next {
        flex: 1;
        min-width: 0;
    }

    .wizard-results__content {
        flex-direction: row;
        gap: var(--space-4);
    }

    .wizard-results__stat-value {
        font-size: var(--text-xl);
    }

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


/* Case Card Logo & Header Alignment */
.case-studies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.case-card {
    display: grid;
    grid-template-rows: 60px 70px 50px 140px auto auto;
    gap: var(--space-3);
}

.case-card__logo {
    display: flex;
    align-items: center;
    height: 48px;
}

.case-card__logo img {
    max-width: 140px;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.case-card__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.case-card__matching-badge {
    align-self: start;
}

.case-card__before-after {
    min-height: 120px;
}

.case-card__achieved {
    padding: var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.case-card__cta {
    align-self: end;
    margin-top: auto;
}


/* Hero CTA Centered */
.hero__cta--centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

/* Hero Doc Altro Input */
.hero__doc-altro-input {
    width: 100%;
    margin-top: var(--space-3);
    padding-left: var(--space-2);
}

.hero__doc-altro-text {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    transition: all var(--duration-base) var(--ease-smooth);
}

.hero__doc-altro-text::placeholder {
    color: var(--ink-muted);
}

.hero__doc-altro-text:hover {
    border-color: var(--blue-core);
    background-color: #f8fafc;
}

.hero__doc-altro-text:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Card completed state */
.guarantee-card.completed {
    border-color: var(--green-core);
}

.guarantee-card.completed::before {
    background: linear-gradient(135deg, var(--green-core) 0%, var(--cyan-highlight) 100%);
}

.guarantee-card.completed .guarantee-card__icon {
    color: var(--green-core);
}

/* Guarantees Form Footer */
.guarantees-form__footer {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.guarantees-form__progress {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.guarantees-form__progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-smooth);
}

.guarantees-form__progress-text {
    font-size: var(--text-sm);
    color: var(--ink-muted);
}

.guarantees-form__submit {
    transition: all var(--duration-base) var(--ease-smooth);
}

.guarantees-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Guarantees Results Panel */
.guarantees-results {
    margin-top: var(--space-8);
    padding: var(--space-8);
    text-align: center;
    animation: slideUp var(--duration-slow) var(--ease-spring);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.guarantees-results__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.guarantees-results__header h3 {
    font-size: var(--text-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guarantees-results__content {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.guarantees-results__stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.guarantees-results__stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--blue-core);
}

.guarantees-results__stat-label {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
}

/* Results Details Grid */
.guarantees-results__details {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.result-item.highlight {
    background: linear-gradient(135deg, rgba(59, 91, 219, 0.1), rgba(0, 224, 194, 0.1));
    border-color: var(--blue-core);
}

.result-label {
    font-size: var(--text-sm);
    color: var(--ink-muted);
}

.result-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--blue-core);
}

.results-note {
    font-size: var(--text-xs);
    color: var(--ink-muted);
    font-style: italic;
    text-align: center;
}

/* Case Study Achieved Section */
.case-card__achieved {
    padding: var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-top: var(--space-3);
}

.case-card__achieved--pending {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.case-card__label--success {
    color: var(--success-green);
    font-weight: 600;
}

.case-card__label--pending {
    color: #f59e0b;
    font-weight: 600;
}

.case-card__metrics {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0 0;
    font-size: var(--text-sm);
}

.case-card__metrics li {
    padding: var(--space-1) 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.case-card__metrics li:last-child {
    border-bottom: none;
}

.case-card__monitoring-note {
    margin: var(--space-2) 0 0 0;
    font-size: var(--text-sm);
    color: var(--ink-muted);
    font-style: italic;
}

/* Hero Document Selector */
.hero__doc-selector {
    margin-top: var(--space-4);
    padding: var(--space-6);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero__doc-selector::before {
    display: none;
}

.hero__doc-selector-label {
    display: block;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.hero__doc-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.hero__doc-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-secondary);
}

.hero__doc-checkbox:hover {
    border-color: var(--blue-core);
    background: #f0f4ff;
}

.hero__doc-checkbox input {
    display: none;
}

.hero__doc-checkbox input:checked+.hero__doc-checkbox-icon {
    background: var(--gradient-primary);
    border-color: transparent;
}

.hero__doc-checkbox input:checked+.hero__doc-checkbox-icon svg {
    opacity: 1;
}

.hero__doc-checkbox input:checked~.hero__doc-checkbox-text {
    color: var(--ink);
}

.hero__doc-checkbox-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-base) var(--ease-smooth);
    background: #ffffff;
}

.hero__doc-checkbox-icon svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

/* --------------------------------------------------------------------------
   Examples Section
   -------------------------------------------------------------------------- */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.example-card {
    padding: var(--space-6);
}

.example-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.example-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.example-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: rgba(255, 77, 106, 0.15);
    color: var(--error-red);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.example-card__diff {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: var(--text-sm);
}

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

.diff-row--old {
    color: var(--error-red);
}

.diff-row--new {
    color: var(--success-green);
}

.diff-prefix {
    opacity: 0.5;
}

.example-card__footer {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--glass-border);
    font-size: var(--text-sm);
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.example-card__footer-icon {
    width: 16px;
    height: 16px;
    color: var(--cyan-highlight);
}

/* --------------------------------------------------------------------------
   Steps Section
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
}

/* Connection line */
.steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: calc(16.67% + 40px);
    right: calc(16.67% + 40px);
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.step__title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.step__desc {
    font-size: var(--text-base);
    color: var(--ink-secondary);
}

.step__visual {
    margin-top: var(--space-6);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Integration Section
   -------------------------------------------------------------------------- */
.integration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-8);
}

.integration__node {
    padding: var(--space-4) var(--space-6);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.integration__node-icon {
    width: 24px;
    height: 24px;
    color: var(--blue-core);
}

.integration__arrow {
    color: var(--ink-muted);
    font-size: var(--text-2xl);
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.section--trust {
    padding-top: var(--space-4);
    padding-bottom: var(--space-10);
}

.trust-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
}

.trust-chip__icon {
    width: 18px;
    height: 18px;
    color: var(--green-core);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) 0;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: var(--text-lg);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--duration-base) var(--ease-smooth);
}

.faq-question:hover {
    color: var(--cyan-highlight);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--duration-base) var(--ease-smooth);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-smooth);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer__content {
    padding-bottom: var(--space-5);
    color: var(--ink-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    text-align: center;
    padding: var(--space-24) 0;
}

.cta-section__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.cta-section__subtitle {
    font-size: var(--text-lg);
    color: var(--ink-secondary);
    margin-bottom: var(--space-8);
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease-out, visibility 200ms ease-out;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-8);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal__header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.modal__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.modal__subtitle {
    font-size: var(--text-base);
    color: var(--ink-secondary);
}

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.modal__close:hover {
    background: var(--glass-bg);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-secondary);
}

.form-label span {
    color: var(--error-red);
}

.form-input,
.form-select {
    padding: var(--space-4);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.form-input::placeholder {
    color: var(--ink-muted);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue-core);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

.form-select option {
    background: #ffffff;
    color: var(--ink);
}

/* Upload area */
.form-upload {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
}

.form-upload:hover {
    border-color: var(--blue-core);
    background: #f0f4ff;
}

.form-upload__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-3);
    color: var(--ink-muted);
}

.form-upload__text {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
}

.form-upload__text strong {
    color: var(--blue-core);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--ink-muted);
    margin-top: var(--space-1);
}

.form-submit {
    margin-top: var(--space-4);
}

/* Success state */
.form-success {
    text-align: center;
    padding: var(--space-8);
}

.form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    color: var(--success-green);
}

.form-success__title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.form-success__text {
    color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   Sticky CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    opacity: 1;
    visibility: visible;
    transition: all var(--duration-slow) var(--ease-spring);
}



/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header__eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan-highlight);
    margin-bottom: var(--space-3);
}

.section-header__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-header__subtitle {
    font-size: var(--text-lg);
    color: var(--ink-secondary);
    max-width: 60ch;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-macro) var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 100ms;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 200ms;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 300ms;
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::after {
        animation: none;
    }

    .doc-icon {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__visual {
        height: 400px;
    }

    .doc-orbit {
        width: 320px;
        height: 320px;
    }

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

    .examples-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .steps::before {
        display: none;
    }

    /* Flow Diagram responsive — stack vertically on tablets */
    .flow-diagram {
        flex-direction: column;
    }

    .flow-diagram__main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--space-6);
        min-height: auto;
    }

    .chaos-zone__nodes {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quoro-core {
        margin: 0 auto;
    }

    .order-zone__nodes {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .order-node {
        flex-direction: column !important;
    }

    .order-node__status {
        margin-left: 0 !important;
    }

    .flow-detail {
        width: 100%;
        max-width: 100%;
    }

    /* Case Studies responsive */
    .case-studies {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Calendar CTA responsive */
    .calendar-cta {
        grid-template-columns: 1fr;
    }

    .calendly-placeholder {
        min-height: 600px;
    }
}

/* --------------------------------------------------------------------------
   Flow Diagram Section
   -------------------------------------------------------------------------- */
.section--flow {
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
}

.flow-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.flow-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: var(--space-1);
}

.flow-toggle__btn {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--ink-secondary);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
}

.flow-toggle__btn:hover {
    color: var(--ink);
}

.flow-toggle__btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

.flow-toggle--steps .flow-toggle__btn {
    font-size: var(--text-xs);
}

.flow-diagram {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

/* ============================================================================
   CHAOS → QUORO → ORDER  |  3-Zone Flow Diagram — Horizontal Layout
   ============================================================================ */

.flow-diagram__main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    min-height: 420px;
    background: linear-gradient(145deg, rgba(250, 252, 255, 0.95), rgba(241, 245, 249, 0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.03);
}

/* Base flow-node (shared) */
.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
    min-width: 80px;
}

.flow-node svg {
    width: 24px;
    height: 24px;
    color: var(--ink-secondary);
    transition: color var(--duration-base) var(--ease-smooth);
}

.flow-node span {
    white-space: nowrap;
}

.flow-node:hover {
    border-color: var(--cyan-highlight);
    box-shadow: var(--shadow-glow-cyan);
}

.flow-node:hover svg {
    color: var(--cyan-highlight);
}

.flow-node.active {
    border-color: var(--cyan-highlight);
    box-shadow: var(--shadow-glow-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.flow-node.active svg {
    color: var(--cyan-highlight);
}

.flow-node__pill {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: rgba(0, 240, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 10px;
    color: var(--cyan-highlight);
    margin-top: var(--space-1);
}

.flow-node--highlight {
    border-color: var(--green-core);
    background: rgba(0, 212, 170, 0.1);
}

.flow-node--highlight svg {
    color: var(--green-core);
}


/* ---- ZONE 1: CHAOS — Skeuomorphic Paper Cards ---- */
.chaos-zone {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3) 0;
}

.chaos-zone__label {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e8553a;
    background: rgba(232, 85, 58, 0.07);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(232, 85, 58, 0.15);
    white-space: nowrap;
    margin: 0 auto var(--space-3);
    width: fit-content;
}

.chaos-lines {
    display: none;
}

/* Chaos nodes — skeuomorphic paper cards scattered on desk */
.chaos-node {
    position: relative !important;
    z-index: 2;
    border: none !important;
    background: #ffffff !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 3px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    animation: chaosFloat 5s ease-in-out infinite alternate;
    border-radius: 6px !important;
}

/* Paper fold corner effect */
.chaos-node::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(225deg, #e8e8e8 0%, #e8e8e8 50%, transparent 50%);
    border-radius: 0 6px 0 0;
    pointer-events: none;
}

.chaos-node:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    z-index: 10;
    transform: translateY(-2px) rotate(0deg) !important;
}

/* Flexbox wrap with slight rotations for messy desk feel */
.chaos-zone .chaos-zone__nodes {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    z-index: 2;
    padding: 0 var(--space-2);
}

.chaos-node {
    position: relative !important;
}

/* Slight rotations for scattered paper feel */
.chaos-node--1 {
    transform: rotate(-3deg);
    --chaos-rot: -3deg;
}

.chaos-node--2 {
    transform: rotate(2.5deg);
    animation-delay: 0.5s;
    --chaos-rot: 2.5deg;
}

.chaos-node--3 {
    transform: rotate(-4deg);
    animation-delay: 0.2s;
    --chaos-rot: -4deg;
}

.chaos-node--4 {
    transform: rotate(3deg);
    animation-delay: 0.8s;
    --chaos-rot: 3deg;
}

.chaos-node--5 {
    transform: rotate(-2deg);
    animation-delay: 0.4s;
    --chaos-rot: -2deg;
}

.chaos-node--6 {
    transform: rotate(4.5deg);
    animation-delay: 1s;
    --chaos-rot: 4.5deg;
}

.chaos-node--7 {
    transform: rotate(-3.5deg);
    animation-delay: 0.15s;
    --chaos-rot: -3.5deg;
}

@keyframes chaosFloat {
    0% {
        transform: translate(0, 0) rotate(var(--chaos-rot, -3deg));
    }

    100% {
        transform: translate(1px, -2px) rotate(calc(var(--chaos-rot, -3deg) + 1deg));
    }
}


/* ---- ZONE 2: QUORO CORE ---- */
.quoro-core {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.quoro-core__glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(0, 102, 255, 0.08) 40%, transparent 70%);
    animation: coreBreath 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes coreBreath {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.quoro-core__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
}

.quoro-core__ring--outer {
    width: 180px;
    height: 180px;
    border-color: rgba(0, 240, 255, 0.25);
    border-top-color: var(--cyan-highlight);
    border-right-color: var(--cyan-highlight);
    animation: ringRotate 6s linear infinite;
}

.quoro-core__ring--inner {
    width: 160px;
    height: 160px;
    border-color: rgba(0, 102, 255, 0.15);
    border-bottom-color: var(--blue-core);
    border-left-color: var(--blue-core);
    animation: ringRotate 4s linear infinite reverse;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

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

.quoro-core__body {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1628, #0d1f3c, #0a1628);
    border: 2px solid var(--cyan-highlight);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.quoro-core__icon {
    width: 28px;
    height: 28px;
    color: var(--cyan-highlight);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.quoro-core__name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #fff;
}

.quoro-core__sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(0, 240, 255, 0.7);
    text-transform: uppercase;
}

/* Capability pills around the core */
.quoro-core__cap {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan-highlight);
    background: rgba(0, 240, 255, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 240, 255, 0.2);
    white-space: nowrap;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quoro-core__cap:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: var(--cyan-highlight);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.quoro-core__cap--1 {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.quoro-core__cap--2 {
    top: 15%;
    right: -50px;
}

.quoro-core__cap--3 {
    bottom: 15%;
    right: -42px;
}

.quoro-core__cap--4 {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.quoro-core__cap--5 {
    bottom: 15%;
    left: -55px;
}

.quoro-core__cap--6 {
    top: 15%;
    left: -32px;
}


/* ---- PROCESSING ZONE — compact, Quoro-centered ---- */
.processing-zone {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: var(--space-3) 0;
}

/* Hide floats on desktop — they add clutter in horizontal view */
.processing-zone__float {
    display: none;
}

@keyframes docFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(var(--doc-y, -4px));
    }
}

/* ---- ZONE 3: ORDER — Clean organized outputs ---- */
.order-zone {
    width: 100%;
    padding: var(--space-3) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

.order-zone__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0d9668;
    background: rgba(13, 150, 104, 0.06);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(13, 150, 104, 0.15);
    white-space: nowrap;
    text-align: center;
    width: fit-content;
}

.order-zone__nodes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.order-node {
    border: none !important;
    background: #ffffff !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 3px 8px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(13, 150, 104, 0.1) !important;
    text-align: center !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    padding: var(--space-3) var(--space-4) !important;
    min-width: auto;
    gap: var(--space-1) !important;
    border-radius: 6px !important;
    flex-direction: row !important;
}

.order-node svg {
    width: 22px !important;
    height: 22px !important;
}

.order-node span:not(.order-node__status) {
    font-size: var(--text-xs);
    font-weight: 600;
}

.order-node:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(13, 150, 104, 0.2) !important;
    transform: translateY(-2px);
}

.order-node svg {
    color: #0d9668 !important;
}

.order-node__status {
    font-size: 9px;
    font-weight: 600;
    color: #0d9668;
    background: rgba(13, 150, 104, 0.08);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: auto;
}

/* Flow Detail Panel */
.flow-detail {
    width: 280px;
    padding: var(--space-5);
    flex-shrink: 0;
}

.flow-detail__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.flow-detail__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--cyan-highlight);
}

.flow-detail__icon svg {
    width: 24px;
    height: 24px;
}

.flow-detail__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink);
}

.flow-detail__desc {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    line-height: 1.6;
}

.flow-detail__example {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

.flow-detail__match {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.flow-detail__match-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
}

.flow-detail__match-status--ok {
    background: rgba(0, 229, 160, 0.15);
    color: var(--success-green);
}

.flow-detail__match-status--error {
    background: rgba(255, 77, 106, 0.15);
    color: var(--error-red);
    animation: pulse 2s ease-in-out infinite;
}

/* Trust Pills in Flow Detail */
.flow-detail__trust {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--ink-secondary);
    transition: all var(--duration-base) var(--ease-smooth);
}

.trust-pill:hover {
    background: #ffffff;
    border-color: var(--blue-core);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.trust-pill__icon {
    width: 16px;
    height: 16px;
    color: var(--cyan-highlight);
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Case Studies Section
   -------------------------------------------------------------------------- */
.section--proof {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

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

.case-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.case-card:hover {
    transform: translateY(-4px);
}

.case-card:hover::before {
    opacity: 1;
    background: var(--gradient-iridescent);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.case-card__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-height: 4rem;
    /* Ensure consistent height for alignment */
    justify-content: center;
}

.case-card__company {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink);
}

.case-card__sector {
    font-size: var(--text-xs);
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-card__matching-badge {
    background: rgba(100, 116, 139, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--ink-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    border: 1px solid var(--glass-border);
}


.case-card__before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.case-card__before,
.case-card__after {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.case-card__before {
    background: rgba(255, 77, 106, 0.1);
    border: 1px solid rgba(255, 77, 106, 0.2);
}

.case-card__after {
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.2);
}

.case-card__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.case-card__before .case-card__label {
    color: var(--error-red);
}

.case-card__after .case-card__label {
    color: var(--success-green);
}

.case-card__before p,
.case-card__after p {
    color: var(--ink-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.case-card__results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.case-card__results li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--ink-secondary);
}

.case-card__results svg {
    flex-shrink: 0;
    color: var(--success-green);
    margin-top: 2px;
}

.case-card__quote {
    font-style: italic;
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    padding-left: var(--space-4);
    border-left: 2px solid var(--cyan-highlight);
    margin: 0;
}

.case-card__cta {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Calendar CTA Section
   -------------------------------------------------------------------------- */
.section--calendar {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.calendar-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.calendar-cta__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.calendar-cta__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
}

.calendar-cta__subtitle {
    font-size: var(--text-lg);
    color: var(--ink-secondary);
}

.calendar-cta__what h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--ink);
}

.calendar-cta__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.calendar-cta__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--ink-secondary);
}

.calendar-cta__list svg {
    flex-shrink: 0;
    color: var(--success-green);
    margin-top: 2px;
}

/* Side-by-side Layout for Booking Cards */
.calendar-cta__cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.calendar-cta__bring {
    flex: 1;
    /* Both take equal space */
    min-width: 200px;
    padding: var(--space-3);
    /* Tighter padding */
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.calendar-cta__bring h5 {
    font-size: var(--text-base);
    /* Reduced from lg */
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--ink);
}

.calendar-cta__bring p,
.calendar-cta__bring li {
    font-size: var(--text-sm);
    /* Reduced from base */
    color: var(--ink-secondary);
    margin-bottom: var(--space-1);
    line-height: 1.5;
}



.calendar-cta__bring p:last-child {
    margin-bottom: 0;
}


.calendar-cta__reassurance {
    font-size: var(--text-sm);
    color: var(--ink-muted);
    font-style: italic;
}

.calendar-cta__embed {
    min-height: 700px;
}

.calendly-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    min-height: 700px;
    text-align: center;
    color: var(--ink-secondary);
}

.calendly-placeholder__fallback {
    font-size: var(--text-sm);
}

.calendly-placeholder__fallback a {
    color: var(--cyan-highlight);
    text-decoration: none;
}

.calendly-placeholder__fallback a:hover {
    text-decoration: underline;
}

/* Calendly inline widget override */
.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Highlight animation for scroll-to behavior */
.calendar-cta.highlight {
    animation: highlightGlow 1s ease-out;
}

@keyframes highlightGlow {
    0% {
        box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.google-calendar-iframe {
    background: white;
    border-radius: var(--radius-xl);
}


@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

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

    .hero__visual {
        height: 350px;
    }

    .doc-orbit {
        width: 280px;
        height: 280px;
    }

    .doc-icon {
        width: 44px;
        height: 44px;
    }

    .doc-icon svg {
        width: 22px;
        height: 22px;
    }

    .match-panel {
        width: 240px;
        padding: var(--space-4);
    }

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

    .guarantee-card {
        padding: var(--space-6);
    }

    .integration {
        flex-direction: column;
    }

    .integration__arrow {
        transform: rotate(90deg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero__visual {
        height: 300px;
    }

    .doc-orbit {
        width: 240px;
        height: 240px;
    }

    .doc-icon {
        width: 36px;
        height: 36px;
    }

    .doc-icon svg {
        width: 18px;
        height: 18px;
    }

    .match-panel {
        width: 200px;
        padding: var(--space-3);
    }

    .btn-large {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--space-8) 0;
    margin-top: var(--space-16);
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer__brand {
    flex: 1;
}

.footer__team {
    font-size: var(--text-base);
    color: var(--ink-secondary);
}

.footer__team a {
    color: var(--blue-core);
    text-decoration: none;
    font-weight: 600;
}

.footer__team a:hover {
    text-decoration: underline;
}

.footer__legal {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.footer__legal a {
    color: var(--ink-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s;
}

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

.footer__divider {
    color: var(--glass-border);
}

.footer__company {
    text-align: right;
}

.footer__company p {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    margin: 0;
    line-height: 1.5;
}

.footer__copyright {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    margin: 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        text-align: center;
    }

    .footer__company {
        text-align: center;
    }
}

/* ============================================================================
   COOKIE CONSENT BANNER
   ============================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-4);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

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

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.cookie-banner__content p {
    flex: 1;
    margin: 0;
    font-size: var(--text-sm);
    color: #fff;
    min-width: 300px;
}

.cookie-banner__content a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner__content a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.cookie-banner__buttons {
    display: flex;
    gap: var(--space-2);
}

.cookie-banner__btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-banner__btn--accept {
    background: var(--gradient-primary);
    color: white;
}

.cookie-banner__btn--accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #e2e8f0;
}

.cookie-banner__btn--decline:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__content p {
        min-width: auto;
    }

    .cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   COMPREHENSIVE MOBILE RESPONSIVE (max-width: 768px)
   ============================================================================ */
@media (max-width: 768px) {

    /* Calendar CTA Section */
    .calendar-cta {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .calendar-cta__embed {
        order: -1;
    }

    .calendar-cta__cards-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Guarantees Interactive */
    .guarantees-interactive__fields {
        grid-template-columns: 1fr;
    }

    .guarantees-interactive__footer {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }

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

    /* Hero Document Checkboxes */
    .hero__doc-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .hero__doc-option {
        padding: var(--space-2);
        font-size: var(--text-sm);
    }

    /* Hero Guarantees */
    .hero__guarantees {
        flex-direction: column;
        gap: var(--space-3);
    }

    .guarantee {
        justify-content: center;
    }

    /* Section Headers */
    .section-header__title {
        font-size: var(--text-2xl);
    }

    .section-header__subtitle {
        font-size: var(--text-base);
    }

    /* Sticky CTA */
    .sticky-cta {
        padding: var(--space-3) var(--space-4);
    }

    .sticky-cta__content {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .sticky-cta .btn {
        width: 100%;
    }

    /* Modal */
    .modal {
        margin: var(--space-4);
        max-height: calc(100vh - var(--space-8));
    }

    .modal__header {
        padding: var(--space-4);
    }

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

    .form {
        padding: var(--space-4);
    }

    /* FAQ */
    .faq-question {
        padding: var(--space-4);
        font-size: var(--text-base);
    }

    .faq-answer__content {
        padding: 0 var(--space-4) var(--space-4);
    }

    /* Case Studies */
    .case-studies {
        grid-template-columns: 1fr;
    }

    .case-card {
        padding: var(--space-5);
    }

    /* Footer */
    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .footer__company {
        text-align: center;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================================================
   SMALL MOBILE (max-width: 480px)
   ============================================================================ */
@media (max-width: 480px) {

    /* Typography */
    .hero__title {
        font-size: var(--text-2xl);
    }

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

    /* Hero Document Checkboxes - Single Column */
    .hero__doc-selector {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn-large {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-base);
    }

    .btn-primary {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    /* Guarantee Cards */
    .guarantee-card__value {
        font-size: var(--text-3xl);
    }

    .guarantee-card__label {
        font-size: var(--text-sm);
    }

    /* Container */
    .container {
        padding: 0 var(--space-3);
    }

    /* Sections */
    .section {
        padding: var(--space-12) 0;
    }

    /* Results Panel */
    .guarantees-results {
        padding: var(--space-4);
    }

    .guarantees-results__stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .guarantees-results__stat-value {
        font-size: var(--text-4xl);
    }

    /* Info Cards */
    .guarantees-interactive__info-card {
        padding: var(--space-4);
    }

    .guarantees-interactive__info-card h5 {
        font-size: var(--text-base);
    }

    /* Calendar Embed */
    .google-calendar-iframe {
        height: 500px !important;
    }

    /* Cookie Banner */
    .cookie-banner {
        padding: var(--space-3);
    }

    .cookie-banner__buttons {
        flex-direction: column;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* ============================================================================
   EXTRA SMALL MOBILE (max-width: 360px)
   ============================================================================ */
@media (max-width: 360px) {
    .hero__title {
        font-size: var(--text-xl);
    }

    .guarantee-card__value {
        font-size: var(--text-2xl);
    }

    .btn-large {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    .section-header__eyebrow {
        font-size: var(--text-xs);
    }

    .modal {
        margin: var(--space-2);
    }
}

/* ============================================================================
   TABLET LANDSCAPE (max-width: 1024px) ENHANCEMENTS
   ============================================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .calendar-cta {
        gap: var(--space-6);
    }

    .calendar-cta__cards-wrapper {
        grid-template-columns: 1fr 1fr;
    }

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

/* ============================================================================
   LARGE DESKTOP (min-width: 1440px)
   ============================================================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero__title {
        font-size: 4rem;
    }

    .section-header__title {
        font-size: 3rem;
    }
}


/* ============================================================================
   CRITICAL MOBILE FIXES (max-width: 768px)
   Fixes for: overflow scroll issues, title size, flow diagram cutoff, case studies scroll
   ============================================================================ */
@media (max-width: 768px) {

    /* HERO SECTION - Prevent overflow and scroll issues */
    .section--hero {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .hero {
        overflow: visible;
    }

    .hero__content {
        text-align: center;
        padding: 0 var(--space-2);
    }

    .hero__visual {
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .hero__doc-selector {
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* HERO TITLE - Much bigger on mobile */
    .hero__title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* SECTION HEADERS - Bigger text outside cards */
    .section-header__eyebrow {
        font-size: 0.75rem;
    }

    .section-header__title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-header__subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* GUARANTEE LIST - Left aligned */
    .hero__guarantees {
        align-items: flex-start;
        gap: var(--space-3);
        text-align: left;
        padding: 0;
        margin-left: 0;
    }

    .guarantee {
        display: flex;
        align-items: flex-start;
        gap: var(--space-3);
        width: 100%;
        justify-content: flex-start;
    }

    .guarantee__icon {
        min-width: 22px;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .guarantee__text {
        font-size: 1rem;
        line-height: 1.4;
        text-align: left;
    }

    /* FLOW DIAGRAM - Stack vertically, prevent cutoff */
    .flow-diagram {
        flex-direction: column !important;
        overflow-x: hidden;
    }

    .flow-diagram__main {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        min-height: auto;
        padding: var(--space-4);
        gap: var(--space-4);
        overflow: hidden;
    }

    .chaos-zone__nodes {
        flex-wrap: wrap;
        gap: 6px;
    }

    .chaos-node {
        position: relative !important;
        animation: none !important;
        padding: var(--space-2) !important;
        min-width: 65px;
    }

    .chaos-node::after {
        width: 8px;
        height: 8px;
    }

    .chaos-lines {
        display: none;
    }

    .processing-zone {
        padding: var(--space-2) 0;
    }

    .processing-zone__float {
        display: none !important;
    }

    .quoro-core {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .quoro-core__body {
        width: 85px;
        height: 85px;
    }

    .quoro-core__icon {
        width: 22px;
        height: 22px;
    }

    .quoro-core__name {
        font-size: 11px;
    }

    .quoro-core__sub {
        font-size: 8px;
    }

    .quoro-core__ring--outer {
        width: 140px;
        height: 140px;
    }

    .quoro-core__ring--inner {
        width: 115px;
        height: 115px;
    }

    .quoro-core__glow {
        width: 150px;
        height: 150px;
    }

    .quoro-core__cap {
        font-size: 7px;
        padding: 2px 6px;
    }

    .quoro-core__cap--2 {
        right: -40px;
    }

    .quoro-core__cap--3 {
        right: -32px;
    }

    .quoro-core__cap--5 {
        left: -45px;
    }

    .quoro-core__cap--6 {
        left: -22px;
    }

    .order-zone__nodes {
        flex-direction: column;
        gap: 8px;
    }

    .order-node {
        min-width: auto;
        padding: var(--space-2) var(--space-3) !important;
        flex-direction: row !important;
    }

    .order-node svg {
        width: 18px !important;
        height: 18px !important;
    }

    .flow-detail {
        display: none;
    }

    .flow-wematch {
        width: 100%;
        max-width: 100%;
    }

    /* CASE STUDIES - Stack vertically, no horizontal scroll */
    .case-studies {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-4);
        overflow-x: hidden;
    }

    .case-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    /* Prevent horizontal scroll everywhere */
    body,
    html {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* STICKY CTA - Full width */
    .sticky-cta__content {
        flex-direction: column;
        text-align: center;
    }

    .sticky-cta .btn {
        width: 100%;
    }
}

/* ============================================================================
   EXTRA SMALL MOBILE FIXES (max-width: 480px)
   ============================================================================ */
@media (max-width: 480px) {
    .hero__logo {
        max-width: 80px !important;
        margin-bottom: var(--space-6) !important;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__doc-selector {
        display: flex !important;
        flex-direction: column !important;
    }

    .hero__doc-option {
        padding: var(--space-2) var(--space-3);
    }

    .flow-node {
        padding: var(--space-2);
        font-size: var(--text-xs);
    }

    .flow-node svg {
        width: 16px;
        height: 16px;
    }

    .case-card__header {
        padding: var(--space-3);
    }

    .case-card__logo {
        max-height: 24px;
    }

    .case-card__company {
        font-size: var(--text-base);
    }

    .case-card__problem,
    .case-card__solution {
        padding: var(--space-3);
    }

    /* Section eyebrow */
    .section-header__eyebrow {
        font-size: 0.65rem;
    }

    .section-header__title {
        font-size: 1.25rem;
    }

    .section-header__subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================================================
   MOBILE-OPTIMIZED EXPERIENCE (max-width: 768px)
   Priority: Left-align, bigger text, CTA below bullets, no scroll traps
   ============================================================================ */
@media (max-width: 768px) {

    /* HIDE HEADER CTA ON MOBILE - Only show logo */
    .site-header__right .btn {
        display: none;
    }

    /* SHOW MOBILE CTA BUTTON - Below bullet list */
    .hero__mobile-cta {
        display: block;
        margin-top: var(--space-6);
        width: 100%;
    }

    .hero__mobile-cta .btn {
        width: 100%;
        padding: var(--space-4) var(--space-6);
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* HERO CONTENT - Left aligned, bigger text */
    .hero__content {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .hero__title {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
        text-align: left !important;
    }

    .hero__subtitle {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    /* GUARANTEE LIST - Left aligned, bigger text */
    .hero__guarantees {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: var(--space-4) !important;
        padding: 0 !important;
        margin: var(--space-6) 0 !important;
    }

    .guarantee {
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    }

    .guarantee__icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        color: var(--green-success);
    }

    .guarantee__text {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }

    /* PREVENT ALL HORIZONTAL SCROLL - Single vertical flow */
    html,
    body {
        overflow-x: hidden !important;
    }

    .section,
    .container,
    .hero,
    .hero__visual,
    .flow-diagram,
    .case-studies,
    .guarantees-interactive,
    .calendar-cta {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* CASE STUDIES - Vertical stack, no horizontal scroll */
    .case-studies {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-4) !important;
        scroll-snap-type: none !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .case-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        scroll-snap-align: none !important;
    }

    /* FLOW DIAGRAM - Vertical layout, no overflow */
    .flow-diagram__main {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        scroll-snap-type: none !important;
        padding: var(--space-3) !important;
    }

    .chaos-zone__nodes {
        gap: 5px;
    }

    .chaos-node {
        min-width: 58px;
        padding: var(--space-1) var(--space-2) !important;
        font-size: 10px !important;
    }

    .chaos-node svg {
        width: 16px !important;
        height: 16px !important;
    }

    .chaos-node::after {
        width: 6px;
        height: 6px;
    }

    .flow-detail {
        display: none !important;
    }

    /* DOCUMENT SELECTOR CHECKBOXES - Full width, stack */
    .hero__doc-checkboxes {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-2) !important;
    }

    .hero__doc-checkbox {
        width: 100% !important;
    }

    /* CALENDAR CTA - Single column */
    .calendar-cta {
        grid-template-columns: 1fr !important;
    }

    /* GUARANTEES INTERACTIVE FORM */
    .guarantees-interactive__fields {
        grid-template-columns: 1fr !important;
    }

    /* FAQ - Full width */
    .faq-item {
        width: 100% !important;
    }

    /* SECTION HEADERS - Bigger on mobile */
    .section-header__title {
        font-size: 1.75rem !important;
        text-align: center !important;
    }

    .section-header__subtitle {
        font-size: 1.05rem !important;
        text-align: center !important;
    }
}

/* HIDE MOBILE CTA ON DESKTOP */
@media (min-width: 769px) {
    .hero__mobile-cta {
        display: none;
    }
}

/* ============================================================================
   VERY SMALL MOBILE (max-width: 480px)
   ============================================================================ */
@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem !important;
    }

    .hero__subtitle {
        font-size: 1rem !important;
    }

    .guarantee__text {
        font-size: 1rem !important;
    }

    .hero__mobile-cta .btn {
        font-size: 1rem;
    }
}

/* ========== LOGOS SECTION ========== */
.section--logos {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 22, 40, 0.8);
    overflow: hidden;
}

.logos__label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Reduced mask to show more content */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee__content {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
    /* Center items vertically */
}

/* Pause animation on hover */
.marquee:hover .marquee__content {
    animation-play-state: paused;
}

.logo-icon {
    height: 48px;
    /* Increased size */
    width: auto;
    opacity: 0.9;
    /* Increased visibility */
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.5);
    /* Make them white/bright */
}

/* Specific adjustments for colored logos provided by user to match theme */
.custom-logo {
    filter: grayscale(100%) brightness(200%);
    /* Brighter for user assets which might be dark */
}

.logo-icon:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
    /* Show original color on hover */
    transform: scale(1.05);
}

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

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .marquee__content {
        gap: 3rem;
        animation-duration: 25s;
    }

    .logo-icon {
        height: 32px;
    }
}

/* ========== LOGOS SECTION ========== */
.section--logos {
    padding: var(--space-6) 0;
    /* Transparent floating look */
    background: transparent;
    border: none;
    overflow: hidden;
    position: relative;
}

.logos__label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cyan-highlight);
    /* Blue to match other eyebrows */
    margin: 0 auto var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
    max-width: none;
    /* Override default p max-width */
}

.logo-icon {
    height: 48px;
    width: auto;
    opacity: 1;
    transition: all 0.3s ease;
    filter: none;
    /* Show original colors */
}

.custom-logo {
    filter: none;
}




/* ========== HERO ANIMATION (GLASS DOC STREAM) ========== */
.hero__animation-container {
    width: 100%;
    max-width: 600px;
    height: 520px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Subtle depth glow */
    background: radial-gradient(circle at 50% 50%, rgba(0, 21, 255, 0.04) 0%, transparent 70%);
}

.hero-anim__stream {
    position: relative;
    width: 100%;
    height: 420px;
    /* Perspective for 3D feel */
    perspective: 1000px;
}

/* Glass Document Card */
.glass-doc-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 160px;
    /* Rectangular Aspect Ratio */
    background: var(--glass-liquid);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);

    /* Flex content centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);

    /* Box Shadow & Depth */
    box-shadow:
        0 12px 32px -8px rgba(0, 21, 255, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);

    /* Transform positioning */
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
    animation: docFloat 8s ease-in-out infinite;
    animation-delay: var(--delay);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.glass-doc-card:hover {
    z-index: 10;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 10px)) rotate(0deg) scale(1.05);
    border-color: var(--blue-core);
    box-shadow: 0 16px 40px rgba(0, 21, 255, 0.2);
    /* Bring icon to life on hover */
    color: var(--blue-core);
}

.glass-doc-icon {
    width: 32px;
    height: 32px;
    color: var(--ink-secondary);
    transition: color 0.3s ease;
}

.glass-doc-card:hover .glass-doc-icon {
    color: var(--blue-core);
}

.glass-doc-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

@keyframes docFloat {

    0%,
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
    }

    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 15px)) rotate(var(--r));
    }
}

/* Minimal CTA */
.hero-anim__action {
    text-align: center;
    margin-top: var(--space-4);
    z-index: 20;
}

.btn-altro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    color: var(--blue-core);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 21, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-altro:hover {
    background: #fff;
    color: var(--purple-core);
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.15);
    transform: translateY(-2px);
}

/* Wizard Docs Grid - Light Theme Update */
.wizard-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.wizard-docs-grid .hero__doc-checkbox {
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Subtle border */
    border-radius: var(--radius-lg);
    color: var(--ink);
    transition: all 0.2s ease;
    cursor: pointer;
    /* Ensure pointer cursor */
    position: relative;
}

.wizard-docs-grid .hero__doc-checkbox.checked,
.wizard-docs-grid .hero__doc-checkbox:has(input:checked) {
    border-color: var(--blue-core);
    background: #eff6ff;
    /* Light blue tint */
    box-shadow: 0 0 0 1px var(--blue-core), 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.wizard-docs-grid .hero__doc-checkbox.checked .hero__doc-checkbox-text,
.wizard-docs-grid .hero__doc-checkbox:has(input:checked) .hero__doc-checkbox-text {
    color: var(--blue-core);
    font-weight: 600;
}

.wizard-docs-grid .hero__doc-checkbox:hover {
    border-color: var(--blue-core);
    background: var(--off-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero__animation-container {
        height: 420px;
        margin-top: var(--space-8);
    }

    .hero-anim__stream {
        height: 300px;
    }

    /* Optimized mobile positions */
    .glass-doc-card:nth-child(1) {
        --x: -90px;
        --y: -70px;
    }

    .glass-doc-card:nth-child(2) {
        --x: 90px;
        --y: -80px;
    }

    .glass-doc-card:nth-child(3) {
        --x: -70px;
        --y: 50px;
    }

    .glass-doc-card:nth-child(4) {
        --x: 80px;
        --y: 40px;
    }

    /* Hide extra cards on mobile */
    .glass-doc-card:nth-child(n+5) {
        display: none;
    }

    .glass-doc-card {
        width: 100px;
        height: 130px;
    }
}