*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #185FA5;
    --blue-lt: #E6F1FB;
    --blue-md: #378ADD;
    --teal: #1D9E75;
    --teal-lt: #E1F5EE;
    --teal-md: #5DCAA5;
    --gray: #5F5E5A;
    --gray-lt: #F1EFE8;
    --gray-dk: #2C2C2A;
    --white: #ffffff;
    --off: #F7F6F2;
    --border: #D3D1C7;
    --mono: 'DM Mono', monospace;
    --sans: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--off);
    color: var(--gray-dk);
    font-size: 16px;
    line-height: 1.7;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 246, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-logo-text {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--blue);
}

.nav-logo-text span {
    color: var(--teal);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

nav a:hover {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px !important;
    transition: background .2s !important;
}

.nav-cta:hover {
    background: var(--blue-md) !important;
    color: white !important;
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 3rem 3rem;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(29, 158, 117, .06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 30% 30%, rgba(24, 95, 165, .05) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 1px;
    background: var(--teal-lt);
    color: var(--teal);
    border: 1px solid var(--teal-md);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--gray-dk);
    margin-bottom: 1.5rem;
}

h1 .accent {
    color: var(--blue);
}

h1 .accent2 {
    color: var(--teal);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--blue);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.btn-primary:hover {
    background: var(--blue-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--blue);
    transition: background .2s;
}

.btn-outline:hover {
    background: var(--blue-lt);
}

/* Hero visual side */
.hero-visual {
    position: relative;
    z-index: 1;
}

.card-stack {
    display: grid;
    gap: 12px;
    animation: floatup 1s ease both;
}

@keyframes floatup {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plc-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.plc-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.plc-card-icon.blue {
    background: var(--blue-lt);
}

.plc-card-icon.teal {
    background: var(--teal-lt);
}

.plc-card-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-dk);
}

.plc-card-info p {
    font-size: 12px;
    color: var(--gray);
    font-family: var(--mono);
}

.plc-card-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-green {
    background: var(--teal-lt);
    color: var(--teal);
}

.badge-blue {
    background: var(--blue-lt);
    color: var(--blue);
}

/* ── SECTION COMMON ── */
section {
    padding: 6rem 3rem;
}

.section-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: .75rem;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--gray);
    max-width: 560px;
    margin-bottom: 3rem;
}

/* ── PRODUCTS ── */
#products {
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--off);
    transition: border-color .2s, transform .2s;
}

.product-card:hover {
    border-color: var(--blue-md);
    transform: translateY(-2px);
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 22px;
}

.product-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: .4rem;
}

.product-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

.product-tag {
    display: inline-block;
    margin-top: .75rem;
    font-family: var(--mono);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── THERMOSTAT SPOTLIGHT ── */
#thermostat {
    background: var(--gray-dk);
    color: white;
}

#thermostat h2 {
    color: white;
}

#thermostat .section-tag {
    color: var(--teal-md);
}

#thermostat .section-sub {
    color: #B4B2A9;
}

.thermo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.thermo-display {
    background: #1a1a18;
    border: 1px solid #444441;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    font-family: var(--mono);
}

.thermo-temp {
    font-size: 5rem;
    font-weight: 500;
    color: var(--teal-md);
    line-height: 1;
}

.thermo-unit {
    font-size: 2rem;
    color: #888780;
}

.thermo-label {
    font-size: 12px;
    color: #888780;
    margin-top: .5rem;
    letter-spacing: 2px;
}

.thermo-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.thermo-btn {
    background: #2C2C2A;
    border: 1px solid #444441;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}

.thermo-btn:hover {
    background: #444441;
}

.thermo-btn.active {
    background: var(--teal);
    border-color: var(--teal);
}

.thermo-features {
    display: grid;
    gap: 1.25rem;
}

.thermo-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.thermo-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(29, 158, 117, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.thermo-feature h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.thermo-feature p {
    font-size: 13px;
    color: #888780;
}

/* ── WHY US ── */
#why {
    background: var(--off);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.why-number {
    font-family: var(--mono);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--blue-lt);
    line-height: 1;
    margin-bottom: .5rem;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: .5rem;
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
}

/* ── CONTACT ── */
#contact {
    background: white;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: .5rem;
    font-size: 14px;
}

.contact-detail {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: .5rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    background: var(--off);
    color: var(--gray-dk);
    outline: none;
    transition: border-color .2s;
}

input:focus,
textarea:focus {
    border-color: var(--blue-md);
    background: white;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: var(--teal);
    color: white;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.form-submit:hover {
    background: var(--teal-md);
}

/* ── FOOTER ── */
footer {
    background: var(--gray-dk);
    color: #B4B2A9;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

footer a {
    color: var(--teal-md);
    text-decoration: none;
}

.footer-logo {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.footer-logo span {
    color: var(--teal-md);
}

/* ── ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s, transform .6s;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    #hero,
    .thermo-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    nav ul {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    nav {
        padding: 0 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
