:root {
    --wandor-dark: #0a0a0a;
    --wandor-text: #1a1a1a;
    --wandor-muted: #767676;
    --wandor-prompt: #905831;
    --font-sans: "Inter", "Geist", "Microsoft YaHei", "PingFang SC", sans-serif;
    --font-display: "Special Elite", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    background: #fff;
}

body {
    overflow-x: hidden;
    background: #fff;
    color: var(--wandor-text);
    font-family: var(--font-sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input {
    font: inherit;
}

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

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

.landing {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.content-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1360px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
}

.site-nav {
    position: relative;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px 16px;
    animation: navIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.brand-mark img {
    display: block;
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.brand-wordmark {
    color: #000;
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    user-select: none;
}

.brand:hover .brand-mark {
    transform: scale(1.05);
}

.desktop-links {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.55vw, 25px);
    transform: translateX(-50%);
}

.nav-link,
.login-link {
    position: relative;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--wandor-text);
    cursor: pointer;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nav-link:hover,
.login-link:hover {
    opacity: 0.55;
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 1.5px;
    background: #1a1a1a;
    content: "";
}

.nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
}

.login-submit,
.menu-login {
    border: 0;
    border-radius: 999px;
    background: var(--wandor-dark);
    color: #fafafa;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.primary-action {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
}

.login-submit:hover,
.menu-login:hover {
    background: #333;
}

.login-submit:active,
.menu-login:active {
    transform: scale(0.95);
}

.menu-toggle {
    display: none;
}

.hero {
    display: flex;
    min-height: calc(100svh - 82px);
    flex-direction: column;
    align-items: center;
    padding: clamp(44px, 8vh, 78px) 24px 72px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: #4f4f4f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    animation: heroIn 0.65s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
    max-width: 900px;
    margin: 0 0 20px;
    color: var(--wandor-text);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    animation: heroIn 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy {
    max-width: 580px;
    margin: 0 0 34px;
    color: var(--wandor-muted);
    font-size: clamp(17px, 1.55vw, 20px);
    font-weight: 500;
    line-height: 1.65;
    animation: heroIn 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card {
    position: relative;
    width: 701px;
    min-height: 208px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: cardIn 0.75s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card form {
    min-height: 202px;
}

.credentials {
    position: absolute;
    top: 28px;
    right: 28px;
    left: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-group {
    position: relative;
    display: grid;
    gap: 6px;
}

.field-label {
    color: #4c3525;
    font-size: 12px;
    font-weight: 700;
}

.field-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    outline: 0;
    background: rgba(255, 255, 255, 0.2);
    color: var(--wandor-prompt);
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
    color: rgba(112, 67, 38, 0.62);
}

.field-input:hover,
.field-input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.field-error {
    position: absolute;
    top: 70px;
    left: 4px;
    color: #9c2e1d;
    font-size: 11px;
    font-weight: 600;
}

.card-footer {
    position: absolute;
    right: 21px;
    bottom: 21px;
    left: 21px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.security-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: var(--wandor-text);
    font-size: 17px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease;
}

.security-mark:hover {
    transform: scale(1.05);
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4c3525;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.remember-option input {
    width: 15px;
    height: 15px;
    accent-color: var(--wandor-dark);
}

.forgot-link {
    color: #4c3525;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.forgot-link:hover,
.register-note a:hover {
    opacity: 0.55;
}

.login-submit {
    display: flex;
    width: 156px;
    height: 56px;
    flex: 0 0 156px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-left: auto;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.login-feedback {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 28px;
    left: 28px;
    display: grid;
    gap: 4px;
}

.feedback-item {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.32);
    color: #513521;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.feedback-error {
    color: #8d2115;
}

.feedback-success {
    color: #1f6544;
}

.feedback-warning {
    color: #714d0e;
}

.login-card.has-feedback {
    min-height: 250px;
}

.login-card.has-feedback form {
    min-height: 244px;
}

.login-card.has-feedback .credentials {
    top: 68px;
}

.register-note {
    margin: 16px 0 0;
    color: rgba(26, 26, 26, 0.72);
    font-size: 13px;
    font-weight: 500;
    animation: heroIn 0.6s 0.4s both;
}

.register-note a {
    margin-left: 6px;
    color: #1a1a1a;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.mobile-menu {
    position: fixed;
    z-index: 10;
    inset: 0;
}

.menu-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.34);
    cursor: pointer;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease both;
}

.menu-sheet {
    position: absolute;
    top: 74px;
    right: 20px;
    width: min(380px, calc(100vw - 40px));
    max-height: calc(100svh - 94px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(24px);
    animation: menuIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 12px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.menu-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    color: #1a1a1a;
    cursor: pointer;
}

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

.mobile-nav-link {
    display: grid;
    min-height: 46px;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.48);
    color: #292929;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover {
    background: #fff;
    transform: translateY(-1px);
}

.mobile-nav-link.active {
    background: #fff;
}

.menu-login {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    font-size: 14px;
}

.brand:focus-visible,
.nav-link:focus-visible,
.login-link:focus-visible,
.menu-toggle:focus-visible,
.field-input:focus-visible,
.remember-option:focus-within,
.forgot-link:focus-visible,
.login-submit:focus-visible,
.register-note a:focus-visible,
.menu-close:focus-visible,
.mobile-nav-link:focus-visible,
.menu-login:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@keyframes navIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1180px) {
    .site-nav {
        padding-right: 32px;
        padding-left: 32px;
    }

    .desktop-links {
        gap: 13px;
    }

    .nav-link {
        font-size: 12px;
    }

    .login-link {
        display: none;
    }
}

@media (max-width: 940px) {
    .desktop-links {
        display: none;
    }

    .menu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.38);
        color: #1a1a1a;
        cursor: pointer;
        backdrop-filter: blur(12px);
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.76);
        transform: scale(1.05);
    }
}

@media (max-width: 760px) {
    .site-nav {
        min-height: 74px;
        padding: 18px 24px 12px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-wordmark {
        font-size: 30px;
    }

    .nav-actions {
        gap: 8px;
    }

    .hero {
        min-height: calc(100svh - 74px);
        padding: clamp(38px, 7vh, 64px) 24px 48px;
    }

    .eyebrow {
        font-size: 11px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 54px);
        letter-spacing: -0.035em;
    }

    .hero-copy {
        max-width: 500px;
        margin-bottom: 28px;
        font-size: 17px;
    }

    .desktop-break {
        display: none;
    }

    .login-card {
        width: calc(100vw - 48px);
        min-height: 272px;
        border-radius: 36px;
    }

    .login-card form {
        min-height: 266px;
    }

    .credentials {
        top: 24px;
        right: 24px;
        left: 24px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .field-label {
        display: none;
    }

    .field-input {
        height: 50px;
        font-size: 16px;
    }

    .field-error {
        position: static;
        margin: -3px 0 0 4px;
    }

    .card-footer {
        right: 18px;
        bottom: 18px;
        left: 18px;
        gap: 10px;
    }

    .security-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .forgot-link {
        display: none;
    }

    .login-submit {
        width: 146px;
        height: 52px;
        flex-basis: 146px;
        font-size: 13px;
    }

    .login-card.has-feedback {
        min-height: 324px;
    }

    .login-card.has-feedback form {
        min-height: 318px;
    }

    .login-card.has-feedback .credentials {
        top: 76px;
    }

    .login-feedback {
        right: 24px;
        left: 24px;
    }
}

@media (max-width: 440px) {
    .site-nav {
        padding-right: 16px;
        padding-left: 16px;
    }

    .brand-mark {
        display: none;
    }

    .brand-wordmark {
        font-size: 29px;
    }

    .hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 46px);
    }

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

    .login-card {
        width: calc(100vw - 36px);
    }

    .remember-option {
        font-size: 12px;
    }

    .login-submit {
        width: 136px;
        flex-basis: 136px;
    }

    .mobile-links {
        grid-template-columns: 1fr;
    }
}

