:root {
    --bg-absolute: #050507;
    --glass-bg: rgba(22, 22, 29, 0.62);
    --glass-bg-hover: rgba(34, 31, 44, 0.72);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --purple-neon: #d18cff;
    --text-muted: #b2b2bf;
    --text-dim: #898996;
    --focus-ring: #e0afff;
    --header-height: 72px;
}

html {
    scroll-padding-top: 112px;
}

body {
    background:
        radial-gradient(circle at 15% 8%, rgba(85, 25, 130, 0.16), transparent 34rem),
        var(--bg-absolute);
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea,
summary {
    font: inherit;
}

button,
summary {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #09090b;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, textarea, summary):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

section[id] {
    scroll-margin-top: 112px;
}

.display-xl,
.display-lg {
    text-wrap: balance;
}

.text-body {
    line-height: 1.7;
}

.btn {
    min-height: 48px;
    padding: 13px 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    isolation: isolate;
}

.btn-primary {
    background: linear-gradient(135deg, #b760ed, #7835bd);
    border-color: rgba(229, 187, 255, 0.78);
    box-shadow: 0 10px 34px rgba(129, 47, 184, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.13);
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:disabled {
    cursor: wait;
    opacity: 0.62;
}

.glass-panel {
    background: linear-gradient(145deg, rgba(29, 28, 37, 0.66), rgba(12, 12, 16, 0.58));
    border-color: var(--glass-border);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

header {
    top: 20px;
    width: calc(100% - 40px);
    max-width: 1120px;
    background: rgba(10, 10, 12, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-container {
    min-height: 58px;
    padding: 8px 12px 8px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 44px;
    text-decoration: none;
}

.nav-links {
    gap: 26px;
}

.nav-link {
    position: relative;
    padding: 12px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    height: 1px;
    background: var(--purple-neon);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 0.84rem;
    white-space: nowrap;
}

.language-switcher {
    position: relative;
}

.language-switcher summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher summary::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%),
        linear-gradient(transparent 44%, currentColor 45%, currentColor 55%, transparent 56%);
    opacity: 0.8;
}

.language-switcher summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.language-switcher[open] summary,
.language-switcher summary:hover {
    color: #fff;
    border-color: rgba(209, 140, 255, 0.46);
    background: rgba(209, 140, 255, 0.08);
}

.language-switcher[open] summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(13, 13, 18, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(24px);
}

.language-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
}

.language-menu a span:last-child {
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.language-menu a:hover,
.language-menu a[aria-current='page'] {
    background: rgba(209, 140, 255, 0.1);
    color: #fff;
}

[dir='rtl'] .language-menu {
    right: auto;
    left: 0;
}

.hero {
    min-height: min(100svh, 980px);
    padding-top: 142px;
    padding-bottom: 84px;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    gap: 52px;
}

.hero-left {
    width: 100%;
}

.hero-left .display-xl {
    max-width: 760px;
    font-size: clamp(3rem, 6.1vw, 5.65rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-p {
    max-width: 560px;
    color: #b7b7c3;
}

.hero-right {
    height: 720px;
}

.dashboard-mockup {
    left: 8%;
    width: 112%;
    height: 700px;
}

.dashboard-mockup > .dash-header,
.dashboard-mockup > .collapse-trigger-wrap {
    flex: 0 0 auto;
}

.dashboard-mockup .dash-body,
.dashboard-mockup .dash-main,
.dashboard-mockup .dash-list {
    min-height: 0;
}

.dashboard-mockup .dash-main,
.dashboard-mockup .dash-list {
    overflow: hidden;
}

.dashboard-mockup .dash-main {
    padding: 16px 20px;
    gap: 12px;
}

.dashboard-mockup .dash-list {
    gap: 6px;
}

.dashboard-mockup .dash-row {
    padding: 7px 12px;
}

.dashboard-mockup > .collapse-trigger-wrap {
    position: relative;
    z-index: 4;
    background: #0f0f13;
}

.marquee-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 7, 10, 0.82);
}

.marquee-item {
    opacity: 0.72;
}

.problem-scroll .glass-panel {
    border-left: 1px solid rgba(209, 140, 255, 0.22);
}

.tab-btn {
    min-height: 54px;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(209, 140, 255, 0.14), rgba(255, 255, 255, 0.045));
    border-color: rgba(209, 140, 255, 0.3);
}

.industry-pane[hidden] {
    display: none;
}

.step-row {
    margin-bottom: 84px;
}

.step-row:last-child {
    margin-bottom: 0;
}

.step-visual {
    position: relative;
    height: 190px;
    padding: 0;
    justify-content: stretch;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
}

.step-visual::before {
    content: '';
    position: absolute;
    inset: 18px;
    z-index: -1;
    border-radius: 14px;
    background:
        linear-gradient(rgba(209, 140, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 140, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.step-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 7, 10, 0.08), rgba(7, 7, 10, 0.34));
}

.phase-visual-image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.78;
    filter: saturate(0.62) contrast(1.02) brightness(0.92);
    transition: transform 500ms ease, opacity 500ms ease;
}

.phase-visual-caption {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(209, 140, 255, 0.22);
    border-radius: 8px;
    background: rgba(9, 9, 13, 0.72);
    color: #d8c5eb !important;
    font-size: 10px;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
}

.step-visual .phase-visual-caption {
    position: absolute;
}

.step-visual > .text-mono:not(.phase-visual-caption) {
    position: relative;
    z-index: 1;
    color: #b9b9c6 !important;
}

.step-visual:hover .phase-visual-image {
    opacity: 1;
    transform: scale(1.035);
}

.modal-overlay {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.24s ease;
}

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

.modal-close {
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.07);
}

.form-control {
    min-height: 50px;
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.14);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.form-control:focus {
    border-color: var(--purple-neon);
    box-shadow: 0 0 0 3px rgba(209, 140, 255, 0.15);
}

textarea.form-control {
    resize: vertical;
}

.form-status {
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wizard-modal {
    width: min(1120px, calc(100vw - 48px));
    max-width: 1120px;
    height: min(780px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    padding: 0 !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 0%, rgba(199, 125, 255, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(24, 23, 31, 0.98), rgba(9, 9, 13, 0.98));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72), 0 0 80px rgba(91, 33, 182, 0.12);
}

.wizard-modal [hidden] {
    display: none !important;
}

.wizard-modal .modal-close {
    top: 20px;
    right: 20px;
}

[dir='rtl'] .wizard-modal .modal-close {
    right: auto;
    left: 20px;
}

.wizard-rail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 28px 28px;
    background:
        linear-gradient(180deg, rgba(199, 125, 255, 0.09), transparent 32%),
        rgba(0, 0, 0, 0.26);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

[dir='rtl'] .wizard-rail {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-rail-label,
.wizard-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-neon);
    font-family: monospace;
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wizard-live-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: #7dffb2;
    box-shadow: 0 0 12px rgba(125, 255, 178, 0.8);
}

.wizard-rail h3 {
    margin-top: 20px;
    color: var(--text-pure);
    font-size: 1.35rem;
    line-height: 1.22;
}

.wizard-rail > div > p {
    margin-top: 10px;
    color: #9d9caa;
    font-size: 0.84rem;
    line-height: 1.55;
}

.wizard-change-business {
    margin-top: 16px;
    padding: 0;
    color: var(--purple-neon);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.wizard-progress {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 32px 0;
    list-style: none;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

[dir='rtl'] .wizard-progress::before {
    right: 16px;
    left: auto;
}

.wizard-progress li {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 52px;
    color: #71717f;
    transition: color 0.2s ease;
}

.wizard-progress li > span {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: inherit;
    background: #111016;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-family: monospace;
    font-size: 0.65rem;
}

.wizard-progress li strong {
    font-size: 0.79rem;
    font-weight: 500;
}

.wizard-progress li.active {
    color: var(--text-pure);
}

.wizard-progress li.active > span {
    color: #09070c;
    background: var(--purple-neon);
    border-color: var(--purple-neon);
    box-shadow: 0 0 20px rgba(199, 125, 255, 0.35);
}

.wizard-progress li.complete {
    color: #aaa5b5;
}

.wizard-progress li.complete > span {
    color: var(--purple-neon);
    border-color: rgba(199, 125, 255, 0.5);
}

.wizard-privacy-note {
    color: #73717d;
    font-size: 0.7rem;
    line-height: 1.5;
}

.wizard-form {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.wizard-modal.success-state {
    display: block;
}

.wizard-modal.success-state .wizard-rail,
.wizard-form.is-success > .wizard-heading,
.wizard-form.is-success > .wizard-body,
.wizard-form.is-success > .wizard-footer,
.wizard-form.is-success > .form-status {
    display: none;
}

.wizard-form.is-success {
    min-height: 100%;
    display: flex;
}

.wizard-success {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 660px;
    margin: 0 auto;
    padding: 64px 72px;
}

.wizard-success-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    color: #0b0a0e;
    background: linear-gradient(145deg, #d9a0ff, #9e51e8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    font-size: 2rem;
    font-weight: 700;
}

.wizard-success h2 {
    margin-top: 14px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.wizard-success > p {
    max-width: 580px;
    margin: 18px 0 0;
    color: #b5b0bd;
    font-size: 1rem;
    line-height: 1.7;
}

.wizard-success-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 30px;
    color: #d9d2e2;
    font-size: 0.82rem;
}

.wizard-success-detail-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #7dffb2;
    box-shadow: 0 0 14px rgba(125, 255, 178, 0.75);
}

.wizard-heading {
    padding: 34px 72px 22px 42px;
}

[dir='rtl'] .wizard-heading {
    padding-right: 42px;
    padding-left: 72px;
}

.wizard-heading h2 {
    max-width: 680px;
    margin-top: 11px;
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    line-height: 1.12;
}

.wizard-heading p {
    max-width: 650px;
    margin-top: 9px;
    color: #a7a5b1;
    font-size: 0.91rem;
    line-height: 1.5;
}

.wizard-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 42px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 125, 255, 0.35) transparent;
}

.wizard-single-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0 24px;
}

.wizard-single-screen .wizard-fieldset {
    margin-bottom: 20px;
}

.wizard-question-wide {
    min-width: 0;
}

.wizard-question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.wizard-question-grid .wizard-fieldset {
    height: calc(100% - 20px);
}

.wizard-single-screen .wizard-business-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wizard-single-screen .wizard-business-card {
    min-height: 72px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-radius: 12px;
}

.wizard-single-screen .wizard-business-icon {
    width: 30px;
    height: 30px;
}

.wizard-single-screen .wizard-business-card strong {
    font-size: 0.75rem;
}

.wizard-single-screen .wizard-business-card small {
    display: none;
}

.wizard-single-screen .wizard-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wizard-single-screen .wizard-choice > span {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 0.75rem;
}

.wizard-single-screen .wizard-chip-grid {
    gap: 7px;
}

.wizard-single-screen .wizard-chip > span {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.7rem;
}

.wizard-single-screen .wizard-contact-card {
    margin-top: 0;
}

.wizard-single-screen .wizard-consent {
    margin-bottom: 0;
}

.wizard-step.active {
    animation: wizard-step-in 0.24s ease both;
}

@keyframes wizard-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-fieldset {
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.wizard-fieldset > legend {
    width: 100%;
    margin-bottom: 5px;
    color: var(--text-pure);
    font-size: 0.96rem;
    font-weight: 600;
}

.wizard-field-hint {
    margin-bottom: 13px;
    color: #7f7d89;
    font-size: 0.76rem;
}

.wizard-business-grid,
.wizard-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wizard-business-option,
.wizard-choice,
.wizard-chip,
.wizard-radio-card,
.wizard-autonomy-card,
.wizard-segmented label {
    position: relative;
    cursor: pointer;
}

.wizard-business-option > input,
.wizard-choice > input,
.wizard-chip > input,
.wizard-radio-card > input,
.wizard-autonomy-card > input,
.wizard-segmented input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wizard-business-card {
    min-height: 105px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 17px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wizard-business-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #b891d7;
    background: rgba(199, 125, 255, 0.08);
    border: 1px solid rgba(199, 125, 255, 0.18);
    border-radius: 12px;
}

.wizard-business-icon svg {
    width: 21px;
    height: 21px;
}

.wizard-business-card strong,
.wizard-choice strong,
.wizard-autonomy-card strong {
    display: block;
    color: #f2f1f5;
    font-size: 0.86rem;
    line-height: 1.3;
}

.wizard-business-card small,
.wizard-choice small,
.wizard-autonomy-card small {
    display: block;
    margin-top: 5px;
    color: #777582;
    font-size: 0.68rem;
    line-height: 1.35;
}

.wizard-business-option > input:checked + .wizard-business-card {
    background: rgba(199, 125, 255, 0.1);
    border-color: rgba(199, 125, 255, 0.7);
    box-shadow: inset 0 0 24px rgba(199, 125, 255, 0.05), 0 0 0 3px rgba(199, 125, 255, 0.08);
}

.wizard-business-option > input:focus-visible + .wizard-business-card,
.wizard-choice > input:focus-visible + span,
.wizard-chip > input:focus-visible + span,
.wizard-radio-card > input:focus-visible + span,
.wizard-autonomy-card > input:focus-visible + span,
.wizard-segmented input:focus-visible + span {
    outline: 2px solid rgba(199, 125, 255, 0.9);
    outline-offset: 2px;
}

.wizard-business-option > input:checked + .wizard-business-card .wizard-business-icon {
    color: var(--text-pure);
    background: rgba(199, 125, 255, 0.2);
}

.wizard-choice > span {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 42px 14px 16px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

[dir='rtl'] .wizard-choice > span {
    padding-right: 16px;
    padding-left: 42px;
}

.wizard-choice > span::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    color: #777582;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    transform: translateY(-50%);
}

[dir='rtl'] .wizard-choice > span::after {
    right: auto;
    left: 16px;
}

.wizard-choice > input:checked + span {
    background: rgba(199, 125, 255, 0.09);
    border-color: rgba(199, 125, 255, 0.62);
}

.wizard-choice > input:checked + span::after {
    content: '✓';
    color: #0a0710;
    background: var(--purple-neon);
    border-color: var(--purple-neon);
}

.wizard-custom-answer {
    margin-bottom: 0;
    padding-top: 2px;
}

.wizard-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-chip > span {
    min-height: 37px;
    display: flex;
    align-items: center;
    padding: 8px 13px;
    color: #aaa8b3;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1.2;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wizard-chip > input:checked + span {
    color: var(--text-pure);
    background: rgba(199, 125, 255, 0.14);
    border-color: rgba(199, 125, 255, 0.66);
}

.wizard-chip > input:checked + span::before {
    content: '✓';
    margin-right: 6px;
    color: var(--purple-neon);
}

[dir='rtl'] .wizard-chip > input:checked + span::before {
    margin-right: 0;
    margin-left: 6px;
}

.wizard-inline-label {
    margin-top: 15px;
}

.wizard-segmented,
.wizard-card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.wizard-segmented span,
.wizard-radio-card span {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    color: #92909d;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: center;
}

.wizard-segmented input:checked + span,
.wizard-radio-card input:checked + span {
    color: var(--text-pure);
    background: rgba(199, 125, 255, 0.12);
    border-color: rgba(199, 125, 255, 0.62);
}

.wizard-capability-grid .wizard-choice > span {
    min-height: 82px;
}

.wizard-autonomy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wizard-autonomy-card > span {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.wizard-autonomy-card em {
    align-self: flex-start;
    margin-bottom: auto;
    color: var(--purple-neon);
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-autonomy-card input:checked + span {
    background: rgba(199, 125, 255, 0.1);
    border-color: rgba(199, 125, 255, 0.62);
}

.wizard-contact-card {
    padding: 20px;
    background: rgba(199, 125, 255, 0.055);
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 17px;
}

.wizard-contact-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.wizard-contact-heading strong {
    font-size: 0.94rem;
}

.wizard-contact-heading span {
    color: #85838f;
    font-size: 0.7rem;
}

.wizard-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wizard-contact-grid .form-group {
    margin-bottom: 0;
}

.wizard-contact-email {
    grid-column: auto;
}

.wizard-notes-field {
    margin: 14px 0 0;
}

.wizard-consent {
    margin-top: 12px;
    color: #777582;
    font-size: 0.67rem;
    line-height: 1.45;
}

.wizard-consent a {
    color: #aaa4b4;
    text-underline-offset: 3px;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding: 14px 42px;
    background: rgba(7, 7, 10, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.wizard-footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7d7b87;
    font-family: monospace;
    font-size: 0.68rem;
}

.wizard-save-note::before {
    content: '•';
    margin-right: 10px;
}

[dir='rtl'] .wizard-save-note::before {
    margin-right: 0;
    margin-left: 10px;
}

.wizard-actions {
    display: flex;
    gap: 9px;
}

.wizard-actions .btn {
    min-width: 112px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.78rem;
}

.wizard-back {
    color: #b9b7c2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.wizard-form > .form-status {
    margin: 0;
    padding: 10px 42px;
    background: rgba(7, 7, 10, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

[dir='rtl'] .wizard-form > .form-status {
    text-align: right;
}

@media (hover: hover) {
    .wizard-business-option:hover .wizard-business-card,
    .wizard-choice:hover > span,
    .wizard-chip:hover > span,
    .wizard-radio-card:hover > span,
    .wizard-autonomy-card:hover > span,
    .wizard-segmented label:hover > span {
        border-color: rgba(199, 125, 255, 0.42);
    }

    .wizard-business-option:hover .wizard-business-card {
        transform: translateY(-1px);
    }
}

.footer-links a,
footer a {
    min-height: 36px;
}

@media (hover: hover) {
    .landing-page .glass-panel:hover {
        border-color: rgba(255, 255, 255, 0.17);
        background: linear-gradient(145deg, rgba(35, 33, 45, 0.7), rgba(15, 15, 20, 0.64));
        transform: translateY(-2px);
    }

    .landing-page .step-visual:hover,
    .modal-content:hover {
        transform: none;
    }
}

.legal-page main .container {
    max-width: 920px !important;
}

.legal-page main .glass-panel {
    padding: clamp(26px, 4vw, 42px) !important;
}

.legal-page main .text-body {
    font-size: 1rem;
    line-height: 1.8 !important;
}

@media (max-width: 1200px) {
    .hero-split {
        grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
        gap: 32px;
    }

    .dashboard-mockup {
        height: 590px;
    }

    .hero-right {
        height: 640px;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 148px;
        padding-bottom: 28px;
    }

    .hero-split {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        overflow: visible;
    }

    .hero-left {
        max-width: 760px;
        text-align: center;
    }

    .hero-left .display-xl,
    .hero-p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-right {
        flex: none;
        width: 720px;
        height: 650px;
        margin-top: 24px;
        margin-bottom: -90px;
        transform: scale(0.78);
        transform-origin: top center;
    }

    .dashboard-mockup {
        left: 60px;
        width: 600px;
        height: 570px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 62px;
    }

    html {
        scroll-padding-top: 88px;
    }

    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .section {
        padding: 72px 0;
    }

    header {
        top: 10px;
        width: calc(100% - 20px);
    }

    .nav-container {
        min-height: 54px;
        padding: 5px 7px 5px 14px;
    }

    .nav-links {
        gap: 8px;
    }

    .language-switcher summary {
        min-height: 42px;
        padding: 8px 10px;
    }

    .language-menu {
        position: fixed;
        top: 74px;
        right: 10px;
        left: auto;
        width: min(240px, calc(100vw - 20px));
    }

    [dir='rtl'] .language-menu {
        right: auto;
        left: 10px;
    }

    .header-cta {
        min-height: 42px;
        padding: 8px 14px !important;
        font-size: 0.76rem !important;
    }

    .hero {
        padding-top: 112px;
        padding-bottom: 36px;
    }

    .hero-split {
        width: 100%;
        min-width: 0;
        gap: 16px;
    }

    .hero-left {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    [dir='rtl'] .hero-left {
        text-align: right;
    }

    .hero-left .display-xl {
        max-width: 100%;
        margin-bottom: 20px !important;
        font-size: clamp(2.35rem, 11vw, 3.65rem) !important;
        line-height: 1.03;
        overflow-wrap: anywhere;
    }

    .hero-left .text-mono {
        margin-bottom: 16px !important;
        font-size: 0.7rem;
    }

    .hero-p {
        max-width: 100%;
        margin: 0 0 28px;
        font-size: 1.02rem;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .hero-right {
        align-self: center;
        width: 680px;
        height: 640px;
        margin-top: 30px;
        margin-bottom: -285px;
        transform: scale(0.5);
        transform-origin: top center;
    }

    .dashboard-mockup {
        left: 40px !important;
        width: 600px !important;
        height: 570px;
    }

    .tab-list {
        padding-bottom: 12px;
        mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 34px), transparent);
    }

    .tab-btn {
        min-height: 50px;
    }

    .stepper-container {
        margin-top: 0;
    }

    .step-row {
        margin-bottom: 48px;
    }

    .step-content,
    .step-visual {
        margin-bottom: 14px;
    }

    .step-visual {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        padding: 0 !important;
    }

    .step-number {
        width: 36px;
        height: 36px;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .modal-content {
        max-height: calc(100dvh - 20px);
        padding: 28px 20px 22px !important;
        border-radius: 22px 22px 14px 14px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }

    [dir='rtl'] .modal-close {
        right: auto;
        left: 12px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    footer .container {
        align-items: flex-start !important;
        text-align: left !important;
    }

    [dir='rtl'] footer .container {
        text-align: right !important;
    }
}

@media (max-width: 520px) {
    .header-cta {
        display: none;
    }

    .logo-img {
        height: 22px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-right {
        width: 700px;
        height: 620px;
        margin-bottom: -300px;
        transform: scale(0.48);
    }

    .hero-right > svg,
    .hero-right > .floating-ui {
        display: none;
    }

    .collapse-trigger {
        transform: scale(1.8);
    }

    .hero-right.collapsed .collapse-result {
        transform: scale(2) !important;
    }

    #how-it-works .container > div:first-child {
        margin-bottom: 52px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .marquee-wrapper {
        overflow-x: auto;
    }

    .marquee-content {
        animation: none;
    }
}

@media (max-width: 940px) {
    .wizard-modal {
        grid-template-columns: 238px minmax(0, 1fr);
    }

    .wizard-rail {
        padding: 30px 22px 24px;
    }

    .wizard-heading {
        padding-right: 64px;
        padding-left: 30px;
    }

    [dir='rtl'] .wizard-heading {
        padding-right: 30px;
        padding-left: 64px;
    }

    .wizard-body,
    .wizard-footer {
        padding-right: 30px;
        padding-left: 30px;
    }

    .wizard-success {
        padding: 52px 42px;
    }
}

@media (max-width: 768px) {
    .wizard-modal {
        width: 100%;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        padding: 0 !important;
        border-radius: 22px 22px 14px 14px;
    }

    .wizard-modal .modal-close {
        top: 10px;
        right: 10px;
    }

    .wizard-success {
        padding: 52px 24px 38px;
    }

    [dir='rtl'] .wizard-modal .modal-close {
        right: auto;
        left: 10px;
    }

    .wizard-rail {
        position: relative;
        display: block;
        padding: 16px 58px 13px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    [dir='rtl'] .wizard-rail {
        padding-right: 18px;
        padding-left: 58px;
        border-left: 0;
    }

    .wizard-rail-label {
        font-size: 0.6rem;
    }

    .wizard-rail h3 {
        margin-top: 7px;
        font-size: 0.98rem;
    }

    .wizard-rail > div > p,
    .wizard-privacy-note {
        display: none;
    }

    .wizard-change-business {
        margin-top: 6px;
        font-size: 0.67rem;
    }

    .wizard-progress {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        margin: 12px 0 0;
    }

    .wizard-progress::before {
        top: 11px;
        right: 10%;
        bottom: auto;
        left: 10%;
        width: auto;
        height: 1px;
    }

    [dir='rtl'] .wizard-progress::before {
        right: 10%;
        left: 10%;
    }

    .wizard-progress li {
        min-height: 24px;
        display: flex;
        justify-content: center;
    }

    .wizard-progress li > span {
        width: 23px;
        height: 23px;
        font-size: 0.54rem;
    }

    .wizard-progress li strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .wizard-heading {
        padding: 18px 52px 14px 20px;
    }

    [dir='rtl'] .wizard-heading {
        padding-right: 20px;
        padding-left: 52px;
    }

    .wizard-heading h2 {
        margin-top: 8px;
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    }

    .wizard-heading p {
        margin-top: 7px;
        font-size: 0.79rem;
    }

    .wizard-body {
        padding: 0 20px 22px;
    }

    .wizard-fieldset {
        margin-bottom: 23px;
    }

    .wizard-footer {
        min-height: 67px;
        padding: 10px 20px;
    }

    .wizard-form > .form-status {
        padding: 9px 20px;
    }

    .wizard-business-card {
        min-height: 96px;
        padding: 14px;
    }

    .wizard-card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .wizard-question-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wizard-single-screen .wizard-business-grid,
    .wizard-single-screen .wizard-choice-grid {
        grid-template-columns: 1fr;
    }

    .wizard-business-grid,
    .wizard-choice-grid,
    .wizard-autonomy-grid,
    .wizard-contact-grid {
        grid-template-columns: 1fr;
    }

    .wizard-business-card {
        min-height: 78px;
    }

    .wizard-contact-email {
        grid-column: auto;
    }

    .wizard-contact-heading {
        display: block;
    }

    .wizard-contact-heading span {
        display: block;
        margin-top: 4px;
    }

    .wizard-segmented {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-autonomy-card > span {
        min-height: 92px;
    }

    .wizard-save-note {
        display: none;
    }

    .wizard-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .wizard-actions .btn {
        min-width: 96px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Wizard: keep every mobile field inside its column, including long translations. */
.wizard-form,
.wizard-body,
.wizard-step,
.wizard-question,
.wizard-fieldset,
.wizard-contact-card,
.wizard-contact-grid,
.wizard-contact-grid .form-group {
    min-width: 0;
}

.wizard-body {
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.wizard-heading h2,
.wizard-heading p,
.wizard-fieldset > legend,
.wizard-field-hint,
.wizard-business-card strong,
.wizard-choice strong,
.wizard-autonomy-card strong,
.wizard-contact-heading strong,
.wizard-contact-heading span,
.wizard-consent,
.wizard-chip > span,
.wizard-segmented span,
.wizard-radio-card span {
    overflow-wrap: anywhere;
    word-break: normal;
}

.wizard-business-card,
.wizard-choice > span,
.wizard-autonomy-card > span,
.wizard-contact-card {
    overflow: hidden;
}

.wizard-contact-grid .form-control {
    display: block;
    width: 100%;
    min-width: 0;
}

@media (max-width: 640px) {
    .wizard-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wizard-contact-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .wizard-contact-heading span {
        display: block;
    }
}

@media (max-width: 768px) {
    .wizard-modal {
        width: min(100%, 620px);
        min-width: 0;
    }

    .wizard-body {
        overflow-x: hidden;
        padding-right: max(16px, env(safe-area-inset-right));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .wizard-heading {
        padding-right: 52px;
        padding-left: max(16px, env(safe-area-inset-left));
    }

    [dir='rtl'] .wizard-heading {
        padding-right: max(16px, env(safe-area-inset-right));
        padding-left: 52px;
    }

    .wizard-business-card {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        min-height: 72px;
        padding: 12px;
    }

    .wizard-business-card strong,
    .wizard-choice strong,
    .wizard-autonomy-card strong {
        line-height: 1.35;
    }

    .wizard-contact-card {
        padding: 16px;
        border-radius: 14px;
    }

    .wizard-footer {
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .wizard-actions,
    .wizard-actions .btn {
        min-width: 0;
    }

    .wizard-actions .btn {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .wizard-rail {
        padding-right: 50px;
        padding-left: 14px;
    }

    [dir='rtl'] .wizard-rail {
        padding-right: 14px;
        padding-left: 50px;
    }

    .wizard-heading h2 {
        font-size: 1.35rem;
    }

    .wizard-body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .wizard-contact-card {
        padding: 14px;
    }
}

/* Wizard flow: one step owns the viewport at a time. */
.wizard-form {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.wizard-heading,
.wizard-footer,
.wizard-form > .form-status {
    flex: none;
}

.wizard-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.wizard-step {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
}

.wizard-step[hidden] {
    display: none !important;
}

.wizard-step > * + * {
    margin-top: 24px;
}

.wizard-step.active {
    animation: wizard-step-in 0.24s ease both;
}

.wizard-question-grid {
    align-items: start;
}

.wizard-question-grid .wizard-fieldset {
    height: auto;
}

.wizard-contact-grid .form-label {
    display: block;
}

@media (max-width: 768px) {
    .wizard-modal {
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
    }
}
