:root {
    --ethia-navy: #011331;
    --ethia-blue: #054ae7;
    --ethia-button: #0e354e;

    --background: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f3f6f9;

    --text: #08213a;
    --text-secondary: #5b6675;
    --border: #d9e0e7;
    --border-soft: #e9eef3;

    --success: #247354;
    --error: #a93636;

    --shadow:
        0 20px 50px rgba(1, 19, 49, 0.08);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;

    --max-width: 1180px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #ffffff 0,
            #ffffff 104px,
            var(--background) 104px,
            var(--background) 100%
        );

    color: var(--text);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.55;
}


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    background: #ffffff;
    border-top: 1px solid #edf1f4;
    border-bottom: 1px solid #f2f4f6;
}


.header-inner {
    max-width: var(--max-width);
    min-height: 104px;

    margin: 0 auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


.brand {
    position: relative;

    display: inline-flex;
    align-items: center;

    text-decoration: none;

    font-size: 47px;
    font-weight: 700;
    letter-spacing: 7px;
    line-height: 1;
}


.brand-dark {
    color: var(--ethia-navy);
}


.brand-blue {
    color: var(--ethia-blue);
}


.brand-line {
    position: absolute;

    width: 24px;
    height: 2px;

    left: 2px;
    bottom: -10px;

    background: var(--ethia-blue);
}


.header-title {
    color: var(--ethia-button);

    font-size: 15px;
    font-weight: 600;
}


/* ==========================================================
   MAIN
   ========================================================== */

main {
    min-height: calc(100vh - 190px);
}


.view {
    max-width: var(--max-width);

    margin: 0 auto;
    padding: 78px 28px 90px;
}


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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);

    gap: 72px;

    align-items: center;
}


.eyebrow {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 22px;

    color: #075078;

    font-family:
        "Courier New",
        monospace;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.4px;
}


.eyebrow-line {
    width: 11px;
    height: 1px;

    background: #bd8758;
}


.hero h1,
.conversation-header h1 {
    margin: 0;

    color: var(--ethia-navy);

    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -2.5px;
}


.accent {
    color: #0e5576;
}


.hero-lead {
    max-width: 670px;

    margin: 28px 0 0;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.65;
}


.duration {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 32px;
}


.duration-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    border: 1px solid #cad5df;
    border-radius: 50%;

    color: var(--ethia-blue);

    font-size: 20px;
    font-weight: 600;
}


.duration div {
    display: flex;
    flex-direction: column;
}


.duration strong {
    color: var(--ethia-navy);

    font-size: 15px;
}