/* Claude-inspired sign-in card: fields flow vertically and the primary
   action gets its own full-width row. */
.hero-copy-column .login-card {
    width: min(100%, 520px);
    min-height: 0;
    overflow: visible;
    padding: 28px 30px 26px;
    border: 1px solid #e5e5e5;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
}

.hero-copy-column .login-card form,
.hero-copy-column .login-card.has-feedback form {
    min-height: 0;
}

.hero-copy-column .credentials,
.hero-copy-column .login-card.has-feedback .credentials {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 20px;
}

.hero-copy-column .field-group {
    gap: 8px;
}

.hero-copy-column .field-label {
    display: block;
    color: #4b4b4b;
    font-size: 12px;
    font-weight: 600;
}

.hero-copy-column .field-input {
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dddddd;
    border-radius: 14px;
    background: #fff;
    color: #242424;
    font-size: 16px;
    font-weight: 500;
    box-shadow: none;
}

.hero-copy-column .field-input::placeholder {
    color: #8b8b8b;
}

.hero-copy-column .field-input:hover,
.hero-copy-column .field-input:focus {
    border-color: #9d9d9d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.hero-copy-column .field-error {
    position: static;
    display: block;
    margin: 1px 0 0 4px;
    color: #922c1e;
    font-size: 11px;
    line-height: 1.35;
}

