:root {
    color-scheme: dark;
    --bg: #050608;
    --bg-soft: #0d1115;
    --surface: rgba(255, 255, 255, 0.052);
    --surface-strong: rgba(255, 255, 255, 0.085);
    --line: rgba(232, 239, 244, 0.12);
    --line-strong: rgba(232, 239, 244, 0.2);
    --text: #f7f8f8;
    --muted: #a5adb4;
    --muted-strong: #d0d5da;
    --cyan: #3ad6d4;
    --blue: #4f8cff;
    --violet: #9b6cff;
    --magenta: #ec5db8;
    --green: #4cda8b;
    --amber: #f0ba58;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
    --radius: 24px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(58, 214, 212, 0.14), transparent 20rem),
        radial-gradient(circle at 78% 4%, rgba(236, 93, 184, 0.12), transparent 19rem),
        radial-gradient(circle at 50% 55%, rgba(76, 218, 139, 0.08), transparent 26rem),
        linear-gradient(180deg, #050608 0%, #0a0d11 48%, #050608 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 16px 22px, rgba(58, 214, 212, 0.18) 0 1px, transparent 1.7px),
        radial-gradient(circle at 78px 54px, rgba(236, 93, 184, 0.14) 0 1px, transparent 1.8px),
        radial-gradient(circle at 132px 28px, rgba(240, 186, 88, 0.12) 0 1px, transparent 1.8px),
        radial-gradient(circle at 44px 94px, rgba(79, 140, 255, 0.13) 0 1px, transparent 1.8px);
    background-size: 180px 140px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
    content: "";
    position: fixed;
    inset: 12% 5% auto auto;
    width: min(42vw, 540px);
    height: min(42vw, 540px);
    z-index: -2;
    border-radius: 48% 52% 55% 45% / 44% 58% 42% 56%;
    background:
        radial-gradient(circle at 32% 34%, rgba(58, 214, 212, 0.22), transparent 18%),
        radial-gradient(circle at 66% 42%, rgba(236, 93, 184, 0.16), transparent 17%),
        radial-gradient(circle at 45% 72%, rgba(76, 218, 139, 0.14), transparent 17%);
    filter: blur(50px);
    opacity: 0.42;
    pointer-events: none;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(var(--max), calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand span span,
.gradient-text {
    background: linear-gradient(100deg, var(--cyan), #82a7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 9px 14px;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.075);
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 78px 0;
}

.section-tight {
    padding: 56px 0;
}

.hero {
    position: relative;
    min-height: min(760px, calc(100vh - 76px));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: saturate(0.95) contrast(1.12);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 42%, rgba(5, 6, 8, 0.54), transparent 26rem),
        linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.8) 54%, rgba(5, 6, 8, 0.94) 100%),
        linear-gradient(180deg, rgba(5, 6, 8, 0.2) 0%, #050608 100%);
}

.hero-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: flex-start;
    justify-self: start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.45;
    max-width: 560px;
    padding: 8px 12px;
    text-transform: uppercase;
    width: fit-content;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 0.55em;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(67, 199, 199, 0.45);
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin: 0;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 4.7rem);
    max-width: 760px;
}

.page-hero h1 {
    font-size: clamp(2.55rem, 4.5vw, 4.15rem);
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.35rem);
}

h3 {
    font-size: 1.35rem;
}

.lead {
    color: var(--muted-strong);
    font-size: clamp(1.03rem, 1.35vw, 1.18rem);
    max-width: 680px;
}

.copy {
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 24px;
}

.stack-lg {
    display: grid;
    gap: 26px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font: 800 0.92rem/1 Inter, sans-serif;
    gap: 10px;
    overflow: hidden;
    padding: 0 22px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn:hover {
    border-color: var(--line-strong);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.btn-primary {
    border-color: rgba(255, 255, 255, 0.24);
    color: white;
}

.btn-primary::before {
    background:
        radial-gradient(circle at 15% 50%, rgba(76, 218, 139, 0.7), transparent 28%),
        linear-gradient(100deg, rgba(58, 214, 212, 0.86), rgba(79, 140, 255, 0.82), rgba(236, 93, 184, 0.78));
}

.btn-secondary {
    color: var(--text);
}

.btn-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.84rem;
}

.menu-toggle.btn {
    display: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.glass-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 16% 12%, rgba(58, 214, 212, 0.08), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(236, 93, 184, 0.07), transparent 22%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.032));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.trust-panel {
    padding: 26px;
}

