:root {
    --ink: #171b2b;
    --muted: #626979;
    --line: #dfe4e8;
    --soft: #f4f7f8;
    --coral: #ff4f4a;
    --coral-dark: #df3735;
    --teal: #0b8f8f;
    --teal-soft: #e8f6f5;
    --blue: #2463eb;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(23, 27, 43, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.aiora-page {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body.aiora-app {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.site-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}

.brand-name .brand-ai {
    color: var(--ink);
}

.brand-name .brand-hub {
    color: var(--coral);
}

.site-header {
    position: relative;
    z-index: 20;
    height: 76px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(223, 228, 232, 0.85);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: #343949;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--coral);
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: var(--white);
    background: var(--coral);
}

.button--primary:hover {
    background: var(--coral-dark);
}

.button--secondary {
    color: var(--teal);
    background: var(--white);
    border-color: var(--teal);
}

.button--secondary:hover {
    background: var(--teal-soft);
}

.button--dark {
    color: var(--white);
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero__photo {
    position: absolute;
    inset: 0 0 0 40%;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    min-height: 690px;
    display: flex;
    align-items: center;
}

.hero__copy {
    width: min(620px, 58%);
    padding: 72px 0 98px;
}

.hero h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(48px, 5.5vw, 78px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: 0;
}

.hero h1 span {
    color: var(--coral);
}

.hero p {
    max-width: 590px;
    margin: 30px 0 0;
    color: #4d5464;
    font-size: 18px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    margin-top: 42px;
    color: #4a5161;
    font-size: 13px;
    font-weight: 700;
}

.hero__proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__proof span::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--teal);
}

.section {
    padding: 100px 0;
}

.section--soft {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 0 54px;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.section-heading span {
    color: var(--coral);
}

.journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.journey::before {
    position: absolute;
    z-index: 0;
    top: 17px;
    right: calc((100% / 6) - 18px);
    left: 18px;
    height: 1px;
    content: "";
    background: var(--line);
}

.journey-step {
    position: relative;
    padding: 0 18px 0 0;
}

.journey-step__number {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--coral);
    border-radius: 50%;
    color: var(--coral);
    background: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.journey-step:nth-child(2n) .journey-step__number {
    color: var(--teal);
    border-color: var(--teal);
}

.journey-step h3 {
    margin: 22px 0 8px;
    font-size: 16px;
}

.journey-step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.product-band {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 70px;
    align-items: center;
}

.product-copy h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
}

.product-copy p {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.product-copy .button {
    margin-top: 30px;
}

.integration-screen {
    margin: 0;
    overflow: hidden;
    background: #050607;
    border: 1px solid #252b31;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.integration-screen img {
    display: block;
    width: 100%;
    aspect-ratio: 1271 / 608;
    object-fit: cover;
}

.integration-screen figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    color: #dce2e8;
    border-top: 1px solid #252b31;
}

.integration-screen figcaption strong {
    color: var(--white);
    font-size: 13px;
}

.integration-screen figcaption span {
    color: #9099a5;
    font-size: 12px;
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.pipeline span {
    padding: 9px 6px;
    color: #606777;
    background: var(--soft);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.pipeline span:nth-child(2) {
    color: var(--teal);
    background: var(--teal-soft);
}

.candidate-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) 0.65fr 0.8fr 0.75fr;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.candidate-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.candidate-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    color: var(--ink);
    background: #edf0f2;
    font-size: 11px;
    font-weight: 800;
}

.candidate-person strong,
.candidate-person small {
    display: block;
}

.candidate-person strong {
    font-size: 12px;
}

.candidate-person small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.score {
    color: var(--teal);
    font-size: 18px;
    font-weight: 800;
}

.status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--teal);
    background: var(--teal-soft);
    font-size: 9px;
    font-weight: 800;
}

.mini-action {
    padding: 7px 9px;
    border: 0;
    border-radius: 4px;
    color: var(--white);
    background: var(--coral);
    font: inherit;
    font-size: 9px;
    font-weight: 800;
}

.audiences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.audience {
    padding: 72px max(40px, calc((100vw - 1180px) / 2));
}

.audience:first-child {
    padding-right: 64px;
    background: #fff5f4;
}

.audience:last-child {
    padding-left: 64px;
    background: #edf8f7;
}

.audience h2 {
    margin: 0;
    font-size: 34px;
}

