* { box-sizing: border-box; margin: 0; }
html, body {
    min-height: 100%;
    overflow: auto;
}
body {
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, sans-serif;
    color: #1E1B2E;
    background: #F8F6FF;
    --home-left-shift: clamp(160px, 22vw, 300px);
}
a { color: inherit; }

.site-header {
    flex: 0 0 auto;
    background: #F8F6FF;
    position: relative;
    z-index: 3;
}
.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: calc(var(--home-left-shift) / 2);
    text-decoration: none;
    font-family: Sora, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: #3D348B;
    white-space: nowrap;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(120deg, #6366F1, #8B5CF6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5B5670;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #4338CA; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: calc(var(--home-left-shift) / 2);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1.5px solid transparent;
}
.btn-ghost { color: #4338CA; }
.btn-primary {
    background: #5850EC;
    color: #fff;
    box-shadow: 0 8px 16px rgba(88, 80, 236, 0.22);
}
.btn-outline {
    background: #fff;
    color: #5850EC;
    border-color: #C7BFF5;
}
.btn-lg { height: 48px; padding: 0 20px; }

main {
    flex: 0 1 auto;
    display: block;
}
.stage {
    position: relative;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
.wrap {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-canvas {
    position: relative;
    height: min(560px, calc(100vw * 571 / 1024 * 0.72));
    background: #F8F6FF;
}
.hero {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 36px;
    z-index: 2;
}
.hero-copy {
    width: min(34%, 440px);
    margin-left: calc(var(--home-left-shift) / 2);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F3F0FF;
    color: #5B4FE0;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 16px;
}
h1 {
    font-family: Sora, Inter, sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
h1 em {
    display: inline-block;
    margin-top: 4px;
    font-style: normal;
    font-size: 1.12em;
    background: linear-gradient(120deg, #6366F1, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lede {
    margin: 14px 0 20px;
    color: #6B6880;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 26rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    list-style: none;
    margin-top: 16px;
    padding: 0;
    color: #6B6880;
    font-size: 0.78rem;
    font-weight: 500;
}
.trust i { color: #5850EC; margin-right: 6px; }

.hero-visual {
    position: absolute;
    right: calc(var(--home-left-shift) / 2);
    left: auto;
    bottom: 0;
    width: auto;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 140px),
        linear-gradient(to top, transparent, #000 72px);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 140px),
        linear-gradient(to top, transparent, #000 72px);
    mask-composite: intersect;
}
.hero-visual img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
}

.stage .wrap {
    padding-left: 0;
    padding-right: 0;
}

.workflow {
    padding: 0 0 6px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    background: transparent;
}
.workflow h2 {
    font-family: Sora, Inter, sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    column-gap: 22px;
    width: calc(100% - var(--home-left-shift));
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 22px;
    padding: 16px 18px;
    overflow: visible;
    box-shadow: 0 14px 40px rgba(30, 27, 46, 0.1);
}
.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 6px;
    overflow: visible;
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    width: 16px;
    border-top: 1.6px dashed #8B86C9;
    transform: translateY(-50%);
    z-index: 2;
}
.step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    border: 4px solid transparent;
    border-left-color: #8B86C9;
    transform: translateY(-50%);
    z-index: 2;
}
.step-ic {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(30, 27, 46, 0.08);
}
.step-copy { min-width: 0; }
.step h3 {
    display: flex;
    align-items: center;
    font-family: Sora, Inter, sans-serif;
    font-size: 0.88rem;
    margin-bottom: 2px;
}
.step h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
    background: #EDE9FE;
    color: #6D5EF5;
    font-size: 0.68rem;
    font-weight: 700;
}
.step p { color: #6B6880; font-size: 0.72rem; line-height: 1.35; }
.ic-discover { background: #EDE6FF; color: #7C3AED; }
.ic-match { background: #D1FAE5; color: #059669; }
.ic-tailor { background: #EDE4FF; color: #8B5CF6; }
.ic-apply { background: #DBEAFE; color: #2563EB; }
.ic-track { background: #FEF3C7; color: #D97706; }

.bottom-row {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 4px 24px 16px;
    position: relative;
    z-index: 2;
    background: transparent;
}
.loved {
    flex: 0 1 340px;
    margin-left: calc(var(--home-left-shift) / 2);
    color: #8A8598;
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 500;
}
.wordmarks {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 16px;
    margin-top: 8px;
    color: #6B7280;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.wordmarks span:nth-child(2) { font-family: Sora, Inter, sans-serif; }
.vline {
    flex: 0 0 1px;
    align-self: stretch;
    min-height: 48px;
    background: #E8E5F4;
}
.benefits {
    flex: 1;
    margin-right: calc(var(--home-left-shift) / 2);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 16px;
    border-left: 1px solid #E8E5F4;
}
.benefit:first-child { border-left: 0; padding-left: 0; }
.benefit-ic {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ic-safe { background: #3B82F6; }
.ic-time { background: #10B981; }
.ic-win { background: #F59E0B; }
.benefit h3 {
    font-family: Sora, Inter, sans-serif;
    font-size: 0.84rem;
    margin-bottom: 2px;
}
.benefit p { color: #8A8598; font-size: 0.72rem; line-height: 1.35; }

@media (max-width: 900px) {
    html, body { height: auto; overflow: auto; }
    body { display: block; }
    .nav-links { display: none; }
    main { display: block; }
    .hero { display: block; }
    .hero-canvas {
        height: auto;
    }
    .hero-visual {
        position: relative;
        right: auto;
        left: 0;
        width: 100%;
        height: auto;
        -webkit-mask-image: none;
        mask-image: none;
        -webkit-mask-composite: unset;
        mask-composite: unset;
    }
    .hero-visual img {
        width: 100%;
        height: auto;
    }
    .hero {
        position: relative;
        inset: auto;
        height: auto;
        padding-top: 16px;
    }
    .hero-copy { width: 100%; margin-left: 0; }
    .brand { margin-left: 0; }
    .header-actions { margin-right: 0; }
    .steps { margin-left: 0; margin-right: 0; width: 100%; }
    .loved { margin-left: 0; }
    .benefits { margin-right: 0; }
    .steps, .benefits { grid-template-columns: 1fr; }
    .step:not(:last-child)::after,
    .step:not(:last-child)::before { display: none; }
    .benefit { border-left: 0; padding: 8px 0; }
    .bottom-row { flex-direction: column; align-items: flex-start; }
    .vline { display: none; }
    .wordmarks { flex-wrap: wrap; white-space: normal; }
}

@media (max-height: 760px) and (min-width: 901px) {
    h1 { font-size: 1.55rem; }
    .lede { margin: 8px 0 12px; font-size: 0.82rem; }
    .trust { margin-top: 10px; }
    .steps { padding: 12px 6px; }
    .workflow h2 { margin-bottom: 8px; }
}
