* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fc;
    color: #152440;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.navbar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #245dcc;
}

.hero {
    padding: 96px 24px;
    text-align: center;
    background: linear-gradient(135deg, #101e38, #1b3b6f);
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 20px;
    color: #a9c9ff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero-description {
    max-width: 560px;
    margin: 0 auto;
    color: #d5e1f5;
    font-size: 18px;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.button-primary {
    background: #3478f6;
    color: #ffffff;
}

.button-primary:hover {
    background: #245dcc;
}

.button-secondary {
    border-color: #839bbf;
    color: #ffffff;
}

.button-secondary:hover {
    background: #294976;
}

.site-footer {
    padding: 24px;
    border-top: 1px solid #dfe6f1;
    text-align: center;
    color: #52617a;
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

a:focus-visible {
    outline: 3px solid #f5b942;
    outline-offset: 5px;
}

@media (max-width: 700px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 64px 20px;
    }

}

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

    .button {
        transition: none;
    }
}.auth-page {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid #dfe6f1;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgb(21 36 64 / 8%);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.auth-description {
    margin: 0 0 28px;
    color: #52617a;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #8393aa;
    border-radius: 6px;
    background: #ffffff;
    color: #152440;
    font: inherit;
}

.form-group input:focus-visible {
    outline: 3px solid #245dcc;
    outline-offset: 2px;
}

.auth-submit {
    width: 100%;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
}

.auth-submit:focus-visible {
    outline: 3px solid #245dcc;
    outline-offset: 3px;
}

#login-message {
    color: #52617a;
    font-size: 14px;
}

.auth-footer {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
}

.auth-footer a {
    color: #245dcc;
    font-weight: bold;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
}#register-message {
    color: #52617a;
    font-size: 14px;
}.portfolio-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.sample-notice {
    margin: 0 0 16px;
    color: #52617a;
    font-size: 14px;
}

.profile-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #101e38, #1b3b6f);
    color: #ffffff;
}

.profile-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border: 1px solid #839bbf;
    border-radius: 50%;
    background: #294976;
    font-size: 32px;
    font-weight: bold;
}

.profile-banner .eyebrow {
    margin-bottom: 10px;
}

.profile-banner h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.profile-subtitle {
    margin: 10px 0;
    color: #d5e1f5;
}

.profile-intro {
    max-width: 600px;
    margin: 0;
    color: #d5e1f5;
}

.portfolio-section {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    background: #ffffff;
}

.portfolio-section h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.portfolio-section h3 {
    margin: 0 0 10px;
}

.portfolio-section p {
    color: #52617a;
}

.portfolio-section > p:last-child {
    margin-bottom: 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill-list li {
    padding: 6px 12px;
    border-radius: 6px;
    background: #eaf1ff;
    color: #234f99;
    font-size: 14px;
}

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

.project-card {
    padding: 24px;
    border: 1px solid #dfe6f1;
    border-radius: 10px;
    background: #f8faff;
}

.project-card .project-category {
    margin: 0 0 12px;
    color: #245dcc;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.project-detail {
    font-size: 14px;
}

@media (max-width: 700px) {
    .profile-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

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

    .portfolio-section {
        padding: 24px;
    }
}.editor-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.editor-page > h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.2;
}

.editor-description {
    margin: 0 0 12px;
    color: #52617a;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #8393aa;
    border-radius: 6px;
    background: #ffffff;
    color: #152440;
    font: inherit;
    resize: vertical;
}

.form-group textarea:focus-visible {
    outline: 3px solid #245dcc;
    outline-offset: 2px;
}

.portfolio-section .field-help {
    margin: 8px 0 0;
    color: #52617a;
    font-size: 14px;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.editor-actions button {
    cursor: pointer;
    font: inherit;
    font-weight: bold;
}

.editor-actions button:focus-visible {
    outline: 3px solid #245dcc;
    outline-offset: 3px;
}

.editor-back {
    border-color: #8393aa;
    background: #ffffff;
    color: #152440;
}

.editor-back:hover {
    background: #eaf1ff;
}

#editor-message {
    color: #52617a;
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.site-logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

/* Homepage redesign: scoped to .home-page */
.home-page .navbar {
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.home-page .site-logo {
    width: 212px;
}

.home-page .nav-links a {
    color: #152440;
}

.home-page .hero {
    padding: 72px 24px;
    text-align: left;
}

.home-page .hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: 56px;
}

.home-page .hero h1 {
    max-width: 650px;
    margin: 0 0 20px;
    font-size: clamp(42px, 5.5vw, 68px);
}

.home-page .hero-description {
    max-width: 560px;
    margin: 0;
    font-size: 19px;
}

.home-page .hero-actions {
    justify-content: flex-start;
}

.home-page .preview-card {
    width: 100%;
    padding: 24px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 14px;
    background: #ffffff;
    color: #152440;
    box-shadow: 0 20px 48px rgb(5 20 48 / 24%);
}

.home-page .preview-label {
    margin: 0 0 14px;
    color: #52617a;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-page .preview-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #101e38, #1b3b6f);
    color: #ffffff;
}

.home-page .preview-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid #839bbf;
    border-radius: 50%;
    background: #294976;
    font-weight: bold;
}

