html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1b2736;
    background: #f3f6fb;
    font-family: 'DM Sans', sans-serif;
}

a {
    color: #1f5cb8;
}

a:hover {
    color: #16478f;
    text-decoration: none;
}

.site-header {
    background: linear-gradient(135deg, #0e2341 0%, #123763 100%);
    border-bottom: 1px solid #163b68;
}

.layout-container {
    max-width: 1120px;
}

.brand-shell {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.45rem 0.6rem 0.45rem 0.6rem;
}

.brand-logo {
    width: 56px;
    height: 56px;
    display: block;
}

.brand-name {
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero-section {
    background: transparent;
}

.hero-wrap {
    background: #ffffff;
    border: 1px solid #dde6f1;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(11, 39, 77, 0.08);
}

.hero-image {
    width: 100%;
    max-width: 560px;
    border-radius: 14px;
    border: 1px solid #d8e2ef;
}

.hero-copy {
    padding-right: 0.5rem;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.82;
    color: #25374b;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #102d53;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: #586b83;
    font-size: 1.05rem;
}

.saas-section {
    background: #ffffff;
    border-top: 1px solid #e3eaf3;
    border-bottom: 1px solid #e3eaf3;
}

.saas-section .row.g-4 {
    margin-left: -14px;
    margin-right: -14px;
    row-gap: 0.9rem;
}

.saas-section .row.g-4 > [class*="col-"] {
    padding-left: 14px;
    padding-right: 14px;
}

.saas-card {
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 8px 22px rgba(14, 38, 72, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.saas-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(16, 42, 84, 0.12);
}

.saas-preview {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(180deg, #edf3fb 0%, #e6eef9 100%);
    padding: 12px;
    border-bottom: 1px solid #dbe5f1;
}

.saas-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f2f56;
}

.saas-text {
    color: #4a607a;
    line-height: 1.7;
}

.saas-content {
    min-height: 160px;
}

.custom-projects {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
}

.custom-title {
    font-size: 1.35rem;
    color: #0f2f56;
    font-weight: 700;
}

.custom-text {
    color: #4a607a;
    font-size: 1.02rem;
    line-height: 1.7;
}

.site-footer {
    background: #f7f9fc;
}

.footer-text {
    color: #4f6074;
    font-size: 0.95rem;
}

.project-header {
    background: #ffffff;
    border-bottom: 1px solid #e6ebf1;
}

.project-brand-badge {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #0e2341 0%, #123763 100%);
    border: 1px solid #163b68;
    box-shadow: 0 8px 22px rgba(15, 44, 82, 0.2);
}

.project-logo {
    width: 46px;
    height: 46px;
    display: block;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f2c52;
}

.project-content {
    max-width: 820px;
    margin: 0 auto;
}

.project-image {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d9e1ec;
}

.project-text {
    color: #2a3c50;
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .layout-container {
        max-width: 100%;
    }

    .brand-shell {
        gap: 0.55rem;
        padding: 0.35rem 0.8rem 0.35rem 0.45rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .hero-image {
        max-width: 360px;
    }

    .hero-wrap {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .hero-copy {
        padding-right: 0;
    }

    .saas-section .row.g-4 {
        margin-left: -10px;
        margin-right: -10px;
        row-gap: 0.7rem;
    }

    .saas-section .row.g-4 > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .saas-preview {
        height: 220px;
        padding: 8px;
    }

    .saas-title {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .lead-text {
        font-size: 1rem;
        line-height: 1.72;
    }

    .saas-content {
        min-height: 0;
    }

    .custom-projects {
        border-radius: 14px;
        padding: 1.15rem 1rem;
    }

    .custom-title {
        font-size: 1.2rem;
    }

    .custom-text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .project-brand-badge {
        width: 68px;
        height: 68px;
    }

    .project-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 430px) {
    .site-header .container {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    .brand-shell {
        padding: 0.3rem 0.65rem 0.3rem 0.4rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 0.88rem;
        letter-spacing: 0.06em;
    }

    .hero-section {
        padding-top: 0.85rem !important;
    }

    .hero-wrap {
        padding: 0.9rem;
    }

    .lead-text {
        font-size: 0.97rem;
        line-height: 1.68;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .saas-preview {
        height: 192px;
        padding: 7px;
    }

    .saas-content {
        padding: 1rem !important;
    }

    .saas-title {
        font-size: 1.12rem;
    }

    .saas-text {
        font-size: 0.95rem;
        line-height: 1.58;
    }

    .project-brand-badge {
        width: 62px;
        height: 62px;
    }

    .project-logo {
        width: 36px;
        height: 36px;
    }
}