.trust-panel dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
}

.trust-panel div {
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

.trust-panel div:first-child {
    border-left: 0;
    padding-left: 0;
}

.trust-panel dt {
    color: var(--text);
    font: 800 1.45rem/1 "Space Grotesk", sans-serif;
}

.trust-panel dd {
    color: var(--muted);
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.opal-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: grid;
    gap: 18px;
    justify-items: center;
    overflow: hidden;
    padding: 34px;
    text-align: center;
}

.opal-panel:focus {
    outline: none;
}

.opal-stage {
    min-height: 390px;
    position: relative;
    width: min(100%, 520px);
    display: grid;
    place-items: center;
}

.opal-stone {
    isolation: isolate;
    position: relative;
    width: min(80vw, 440px);
    aspect-ratio: 1.5;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: rotate(-1deg);
    transition: filter 240ms ease, transform 240ms ease;
}

.opal-stone::before {
    content: "";
    position: absolute;
    inset: 16% 11% 15% 12%;
    z-index: -1;
    border-radius: 48% 52% 55% 45% / 50% 48% 52% 50%;
    background:
        radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.1), transparent 18%),
        radial-gradient(circle at 43% 52%, rgba(23, 37, 48, 0.9), transparent 42%),
        linear-gradient(140deg, #020304, #081017 42%, #010203);
    box-shadow:
        inset 18px 18px 44px rgba(255, 255, 255, 0.045),
        inset -34px -28px 56px rgba(0, 0, 0, 0.75),
        0 38px 105px rgba(0, 0, 0, 0.72),
        0 0 88px rgba(58, 214, 212, 0.12),
        0 0 110px rgba(236, 93, 184, 0.1);
    transform: rotate(-3deg);
}

.opal-stone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.32) contrast(1.13) brightness(1.04) drop-shadow(0 18px 58px rgba(0, 0, 0, 0.64));
    -webkit-mask-image: radial-gradient(ellipse at 61% 51%, black 0 42%, rgba(0, 0, 0, 0.84) 50%, transparent 69%);
    mask-image: radial-gradient(ellipse at 61% 51%, black 0 42%, rgba(0, 0, 0, 0.84) 50%, transparent 69%);
    mix-blend-mode: screen;
    opacity: 0.96;
}