.hero-copy-column .captcha-field {
    gap: 8px;
    margin: 0 0 20px;
}

.hero-copy-column .captcha-control-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 168px 44px;
    align-items: center;
    gap: 8px;
}

.hero-copy-column .captcha-image {
    display: block;
    width: 168px;
    height: 52px;
    border: 1px solid #dddddd;
    border-radius: 14px;
    background: #f5f5f5;
    object-fit: cover;
}

.hero-copy-column .captcha-refresh {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #dddddd;
    border-radius: 50%;
    background: #fff;
    color: #3d3d3d;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-copy-column .captcha-refresh:hover {
    border-color: #9d9d9d;
    transform: rotate(20deg);
}

.hero-copy-column .captcha-hint {
    color: #777777;
    font-size: 11px;
    line-height: 1.4;
}

.hero-copy-column .card-footer {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-copy-column .security-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-color: #dddddd;
    background: #fff;
    font-size: 15px;
}

.hero-copy-column .remember-option,
.hero-copy-column .forgot-link {
    color: #5a5a5a;
    font-size: 12px;
    font-weight: 500;
}

.hero-copy-column .forgot-link {
    display: inline;
    margin-left: auto;
}

.hero-copy-column .login-submit {
    width: 100%;
    height: 52px;
    flex: 0 0 100%;
    margin: 8px 0 0;
    border-radius: 14px;
    border: 0;
    background: #111111;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.hero-copy-column .login-submit.primary-action {
    border-radius: 12px;
    background: #111111;
    box-shadow: none;
}

.hero-copy-column .login-submit.primary-action:hover {
    background: #2b2b2b;
    box-shadow: none;
}

.hero-copy-column .login-feedback {
    position: static;
    margin: 0 0 18px;
}

.hero-copy-column .feedback-item {
    border-color: #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    line-height: 1.45;
}

.hero-copy-column .login-card.has-feedback {
    min-height: 0;
}

@media (max-width: 760px) {
    .hero-copy-column .login-card {
        width: calc(100vw - 48px);
        padding: 24px 22px 22px;
        border-radius: 24px;
    }

    .hero-copy-column .forgot-link {
        display: inline;
    }

    .hero-copy-column .login-submit {
        height: 50px;
    }
}

