:root {
    --bg: #eef7ff;
    --bg-strong: #dfefff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --line: rgba(60, 107, 168, 0.14);
    --text: #163456;
    --muted: #4f6783;
    --primary: #53b5ff;
    --primary-strong: #1788e6;
    --accent: #8edcff;
    --shadow: 0 24px 60px rgba(69, 126, 189, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1160px;
    font-family: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(142, 220, 255, 0.4), transparent 30%),
        radial-gradient(circle at right 20%, rgba(83, 181, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #f4faff 0%, #fbfdff 48%, #edf6ff 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 280px;
    height: 280px;
    top: 70px;
    right: -90px;
    background: rgba(142, 220, 255, 0.28);
    filter: blur(10px);
}

body::after {
    width: 220px;
    height: 220px;
    bottom: 120px;
    left: -70px;
    background: rgba(83, 181, 255, 0.18);
    filter: blur(18px);
}

.site-shell {
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 18px;
    z-index: 10;
    width: min(calc(100% - 24px), var(--max-width));
    margin: 18px auto 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(246, 251, 255, 0.76);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(70, 123, 181, 0.12);
}

.brand,
.nav a,
.button,
.contact-card,
.project-card-link,
.site-footer a {
    text-decoration: none;
}

.brand {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

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

.nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

main {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 36px auto 32px;
}

.hero,
.featured,
.contact {
    margin-bottom: 28px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.project-card,
.contact {
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 44px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.project-card-title {
    margin: 0;
    color: var(--text);
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    max-width: 10.5em;
}

.hero-text,
.section-heading p,
.panel-card p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-text {
    margin: 20px 0 0;
    max-width: 42em;
    font-size: 16px;
}

.hero-actions,
.project-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #f8fcff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    box-shadow: 0 12px 26px rgba(23, 136, 230, 0.24);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(60, 107, 168, 0.16);
}

.hero-panel {
    padding: 18px;
}

.panel-card {
    height: 100%;
    padding: 28px;
    border-radius: calc(var(--radius-xl) - 10px);
    background:
        linear-gradient(160deg, rgba(142, 220, 255, 0.38), rgba(255, 255, 255, 0.92) 58%),
        rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.88);
}

.panel-label,
.project-tag,
.contact-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.panel-label {
    margin-bottom: 14px;
    background: rgba(83, 181, 255, 0.16);
    color: var(--primary-strong);
}

.panel-card h2 {
    margin: 0;
    font-size: 28px;
}

.feature-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.feature-list li::before {
    content: "•";
    margin-right: 8px;
    color: var(--primary-strong);
    font-weight: 900;
}

.section-heading {
    margin-bottom: 18px;
    padding: 0 6px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-heading p {
    margin: 12px 0 0;
}

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

.project-card {
    min-height: 280px;
    padding: 0;
    overflow: hidden;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag {
    color: var(--primary-strong);
    background: rgba(83, 181, 255, 0.14);
}

.project-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 100%;
    padding: 24px;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(142, 220, 255, 0.42), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(231, 244, 255, 0.96) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.project-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(23, 136, 230, 0.16);
}

.project-card-title {
    display: block;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
}

.project-card-text {
    display: block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.project-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: fit-content;
    padding: 0 20px;
    border-radius: 18px;
    color: #f8fcff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    box-shadow: 0 12px 24px rgba(23, 136, 230, 0.2);
}

.project-card-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(232, 243, 255, 0.42) 100%);
    border: 1px dashed rgba(60, 107, 168, 0.18);
    box-shadow: none;
}

.contact {
    padding: 28px;
}

.contact-card {
    display: block;
    margin-top: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--text);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.contact-label {
    color: var(--primary-strong);
    background: rgba(83, 181, 255, 0.14);
}

.contact-card strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.site-footer {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 0 auto 32px;
    padding: 20px 6px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(60, 107, 168, 0.1);
}

.site-footer a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.18s ease;
}

.site-footer a:hover {
    color: var(--primary-strong);
}

@media (max-width: 920px) {
    .topbar {
        border-radius: 28px;
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero-copy {
        padding: 30px 24px;
    }

    .project-card,
    .contact {
        padding: 22px;
    }

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

    .project-card {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    main {
        margin-top: 24px;
    }

    .topbar {
        top: 10px;
        margin-top: 10px;
        padding: 14px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .contact-card strong {
        font-size: 18px;
        word-break: break-all;
    }

    .project-card-link {
        padding: 20px;
    }

    .project-card-title {
        font-size: 26px;
    }

    .project-card-cta {
        width: 100%;
    }
}