.opal-shine {
    position: absolute;
    inset: 15% 11% 15% 12%;
    border-radius: 48% 52% 55% 45% / 50% 48% 52% 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 28% 72%, rgba(255, 255, 255, 0.035)),
        radial-gradient(ellipse at 66% 25%, rgba(255, 255, 255, 0.1), transparent 18%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.opal-stone:hover,
.opal-panel:hover .opal-stone,
.opal-panel:focus .opal-stone,
.opal-panel:focus-within .opal-stone {
    filter: saturate(1.22) brightness(1.06);
    transform: rotate(-1deg) translateY(-4px) scale(1.02);
}

.panel-kicker {
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opal-copy {
    color: var(--muted-strong);
    max-width: 420px;
}

.opal-services {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.service-chip {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 6, 8, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
    padding: 8px 11px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.service-chip-a {
    left: 18%;
    top: 23%;
}

.service-chip-b {
    left: 82%;
    top: 30%;
}

.service-chip-c {
    left: 20%;
    top: 72%;
}

.service-chip-d {
    left: 82%;
    top: 74%;
}

.opal-stone:hover + .opal-services .service-chip,
.opal-panel:hover .service-chip,
.opal-panel:focus .service-chip,
.opal-panel:focus-within .service-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(255, 255, 255, 0.22);
}

.opal-stone:hover + .opal-services .service-chip-a,
.opal-panel:hover .service-chip-a,
.opal-panel:focus .service-chip-a,
.opal-panel:focus-within .service-chip-a {
    transition-delay: 40ms;
}

.opal-stone:hover + .opal-services .service-chip-b,
.opal-panel:hover .service-chip-b,
.opal-panel:focus .service-chip-b,
.opal-panel:focus-within .service-chip-b {
    transition-delay: 90ms;
}

.opal-stone:hover + .opal-services .service-chip-c,
.opal-panel:hover .service-chip-c,
.opal-panel:focus .service-chip-c,
.opal-panel:focus-within .service-chip-c {
    transition-delay: 140ms;
}

.opal-stone:hover + .opal-services .service-chip-d,
.opal-panel:hover .service-chip-d,
.opal-panel:focus .service-chip-d,
.opal-panel:focus-within .service-chip-d {
    transition-delay: 190ms;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading p {
    max-width: 480px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

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

.service-card,
.info-card {
    position: relative;
    min-height: 100%;
    padding: 26px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.info-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.service-card::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 24px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(58, 214, 212, 0.78), rgba(236, 93, 184, 0.52), rgba(240, 186, 88, 0.5));
}

.service-card h3 {
    max-width: calc(100% - 44px);
    margin-bottom: 14px;
}

.service-card ul,
.check-list {
    color: var(--muted);
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.service-card li,
.check-list li {
    display: flex;
    gap: 10px;
}

.service-card li::before,
.check-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 0.62em;
    border-radius: 999px;
    background: var(--cyan);
}

.page-hero {
    padding: 92px 0 58px;
}

.page-hero .lead {
    max-width: 760px;
}

.band {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
    gap: 26px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 14px;
}

.contact-item {
    display: block;
    padding: 20px;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-item span {
    color: var(--muted);
    font-size: 0.94rem;
}

.form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

label {
    color: var(--muted-strong);
    display: grid;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 8px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text);
    font: 500 1rem/1.3 Inter, sans-serif;
    outline: none;
    padding: 14px 15px;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

textarea {
    min-height: 136px;
    resize: vertical;
}

select option {
    background: #0d1822;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(24, 213, 223, 0.72);
    background: rgba(255, 255, 255, 0.105);
    box-shadow: 0 0 0 4px rgba(24, 213, 223, 0.12);
}

.checkbox {
    align-items: start;
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cyan);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 9, 14, 0.72);
    padding: 34px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms ease, transform 650ms ease;
}

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

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

@media (max-width: 920px) {
    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .menu-toggle.btn {
        display: inline-flex;
        background: transparent;
        color: var(--text);
    }

    .nav-links.open {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 84px;
        display: grid;
        gap: 8px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(7, 16, 23, 0.94);
        padding: 14px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .hero-grid,
    .split-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .opal-stage {
        min-height: 360px;
    }

    .card-grid,
    .service-grid,
    .home-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .container {
        width: min(100% - 28px, var(--max));
    }

    .hero {
        min-height: auto;
        padding: 74px 0 54px;
    }

    .section,
    .page-hero {
        padding: 64px 0;
    }

    h1 {
        font-size: clamp(2.45rem, 11.5vw, 3.45rem);
        line-height: 1.02;
    }

    .hero .stack-lg {
        gap: 20px;
    }

    .hero .eyebrow {
        border-radius: 22px;
        font-size: 0.64rem;
        letter-spacing: 0.055em;
        line-height: 1.45;
        max-width: 100%;
        padding: 10px 12px;
        width: auto;
    }

    .hero .lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .opal-panel {
        padding-inline: 0;
    }

    .opal-stage {
        min-height: auto;
        gap: 18px;
        padding-block: 12px;
    }

    .opal-stone {
        width: min(62vw, 210px);
    }

    .opal-services {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        pointer-events: auto;
    }

    .service-chip {
        position: static;
        opacity: 1;
        transform: none;
    }

    .opal-stone:hover + .opal-services .service-chip,
    .opal-panel:hover .service-chip,
    .opal-panel:focus .service-chip,
    .opal-panel:focus-within .service-chip {
        transform: none;
    }

    .button-row,
    .btn {
        width: 100%;
    }

    .trust-panel dl,
    .card-grid,
    .service-grid,
    .home-services,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .trust-panel div,
    .trust-panel div:first-child {
        border-left: 1px solid var(--line);
        padding-left: 16px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}
