@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
    color-scheme: light;
    --red: #d71920;
    --ink: #111;
    --paper: #f5f5f3;
    --muted: #777;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    height: 86px;
    align-items: center;
    justify-content: space-between;
    padding: 0 6.2%;
    border-bottom: 1px solid #292929;
    background: #080808;
    color: #fff;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    color: #fff;
    font: 900 15px Montserrat, sans-serif;
}
.brand-mark-letters { white-space: nowrap; }
.brand-mark-letters > span, .brand-copy i { color: var(--red); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; letter-spacing: 1.4px; }
.brand-copy strong { font: 800 13px Montserrat, sans-serif; }
.brand-copy i { font-style: normal; }
.brand-copy small { color: #aaa; font-size: 9px; letter-spacing: 3.5px; }

.main-nav { display: flex; gap: 34px; color: #c9c9c9; font-size: 13px; }
.main-nav a, .text-link, .footer-bottom a { transition: color .2s ease; }
.main-nav a:hover, .text-link:hover, .footer-bottom a:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { transform: translateY(-1px); background: #f02a31; }
.btn-ghost { border-color: #555; background: transparent; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-large { padding: 17px 23px; font-size: 13px; }
.btn b { margin-left: 17px; font-size: 17px; }
.menu-toggle { display: none; border: 0; background: none; color: #fff; font-size: 25px; }

.hero {
    position: relative;
    display: flex;
    min-height: 660px;
    align-items: center;
    overflow: hidden;
    background: #050505 url("../assets/shimmer-shield-design.png") center / cover no-repeat;
    color: #fff;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 44%, rgba(0,0,0,.25) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; padding: 90px 9%; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: #ddd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}
.eyebrow > span { width: 24px; height: 2px; background: var(--red); }
.hero h1, .section-heading h2, .intro h2, .process h2, .cta h2 {
    margin: 0;
    font: 900 clamp(42px, 5.2vw, 70px)/1.05 Montserrat, sans-serif;
    letter-spacing: -2.8px;
}
.hero h1 em, .intro h2 em, .section-heading h2 em, .process h2 em, .cta h2 em {
    color: var(--red);
    font-style: normal;
}
.hero-lead { max-width: 460px; margin: 25px 0 30px; color: #c7c7c7; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.text-link { color: #ddd; font-size: 12px; font-weight: 700; }
.text-link span, .service-card a span { margin-left: 8px; color: var(--red); }
.hero-note { margin-top: 70px; color: #aaa; font-size: 9px; letter-spacing: 2px; }
.hero-note i { padding: 0 7px; color: var(--red); }
.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px #d7192028;
}
.hero-side-label {
    position: absolute;
    right: 3%;
    bottom: 36px;
    color: #aaa;
    font-size: 9px;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
}
.hero-side-label span { padding: 8px 0; color: var(--red); }

.section-wrap { padding-right: 9%; padding-left: 9%; }
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 10%;
    padding-top: 110px;
    padding-bottom: 110px;
}
.eyebrow.dark { color: #777; }
.intro h2, .section-heading h2, .cta h2 {
    font-size: clamp(34px, 4vw, 51px);
    letter-spacing: -2px;
}
.intro-copy { max-width: 490px; margin: 0 0 5px; color: #666; font-size: 15px; line-height: 1.9; }

.services { padding-top: 85px; padding-bottom: 110px; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.section-heading > p { max-width: 330px; margin: 0 0 5px; color: #777; font-size: 13px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
    position: relative;
    min-height: 270px;
    padding: 30px 28px 27px;
    border: 1px solid #e7e7e7;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px #0000000d; }
.service-card.featured { border-color: #111; background: #111; color: #fff; }
.service-number { color: #aaa; font: 700 11px Montserrat, sans-serif; }
.service-icon { margin: 28px 0 16px; color: var(--red); font-size: 26px; }
.service-card h3 { margin: 0 0 12px; font: 800 17px Montserrat, sans-serif; }
.service-card p { max-width: 240px; min-height: 43px; color: #888; font-size: 12px; line-height: 1.8; }
.service-card a { display: inline-block; margin-top: 20px; font-size: 11px; font-weight: 700; }

.process { padding: 100px 0; background: #101010; color: #fff; }
.process-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10%; }
.process h2 { font-size: clamp(34px, 4vw, 50px); letter-spacing: -2px; }
.steps { border-top: 1px solid #333; }
.step { display: flex; gap: 25px; padding: 24px 0; border-bottom: 1px solid #333; }
.step > span { padding-top: 3px; color: var(--red); font: 800 12px Montserrat, sans-serif; }
.step h3 { margin: 0 0 8px; font: 700 14px Montserrat, sans-serif; }
.step p { margin: 0; color: #999; font-size: 12px; line-height: 1.7; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 95px; padding-bottom: 95px; }
.cta .btn { flex-shrink: 0; }

footer { padding: 36px 9% 20px; background: #080808; color: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 35px; }
.footer-top > p { color: #aaa; font: 700 11px Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #292929;
    padding-top: 19px;
    color: #777;
    font-size: 10px;
}
.footer-bottom a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.auth-modal {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal.open { display: flex; }
.auth-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(5px);
}
.auth-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 500px);
    max-height: min(760px, calc(100dvh - 40px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dedbd6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}
.auth-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #e8e6e2;
}
.auth-panel-header h2 {
    margin: 0;
    font: 700 13px Montserrat, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.auth-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}
.auth-panel iframe {
    display: block;
    width: 100%;
    height: 0;
    min-height: 0;
    flex: 0 1 auto;
    border: 0;
    background: #fff;
}
body.auth-open { overflow: hidden; }

@media (max-width: 900px) {
    .site-header { height: 75px; padding: 0 5%; }
    .main-nav { gap: 17px; }
    .header-actions .btn { padding: 10px 12px; }
    .section-wrap { padding-right: 6%; padding-left: 6%; }
    .hero-content { padding-left: 7%; }
    .intro, .process-inner { gap: 6%; }
}

@media (max-width: 700px) {
    .site-header { height: 70px; }
    .menu-toggle { display: block; order: 3; }
    .main-nav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 20px;
        border-top: 1px solid #333;
        padding: 22px 6%;
        background: #0b0b0b;
    }
    .main-nav.open { display: flex; }
    .header-actions { margin-right: 14px; margin-left: auto; }
    .header-actions .btn { padding: 9px; font-size: 10px; }
    .brand-mark { width: 36px; height: 36px; font-size: 12px; }
    .brand-copy strong { font-size: 10px; }
    .brand-copy small { font-size: 7px; }
    .hero { min-height: 610px; background-position: center; }
    .hero-content { padding: 75px 7%; }
    .hero h1 { font-size: 48px; }
    .hero-lead { font-size: 13px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .hero-note { margin-top: 48px; font-size: 8px; }
    .hero-side-label { display: none; }
    .intro, .process-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 75px; padding-bottom: 75px; }
    .intro-copy { font-size: 13px; }
    .services { padding-top: 70px; padding-bottom: 75px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 20px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 230px; }
    .process { padding: 70px 0; }
    .cta { align-items: flex-start; flex-direction: column; padding-top: 70px; padding-bottom: 70px; }
    .footer-top { align-items: flex-start; flex-direction: column; gap: 25px; }
    .footer-bottom { flex-wrap: wrap; }
    .auth-modal { padding: 10px; }
    .auth-panel { max-height: calc(100dvh - 20px); }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f0efed;
    --paper: #151515;
    --muted: #aaa7a2;
}

html[data-theme="dark"] .intro-copy,
html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .eyebrow.dark {
    color: #b6b2ac;
}

html[data-theme="dark"] .services {
    background: #1c1c1c;
}

html[data-theme="dark"] .service-card {
    border-color: #3b3a37;
    background: #242424;
    color: #f0efed;
}

html[data-theme="dark"] .service-card.featured {
    border-color: #4a4844;
    background: #30302e;
}

html[data-theme="dark"] .service-card p {
    color: #aaa7a2;
}

html[data-theme="dark"] .cta {
    background: #151515;
}

html[data-theme="dark"] .auth-panel {
    border-color: #45433f;
    background: #1d1d1d;
    color: #f0efed;
}

html[data-theme="dark"] .auth-panel-header {
    border-color: #383633;
}

html[data-theme="dark"] .auth-close {
    color: #d3d0cb;
}

.color-mode-toggle {
    position: fixed;
    z-index: 20;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #d0cdc7;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.color-mode-toggle:hover {
    transform: translateY(-2px);
}

html[data-theme="dark"] .color-mode-toggle {
    border-color: #55524d;
    background: #242424;
    color: #f2cf66;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

body {
    position: relative;
    isolation: isolate;
}

.ambient-effects {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

main,
footer {
    position: relative;
    z-index: 1;
}

.ambient-glow {
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(255, 24, 53, .14), transparent 31%),
        radial-gradient(ellipse at 87% 62%, rgba(136, 35, 255, .09), transparent 32%),
        radial-gradient(ellipse at 55% 100%, rgba(255, 100, 45, .08), transparent 34%);
    animation: fx-ambient-drift 17s ease-in-out infinite alternate;
}

.running-line {
    position: absolute;
    width: 38vw;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 61, 82, .72), transparent);
    box-shadow: 0 0 14px rgba(255, 38, 61, .55);
    transform: rotate(-28deg);
    animation: fx-line-run 10s linear infinite;
}

.line-one { top: 26%; left: -42%; }
.line-two { top: 58%; left: -42%; animation-delay: 3.4s; }
.line-three { top: 82%; left: -42%; animation-delay: 6.8s; }

.ambient-particles,
.galaxy-particles {
    position: absolute;
    inset: 0;
}

.ambient-particles i,
.galaxy-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: #ff596b;
    box-shadow: 0 0 12px 2px rgba(255, 38, 61, .45);
    animation: fx-particle-rise 13s linear infinite;
}

.ambient-particles i:nth-child(1) { left: 8%; top: 88%; width: 3px; height: 3px; }
.ambient-particles i:nth-child(2) { left: 24%; top: 96%; width: 2px; height: 2px; animation-delay: 2s; }
.ambient-particles i:nth-child(3) { left: 43%; top: 92%; width: 4px; height: 4px; animation-delay: 5s; }
.ambient-particles i:nth-child(4) { left: 62%; top: 99%; width: 2px; height: 2px; animation-delay: 7s; }
.ambient-particles i:nth-child(5) { left: 79%; top: 90%; width: 3px; height: 3px; animation-delay: 3s; }
.ambient-particles i:nth-child(6) { left: 94%; top: 97%; width: 2px; height: 2px; animation-delay: 9s; }

.galaxy-particles span {
    animation-name: fx-particle-twinkle;
    animation-duration: 4s;
    animation-direction: alternate;
}

.galaxy-particles span:nth-child(1) { left: 12%; top: 22%; width: 2px; height: 2px; }
.galaxy-particles span:nth-child(2) { left: 35%; top: 68%; width: 3px; height: 3px; animation-delay: 1.2s; }
.galaxy-particles span:nth-child(3) { left: 57%; top: 18%; width: 2px; height: 2px; animation-delay: 2s; }
.galaxy-particles span:nth-child(4) { left: 72%; top: 42%; width: 3px; height: 3px; animation-delay: .6s; }
.galaxy-particles span:nth-child(5) { left: 88%; top: 76%; width: 2px; height: 2px; animation-delay: 1.8s; }
.galaxy-particles span:nth-child(6) { left: 4%; top: 57%; width: 2px; height: 2px; animation-delay: 2.5s; }

.hero h1,
.intro h2,
.section-heading h2,
.process h2,
.cta h2,
.service-card h3,
.step h3 {
    text-shadow: 0 0 12px rgba(255, 255, 255, .28), 0 0 24px rgba(255, 38, 61, .34);
}

.hero-content h1 {
    animation: fx-fade-in 1.2s ease-out both;
}

.hero-content .eyebrow,
.hero-content .hero-lead,
.hero-content .hero-note {
    animation: fx-slide-in 1.4s ease-out .15s both;
}

.hero-actions {
    animation: fx-bounce-in 1.6s ease-out .25s both;
}

.hero-actions .btn-red {
    animation: fx-cta-pulse 2.4s ease-in-out 1.8s infinite;
}

.btn {
    transition: background-color .2s ease, border-color .2s ease, transform .3s ease, box-shadow .3s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.025);
}

.btn-red:hover {
    box-shadow: 0 0 18px rgba(255, 38, 61, .55);
}

.service-card {
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card::after {
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    transform: rotate(22deg);
    transition: left .65s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(255, 38, 61, .14);
}

.service-card:hover::after { left: 140%; }

.auth-panel {
    animation: fx-modal-glow 3s ease-in-out infinite alternate;
}

@keyframes fx-ambient-drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 1%, 0) scale(1.05); }
}

@keyframes fx-line-run {
    0% { opacity: 0; transform: translateX(0) rotate(-28deg); }
    12%, 78% { opacity: .7; }
    100% { opacity: 0; transform: translateX(170vw) rotate(-28deg); }
}

@keyframes fx-particle-rise {
    from { opacity: 0; transform: translateY(0) scale(.7); }
    15%, 80% { opacity: .65; }
    to { opacity: 0; transform: translateY(-105vh) scale(1.2); }
}

@keyframes fx-particle-twinkle {
    from { opacity: .18; transform: scale(.7); }
    to { opacity: .8; transform: scale(1.25); }
}

@keyframes fx-fade-in {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fx-slide-in {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fx-bounce-in {
    0% { opacity: 0; transform: scale(.94); }
    65% { opacity: 1; transform: scale(1.035); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fx-cta-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 38, 61, .28); }
    50% { box-shadow: 0 0 20px rgba(255, 38, 61, .65); }
}

@keyframes fx-modal-glow {
    from { box-shadow: 0 0 22px rgba(255, 38, 61, .12); }
    to { box-shadow: 0 0 28px rgba(255, 38, 61, .34); }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-glow,
    .running-line,
    .ambient-particles i,
    .galaxy-particles span,
    .hero-content h1,
    .hero-content .eyebrow,
    .hero-content .hero-lead,
    .hero-content .hero-note,
    .hero-actions,
    .hero-actions .btn-red,
    .auth-panel {
        animation: none !important;
    }

    .hero-content h1,
    .hero-content .eyebrow,
    .hero-content .hero-lead,
    .hero-content .hero-note,
    .hero-actions {
        opacity: 1;
        transform: none;
    }

    .service-card::after { display: none; }
}