.home-page .preview-profile h2 {
    margin: 0;
    font-size: 21px;
}

.home-page .preview-profile p {
    margin: 3px 0 0;
    color: #d5e1f5;
    font-size: 13px;
}

.home-page .preview-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.home-page .preview-skills li {
    padding: 5px 9px;
    border-radius: 6px;
    background: #eaf1ff;
    color: #234f99;
    font-size: 12px;
    font-weight: bold;
}

.home-page .preview-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-page .preview-projects article {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe6f1;
    border-radius: 8px;
    background: #f8faff;
}

.home-page .preview-projects p {
    margin: 0 0 6px;
    color: #245dcc;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.home-page .preview-projects h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.home-page .preview-projects span {
    color: #52617a;
    font-size: 12px;
}

.home-page .how-it-works {
    background: #e6eefb;
}

.home-page .how-it-works-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px;
}

.home-page .section-heading {
    margin-bottom: 28px;
    text-align: left;
}

.home-page .home-cta p {
    margin: 0 0 6px;
    color: #245dcc;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-page .section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
}

.home-page .steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .step-slide {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    animation: home-step-enter 220ms ease both;
}

.home-page .step-slide[hidden] {
    display: none;
}

.home-page .step-copy {
    max-width: 380px;
}

.home-page .step-label {
    margin: 0 0 18px;
    color: #245dcc;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.home-page .step-slide h3 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.home-page .step-copy > p:not(.step-label) {
    margin: 0;
    color: #52617a;
    font-size: 17px;
}

.home-page .steps-viewport:focus-visible {
    outline: 3px solid #245dcc;
    outline-offset: 5px;
    border-radius: 10px;
}

.home-page .steps-viewport {
    touch-action: pan-y;
}

.home-page .step-visual {
    min-width: 0;
    margin: 0;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    background: #eaf1ff;
}

.home-page .step-visual figcaption {
    margin-bottom: 14px;
    color: #52617a;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.home-page .example-window {
    padding: 20px;
    border: 1px solid #dfe6f1;
    border-radius: 8px;
    background: #ffffff;
}

.home-page .example-window-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #dfe6f1;
    color: #152440;
}

.home-page .example-window-heading span {
    color: #52617a;
    font-size: 12px;
}

.home-page .example-field {
    margin-top: 14px;
}

.home-page .example-field > span,
.home-page .example-project-detail > strong,
.home-page .example-portfolio-section > strong {
    display: block;
    margin-bottom: 6px;
    color: #52617a;
    font-size: 12px;
}

.home-page .example-field > strong,
.home-page .example-field-bio > p {
    display: block;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dfe6f1;
    border-radius: 6px;
    background: #f8faff;
    color: #152440;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.home-page .example-project {
    padding: 22px;
    border: 1px solid #dfe6f1;
    border-radius: 8px;
    background: #ffffff;
}

.home-page .example-category {
    margin: 0 0 8px;
    color: #245dcc;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.home-page .example-project h4,
.home-page .example-portfolio-project h4 {
    margin: 0 0 8px;
    color: #152440;
    font-size: 20px;
    line-height: 1.25;
}

.home-page .step-slide .example-author {
    margin: 0 0 12px;
    color: #52617a;
    font-size: 12px;
}

.home-page .step-slide .example-description,
.home-page .step-slide .example-project-detail p,
.home-page .step-slide .example-portfolio-project > p:last-child {
    margin: 0;
    color: #52617a;
    font-size: 14px;
}

.home-page .example-project-detail {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dfe6f1;
}

.home-page .example-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.home-page .example-tools li {
    padding: 5px 9px;
    border-radius: 5px;
    background: #eaf1ff;
    color: #234f99;
    font-size: 12px;
    font-weight: bold;
}

.home-page .example-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 8px;
    background: #101e38;
    color: #ffffff;
}

.home-page .example-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 1px solid #839bbf;
    border-radius: 50%;
    background: #294976;
    font-size: 14px;
    font-weight: bold;
}