@media (max-width: 440px) {
    .hero-copy-column .login-card {
        width: calc(100vw - 36px);
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-copy-column .card-footer {
        gap: 9px;
    }

    .hero-copy-column .forgot-link {
        margin-left: auto;
    }

    .hero-copy-column .captcha-control-row {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .hero-copy-column .captcha-control-row .field-input {
        grid-column: 1 / -1;
    }

    .hero-copy-column .captcha-image {
        width: 100%;
    }
}

@media (max-height: 720px) and (min-width: 761px) {
    .hero {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .eyebrow {
        margin-bottom: 7px;
    }

    .hero h1 {
        margin-bottom: 12px;
        font-size: clamp(38px, 5vw, 58px);
    }

    .hero-copy {
        margin-bottom: 20px;
        font-size: 17px;
    }

    .register-note {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* The sign-in surface uses a quiet, light split layout; the media is a
   contained scene rather than a full-viewport background. */
.landing {
    min-height: 100vh;
    min-height: 100svh;
    overflow: auto;
    background: #fff;
}

.content-shell {
    width: min(100%, 1440px);
    min-height: 100vh;
    min-height: 100svh;
    background: #fff;
}

.site-nav {
    z-index: 3;
}

.hero {
    display: grid;
    min-height: calc(100svh - 82px);
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 0.9fr);
    align-items: center;
    gap: clamp(34px, 5vw, 78px);
    padding: clamp(32px, 5vh, 62px) clamp(40px, 6vw, 88px) 56px;
    text-align: center;
}

.hero-copy-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.hero-copy-column .hero-copy {
    max-width: 560px;
}

.hero-copy-column .login-card {
    width: min(100%, 580px);
    border-color: rgba(26, 26, 26, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(26, 26, 26, 0.08);
}

.hero-copy-column .field-input {
    border-color: rgba(26, 26, 26, 0.14);
    background: #fff;
}

.hero-copy-column .field-input:hover,
.hero-copy-column .field-input:focus {
    border-color: rgba(26, 26, 26, 0.34);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.hero-copy-column .security-mark {
    border-color: rgba(26, 26, 26, 0.14);
    background: #fff;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: min(70vh, 680px);
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #eef2ef;
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
    animation: visualIn 0.8s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.hero-media.is-active {
    opacity: 1;
}

@keyframes visualIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
        gap: 34px;
        padding-right: 32px;
        padding-left: 32px;
    }

    .hero-visual {
        height: min(66vh, 600px);
        min-height: 390px;
    }
}

@media (max-width: 940px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
        gap: 24px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: 0;
    }

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

    .hero-visual {
        height: 520px;
        min-height: 340px;
        border-radius: 24px;
    }
}

@media (max-width: 760px) {
    .landing {
        overflow-y: auto;
    }

    .hero {
        display: flex;
        min-height: calc(100svh - 74px);
        flex-direction: column;
        justify-content: flex-start;
        gap: 34px;
        padding: 38px 24px 54px;
    }

    .hero-copy-column {
        width: 100%;
    }

    .hero-visual {
        width: min(100%, 520px);
        height: min(86vw, 460px);
        min-height: 300px;
        order: 2;
    }

    .hero-copy-column .login-card {
        width: calc(100vw - 48px);
    }
}

@media (max-width: 440px) {
    .hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: 0;
    }

    .hero-visual {
        width: calc(100vw - 36px);
        height: 360px;
        border-radius: 22px;
    }
}

/* Keep the final card sizing after the split-layout rules above. */
.hero-copy-column .login-card {
    width: min(100%, 520px);
    border-color: #e5e5e5;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
}

@media (max-width: 940px) and (min-width: 761px) {
    .hero-copy-column .login-card {
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .hero-copy-column .login-card {
        width: calc(100vw - 48px);
    }
}

@media (max-width: 440px) {
    .hero-copy-column .login-card {
        width: calc(100vw - 36px);
    }
}

/* Wide desktop composition: brand at the far left, navigation at the far
   right, and a larger Claude-like split hero. */
@media (min-width: 1201px) {
    .content-shell {
        width: 100%;
        max-width: none;
    }

    .site-nav {
        padding-right: clamp(32px, 5.6vw, 112px);
        padding-left: clamp(32px, 5.6vw, 112px);
    }

    .desktop-links {
        position: static;
        left: auto;
        margin-left: auto;
        transform: none;
    }

    .desktop-links .nav-link,
    .nav-actions .login-link {
        font-size: 16px;
    }

    .nav-actions .login-link {
        display: inline-flex;
        min-height: 46px;
        align-items: center;
        padding: 0 20px;
        border-radius: 10px;
        background: #111111;
        color: #ffffff;
        font-weight: 600;
        letter-spacing: 0;
    }

    .nav-actions .login-link:hover {
        background: #2b2b2b;
        opacity: 1;
    }

    .nav-actions {
        margin-left: clamp(18px, 2.4vw, 48px);
    }

    .hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
        gap: clamp(42px, 4vw, 86px);
        padding-right: clamp(48px, 5.6vw, 112px);
        padding-left: clamp(48px, 5.6vw, 112px);
    }

    .hero-copy-column {
        align-items: flex-start;
        text-align: left;
    }

    .hero-copy-column h1 {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(48px, 3.4vw, 72px);
        letter-spacing: 0;
    }

    .hero-copy-column .hero-copy {
        max-width: 660px;
        font-size: 21px;
        line-height: 1.6;
        text-align: left;
    }

    .hero-copy-column .login-card {
        width: min(100%, 600px);
        align-self: center;
        padding: 34px 38px 30px;
    }

    .hero-copy-column .field-input {
        height: 56px;
        border-radius: 15px;
    }

    .hero-copy-column .captcha-image {
        height: 56px;
        border-radius: 15px;
    }

    .hero-copy-column .login-submit {
        height: 56px;
        border-radius: 12px;
    }

    .hero-visual {
        width: 88%;
        height: min(82vh, 820px);
        min-height: 500px;
        justify-self: end;
        border-radius: 30px;
    }

    .register-note {
        align-self: center;
    }
}
