/* Header, footer, tokens and reset taken from https://homeguards.us/form/home-security (cdn.homeguards.us/media/297/css/style.css) */

/* =====================================RESET===================================== */

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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, li,
form, label, footer, header, section, aside, main, button, input {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    cursor: pointer;
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* =====================================TOKENS===================================== */

:root {
    --c-primary: #6A4FD8;
    --c-primary-hover: #5A40C4;
    --c-primary-soft: #F4F1FD;
    --c-primary-soft-2: #F6F4FF;
    --c-primary-option: #6B52D9;
    --c-text: #23212B;
    --c-text-strong: #1C1B29;
    --c-text-2: #3E3B48;
    --c-text-3: #4A4855;
    --c-muted: #6E6B78;
    --c-muted-2: #8C8997;
    --c-muted-3: #A3A0AE;
    --c-border: #E7E5EC;
    --c-border-input: #E1DFE8;
    --c-border-option: #E1E0EA;
    --c-border-hover: #CFCCD8;
    --c-divider: #ECEAF1;
    --c-bg: #F2F2F5;
    --c-bg-input: #FAFAFC;
    --c-track: #E4E2EA;
    --c-error: #E5484D;
    --c-white: #FFFFFF;
    --radius-card: 22px;
    --radius-ctrl: 13px;
    --radius-option: 14px;
    --shadow-card: 0 14px 36px rgba(35, 33, 43, 0.05);
    --font: "Manrope", sans-serif;
    /* Landing palette taken from the homeguards.us landing mockup */
    --c-navy: #1F1B3A;
    --c-violet: #914FFF;
    --c-lav: #F1EEFB;
    --c-accent: #B9A8FF;
    --c-hero-text: #E4DEFA;
    --c-tip-text: #C3BDDF;
    --c-landing-muted: #6B6A80;
    --radius-landing: 14px;
    --shadow-landing: 0 6px 24px rgba(31, 27, 58, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: normal;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
}


a {
    color: var(--c-primary);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.accent {
    color: var(--c-primary);
}
/* =====================================HEADER===================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__nav {
    display: flex;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
}

.site-header__link {
    color: var(--c-navy);
    transition: color 0.2s;
}

.site-header__link:hover {
    color: var(--c-primary-hover);
}

.site-header__logo img {
    width: 141px;
    height: 46px;
}
/* =====================================FOOTER===================================== */

.footer {
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 34px;
}

.footer__logo img {
    width: 110px;
    height: 36px;
    opacity: 0.6;
}

.footer__text {
    max-width: 840px;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-muted-2);
}

.footer__links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-primary);
}

.footer__link:hover {
    color: var(--c-primary-hover);
}

.footer__copyright {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-muted-3);
}

/* =====================================CONTENT PAGES===================================== */

.content-page {
    padding-top: 32px;
    padding-bottom: 48px;
}

.content-card {
    padding: 40px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--c-text-3);
    overflow-wrap: break-word;
}