.duration span:not(.duration-icon) {
    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* ==========================================================
   PRINCIPLES
   ========================================================== */

.principles-card {
    padding: 38px;

    background: #ffffff;

    border: 1px solid var(--border-soft);
    border-radius: 2px;

    box-shadow: var(--shadow);
}


.card-label,
.sidebar-label {
    margin-bottom: 16px;

    color: #075078;

    font-family:
        "Courier New",
        monospace;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.7px;
}


.principles-card h2 {
    margin: 0 0 18px;

    color: var(--ethia-navy);

    font-size: 27px;
    font-weight: 500;
    line-height: 1.25;
}


.principles-card p {
    margin: 0 0 15px;

    color: var(--text-secondary);

    font-size: 15px;
}


.principle {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-top: 15px;

    color: var(--ethia-navy);

    font-size: 14px;
    font-weight: 600;
}


.check {
    color: var(--ethia-blue);
}


/* ==========================================================
   START FORM
   ========================================================== */

.start-panel {
    margin-top: 84px;
    padding-top: 54px;

    border-top: 1px solid var(--border);
}


.start-heading {
    margin-bottom: 34px;
}


.section-number {
    margin-bottom: 8px;

    color: var(--ethia-blue);

    font-family:
        "Courier New",
        monospace;

    font-size: 13px;
    font-weight: 700;
}


.start-heading h2 {
    margin: 0;

    color: var(--ethia-navy);

    font-size: 31px;
    font-weight: 500;
    letter-spacing: -0.8px;
}


.start-heading p {
    margin: 10px 0 0;

    color: var(--text-secondary);
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.form-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.form-field-wide {
    grid-column: 1 / -1;
}


.form-field label {
    color: var(--ethia-navy);

    font-size: 14px;
    font-weight: 650;
}


.form-field input[type="text"] {
    min-height: 54px;

    padding: 0 16px;

    background: #ffffff;

    border: 1px solid #cbd5df;
    border-radius: var(--radius-small);

    color: var(--ethia-navy);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-field input[type="text"]:focus {
    border-color: var(--ethia-blue);

    box-shadow:
        0 0 0 3px rgba(5, 74, 231, 0.09);
}


.status-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}


.status-card {
    min-height: 82px;

    padding: 17px 18px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    background: #ffffff;

    border: 1px solid #cbd5df;
    border-radius: var(--radius-small);

    cursor: pointer;
}


.status-card:has(input:checked) {
    border-color: var(--ethia-blue);

    box-shadow:
        inset 0 0 0 1px var(--ethia-blue);
}


.status-card input {
    margin-top: 5px;

    accent-color: var(--ethia-blue);
}


.status-card span {
    display: flex;
    flex-direction: column;
}


.status-card strong {
    color: var(--ethia-navy);

    font-size: 14px;
}


.status-card small {
    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 13px;
}


.privacy-box {
    margin-top: 30px;
    padding: 26px 28px;

    background: #f2f6fa;

    border-left: 3px solid var(--ethia-blue);
}


.privacy-box h3 {
    margin: 0 0 10px;

    color: var(--ethia-navy);

    font-size: 17px;
    font-weight: 600;
}


.privacy-box p {
    max-width: 900px;

    margin: 7px 0;

    color: var(--text-secondary);

    font-size: 14px;
}


.privacy-check {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-top: 19px;

    color: var(--ethia-navy);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


.privacy-check input {
    margin-top: 4px;

    accent-color: var(--ethia-blue);
}


.form-actions {
    display: flex;
    align-items: center;

    gap: 25px;

    margin-top: 28px;
}


.primary-button,
.send-button {
    border: 0;

    background: var(--ethia-button);
    color: #ffffff;

    font-weight: 650;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.primary-button {
    min-height: 54px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;

    gap: 22px;

    border-radius: 3px;
}


.primary-button:hover,
.send-button:hover {
    background: #0b4667;
}


.primary-button:active,
.send-button:active {
    transform: translateY(1px);
}


.primary-button:disabled,
.send-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


.security-note {
    color: #738090;

    font-size: 13px;
}


.error-message {
    margin-top: 18px;
    padding: 13px 16px;

    background: #fff2f2;

    border-left: 3px solid var(--error);

    color: var(--error);

    font-size: 14px;
}


/* ==========================================================
   CONVERSATION
   ========================================================== */

.conversation-view {
    padding-top: 62px;
}


.conversation-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 38px;
}


.conversation-header h1 {
    font-size: clamp(38px, 4vw, 53px);
}


.progress-wrapper {
    width: 230px;
}


.progress-label {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--text-secondary);

    font-size: 12px;
}


.progress-bar {
    width: 100%;
    height: 4px;

    overflow: hidden;

    background: #dfe6ed;
}


.progress-fill {
    width: 8%;
    height: 100%;

    background: var(--ethia-blue);

    transition: width 0.35s ease;
}


.conversation-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        280px;

    gap: 32px;
}


.chat-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border-soft);

    box-shadow: var(--shadow);
}


.messages {
    min-height: 380px;
    max-height: 58vh;

    overflow-y: auto;

    padding: 34px;
}


.message {
    max-width: 84%;

    margin-bottom: 25px;
}


