:root {
    --brand-primary: #4f46e5;
    --brand-primary-dark: #4338ca;
    --brand-accent: #06b6d4;
    --brand-dark: #0f172a;
    --brand-dark-2: #1e293b;
    --brand-gray: #64748b;
    --brand-light: #f8fafc;
    --brand-white: #ffffff;
    --brand-border: #e2e8f0;
    --radius-lg: 1rem;
    --radius-md: 0.625rem;
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 18px 40px rgba(15, 23, 42, 0.14);
    --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--brand-dark-2);
    background-color: var(--brand-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-primary-dark);
}

:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: var(--brand-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.site-navbar {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--brand-border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
}

.site-brand .brand-highlight,
.footer-brand .brand-highlight {
    color: var(--brand-primary);
}

.site-navbar .nav-link {
    font-weight: 500;
    color: var(--brand-dark-2);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--brand-primary);
}

.nav-cta {
    font-weight: 600;
}

.btn {
    border-radius: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.btn-outline-secondary {
    border-color: #cbd5e1;
    color: var(--brand-dark-2);
}

.btn-outline-secondary:hover {
    background-color: var(--brand-light);
    border-color: var(--brand-gray);
    color: var(--brand-dark);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
}

.hero {
    position: relative;
    background-color: var(--brand-dark);
    color: var(--brand-white);
    padding: 5.5rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--brand-white);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero p.lead {
    color: #dbe2ef;
    font-size: 1.15rem;
    max-width: 40rem;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.page-hero {
    position: relative;
    background-color: var(--brand-dark);
    color: var(--brand-white);
    padding: 4rem 0 4.5rem;
    overflow: hidden;
}

.page-hero .hero-bg {
    opacity: 0.28;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(15, 23, 42, 0.8) 100%);
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: var(--brand-white);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p.lead {
    color: #dbe2ef;
    max-width: 44rem;
    margin-bottom: 0;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.breadcrumb-item a {
    color: var(--brand-accent);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #cbd5e1;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background-color: var(--brand-light);
}

.section-heading {
    max-width: 46rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-heading .section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
}

.section-heading p {
    color: var(--brand-gray);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.card {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.card .card-img-top {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.card-text {
    color: var(--brand-gray);
    font-size: 0.95rem;
}

.card-link {
    font-weight: 600;
    text-decoration: none;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--brand-white);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.guide-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.guide-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--brand-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tip-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.tip-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: var(--brand-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--brand-dark-2);
}

.why-list .why-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: var(--brand-white);
    padding: 3.5rem 0;
}

.cta-section h2 {
    color: var(--brand-white);
    font-weight: 700;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
}

.smart-home-panel {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.smart-home-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.smart-home-panel p {
    color: var(--brand-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form-wrap {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.form-label {
    font-weight: 600;
    color: var(--brand-dark);
}

.form-control {
    border-radius: 0.5rem;
    border-color: var(--brand-border);
    padding: 0.65rem 0.9rem;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.is-invalid {
    border-color: #dc2626 !important;
}

.alert {
    border-radius: var(--radius-md);
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.legal-body h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-body h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-body p,
.legal-body li {
    color: var(--brand-dark-2);
}

.legal-body ul {
    padding-left: 1.25rem;
}

.site-footer {
    background-color: var(--brand-dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.site-footer .footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-white);
}

.site-footer .footer-tagline {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 20rem;
}

.footer-heading {
    color: var(--brand-white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-contact {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--brand-accent);
    text-decoration: none;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 2.25rem 0 1.25rem;
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0;
    text-align: center;
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    width: 100%;
    max-width: 460px;
    background: var(--brand-white);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.35s ease;
    text-align: center;
}

.cookie-modal-backdrop.is-visible .cookie-modal {
    transform: translateY(0) scale(1);
}

.cookie-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.cookie-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cookie-modal-text {
    color: var(--brand-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cookie-modal-text a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.img-fluid {
    border-radius: var(--radius-lg);
}

@media (max-width: 991.98px) {
    .nav-cta {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        width: 100%;
    }

    .hero {
        padding: 4rem 0 4.5rem;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 3.5rem 0;
    }

    .cookie-modal-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
