:root {
    --page-width: 1200px;
    --surface: #f5f6f8;
    --footer-bg: #15326a;
}

body {
    background: #ffffff;
    padding-bottom: 72px;
}

.site-header {
    background: var(--surface);
    border-top: 6px solid #272727;
    border-bottom: 1px solid var(--line);
    height: 74px;
}

.header-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
}

.logo {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #0a1b43;
    letter-spacing: -0.02em;
    justify-self: start;
}

.logo span {
    color: var(--blue);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 48px;
    justify-self: center;
}

.main-nav a {
    line-height: 1;
    font-weight: 700;
    color: #1f3b72;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 28px;
}

.auth-actions form {
    margin: 0;
}

.auth-actions .signin {
    font-weight: 700;
    color: #1f3b72;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-actions .signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6 0%, var(--blue) 100%);
    color: #ffffff;
    font-size: var(--text-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: background 0.2s ease;
}

.auth-actions button.signup {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.main-nav a:hover,
.auth-actions .signin:hover {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-actions .signup:hover {
    background: var(--blue-dark);
}

.hero-section {
    background: #f4f5f8;
    padding: 56px 0 72px;
}

.hero-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 4.8vw, 72px);
    line-height: 0.94;
    letter-spacing: -0.03em;
    color: #0f1e54;
}

.hero-copy p {
    margin: 18px 0 0;
    max-width: 720px;
    line-height: 1.35;
    color: #5d6f96;
    letter-spacing: -0.01em;
}

.hero-cta-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-cta-row .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6 0%, var(--blue) 100%);
    color: #ffffff;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 1px #2465d4;
}

.hero-cta-row .cta-note {
    margin: 0;
    line-height: 1.35;
    color: #6b7ea8;
    font-weight: 700;
}

.hero-visual {
    min-height: 460px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.features-section {
    background: #f4f5f8;
    padding: 0 0 80px;
}

.features-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background: #f4f5f8;
    border: 1px solid #d9dfec;
    border-radius: 22px;
    padding: 32px 28px 28px;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--blue);
}

.feature-card h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0f1e54;
}

.feature-card p {
    margin: 16px 0 24px;
    line-height: 1.45;
    color: #5d719a;
}

.feature-card a {
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.site-footer {
    height: 72px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--footer-bg);
    z-index: 20;
}

.footer-inner {
    max-width: var(--page-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1240px) {
    .site-header {
        height: auto;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        padding: 20px;
        min-height: 0;
        column-gap: 16px;
    }

    .logo {
        justify-self: start;
        grid-column: 1;
    }

    .main-nav {
        display: none;
    }

    .auth-actions {
        justify-self: end;
        grid-column: 2;
        gap: 16px;
    }

    .auth-actions .signup {
        min-height: 44px;
        padding: 0 18px;
        border-radius: 14px;
    }

    .hero-section {
        padding: 36px 0 44px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 20px;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(34px, 10vw, 48px);
        line-height: 0.96;
    }

    .hero-copy p {
        max-width: none;
        margin-top: 14px;
    }

    .hero-cta-row .primary-btn {
        min-height: 44px;
        border-radius: 14px;
    }

    .hero-cta-row {
        margin-top: 16px;
        gap: 14px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .features-section {
        padding: 0 0 52px;
    }

    .features-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }

    .feature-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .feature-icon {
        margin-bottom: 14px;
    }

    .feature-card h2 {
        font-size: 32px;
    }

    .footer-inner {
        padding: 0 20px;
    }

    .footer-logo {
        font-size: 22px;
    }

    .footer-nav {
        gap: 14px;
    }
}
