@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --red: #eb2443;
    --red-dark: #c90f2f;
    --black: #050505;
    --panel: #101010;
    --text: #ffffff;
    --muted: #b8b8b8;
    --line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--black); color: var(--text); }
body { font-family: Inter, Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; background: var(--black); }
.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 56px);
    max-width: 1500px;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 18px 8px 28px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(8,8,8,.83);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.brand { font: 700 1.35rem 'Space Grotesk', sans-serif; letter-spacing: .08em; white-space: nowrap; }
.brand span { color: var(--red); }
.desktop-nav { display: flex; gap: 34px; color: #ddd; font-size: .92rem; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.header-actions { justify-self: end; display: flex; gap: 10px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 20px; border-radius: 999px; font-size: .9rem; }
.button-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 12px 30px rgba(235,36,67,.22); }
.button-ghost { border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.25); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.08); }

.hero {
    position: relative;
    width: 100%;
    min-height: 720px;
    height: 100vh;
    max-height: 920px;
    overflow: hidden;
    background: #050505;
}
.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-house.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 69% center;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(3,3,3,1) 0%, rgba(3,3,3,.97) 22%, rgba(3,3,3,.78) 39%, rgba(3,3,3,.14) 61%, rgba(3,3,3,.05) 100%),
      linear-gradient(0deg, rgba(3,3,3,.30) 0%, rgba(3,3,3,0) 44%);
}
.hero-copy {
    position: relative;
    z-index: 2;
    width: min(620px, 46vw);
    padding-top: clamp(120px, 13vh, 165px);
    margin-left: clamp(42px, 5vw, 82px);
}
.eyebrow { margin: 0 0 18px; color: var(--red); font-weight: 700; letter-spacing: .32em; font-size: .82rem; }
.hero h1 {
    margin: 0;
    font: 700 clamp(3.7rem, 5.2vw, 6.25rem)/.96 'Space Grotesk', sans-serif;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.hero h1 span { color: var(--red); }
.hero-summary {
    max-width: 445px;
    margin: 30px 0 0;
    padding-left: 18px;
    border-left: 3px solid var(--red);
    color: #d0d0d0;
    font-size: 1.08rem;
    line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.stats-strip {
    position: relative;
    z-index: 5;
    width: calc(100% - 70px);
    max-width: 1500px;
    margin: -74px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(13,13,13,.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    overflow: hidden;
}
.stats-strip article { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 20px 34px; border-right: 1px solid var(--line); }
.stats-strip article:last-child { border-right: 0; }
.stats-strip strong { font: 700 2rem 'Space Grotesk', sans-serif; }
.stats-strip span { margin-top: 4px; color: var(--muted); font-size: .95rem; }

.services-section {
    position: relative;
    width: min(1450px, calc(100% - 70px));
    margin: 0 auto;
    padding: 92px 0 96px;
}
.services-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 10%;
    left: 50%;
    width: min(1100px, 90vw);
    height: 540px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(235,36,67,.08), transparent 68%);
    pointer-events: none;
}
.section-heading { position: relative; z-index: 1; text-align: center; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .contact-section h2 { margin: 0; font: 600 clamp(2.2rem, 3.5vw, 4rem) 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.section-heading > p:last-child { max-width: 620px; margin: 18px auto 0; line-height: 1.7; }
.section-heading > p:last-child, .contact-section > p { color: var(--muted); font-size: 1.05rem; }
.featured-services, .supporting-services { position: relative; z-index: 1; display: grid; gap: 16px; }
.featured-services { grid-template-columns: repeat(2, 1fr); }
.supporting-services { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.service-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.105);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, rgba(26,26,27,.82), rgba(10,10,11,.88));
    backdrop-filter: blur(22px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.22);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .45s ease;
}
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.045) 48%, transparent 75%);
    transform: translateX(-110%);
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.service-card:hover, .service-card:focus-visible {
    transform: translateY(-9px);
    border-color: rgba(235,36,67,.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 85px rgba(0,0,0,.42), 0 0 42px rgba(235,36,67,.08);
}
.service-card:hover::after, .service-card:focus-visible::after { transform: translateX(110%); }
.service-card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.service-card-featured { min-height: 300px; padding: 28px 30px 30px; }
.service-glow {
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235,36,67,.16), transparent 68%);
    transition: transform .6s ease, opacity .4s ease;
}
.service-card-featured:hover .service-glow { transform: scale(1.18); }
.service-topline { display: flex; align-items: flex-start; justify-content: space-between; }
.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(235,36,67,.3);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(235,36,67,.17), rgba(235,36,67,.035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    transition: transform .4s ease, background .35s ease;
}
.service-card:hover .service-icon { transform: scale(1.06); background: rgba(235,36,67,.18); }
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--red); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.service-number { display: none; }
.service-content { margin-top: auto; }
.service-label { color: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .22em; }
.service-card h3 { margin: 10px 0; font: 600 1.28rem 'Space Grotesk', sans-serif; letter-spacing: -.025em; }
.service-card-featured h3 { font-size: clamp(1.7rem, 2vw, 2.3rem); }
.service-card p { margin: 0; max-width: 570px; color: #aaa; line-height: 1.68; }
.service-link { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #ededed; font-size: .84rem; font-weight: 600; }
.service-link span { color: var(--red); font-size: 1.08rem; transition: transform .3s ease; }
.service-card:hover .service-link span { transform: translate(3px,-3px); }
.service-card-supporting { min-height: 220px; padding: 22px; }
.service-card-supporting > .service-number { position: absolute; top: 31px; right: 26px; }
.service-card-supporting .service-icon { width: 44px; height: 44px; border-radius: 13px; }
.service-card-supporting .service-icon svg { width: 21px; height: 21px; }
.service-card-supporting h3 { margin-top: 22px; }
.service-card-supporting p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .9rem; line-height: 1.55; }
.service-card-supporting .service-link { margin-top: auto; padding-top: 16px; }

.contact-section { width: min(1200px, calc(100% - 70px)); margin: 0 auto 110px; padding: 82px 40px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at top, rgba(235,36,67,.12), transparent 45%), #0e0e0e; }
.contact-section > p { max-width: 650px; margin: 18px auto 0; line-height: 1.7; }
.contact-actions { justify-content: center; }
.site-footer { padding: 52px 30px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer small { display: block; margin-top: 18px; }

@media (max-width: 1050px) {
    .desktop-nav { display: none; }
    .site-header { grid-template-columns: 1fr auto; }
    .hero-copy { width: min(600px, 66vw); }
    .hero-photo { background-position: 63% center; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stats-strip article:nth-child(2) { border-right: 0; }
    .stats-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .supporting-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .site-header { top: 10px; width: calc(100% - 20px); padding: 8px 10px 8px 16px; }
    .brand { font-size: 1rem; }
    .header-actions .button-ghost { display: none; }
    .button-small { min-height: 38px; padding: 0 15px; }
    .hero { min-height: 760px; height: auto; }
    .hero-photo { background-position: 70% center; opacity: .62; }
    .hero-shade { background: linear-gradient(90deg, rgba(3,3,3,.96), rgba(3,3,3,.64)), linear-gradient(0deg, rgba(3,3,3,.72), transparent); }
    .hero-copy { width: auto; margin: 0; padding: 125px 24px 140px; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
    .stats-strip { width: calc(100% - 28px); margin-top: -95px; grid-template-columns: 1fr 1fr; }
    .stats-strip article { min-height: 100px; padding: 18px; }
    .stats-strip strong { font-size: 1.55rem; }
    .stats-strip span { font-size: .8rem; }
    .services-section, .contact-section { width: calc(100% - 28px); }
    .services-section { padding-top: 82px; }
    .featured-services, .supporting-services { grid-template-columns: 1fr; }
    .service-card-featured { min-height: 320px; padding: 26px; }
    .service-card-supporting { min-height: 220px; }
    .contact-section { padding: 60px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .service-card, .service-card::after, .service-icon, .service-link span, .service-glow { transition: none; }
    .service-card:hover { transform: none; }
}

/* Phase 4 — Why Apple Security */
.why-section {
    width: min(1450px, calc(100% - 70px));
    min-height: 560px;
    margin: 0 auto 96px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.105);
    border-radius: 24px;
    background: #090909;
    box-shadow: 0 34px 100px rgba(0,0,0,.38);
}
.why-visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background-image: url('/images/hero-house.png');
    background-size: cover;
    background-position: 68% center;
}
.why-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 50%, rgba(235,36,67,.16), transparent 35%);
    mix-blend-mode: screen;
    pointer-events: none;
}
.why-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,5,5,.26), rgba(5,5,5,.06) 58%, rgba(5,5,5,.7)),
        linear-gradient(0deg, rgba(5,5,5,.8), transparent 42%);
}
.why-image-caption {
    position: absolute;
    z-index: 2;
    left: 34px;
    bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(7,7,7,.62);
    backdrop-filter: blur(16px);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .15em;
}
.why-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(235,36,67,.12), 0 0 18px rgba(235,36,67,.7);
    animation: statusPulse 2.4s ease-in-out infinite;
}
.why-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px clamp(30px, 3.4vw, 54px);
    background:
        radial-gradient(circle at 100% 0, rgba(235,36,67,.075), transparent 35%),
        linear-gradient(145deg, rgba(18,18,19,.98), rgba(7,7,8,.99));
}
.why-heading .eyebrow { margin-bottom: 17px; }
.why-heading h2 {
    margin: 0;
    font: 600 clamp(2.35rem, 3.2vw, 3.75rem)/.98 'Space Grotesk', sans-serif;
    letter-spacing: -.055em;
}
.why-heading > p:last-child {
    max-width: 560px;
    margin: 16px 0 0;
    color: #a9a9aa;
    font-size: 1rem;
    line-height: 1.72;
}
.why-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.why-benefit {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 70px;
    padding: 9px 13px 9px 9px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    background: linear-gradient(120deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.why-benefit:hover, .why-benefit:focus-visible {
    transform: translateX(6px);
    border-color: rgba(235,36,67,.58);
    background: linear-gradient(120deg, rgba(235,36,67,.08), rgba(255,255,255,.02));
}
.why-benefit:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.why-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(235,36,67,.23);
    border-radius: 13px;
    background: rgba(235,36,67,.075);
}
.why-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-benefit-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.why-benefit-copy strong { font: 600 .86rem/1.2 'Space Grotesk', sans-serif; letter-spacing: -.015em; }
.why-benefit-copy small { display: none; }
.why-arrow { color: var(--red); font-size: 1.02rem; transition: transform .3s ease; }
.why-benefit:hover .why-arrow { transform: translate(3px,-3px); }
.why-cta { align-self: flex-start; gap: 20px; min-height: 48px; margin-top: 20px; padding: 0 22px; font-size: .9rem; }
.why-cta span { font-size: 1.1rem; transition: transform .3s ease; }
.why-cta:hover span { transform: translateX(4px); }

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 5px rgba(235,36,67,.12), 0 0 18px rgba(235,36,67,.7); }
    50% { opacity: .65; box-shadow: 0 0 0 8px rgba(235,36,67,.04), 0 0 8px rgba(235,36,67,.35); }
}

