:root {
    --bg: #ffffff;
    --text: #000000;
    --line: rgba(0,0,0,0.12);
    --glass: rgba(255,255,255,0.55);
}

/* BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* GRID BACKGROUND */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* CURSOR */
.cursor, .cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.cursor {
    width: 6px;
    height: 6px;
    background: #000;
}

.cursor-glow {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,1.0);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

/* LOGO FIX */
.logo {
    font-weight: 800;
    letter-spacing: 8px;
}

/* NAV */
.nav a {
    margin-left: 28px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    position: relative;
    padding-bottom: 6px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: #000;
    transition: 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    position: relative;
    overflow: hidden;

    background-image:
        url("hero2.avif"),
        linear-gradient(120deg, #ffffff 0%, #f6f9ff 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.hero-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 90px,
        rgba(0,0,0,0.04) 91px
    );
    animation: moveLines 12s linear infinite;
    z-index: 2;
}

@keyframes moveLines {
    from { transform: translateX(0); }
    to { transform: translateX(90px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero h1 {
    font-size: 58px;
    letter-spacing: -1.2px;
    line-height: 1.05;
}

.hero p {
    margin-top: 22px;
    color: rgba(0,0,0,0.72);
    max-width: 720px;
}

/* FIX: proper spacing so buttons never overlap */
.hero-actions {
    margin-top: 42px;
    display: flex;
    gap: 14px;
}

/* BUTTONS */
.btn {
    border: 1px solid #000;
    padding: 12px 18px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    transition: 0.25s ease;
}

.btn:hover {
    background: #000;
    color: #fff;
}

.btn.ghost {
    background: transparent;
}

/* SECTIONS */
.section {
    padding: 110px 10vw;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

/* HEADER SPACING FIX */
.section h2 {
    font-size: 38px;
    letter-spacing: -0.8px;
    margin-bottom: 60px;   /* IMPORTANT FIX */
}

/* BACKGROUND VARIANTS */
.section-bg-1 { background: linear-gradient(180deg, #fff, #f7faff); }
.section-bg-2 { background: linear-gradient(180deg, #fff, #f3f3f3); }
.section-bg-3 { background: linear-gradient(180deg, #fff, #f7fff9); }
.section-bg-4 { background: linear-gradient(180deg, #fff, #f6f6ff); }

/* GLASS CARDS (NO BORDER, NO GLOW) */
.block {
    padding: 22px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    transition: transform 0.35s ease, background 0.35s ease;
}

/* FLOAT HOVER ONLY */
.block:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.75);
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* LIST GRID FIX (spacing + readability) */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.list-grid .block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    line-height: 1.4;
}

/* COVERAGEGUARD LAYOUT FIX */
.coverageguard-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: start;
}

/* STEP FIX (number spacing) */
.step {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    margin-bottom: 14px;
}

.step span {
    font-weight: 600;
    min-width: 32px;
}

.cta-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    position: relative;
    overflow: hidden;

    background-image:
        url("hero.avif");
    background-size: cover;
    background-position: center;
}

/* reuse same overlay system as hero */
.cta-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.cta-hero .hero-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 90px,
        rgba(0,0,0,0.04) 91px
    );
    animation: moveLines 12s linear infinite;
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.cta-content h2 {
    font-size: 54px;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.cta-content p {
    max-width: 720px;
    color: rgba(0,0,0,0.72);
    margin-bottom: 42px;
}

/* button spacing already handled by global .btn */



/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}




/* ---------- Mobile menu ---------- */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    margin: 5px auto;
    transition: .3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {

    .hero h1,
    .cta-content h2 {
        font-size: 46px;
    }

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

    .coverageguard-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .list-grid {
        grid-template-columns: repeat(2,1fr);
    }

}

/* ---------- Mobile ---------- */

@media (max-width:768px){

    .cursor,
    .cursor-glow{
        display:none;
    }

    .topbar{
        padding:14px 20px;
    }

    .logo img{
        width:150px;
        height:auto;
    }

    .menu-toggle{
        display:block;
    }

    .nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#fff;
        border-top:1px solid var(--line);

        display:flex;
        flex-direction:column;

        max-height:0;
        overflow:hidden;

        transition:max-height .35s ease;
    }

    .nav.open{
        max-height:420px;
    }

    .nav a{
        margin:0;
        padding:18px 24px;
        border-bottom:1px solid rgba(0,0,0,.06);
    }

    .hero,
    .cta-hero{
        padding:120px 24px 60px;
        height:auto;
        min-height:100vh;
    }

    .hero h1{
        font-size:38px;
        line-height:1.1;
    }

    .cta-content h2{
        font-size:38px;
    }

    .hero p,
    .cta-content p{
        font-size:16px;
    }

    .hero-actions{
        flex-direction:column;
        align-items:flex-start;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .section{
        padding:80px 24px;
    }

    .section h2{
        font-size:30px;
        margin-bottom:36px;
    }

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

    .block{
        padding:18px;
    }

}

/* ---------- Very small phones ---------- */

@media (max-width:480px){

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

    .cta-content h2{
        font-size:31px;
    }

    .hero p,
    .cta-content p{
        font-size:15px;
    }

}



@media screen and (max-width:768px){

    .coverageguard-layout{
        display:flex !important;
        flex-direction:column !important;
        gap:30px !important;
    }

    .coverageguard-layout > *{
        width:100% !important;
    }

    .coverageguard-layout img{
        display:block;
        width:100%;
        height:auto;
        max-width:100%;
    }

}