* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #08111f;
    color: #f8fafc;
    line-height: 1.65;
}

header {
    background: linear-gradient(90deg, #ff7b00, #ffb347, #00c2ff);
    padding: 26px 18px;
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    color: #08111f;
}

nav {
    background: #0b1220;
    padding: 14px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 8px 22px #0007;
}

nav a {
    color: #ffd166;
    text-decoration: none;
    margin: 10px 14px;
    font-size: 17px;
    font-weight: 800;
}

nav a:hover {
    color: #fff;
}

.hero {
    padding: 105px 30px;
    text-align: center;
    background: linear-gradient(#08111fb5, #08111fe8),
        url('assets/images/manhattan-smart-elevators.png') center/cover;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.05;
    margin: 0 0 12px;
}

.hero p {
    font-size: 22px;
    max-width: 950px;
    margin: auto;
}

.button {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 24px;
    background: #ff7b00;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: bold;
}

.section {
    padding: 55px 8%;
}

.section h1,
.section h2 {
    color: #ffd166;
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.lead {
    font-size: 20px;
    max-width: 1100px;
}

/* ===== SPLIT SECTIONS ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

/* ===== ALL IMAGES SMALLER + CLEAN ===== */
img,
.split img,
.wide-img,
.compare-card img,
.card img,
.gallery-grid img,
.image-card img,
.image-stack img,
.zoning-grid img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 0 18px #00c2ff35;
    border: 1px solid #ffffff22;
}

/* ===== MAIN GRID LAYOUTS ===== */
.cards,
.compare-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* ===== CARDS ===== */
.card,
.compare-card,
.image-card {
    background: #142033;
    padding: 18px;
    border-radius: 22px;
    box-shadow: 0 0 20px #ff8c0040;
    border: 1px solid #ffffff1a;
    transition: 0.25s;
}

.card:hover,
.compare-card:hover,
.image-card:hover {
    transform: translateY(-5px);
}

.card h3,
.compare-card h3 {
    color: #ffb347;
    margin: 12px 0 8px;
    font-size: 22px;
}

/* ===== SPECIAL IMAGE SIZES ===== */
.image-card.large img {
    height: 260px;
}

.image-card.wide img {
    height: 260px;
}

.card.tall img {
    height: 260px;
}

.image-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.image-stack img {
    height: 220px;
}

/* ===== ZONING GRID ===== */
.zoning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.zone-cards {
    display: grid;
    gap: 18px;
}

.zone {
    background: #142033;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #ffffff1a;
}

/* ===== OTHER STYLES ===== */
.checklist {
    background: #101b2f;
    border-left: 6px solid #ff7b00;
    padding: 24px;
    border-radius: 18px;
    font-size: 19px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.step {
    background: #142033;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #ffffff1a;
}

.step b {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00c2ff;
    color: #06111f;
    margin-bottom: 10px;
}

.footer,
footer {
    background: #0b1220;
    padding: 24px;
    text-align: center;
    margin-top: 40px;
    color: #ddd;
}

.ref a {
    color: #8be9ff;
}

.note {
    background: #0d2a3a;
    border: 1px solid #00c2ff55;
    padding: 15px;
    border-radius: 14px;
}

.citytech-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 0 28px #ffb34755;
    border: 1px solid #ffffff33;
}

.source-list p {
    margin: 0 0 18px;
}

.source-list a {
    color: #8be9ff;
    font-weight: 700;
}

.small {
    font-size: 16px;
    color: #cbd5e1;
}

.hero-city {
    padding: 90px 30px;
    text-align: center;
    background: linear-gradient(#08111faa, #08111ff0),
        url('assets/images/citytech-building.jpg') center/cover;
}

.hero-city h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 12px;
}

.hero-city p {
    font-size: 21px;
    max-width: 940px;
    margin: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .hero h1,
    .hero-city h1 {
        font-size: 38px;
    }

    .split,
    .steps,
    .zoning-grid,
    .image-stack {
        grid-template-columns: 1fr;
    }

    header {
        font-size: 30px;
    }

    nav a {
        display: inline-block;
        margin: 7px;
    }

    img,
    .card img,
    .compare-card img,
    .gallery-grid img,
    .image-card img,
    .image-stack img {
        height: 210px;
    }
}
