:root {
    --primary: #3f84b8;
    --primary-dark: #356f9d;
    --primary-soft: #e9f1f8;
    --bg-body: #edf2f7;
    --bg-soft: #e8eef5;
    --surface: #ffffff;
    --text-main: #1f2c3b;
    --text-sub: #6a7788;
    --line: #d8e1ec;
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.7;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.section {
    padding: 82px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1200;
    background: rgba(247, 250, 254, 0.9);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.navbar.scrolled {
    background: rgba(247, 250, 254, 0.98);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 22px rgba(31, 54, 80, 0.08);
}

.nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    text-decoration: none;
    color: #2f5d81;
    font-family: var(--font-heading);
    font-size: clamp(1.24rem, 0.8vw + 1rem, 1.75rem);
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    text-decoration: none;
    color: #20364c;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px rgba(63, 132, 184, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border-color: rgba(63, 132, 184, 0.48);
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.88);
}

.btn-outline:hover {
    background: var(--primary-soft);
}

.hero {
    margin-top: 82px;
}

.banner-slider {
    position: relative;
    min-height: clamp(500px, 56vw, 690px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(34, 66, 96, 0.56) 0%, rgba(34, 66, 96, 0.24) 46%, rgba(34, 66, 96, 0.06) 76%);
}

.banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.banner-dev {
    background-image: url("./assets/banners/banner-photo-01.jpg");
}

.banner-cms {
    background-image: url("./assets/banners/banner-photo-02.jpg");
}

.banner-erp {
    background-image: url("./assets/banners/banner-photo-03.jpg");
}

.banner-content {
    position: relative;
    z-index: 2;
    min-height: clamp(500px, 56vw, 690px);
    display: grid;
    align-content: center;
    max-width: 710px;
    color: #f4f8fc;
}

.banner-kicker {
    color: #d8ecff;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.banner-content h1,
.banner-content h2 {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.92rem);
    line-height: 1.35;
}

.banner-content p {
    margin-top: 14px;
    color: #e4eef8;
    font-size: 1.05rem;
    max-width: 640px;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(34, 66, 96, 0.4);
    font-size: 1.6rem;
    cursor: pointer;
}

.slider-btn:hover {
    background: rgba(34, 66, 96, 0.6);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.is-active {
    width: 28px;
    background: #fff;
}

.section-head {
    margin-bottom: 28px;
}

.tag {
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2,
h3 {
    font-family: var(--font-heading);
    color: #305477;
    line-height: 1.35;
}

h2 {
    margin-top: 9px;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

h3 {
    font-size: 1.28rem;
}

.service-grid,
.product-grid {
    display: grid;
    gap: 18px;
}

.service-grid {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid {
    grid-template-columns: repeat(2, 1fr);
}

.service-card,
.product-card,
.about-card,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(21, 53, 84, 0.06);
}

.service-card,
.product-card {
    padding: 24px;
}

.service-card p,
.product-card p,
.about-card p,
.contact-card p {
    margin-top: 10px;
    color: var(--text-sub);
}

.product-card {
    border-top: 4px solid rgba(63, 132, 184, 0.38);
}

.product-card ul {
    margin-top: 14px;
    padding-left: 20px;
}

.product-card li {
    color: var(--text-sub);
    margin-bottom: 8px;
}

.about-card {
    padding: 28px;
}

.contact-card {
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.phone {
    margin-top: 16px;
    font-size: 1.07rem;
    color: var(--primary-dark);
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    color: #35506b;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #cfdae7;
    border-radius: 8px;
    background: #f9fcff;
    color: var(--text-main);
    padding: 11px 12px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(63, 132, 184, 0.24);
    border-color: rgba(63, 132, 184, 0.48);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #e6edf5;
}

.footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #66798f;
}

.icp-link {
    color: #5d7390;
    text-decoration: none;
}

.icp-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1020px) {
    .service-grid,
    .product-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .banner-content {
        max-width: 86%;
    }
}

@media (max-width: 780px) {
    .navbar {
        position: static;
        border-bottom-color: var(--line);
        background: rgba(247, 250, 254, 0.98);
    }

    .nav-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .hero {
        margin-top: 0;
    }

    .banner-slider,
    .banner-content {
        min-height: 520px;
    }

    .banner-content {
        max-width: 100%;
        padding-bottom: 74px;
    }

    .banner-slide::before {
        background: linear-gradient(90deg, rgba(34, 66, 96, 0.66) 0%, rgba(34, 66, 96, 0.36) 56%, rgba(34, 66, 96, 0.2) 100%);
    }

    .section {
        padding: 66px 0;
    }
}