.audience p {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.audience ul {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.audience li {
    padding: 12px 0;
    border-top: 1px solid rgba(23, 27, 43, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.cta-band {
    padding: 72px 0;
    color: var(--white);
    background: var(--coral);
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.cta-band h2 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.05;
}

.cta-band__actions {
    display: flex;
    gap: 12px;
}

.cta-band .button--secondary {
    color: var(--ink);
    border-color: var(--white);
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 13px;
}

.app-topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.app-user {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.app-user a {
    font-weight: 800;
    text-decoration: none;
}

.app-user form {
    margin: 0;
}

.app-user button {
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.app-layout {
    display: grid;
    min-height: calc(100vh - 72px);
    grid-template-columns: 220px minmax(0, 1fr);
}

.app-sidebar {
    padding: 28px 18px;
    background: var(--white);
    border-right: 1px solid var(--line);
}

.app-sidebar nav {
    display: grid;
    gap: 5px;
}

.app-sidebar a,
.app-sidebar span {
    display: block;
    padding: 11px 14px;
    border-radius: 5px;
    color: #4e5564;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.app-sidebar .active {
    color: var(--blue);
    background: #eef4ff;
}

.app-main {
    min-width: 0;
    padding: 36px;
}

.app-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.app-heading h1 {
    margin: 0;
    font-size: 30px;
}

.app-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.app-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.app-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.app-panel__header h2 {
    margin: 0;
    font-size: 16px;
}

.app-panel__body {
    padding: 22px;
}

.app-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
}

.app-stack {
    display: grid;
    gap: 16px;
}

.app-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.app-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd3d9;
    border-radius: 5px;
    outline: 0;
    font: inherit;
    font-size: 13px;
}

.app-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.1);
}

.app-label {
    display: block;
    margin-bottom: 6px;
    color: #3f4655;
    font-size: 12px;
    font-weight: 800;
}

.app-form {
    display: grid;
    gap: 14px;
}

.record-list {
    display: grid;
}

.record {
    padding: 20px 22px;
    border-top: 1px solid var(--line);
}

.record:first-child {
    border-top: 0;
}

.record__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.record h3 {
    margin: 0;
    font-size: 15px;
}

.record p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.ai-report {
    margin-top: 15px;
    padding: 15px;
    border-left: 3px solid var(--teal);
    background: var(--teal-soft);
}

.ai-report__label {
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-page {
    min-height: 100vh;
    background: var(--soft);
}

.auth-shell {
    width: min(520px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.auth-shell--wide {
    width: min(650px, calc(100% - 32px));
}

.auth-shell > .brand {
    margin-bottom: 34px;
}

.auth-panel {
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h1 {
    margin: 8px 0 0;
    font-size: 34px;
    line-height: 1.1;
}

.auth-heading p,
.auth-foot {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-kicker {
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-foot {
    text-align: center;
}

.auth-foot a,
.inline-link {
    color: var(--blue);
    font-weight: 800;
}

.role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.role-switch legend {
    margin-bottom: 7px;
    color: #3f4655;
    font-size: 12px;
    font-weight: 800;
}

.role-switch label {
    position: relative;
}

.role-switch input {
    position: absolute;
    opacity: 0;
}

.role-switch span {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid #ccd3d9;
    border-radius: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.role-switch input:checked + span {
    color: var(--blue);
    border-color: var(--blue);
    background: #eef4ff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-options,
.contact-tags,
.record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-options {
    margin-top: 9px;
    color: #4e5564;
    font-size: 12px;
    font-weight: 700;
}

.contact-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-tags {
    margin-top: 8px;
}

.contact-tags span {
    padding: 4px 7px;
    border-radius: 4px;
    color: var(--teal);
    background: var(--teal-soft);
    font-size: 10px;
    font-weight: 800;
}

.field-hint {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.form-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    color: #9b2525;
    background: #fff0ef;
    border: 1px solid #ffc9c6;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.button--full {
    width: 100%;
}

.record-actions {
    margin-top: 15px;
}

.record-actions form {
    margin: 0;
}

.text-action {
    padding: 0;
    color: var(--blue);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.text-action--danger {
    color: #b52e2e;
}

.report-details {
    margin: 12px 0;
    font-size: 12px;
}

.report-details summary {
    color: var(--teal);
    font-weight: 800;
    cursor: pointer;
}

.transcript p {
    white-space: pre-line;
}

.confirm-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.confirm-form .button {
    width: fit-content;
}

.confirmation-note,
.candidate-letter {
    margin-top: 16px;
    padding: 15px;
    border-left: 3px solid var(--coral);
    background: #fff5f4;
}

.confirmation-note p,
.candidate-letter p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.profile-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 22px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.profile-band h2 {
    margin: 7px 0 0;
    font-size: 22px;
}

.profile-band p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.cv-form {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.cv-form .button {
    width: fit-content;
}

.candidate-result {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.candidate-result p {
    color: var(--muted);
}

.candidate-letter h4 {
    margin: 6px 0 0;
    font-size: 15px;
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero__photo {
        position: relative;
        inset: auto;
        width: 100%;
        height: 360px;
        display: block;
        object-position: 62% center;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
    }

    .hero__inner {
        min-height: auto;
    }

    .hero__copy {
        width: 100%;
        padding: 70px 0 42px;
    }

    .journey {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 20px;
    }

    .journey::before {
        display: none;
    }

    .product-band,
    .app-grid,
    .profile-band {
        grid-template-columns: 1fr;
    }

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

    .audience,
    .audience:first-child,
    .audience:last-child {
        padding: 58px 28px;
    }

    .cta-band__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        overflow-x: auto;
        padding: 10px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .app-sidebar nav {
        display: flex;
        min-width: max-content;
    }
}

@media (max-width: 620px) {
    .site-container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        height: 66px;
    }

    .brand-name {
        font-size: 19px;
    }

    .site-header .button {
        min-height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero__actions,
    .cta-band__actions {
        width: 100%;
        flex-direction: column;
    }

    .hero__actions .button,
    .cta-band__actions .button {
        width: 100%;
    }

    .hero__photo {
        height: 300px;
    }

    .section {
        padding: 72px 0;
    }

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

    .app-topbar {
        height: auto;
        padding: 14px;
    }

    .app-user span {
        display: none;
    }

    .app-main {
        padding: 22px 14px;
    }

    .app-sidebar {
        overflow-x: visible;
        padding: 10px 14px;
    }

    .app-sidebar nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
        gap: 4px;
    }

    .app-sidebar a,
    .app-sidebar span {
        min-height: 40px;
        padding: 8px 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 11px;
        line-height: 1.25;
    }

    .app-heading {
        flex-direction: column;
    }

    .record__head {
        flex-direction: column;
    }

    .auth-panel {
        padding: 24px 18px;
    }

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