.content-card > :first-child {
    margin-top: 0;
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4 {
    color: var(--c-text);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 28px 0 12px;
}

.content-card h1 {
    font-size: 30px;
    letter-spacing: -0.02em;
}

.content-card h2 {
    font-size: 22px;
}

.content-card h3 {
    font-size: 18px;
}

.content-card h4 {
    font-size: 16px;
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card table {
    margin: 0 0 14px;
}

.content-card ul,
.content-card ol {
    padding-left: 22px;
}

.content-card ul {
    list-style: disc;
}

.content-card ol {
    list-style: decimal;
}

.content-card li {
    margin-bottom: 6px;
}

.content-card strong,
.content-card b {
    font-weight: 700;
    color: var(--c-text);
}

.content-card em,
.content-card i {
    font-style: italic;
}

.content-card a:hover {
    color: var(--c-primary-hover);
    text-decoration: underline;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.content-card th,
.content-card td {
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}

.content-card th {
    background: var(--c-bg-input);
    color: var(--c-text);
    font-weight: 700;
}

/* =====================================BUTTON===================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--c-primary);
    box-shadow: 0 4px 14px rgba(106, 79, 216, 0.35);
    color: var(--c-white);
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--c-primary-hover);
    box-shadow: 0 8px 20px rgba(106, 79, 216, 0.4);
}

.btn:focus-visible {
    outline: 3px solid var(--c-primary-hover);
    outline-offset: 3px;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 15px;
    white-space: nowrap;
}

.btn__short {
    display: none;
}

/* =====================================LANDING===================================== */

.section {
    padding: 88px 0;
}

.section__head {
    text-align: center;
}

.section__title {
    margin-bottom: 18px;
    color: var(--c-navy);
    font-size: clamp(27px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.section__lead {
    max-width: 680px;
    margin: 0 auto;
    color: var(--c-landing-muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: var(--c-navy) url("../images/hero-bg.webp") center / cover no-repeat;
}

.hero::before,
.final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 27, 58, 0.92) 0%, rgba(31, 27, 58, 0.75) 50%, rgba(31, 27, 58, 0.3) 100%);
}

.hero .container,
.final .container {
    position: relative;
}

.hero__title {
    max-width: 640px;
    margin-bottom: 22px;
    color: var(--c-white);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
}

.hero__text {
    max-width: 560px;
    margin-bottom: 32px;
    color: var(--c-hero-text);
    font-size: 18px;
    line-height: 1.65;
}

.about {
    background: var(--c-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}

.about__text {
    color: var(--c-landing-muted);
    font-size: 17px;
    line-height: 1.65;
}

.about__text p + p {
    margin-top: 16px;
}

.solutions {
    background: var(--c-bg);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.card {
    overflow: hidden;
    border-radius: var(--radius-landing);
    background: var(--c-white);
    box-shadow: var(--shadow-landing);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(31, 27, 58, 0.14);
}

.card__img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
}

.card__img svg {
    width: 72px;
    height: 72px;
    fill: none;
    stroke: var(--c-white);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card__body {
    padding: 22px;
}

.card__title,
.benefit__title,
.tip__title {
    margin-bottom: 8px;
    color: var(--c-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.card__body p,
.benefit p {
    color: var(--c-landing-muted);
    font-size: 15px;
    line-height: 1.65;
}

.why {
    background: var(--c-white);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.benefit {
    padding: 30px;
    border-top: 4px solid var(--c-primary);
    border-radius: var(--radius-landing);
    background: var(--c-lav);
}

.benefit p {
    font-size: 16px;
}

.tips {
    background: var(--c-navy);
}

.tips .section__title,
.tip__title {
    color: var(--c-white);
}

.tips__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tip {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-landing);
    transition: background 0.25s, border-color 0.25s;
}

.tip:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--c-accent);
}

.tip__num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-navy);
    font-weight: 800;
}

.tip p {
    color: var(--c-tip-text);
    font-size: 15px;
    line-height: 1.65;
}

.final {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(135deg, var(--c-navy), var(--c-primary));
    text-align: center;
}

.final::before {
    background: rgba(31, 27, 58, 0.55);
}

.final .section__title {
    color: var(--c-white);
}

.final .section__lead {
    margin-bottom: 32px;
    color: var(--c-hero-text);
}

/* =====================================MEDIA===================================== */

@media (max-width: 980px) {
    .cards,
    .tips__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

@media (max-width: 760px) {
    .site-header__nav {
        display: none;
    }

    .site-header__inner {
        gap: 12px;
    }

    .btn--sm {
        padding: 9px 16px;
        font-size: 14px;
    }

    .btn__full {
        display: none;
    }

    .btn__short {
        display: inline;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: 520px;
        background-image: url("../images/hero-bg-mob.webp");
    }

    .hero::before {
        background: rgba(31, 27, 58, 0.82);
    }

    .final {
        padding: 80px 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header__logo img {
        width: 123px;
        height: 40px;
    }

    .content-page {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .content-card {
        padding: 20px 17px;
        border-radius: 20px;
        font-size: 14px;
    }

    .content-card h1 {
        font-size: 24px;
    }

    .content-card h2 {
        font-size: 19px;
    }

    .content-card table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 520px) {
    .cards,
    .tips__grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 13px 22px;
    }

    .btn--sm {
        padding: 8px 13px;
        font-size: 13px;
    }
}