@media (max-width: 1050px) {
    .why-section { grid-template-columns: 1fr; }
    .why-visual { min-height: 400px; background-position: center 58%; }
    .why-content { padding: 56px clamp(28px, 7vw, 70px); }
}

@media (max-width: 700px) {
    .why-section { width: calc(100% - 28px); min-height: 0; margin-bottom: 88px; border-radius: 22px; }
    .why-visual { min-height: 300px; }
    .why-image-caption { left: 18px; bottom: 18px; padding: 10px 13px; font-size: .59rem; }
    .why-content { padding: 44px 20px 38px; }
    .why-heading h2 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
    .why-heading > p:last-child { font-size: .94rem; }
    .why-benefits { grid-template-columns: 1fr; }
    .why-benefit { grid-template-columns: 42px 1fr auto; gap: 12px; padding-right: 14px; }
    .why-benefit-copy small { display: none; }
    .why-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .why-status-dot { animation: none; }
    .why-benefit, .why-arrow, .why-cta span { transition: none; }
    .why-benefit:hover { transform: none; }
}

/* Phase 5 — compact technology showcase */
.technology-section {
    width: min(1450px, calc(100% - 70px));
    margin: 0 auto 96px;
}
.technology-heading { text-align: center; margin-bottom: 34px; }
.technology-heading .eyebrow { margin-bottom: 12px; }
.technology-heading h2 {
    margin: 0;
    font: 600 clamp(2rem, 3.15vw, 3.65rem)/1.04 'Space Grotesk', sans-serif;
    letter-spacing: -.05em;
}
.technology-heading > p:last-child { margin: 14px auto 0; color: #999; font-size: .98rem; }
.technology-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.technology-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 390px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border: 1px solid rgba(235,36,67,.28);
    border-radius: 21px;
    background: linear-gradient(155deg, rgba(23,23,24,.92), rgba(7,7,8,.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 22px 65px rgba(0,0,0,.24);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .4s ease;
}
.technology-card:hover, .technology-card:focus-visible {
    transform: translateY(-7px);
    border-color: rgba(235,36,67,.75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 28px 78px rgba(0,0,0,.4), 0 0 36px rgba(235,36,67,.07);
}
.technology-card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.technology-image { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.technology-image::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 0;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.technology-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.technology-card:hover .technology-image img { transform: scale(1.035); }
.technology-copy { display: flex; flex-direction: column; padding: 19px 24px 21px; }
.technology-copy > strong { font: 600 clamp(1.15rem, 1.45vw, 1.45rem) 'Space Grotesk', sans-serif; letter-spacing: -.025em; }
.technology-copy > small { margin-top: 7px; overflow: hidden; color: #929294; font-size: .8rem; white-space: nowrap; text-overflow: ellipsis; }
.technology-copy i { padding: 0 3px; color: var(--red); font-style: normal; }
.technology-copy > span { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.075); color: #eee; font-size: .82rem; font-weight: 600; }
.technology-copy b { color: var(--red); font-size: 1.12rem; transition: transform .3s ease; }
.technology-card:hover .technology-copy b { transform: translateX(4px); }
.technology-trust { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; color: #8c8c8e; }
.technology-trust > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(235,36,67,.26); border-radius: 50%; background: rgba(235,36,67,.055); }
.technology-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.technology-trust p { margin: 0; font-size: .85rem; }
.technology-trust strong { color: var(--red); font-weight: 600; }

@media (max-width: 1050px) {
    .technology-grid { grid-template-columns: 1fr 1fr; }
    .technology-card:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
}

@media (max-width: 700px) {
    .technology-section { width: calc(100% - 28px); margin-bottom: 82px; }
    .technology-heading { margin-bottom: 28px; }
    .technology-heading > p:last-child { max-width: 390px; line-height: 1.6; }
    .technology-grid { grid-template-columns: 1fr; }
    .technology-card, .technology-card:last-child { grid-column: auto; width: 100%; height: 355px; }
    .technology-trust { align-items: flex-start; padding: 0 12px; text-align: left; }
    .technology-trust > span { flex: 0 0 34px; }
    .technology-trust p { line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
    .technology-card, .technology-image img, .technology-copy b { transition: none; }
    .technology-card:hover { transform: none; }
}

/* Compact footer */
.site-footer {
    padding: 48px max(28px, calc((100vw - 1450px) / 2));
    text-align: left;
    background: linear-gradient(180deg, #090909, #050505);
}
.footer-main { display: grid; grid-template-columns: 1.5fr .75fr .9fr 1fr; gap: 48px; }
.footer-brand p { margin: 14px 0 0; color: #818184; font-size: .86rem; line-height: 1.65; }
.footer-links, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links strong, .footer-contact strong { margin-bottom: 3px; color: #eee; font: 600 .76rem 'Space Grotesk', sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a, .footer-contact a, .footer-contact span { color: #929294; font-size: .82rem; line-height: 1.45; transition: color .2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact b { color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #747477; }
.footer-bottom small { margin: 0; }
.footer-bottom > span { display: flex; gap: 24px; font-size: .75rem; }
.footer-bottom a:hover { color: #fff; }

/* Quote popup */
body.modal-open { overflow: hidden; }
.quote-dialog {
    width: min(980px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px;
    color: #fff;
    background: rgba(10,10,11,.97);
    box-shadow: 0 42px 140px rgba(0,0,0,.72), 0 0 80px rgba(235,36,67,.08);
}
.quote-dialog::backdrop {
    background: rgba(0,0,0,.76);
    backdrop-filter: blur(12px);
}
.quote-modal {
    position: relative;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    min-height: 570px;
}
.quote-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: #ddd;
    background: rgba(255,255,255,.055);
    font: 300 1.7rem/1 Inter, sans-serif;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.quote-close:hover { transform: rotate(5deg); color: #fff; background: rgba(235,36,67,.15); }
.quote-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 38px;
    border-right: 1px solid rgba(255,255,255,.09);
    background: radial-gradient(circle at 0 0, rgba(235,36,67,.12), transparent 44%), #0d0d0e;
}
.quote-intro h2 { margin: 0; font: 600 clamp(2rem, 3vw, 3.1rem)/1.02 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.quote-intro > p:not(.eyebrow) { margin: 20px 0 0; color: #9a9a9d; font-size: .92rem; line-height: 1.7; }
.quote-assurance { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.quote-assurance span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: #aaa; background: rgba(255,255,255,.025); font-size: .65rem; }
.quote-form { align-content: center; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 54px 42px 36px; }
.quote-form label { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.quote-form label > span { color: #d6d6d6; font-size: .76rem; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    outline: none;
    color: #fff;
    background: rgba(255,255,255,.035);
    font: inherit;
    font-size: .86rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.quote-form textarea { min-height: 82px; padding-top: 13px; resize: vertical; }
.quote-form select { color-scheme: dark; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: rgba(235,36,67,.72); background: rgba(255,255,255,.055); box-shadow: 0 0 0 3px rgba(235,36,67,.1); }
.quote-field-wide { grid-column: 1 / -1; }
.quote-submit { width: 100%; gap: 18px; cursor: pointer; }
.quote-privacy { margin: -5px 0 0; text-align: center; color: #6f6f72; font-size: .68rem; }

@media (max-width: 800px) {
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
    .footer-contact strong { width: 100%; }
    .quote-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); border-radius: 20px; }
    .quote-modal { grid-template-columns: 1fr; }
    .quote-intro { padding: 42px 26px 30px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
    .quote-intro > p:not(.eyebrow) { max-width: 560px; }
    .quote-assurance { margin-top: 20px; }
    .quote-form { padding: 28px 26px 30px; }
}

@media (max-width: 560px) {
    .site-footer { padding: 42px 22px 30px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
    .quote-dialog { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; }
    .quote-modal { min-height: 100%; }
    .quote-close { position: fixed; top: 13px; right: 13px; }
    .quote-intro { padding: 68px 22px 26px; }
    .quote-intro h2 { font-size: 2.2rem; }
    .quote-form { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px 34px; }
    .quote-field-wide { grid-column: auto; }
}

/* Phase 1 stats corrections: restored premium line icons and updated local wording. */
.stats-strip article {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}
.stat-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(235,36,67,.35);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(235,36,67,.16), rgba(235,36,67,.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.22);
}
.stat-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.stat-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 700px) {
    .stats-strip article { gap: 11px; padding: 16px 13px; }
    .stat-icon { flex-basis: 39px; width: 39px; height: 39px; border-radius: 11px; }
    .stat-icon svg { width: 21px; height: 21px; }
    .stats-strip article:nth-child(2) strong { font-size: 1.25rem; }
}

/* Mobile-first experience — desktop declarations above remain unchanged. */
img { max-width: 100%; height: auto; }

.mobile-menu-toggle,
.mobile-navigation,
.mobile-nav-backdrop { display: none; }

@media (max-width: 1050px) {
    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
        display: grid;
        place-content: center;
        gap: 6px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 50%;
        color: #fff;
        background: rgba(255,255,255,.045);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-menu-toggle span {
        width: 20px;
        height: 1.5px;
        display: block;
        border-radius: 2px;
        background: currentColor;
        transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
    }
    .mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
    .mobile-nav-backdrop {
        position: fixed;
        z-index: 1001;
        inset: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        background: rgba(0,0,0,.64);
        backdrop-filter: blur(7px);
        transition: opacity .3s ease, visibility .3s ease;
    }
    .mobile-navigation {
        position: fixed;
        z-index: 1002;
        top: 0;
        right: 0;
        width: min(390px, calc(100% - 24px));
        height: 100dvh;
        display: flex;
        flex-direction: column;
        padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
        overflow-y: auto;
        border-left: 1px solid rgba(255,255,255,.12);
        background: radial-gradient(circle at 100% 0, rgba(235,36,67,.13), transparent 34%), rgba(9,9,10,.98);
        box-shadow: -30px 0 90px rgba(0,0,0,.58);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility .38s ease;
    }
    .mobile-navigation.is-open { transform: translateX(0); visibility: visible; }
    body.mobile-menu-open { overflow: hidden; }
    body.mobile-menu-open .mobile-nav-backdrop { opacity: 1; visibility: visible; }
    .mobile-navigation-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,.1);
        color: #8f8f92;
        font: 700 .72rem 'Space Grotesk', sans-serif;
        letter-spacing: .2em;
        text-transform: uppercase;
    }
    .mobile-navigation-header button {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 50%;
        color: #fff;
        background: rgba(255,255,255,.04);
    }
    .mobile-navigation-header svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
    .mobile-navigation-links { display: flex; flex-direction: column; padding: 17px 0; }
    .mobile-navigation-links a {
        min-height: 54px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,.07);
        font: 600 1.12rem 'Space Grotesk', sans-serif;
    }
    .mobile-navigation-links a::after { content: "↗"; margin-left: auto; color: var(--red); font-size: .9rem; }
    .mobile-navigation-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
    .mobile-navigation-actions .button { width: 100%; min-height: 52px; }
    .site-header { grid-template-columns: minmax(0, 1fr) auto; }
    .header-actions { align-items: center; }
    .header-actions .button { min-height: 48px; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 82px; }
    body { font-size: 16px; }
    .site-header {
        top: max(8px, env(safe-area-inset-top));
        width: calc(100% - 16px);
        min-height: 60px;
        padding: 6px 7px 6px 15px;
        border-radius: 16px;
    }
    .header-actions { gap: 7px; }
    .header-actions .button-ghost { display: none; }
    .button-small { min-height: 48px; padding: 0 15px; font-size: .8rem; }
    .hero { min-height: 680px; height: auto; max-height: none; display: block; padding: 0; }
    .hero-photo {
        inset: 0 0 auto;
        height: 42%;
        opacity: .9;
        background-size: contain;
        background-position: center top;
    }
    .hero-shade {
        background: linear-gradient(180deg, rgba(3,3,3,.08) 0, rgba(3,3,3,.24) 25%, #050505 43%, #050505 100%);
    }
    .hero-content { position: relative; z-index: 2; width: 100%; }
    .hero-copy {
        width: 100%;
        margin: 0;
        padding: clamp(285px, 76vw, 360px) 20px 38px;
        text-align: center;
    }
    .hero .eyebrow { margin-bottom: 12px; font-size: .75rem; }
    .hero h1 { font-size: clamp(2.9rem, 13.5vw, 4.65rem); line-height: .94; }
    .hero-summary {
        max-width: 560px;
        margin: 22px auto 0;
        padding: 0;
        border-left: 0;
        color: #c8c8ca;
        font-size: 1rem;
        line-height: 1.55;
    }
    .hero-actions { display: grid; gap: 11px; margin-top: 24px; }
    .hero-actions .button { width: 100%; min-height: 50px; }
    .hero-glass-card {
        width: calc(100% - 28px);
        margin: 0 auto;
        padding: 15px 17px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 17px;
        background: rgba(15,15,16,.8);
        backdrop-filter: blur(16px);
    }
    .hero-glass-card h3 { margin: 0 0 10px; color: var(--red); font: 700 .7rem 'Space Grotesk', sans-serif; letter-spacing: .16em; }
    .hero-glass-card ul { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
    .hero-glass-card li { color: #b7b7ba; font-size: .76rem; }
    .hero-glass-card li::before { content: "•"; margin-right: 6px; color: var(--red); }
    .hero-badges { display: none; }
    .stats-strip {
        width: calc(100% - 28px);
        margin-top: 18px;
        grid-template-columns: 1fr 1fr;
        border-radius: 17px;
    }
    .stats-strip article { min-height: 96px; padding: 14px 12px; }
    .stats-strip strong { font-size: 1.35rem; }
    .stats-strip span { font-size: .75rem; line-height: 1.25; }
    .services-section { width: calc(100% - 28px); padding: 68px 0 72px; }
    .section-heading { margin-bottom: 28px; }
    .section-heading h2 { font-size: clamp(2rem, 10vw, 3.2rem); line-height: 1.02; }
    .section-heading > p:last-child { margin-top: 14px; font-size: 1rem; line-height: 1.55; }
    .featured-services, .supporting-services { grid-template-columns: 1fr; gap: 12px; }
    .supporting-services { margin-top: 12px; }
    .service-card-featured { min-height: 280px; padding: 23px; }
    .service-card-supporting { min-height: 205px; padding: 20px; }
    .service-card p, .service-card-supporting p { font-size: 1rem; }
    .service-link { min-height: 48px; align-items: flex-end; margin-top: 10px; }
    .why-section { width: calc(100% - 28px); margin-bottom: 72px; }
    .why-visual {
        min-height: 245px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #070707;
    }
    .why-content { padding: 34px 20px 30px; }
    .why-heading h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
    .why-heading > p:last-child { font-size: 1rem; line-height: 1.6; }
    .why-benefit { min-height: 64px; }
    .why-benefit-copy strong { font-size: 1rem; }
    .technology-section { width: calc(100% - 28px); margin-bottom: 72px; }
    .technology-heading h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
    .technology-heading > p:last-child { font-size: 1rem; }
    .technology-grid { gap: 12px; }
    .technology-card, .technology-card:last-child { height: 350px; border-radius: 18px; }
    .technology-copy { padding: 17px 20px 19px; }
    .technology-copy > strong { font-size: 1.25rem; }
    .technology-copy > small { font-size: .76rem; }
    .technology-copy > span { min-height: 48px; margin-top: 9px; padding-top: 10px; font-size: .9rem; }
    .quote-form label > span { font-size: .9rem; }
    .quote-form input, .quote-form select, .quote-form textarea { min-height: 50px; font-size: 16px; }
    .quote-submit { min-height: 52px; }
    .site-footer { padding-right: 20px; padding-left: 20px; }
    .footer-links a, .footer-contact a, .footer-contact span { min-height: 32px; display: flex; align-items: center; font-size: .88rem; }
}

@media (max-width: 390px) {
    .brand { font-size: .9rem; letter-spacing: .055em; }
    .button-small { padding: 0 11px; font-size: .74rem; }
    .hero-copy { padding-right: 16px; padding-left: 16px; }
    .hero h1 { font-size: clamp(2.7rem, 13.7vw, 3.35rem); }
    .hero-glass-card li { font-size: .71rem; }
    .stats-strip article { gap: 8px; padding: 12px 9px; }
    .stat-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .stats-strip strong { font-size: 1.18rem; }
    .stats-strip article:nth-child(2) strong { font-size: 1rem; }
    .service-card-featured { min-height: 295px; padding: 21px; }
    .technology-copy > small { white-space: normal; line-height: 1.35; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand, .footer-contact { grid-column: auto; }
}

@media (max-width: 340px) {
    .site-header { padding-left: 11px; }
    .brand { font-size: .78rem; }
    .button-small { min-height: 46px; padding: 0 9px; font-size: .69rem; }
    .mobile-menu-toggle { width: 46px; height: 46px; }
    .hero-copy { padding-top: 275px; }
    .stats-strip { grid-template-columns: 1fr; }
    .stats-strip article { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
    .stats-strip article:last-child { border-bottom: 0; }
}

@media (hover: none), (pointer: coarse) {
    .button:hover, .service-card:hover, .technology-card:hover, .why-benefit:hover { transform: none; }
    .service-card:hover .service-icon,
    .service-card-featured:hover .service-glow,
    .technology-card:hover .technology-image img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mobile-navigation, .mobile-nav-backdrop, .mobile-menu-toggle span { transition: none; }
}

/* Compact mobile refinement */
@media (max-width: 768px) {
    .hero { min-height: 0; }
    .hero-photo { height: 38%; }
    .hero-shade {
        background: linear-gradient(180deg, rgba(3,3,3,.06) 0, rgba(3,3,3,.24) 22%, #050505 38%, #050505 100%);
    }
    .hero-copy { padding: clamp(245px, 65vw, 315px) 18px 22px; }
    .hero h1 { font-size: clamp(2.6rem, 12.2vw, 4.1rem); }
    .hero-summary { margin-top: 16px; font-size: .96rem; line-height: 1.48; }
    .hero-actions {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 9px;
        margin-top: 18px;
    }
    .hero-actions .button {
        width: auto;
        min-width: 0;
        min-height: 48px;
        flex: 1 1 0;
        padding: 0 11px;
        font-size: .78rem;
        white-space: nowrap;
    }
    .hero-glass-card { padding: 12px 14px; }
    .hero-glass-card h3 { margin-bottom: 7px; }
    .hero-glass-card ul { gap: 4px 10px; }
    .stats-strip { margin-top: 12px; }
    .stats-strip article { min-height: 84px; padding: 11px; }
    .stat-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .stat-icon svg { width: 19px; height: 19px; }

    .services-section { padding: 52px 0 58px; }
    .section-heading { margin-bottom: 22px; }
    .section-heading .eyebrow { margin-bottom: 9px; }
    .section-heading h2 { font-size: clamp(1.85rem, 8.8vw, 2.8rem); }
    .section-heading > p:last-child { margin-top: 11px; line-height: 1.45; }
    .service-card-featured { min-height: 0; padding: 19px 20px; }
    .service-card-featured .service-icon { width: 46px; height: 46px; border-radius: 14px; }
    .service-content { margin-top: 22px; }
    .service-card h3 { margin: 7px 0; }
    .service-card-featured h3 { font-size: 1.55rem; }
    .service-card p { line-height: 1.5; }
    .service-link { min-height: 38px; margin-top: 11px; }
    .service-card-supporting {
        min-height: 0;
        padding: 17px 19px;
    }
    .service-card-supporting .service-icon { width: 40px; height: 40px; }
    .service-card-supporting h3 { margin: 14px 0 6px; font-size: 1.16rem; }
    .service-card-supporting p { line-height: 1.45; }
    .service-card-supporting .service-link { min-height: 36px; padding-top: 7px; }

    .why-section { margin-bottom: 58px; }
    .why-visual { min-height: 205px; }
    .why-content { padding: 27px 18px 24px; }
    .why-heading h2 { font-size: clamp(2rem, 9.5vw, 2.8rem); }
    .why-heading > p:last-child { margin-top: 12px; line-height: 1.48; }
    .why-benefits { gap: 8px; margin-top: 17px; }
    .why-benefit { min-height: 56px; }
    .why-icon { width: 36px; height: 36px; }
    .why-cta { min-height: 48px; margin-top: 15px; }

    .technology-section { margin-bottom: 58px; }
    .technology-heading { margin-bottom: 22px; }
    .technology-heading h2 { font-size: clamp(1.85rem, 8.8vw, 2.8rem); }
    .technology-heading > p:last-child { margin-top: 10px; line-height: 1.45; }
    .technology-card, .technology-card:last-child { height: 300px; }
    .technology-copy { padding: 13px 18px 14px; }
    .technology-copy > span { min-height: 40px; }
    .technology-trust { margin-top: 17px; }

    .site-footer { padding-top: 34px; padding-bottom: 24px; }
    .footer-main { gap: 25px 20px; }
    .footer-brand p { margin-top: 9px; }
    .footer-links, .footer-contact { gap: 5px; }
    .footer-links a, .footer-contact a, .footer-contact span { min-height: 27px; }
    .footer-bottom { margin-top: 24px; padding-top: 17px; }
}

@media (max-width: 390px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 340px) {
    .hero-actions { flex-wrap: wrap; }
    .hero-actions .button { flex-basis: 100%; }
}