.home-page .example-profile strong {
    font-size: 18px;
}

.home-page .step-slide .example-profile p {
    margin-top: 4px;
    color: #d5e1f5;
    font-size: 12px;
}

.home-page .step-slide .example-portfolio-bio {
    margin: 14px 0;
    color: #52617a;
    font-size: 13px;
}

.home-page .example-portfolio-section {
    padding: 14px;
    border: 1px solid #dfe6f1;
    border-radius: 8px;
    background: #ffffff;
}

.home-page .example-portfolio-section .example-tools {
    margin-top: 0;
}

.home-page .example-portfolio-project {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #dfe6f1;
    border-radius: 8px;
    background: #ffffff;
}

.home-page .example-portfolio-project h4 {
    font-size: 16px;
}

.home-page .step-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    margin-top: 28px;
    border-bottom: 1px solid #dfe6f1;
}

.home-page .step-navigation-button {
    flex: 1 1 150px;
    padding: 12px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: #52617a;
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.home-page .step-navigation-button[aria-current="step"] {
    border-bottom-color: #245dcc;
    color: #152440;
}

.home-page .step-navigation-button:focus-visible,
.home-page .carousel-arrow:focus-visible {
    outline: 3px solid #245dcc;
    outline-offset: 3px;
}

.home-page .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.home-page .carousel-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dfe6f1;
    border-radius: 50%;
    background: transparent;
    color: #234f99;
    font-size: 20px;
    cursor: pointer;
}

.home-page .carousel-arrow:hover {
    background: #eaf1ff;
}

.home-page .current-step {
    min-width: 112px;
    color: #52617a;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

@keyframes home-step-enter {
    from {
        opacity: 0.5;
        transform: translateY(5px);
    }

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

.home-page .home-testimonials {
    background: #ffffff;
}

.home-page .home-testimonials-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 72px;
}

.home-page .testimonial-heading {
    margin-bottom: 28px;
}

.home-page .testimonial-heading h2 {
    margin: 0;
    color: #152440;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
}

.home-page .testimonial-heading p {
    margin: 6px 0 0;
    color: #52617a;
    font-size: 14px;
}

.home-page .testimonial-quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-page .testimonial-quote {
    min-width: 0;
    margin: 0;
    padding: 8px 48px 0;
    text-align: center;
}

.home-page .testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 16px;
    color: #245dcc;
}

.home-page .testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.home-page .testimonial-quote blockquote {
    margin: 0 0 18px;
    color: #152440;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.5;
}

.home-page .testimonial-quote figcaption {
    color: #152440;
    font-size: 14px;
    font-weight: bold;
}

.home-page .testimonial-quote figcaption span {
    color: #52617a;
    font-weight: normal;
}

.home-page .home-cta {
    max-width: 1120px;
    margin: 0 auto 72px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 14px;
    background: #101e38;
    color: #ffffff;
}

.home-page .home-cta h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
}

.home-page .home-cta .button {
    flex-shrink: 0;
}

.home-page + .site-footer {
    background: #ffffff;
}

@media (max-width: 700px) {
    .home-page .navbar {
        padding: 10px 16px;
    }

    .home-page .site-logo {
        width: 188px;
    }

    .home-page .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 16px;
        font-size: 14px;
    }

    .home-page .hero {
        padding: 48px 20px;
    }

    .home-page .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-page .hero h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .home-page .hero-actions {
        align-items: stretch;
    }

    .home-page .hero-actions .button {
        text-align: center;
    }

    .home-page .preview-projects {
        grid-template-columns: 1fr;
    }

    .home-page .how-it-works {
        padding: 0;
    }

    .home-page .how-it-works-inner {
        padding: 40px 20px;
    }

    .home-page .step-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .home-page .step-copy {
        max-width: 520px;
    }

    .home-page .step-visual {
        padding: 16px;
    }

    .home-page .example-window,
    .home-page .example-project {
        padding: 16px;
    }

    .home-page .step-navigation {
        column-gap: 16px;
    }

    .home-page .step-navigation-button {
        flex-basis: 120px;
    }

    .home-page .home-testimonials {
        padding: 0;
    }

    .home-page .home-testimonials-inner {
        padding: 0 20px 64px;
    }

    .home-page .testimonial-heading {
        margin-bottom: 20px;
    }

    .home-page .testimonial-quotes {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .home-page .testimonial-quote {
        padding: 0 8px;
    }

    .home-page .home-cta {
        margin: 0 20px 48px;
        padding: 28px 24px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .step-slide {
        animation: none;
    }
}