.message-author {
    margin-bottom: 7px;

    color: #075078;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.message-content {
    padding: 18px 21px;

    border-radius: 3px;

    font-size: 15px;
    line-height: 1.6;
}


.message-content p {
    margin: 0 0 10px;
}


.message-content p:last-child {
    margin-bottom: 0;
}


.assistant-message .message-content {
    background: #f1f5f8;

    border-left: 2px solid var(--ethia-blue);

    color: var(--ethia-navy);
}


.user-message {
    margin-left: auto;
}


.user-message .message-author {
    text-align: right;
}


.user-message .message-content {
    background: var(--ethia-button);
    color: #ffffff;
}


.message-form {
    padding: 22px 24px;

    background: #fbfcfd;

    border-top: 1px solid var(--border-soft);
}


.message-form textarea {
    width: 100%;

    min-height: 96px;
    max-height: 220px;

    resize: vertical;

    padding: 15px 16px;

    background: #ffffff;

    border: 1px solid #cbd5df;
    border-radius: var(--radius-small);

    color: var(--ethia-navy);

    outline: none;
}


.message-form textarea:focus {
    border-color: var(--ethia-blue);

    box-shadow:
        0 0 0 3px rgba(5, 74, 231, 0.08);
}


.message-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 13px;
}


.message-hint {
    color: #7b8794;

    font-size: 12px;
}


.send-button {
    min-height: 42px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;

    gap: 14px;

    border-radius: 3px;
}


.conversation-sidebar {
    padding: 26px;

    background: #ffffff;

    border: 1px solid var(--border-soft);

    align-self: start;
}


.sidebar-block p {
    margin: 8px 0;

    color: var(--text-secondary);

    font-size: 14px;
}


.sidebar-divider {
    height: 1px;

    margin: 25px 0;

    background: var(--border-soft);
}


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

.site-footer {
    background: var(--ethia-navy);
    color: rgba(255, 255, 255, 0.76);
}


.footer-inner {
    max-width: var(--max-width);

    min-height: 86px;

    margin: 0 auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
}


.footer-links {
    display: flex;
    align-items: center;

    gap: 10px;
}


.footer-links a {
    text-decoration: none;
}


.footer-links a:hover {
    color: #ffffff;
}


/* ==========================================================
   UTILITIES
   ========================================================== */

[hidden] {
    display: none !important;
}


.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;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        gap: 42px;
    }


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


    .conversation-sidebar {
        display: none;
    }


    .conversation-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .progress-wrapper {
        width: 100%;
    }

}


@media (max-width: 650px) {

    body {
        background: var(--background);
    }


    .header-inner {
        min-height: 82px;

        padding: 0 20px;
    }


    .brand {
        font-size: 34px;
        letter-spacing: 5px;
    }


    .brand-line {
        width: 19px;
        bottom: -8px;
    }


    .header-title {
        max-width: 130px;

        text-align: right;

        font-size: 12px;
    }


    .view {
        padding:
            50px
            20px
            65px;
    }


    .hero h1,
    .conversation-header h1 {
        font-size: 39px;
        letter-spacing: -1.7px;
    }


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


    .principles-card {
        padding: 27px 24px;
    }


    .start-panel {
        margin-top: 58px;
        padding-top: 42px;
    }


    .start-heading h2 {
        font-size: 27px;
    }


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


    .status-options {
        grid-template-columns: 1fr;
    }


    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }


    .primary-button {
        justify-content: space-between;
    }


    .security-note {
        text-align: center;
    }


    .messages {
        padding: 23px 18px;
    }


    .message {
        max-width: 94%;
    }


    .message-actions {
        align-items: stretch;
        flex-direction: column;
    }


    .send-button {
        justify-content: space-between;
    }


    .footer-inner {
        padding: 20px;

        align-items: flex-start;
        flex-direction: column;

        justify-content: center;
    }


    .footer-links {
        flex-wrap: wrap;
    }

}
