:root {
    --bg-dark: #050816;
    --bg-darker: #02040b;
    --bg-light: #f5f7fb;
    --accent: #00a3ff;
    --accent-soft: rgba(0,163,255,0.18);
    --primary-blue: #007bff;
    --text-main: #0b1020;
    --text-dark: #0b1020;
    --text-muted: #748096;
    --card-bg: #ffffff;
    --card-white: #ffffff;
    --border-subtle: #e1e5f0;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --header-height: 76px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.35s ease-out;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    scroll-snap-type: y proximity;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #111827 0, #020617 42%, #02040b 100%);
    color: #f9fbff;
    -webkit-font-smoothing: antialiased;
}

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

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

main {
    margin-top: 0;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.site-header.scrolled {
    background: rgba(15,23,42,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 18px 50px rgba(15,23,42,0.9);
}

.nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5ecff;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.logo-mark {
    border: none;
    background: transparent;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    font-weight: 300;
    font-size: 2.2rem;
    color: #ffffff;
    display: inline-block;
    line-height: 0.9;
}

.logo-text {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #e5ecff;
    letter-spacing: 0.28em;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.9rem;
    padding: 9px 30px;
    border-radius: 999px;
    background: rgba(15,23,42,0.42);
    border: 1px solid rgba(148,163,184,0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.6);
}

.nav-link {
    position: relative;
    padding: 6px 0;
    color: #e5ecff;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.78rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #0ea5e9, #6366f1);
    transition: width var(--transition-med);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #f9fbff;
}

.nav-link.active::after {
    width: 100%;
}

.nav-center .nav-links .nav-link.active {
    font-weight: 600;
}

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

.nav-contact {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(148,163,184,0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.8);
    font-size: 0.82rem;
    color: #e5ecff;
    overflow: hidden;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.15s ease-out;
}

.nav-contact-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.nav-contact-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
    transition: max-width 0.24s ease-out, opacity 0.24s ease-out, margin-left 0.24s ease-out;
}

.nav-contact:hover {
    background: rgba(37,99,235,0.9);
    border-color: rgba(248,250,252,0.9);
    box-shadow: 0 20px 55px rgba(15,23,42,1);
    transform: translateY(-1px);
}

.nav-contact:hover .nav-contact-label {
    max-width: 220px;
    opacity: 1;
    margin-left: 8px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(15,23,42,0.38);
    border: 1px solid rgba(148,163,184,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f9fafb;
    box-shadow: 0 14px 40px rgba(15,23,42,0.55);
}

.header-cta:hover {
    background: rgba(15,23,42,0.6);
    border-color: rgba(248,250,252,0.8);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    margin-left: 8px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #e5ecff;
    margin: 4px 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast), translate var(--transition-fast);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b1220;
    background-image: url("../img/landing.avif");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: var(--header-height);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.64) 25%, rgba(15,23,42,0.35) 50%, rgba(15,23,42,0.05) 85%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: #a5b4fc;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(6.2rem, 9vw, 7.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 12px 0 6px;
    color: rgba(255,255,255,0.7);
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 1rem;
    color: #f9fafb;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-lead {
    max-width: 32rem;
    color: #e5e7f5;
    font-size: 0.95rem;
    font-weight: 500;
    margin-inline: auto;
    min-height: 8em;
}

@media (min-width: 1024px) {
    .hero-lead {
        height: 4.8em;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    padding: 11px 24px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(148,163,184,0.6);
    cursor: pointer;
    color: #f9fafb;
    background: rgba(15,23,42,0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.6);
    transition: background var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), transform 0.14s ease-out;
}

.btn.primary {
    border-color: rgba(56,189,248,0.7);
}

.btn.ghost {
    border-color: rgba(148,163,184,0.6);
}

.btn:hover {
    background: rgba(15,23,42,0.6);
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(15,23,42,0.85);
}

.btn.primary:hover {
    border-color: rgba(56,189,248,0.95);
}

.hero-cta-floating {
    position: absolute;
    left: 130px;
    bottom: 80px;
    z-index: 1;
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 24px 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    box-shadow: 0 22px 55px rgba(15,23,42,0.9);
    color: #f9fafb;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.cta-pill-label {
    line-height: 1;
}

.cta-pill-circle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(248,250,252,0.12);
    border: 1px solid rgba(248,250,252,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.cta-pill:hover {
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 26px 70px rgba(15,23,42,1);
}

.hero-cta-inline {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.scroll-indicator:focus {
    outline: none;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(248,250,252,0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 10px 25px rgba(15,23,42,0.7);
    background: rgba(15,23,42,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(248,250,252,0.9);
    animation: scroll-wheel 1.4s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.section {
    position: relative;
    padding-block: 96px;
    background: radial-gradient(circle at top left, #020617, #020617 40%, #02040b 100%);
    min-height: calc(100vh - var(--header-height));
}

.section:nth-of-type(even) {
    background: radial-gradient(circle at top, #020617, #030712 50%, #020617 100%);
}

.section .container {
    position: relative;
    z-index: 1;
}

.section.contact {
    min-height: auto;
    padding-bottom: 48px;
}

.section.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/mario.png");
    background-repeat: no-repeat;
    background-position: 42% 52%;
    background-size: clamp(340px, 40vw, 520px) auto;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 18px 45px rgba(2,6,23,0.65));
}

.section.section-light {
    background: var(--bg-light);
    color: var(--text-main);
}

.section.section-light:nth-of-type(even) {
    background: var(--bg-light);
}

.section.section-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(148,163,184,0.3) 0, rgba(148,163,184,0.3) 1px, transparent 0);
    background-size: 26px 26px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.section.section-light.services::before {
    display: none;
}

.section-header {
    max-width: 640px;
    margin: 0 auto 42px;
    text-align: left;
}

.section-header h2 {
    font-size: clamp(1.9rem, 2.6vw, 2.3rem);
    margin-bottom: 10px;
}

.section-header p {
    color: #cbd5f5;
    font-size: 0.98rem;
}

.section.section-light .section-header {
    text-align: center;
    max-width: 760px;
}

.section.section-light .section-header h2 {
    color: var(--text-main);
    font-size: clamp(2.1rem, 2.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section.section-light .section-header h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.section.section-light .section-header p {
    color: var(--text-muted);
    max-width: 44rem;
    margin: 12px auto 0;
}

.section.section-light.services::before {
    display: none;
}

.section.services,
.section.process-section,
.section.contact {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.services {
    overflow: hidden;
}

.services-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.services-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(245,247,251,0.7);
}

.services .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px 22px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 55px rgba(15,23,42,0.08);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.card-meta {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.card:not(.service-card):hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15,23,42,0.12);
    border-color: rgba(56,189,248,0.6);
}

.card:not(.service-card):hover::before {
    opacity: 1;
}

.services-carousel {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.services-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(360px, 80vw);
    max-width: 360px;
    min-height: 380px;
    padding: 0;
    text-align: left;
    transform-origin: center center;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.45s ease-out, opacity 0.45s ease-out, box-shadow 0.45s ease-out, border-color 0.45s ease-out;
    background: #ffffff;
    border-color: rgba(226,232,240,1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-body {
    padding: 18px 18px 20px;
    display: grid;
    gap: 10px;
}

.service-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.service-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-step {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(56,189,248,0.16);
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.service-icon {
    font-size: 2.1rem;
    margin-bottom: 14px;
    text-align: center;
}

.service-card:hover {
    border-color: rgba(56,189,248,0.7);
    box-shadow: 0 26px 70px rgba(15,23,42,0.14);
}

.service-card.is-center {
    transform: translate(-50%, -52%) scale(1);
    opacity: 1;
    z-index: 5;
}

.service-card.is-left {
    transform: translate(calc(-50% - 260px), -50%) scale(0.92) rotateY(18deg);
    opacity: 0.7;
    z-index: 4;
}

.service-card.is-right {
    transform: translate(calc(-50% + 260px), -50%) scale(0.92) rotateY(-18deg);
    opacity: 0.7;
    z-index: 4;
}

.service-card.is-far-left {
    transform: translate(calc(-50% - 480px), -50%) scale(0.86) rotateY(26deg);
    opacity: 0.3;
    z-index: 3;
}

.service-card.is-far-right {
    transform: translate(calc(-50% + 480px), -50%) scale(0.86) rotateY(-26deg);
    opacity: 0.3;
    z-index: 3;
}

.service-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.service-card.is-active {
    border-color: rgba(56,189,248,0.95);
    box-shadow: 0 32px 90px rgba(15,23,42,0.18);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(15,23,42,0.25);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 30;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-arrow:hover {
    background: #f1f5f9;
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.35);
}

.process-section {
    position: relative;
    text-align: center;
    background: transparent;
    overflow: hidden;
}

.process-section::before {
    display: none;
}

.process-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.process-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(249,249,249,0.75));
}

.process-section .container {
    position: relative;
    z-index: 1;
}

.process-section .section-header {
    margin-bottom: 60px;
}

.process-section .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.95rem;
    color: #0ea5e9;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.process-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.process-section .section-header p {
    color: var(--text-muted);
}

.process-section .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-inline: 10px;
}

.process-card {
    background: rgba(255,255,255,0.54);
    padding: 26px 26px 26px;
    border-radius: 24px;
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 22px 60px rgba(15,23,42,0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: left;
    min-height: 210px;
}

.process-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    opacity: 0.3;
}

.process-step {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.process-step-number {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0ea5e9;
}

.process-step-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.process-card h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.process-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 35ch;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 70px rgba(15,23,42,0.45);
    border-color: rgba(0,123,255,0.8);
    background: rgba(255,255,255,0.76);
}

.contact .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: flex-start;
}

.contact-text p {
    color: #cbd5f5;
    font-size: 0.96rem;
    max-width: 420px;
}

.contact-list {
    margin-top: 22px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: #e5ecff;
}

.contact-list strong {
    color: #9ca3af;
    font-weight: 600;
}

.contact-list a {
    color: #60a5fa;
    border-bottom: 1px solid transparent;
}

.contact-list a:hover {
    border-bottom-color: rgba(96,165,250,0.9);
}

.contact-form-wrapper {
    background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
    border-radius: 24px;
    padding: 26px 24px 24px;
    box-shadow: 0 20px 65px rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.2);
}

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

.field {
    display: grid;
    gap: 6px;
}

label {
    font-size: 0.8rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
}

input,
textarea {
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.45);
    background: rgba(15,23,42,0.85);
    padding: 11px 12px;
    color: #e5ecff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform 0.1s ease-out;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

input:focus,
textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.8);
    background: rgba(15,23,42,0.98);
    transform: translateY(-1px);
}

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

.hp-field-wrapper {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.hp-field {
    width: 1px;
    height: 1px;
    border: 0;
    padding: 0;
}

.privacy-consent {
    margin-top: 4px;
}

.checkbox-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 0.82rem;
    color: #cbd5f5;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0ea5e9;
}

.checkbox-row a {
    color: #60a5fa;
    border-bottom: 1px solid transparent;
}

.checkbox-row a:hover {
    border-bottom-color: rgba(96,165,250,0.9);
}

.form-submit {
    width: fit-content;
    margin-top: 6px;
}

.form-status {
    min-height: 18px;
    font-size: 0.78rem;
    color: #a5b4fc;
    margin-top: 4px;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 18px 0 10px;
    color: #1f2933;
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-column {
    font-size: 0.86rem;
    color: #111827;
}

.footer-brand {
    flex: 0 0 auto;
}

.footer-logo {
    width: min(320px, 42vw);
    max-width: none;
    height: auto;
    object-fit: contain;
}

.footer-info {
    min-width: 200px;
}

.footer-hours {
    min-width: 200px;
}

.footer-heading {
    font-weight: 700;
    margin: 0 0 4px;
}

.footer-label {
    font-weight: 600;
}

.footer-info p,
.footer-hours p {
    margin: 2px 0;
}

.footer-info a,
.footer-hours a {
    color: #111827;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 140px;
}

.footer-links-col a {
    color: #111827;
    font-size: 0.86rem;
    text-decoration: none;
}

.footer-links-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: #6b7280;
}

.footer-bottom p {
    margin: 0;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.6s; }
.scroll-reveal.delay-2 { transition-delay: 1.35s; }
.scroll-reveal.delay-3 { transition-delay: 2.1s; }
.scroll-reveal.delay-4 { transition-delay: 2.85s; }
.scroll-reveal.delay-5 { transition-delay: 3.6s; }

.hero-lead.is-typing-ready {
    min-height: 8em;
}

.typewriter {
    display: inline;
    white-space: pre-wrap;
    border-right: 2px solid rgba(248,250,252,0.9);
    padding-right: 3px;
    animation: caret-blink 0.9s steps(1, end) infinite;
}

.typewriter.is-done {
    border-right-color: transparent;
    animation: none;
    padding-right: 0;
}

@keyframes caret-blink {
    0% { border-right-color: rgba(248,250,252,0.9); }
    50% { border-right-color: transparent; }
    100% { border-right-color: rgba(248,250,252,0.9); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15,23,42,0.4);
    z-index: 1050;
    animation: wa-float 2.4s ease-in-out infinite;
}

.whatsapp-fab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes wa-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@media (max-width: 960px) {
    .services .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .footer-links-col {
        align-items: flex-start;
    }

    .footer-logo {
        width: min(340px, 70vw);
    }

    .hero-cta-floating {
        left: 80px;
        bottom: 56px;
    }

    .service-card.is-left {
        transform: translate(calc(-50% - 220px), -50%) scale(0.92) rotateY(16deg);
    }

    .service-card.is-right {
        transform: translate(calc(-50% + 220px), -50%) scale(0.92) rotateY(-16deg);
    }

    .service-card.is-far-left {
        transform: translate(calc(-50% - 380px), -50%) scale(0.86) rotateY(22deg);
    }

    .service-card.is-far-right {
        transform: translate(calc(-50% + 380px), -50%) scale(0.86) rotateY(-22deg);
    }
}

@media (max-width: 900px) {
    html {
        scroll-snap-type: none;
    }

    .hero,
    .section.services,
    .section.process-section,
    .section.contact {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .process-video-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(249,249,249,0.85));
    }
}

@media (max-width: 720px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-center {
        flex: 0;
    }

    .nav-links {
        position: fixed;
        inset: var(--header-height) 16px auto 16px;
        padding: 14px;
        border-radius: 18px;
        background: radial-gradient(circle at top, #020617, #020617 40%, #02040b 100%);
        box-shadow: 0 26px 80px rgba(15,23,42,0.98);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        transform-origin: top;
        transform: scaleY(0.8) translateY(-12px);
        opacity: 0;
        pointer-events: none;
        border: 1px solid rgba(148,163,184,0.22);
        transition: opacity var(--transition-med), transform var(--transition-med);
    }

    .nav-links.open {
        opacity: 1;
        transform: scaleY(1) translateY(0);
        pointer-events: auto;
    }

    .nav-contact {
        padding: 6px 8px;
        box-shadow: 0 10px 30px rgba(15,23,42,0.8);
    }

    .nav-contact-label {
        max-width: none;
        opacity: 0;
        margin-left: 0;
        display: none;
    }

    .hero {
        min-height: 100vh;
        background-position: center center;
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 72px;
    }

    .hero-title {
        font-size: clamp(3.6rem, 10vw, 4.4rem);
        letter-spacing: 0.16em;
    }

    .hero-lead {
        font-size: 1rem;
        font-weight: 700;
        color: rgba(255,255,255,0.98);
        text-shadow: 0 2px 10px rgba(2,6,23,0.9);
        min-height: 8em;
    }

    .hero-actions {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        gap: 10px;
        margin-top: 26px;
    }

    .hero-actions .btn,
    .hero-cta-inline {
        flex: 1 1 0;
        min-width: 0;
    }

    .hero-cta-inline {
        display: inline-flex;
        justify-content: center;
        padding-inline: 18px;
    }

    .hero-cta-floating {
        display: none;
    }

    .hero-cta-floating .cta-pill {
        display: none;
    }

    .hero-cta-floating {
        left: 20px;
        bottom: 48px;
    }

    .services .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-section .process-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .scroll-mouse {
        display: none;
    }

    .services-carousel {
        height: auto;
    }

    .services-carousel-track {
        position: relative;
        height: auto;
    }

    .service-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        margin-bottom: 18px;
        max-width: none;
        width: 100%;
        min-height: auto;
    }

    .service-card.is-center,
    .service-card.is-left,
    .service-card.is-right,
    .service-card.is-far-left,
    .service-card.is-far-right,
    .service-card.is-hidden {
        transform: none;
        opacity: 1;
        z-index: 1;
        pointer-events: auto;
    }

    .carousel-arrow {
        display: none;
    }

    .service-card,
    .process-card {
        text-align: left;
    }

    .process-card p {
        max-width: none;
    }

    .whatsapp-fab {
        display: flex;
    }

    .footer-logo {
        width: min(340px, 82vw);
    }

    .section.contact::before {
        background-position: 50% 22%;
        background-size: clamp(260px, 72vw, 360px) auto;
        opacity: 0.22;
    }
}

@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .section {
        padding-block: 72px;
    }

    .footer-logo {
        width: min(320px, 88vw);
    }
}

body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

.modal-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-shell {
    position: relative;
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 24px 22px 20px;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 24px 80px rgba(15,23,42,1);
    color: #e5ecff;
}

.modal-close-icon {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.8);
    color: #e5ecff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-title {
    margin: 0 32px 8px 0;
    font-size: 1.1rem;
}

.modal-text {
    margin: 0 0 18px 0;
    font-size: 0.9rem;
    color: #cbd5f5;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-home {
    text-decoration: none;
}

.btn.is-disabled {
    opacity: 0.7;
    cursor: default;
}

@media (max-width: 480px) {
    .modal-shell {
        padding: 20px 18px 18px;
    }
    .modal-title {
        font-size: 1rem;
    }
    .modal-actions {
        flex-direction: column-reverse;
        align-items: flex-end;
    }
}

body.references-page {
    background: radial-gradient(circle at top, #111827 0, #020617 42%, #02040b 100%);
}

body.references-page .references-hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 56px);
    padding-bottom: 160px;
    overflow: hidden;
    display: grid;
    place-items: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 84px), 0 100%);
}

body.references-page .references-hero-bg {
    background-image: url("../img/Referenzen/background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

body.references-page .references-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,6,23,0.72) 0%, rgba(2,6,23,0.55) 42%, rgba(2,6,23,0.25) 78%);
    pointer-events: none;
    z-index: 1;
}

body.references-page .references-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

body.references-page .references-hero-title {
    margin: 0;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    line-height: 1.06;
}

body.references-page .references-accent {
    color: #22d3ee;
}

body.references-page .references-hero-subtitle {
    margin: 14px auto 0;
    max-width: 62ch;
    color: rgba(229,236,255,0.9);
    line-height: 1.65;
    font-size: 0.98rem;
}

body.references-page .references-section {
    padding-block: 78px;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

body.references-page .references-section::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: url("../img/Referenzen/background2.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(8px);
    transform: scale(1.05);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

body.references-page .references-section .container {
    position: relative;
    z-index: 1;
}

body.references-page .references-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body.references-page .ref-card {
    width: 100%;
    border: 0;
    padding: 0;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 55px rgba(15,23,42,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

body.references-page .ref-card:focus-visible {
    outline: 2px solid rgba(14,165,233,0.95);
    outline-offset: 4px;
}

body.references-page .ref-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15,23,42,0.12);
    border-color: rgba(56,189,248,0.6);
}

body.references-page .ref-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

body.references-page .ref-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15,23,42,0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

body.references-page .ref-lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

body.references-page .ref-lightbox-shell {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 36px);
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    gap: 14px;
}

body.references-page .ref-lightbox-media {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(2,6,23,0.35);
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 28px 90px rgba(2,6,23,0.9);
}

body.references-page .ref-lightbox-media img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    display: block;
    object-fit: contain;
    background: rgba(2,6,23,0.18);
}

body.references-page .ref-lightbox-btn {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    background: rgba(15,23,42,0.55);
    color: #f9fafb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

body.references-page .ref-lightbox-btn:hover {
    transform: translateY(-1px);
    background: rgba(15,23,42,0.75);
    border-color: rgba(248,250,252,0.75);
}

body.references-page .ref-lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.65);
    background: rgba(15,23,42,0.7);
    color: #f9fafb;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.references-page .ref-lightbox-close:hover {
    background: rgba(15,23,42,0.85);
    border-color: rgba(248,250,252,0.85);
}

@media (max-width: 960px) {
    body.references-page .references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.references-page .ref-lightbox-shell {
        grid-template-columns: 44px 1fr 44px;
        gap: 10px;
    }

    body.references-page .ref-lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    body.references-page .ref-lightbox-close {
        top: -6px;
        right: -6px;
    }

    body.references-page .references-hero {
        min-height: 100vh;
        padding-bottom: 170px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 76px), 0 100%);
    }

    body.references-page .references-hero-title {
        letter-spacing: 0.14em;
    }
}

@media (max-width: 640px) {
    body.references-page .references-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.references-page .ref-lightbox-shell {
        grid-template-columns: 1fr;
    }

    body.references-page .ref-lightbox-btn {
        display: none;
    }

    body.references-page .ref-lightbox-close {
        top: -8px;
        right: -8px;
    }

    body.references-page {
        background: radial-gradient(circle at top, rgba(17,24,39,0.92) 0, rgba(2,6,23,0.96) 45%, rgba(2,4,11,1) 100%), url("../img/Referenzen/background2.png") center center/cover no-repeat;
    }

    body.references-page .references-hero-bg {
        background-image: url("../img/Referenzen/background handy.png");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    body.references-page .references-hero {
        min-height: 100svh;
        padding-bottom: 190px;
        clip-path: none;
    }

    body.references-page .references-hero-title {
        font-size: clamp(1.85rem, 8.2vw, 2.6rem);
        letter-spacing: 0.12em;
        line-height: 1.08;
    }

    body.references-page .references-hero-subtitle {
        font-size: 0.95rem;
        max-width: 44ch;
    }
}

body.references-page .mobile-scroll-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 34px;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
}

body.references-page .mobile-scroll-hint-pill {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 60px rgba(2,6,23,0.85);
    display: grid;
    place-items: center;
    position: relative;
    animation: refs-hint-float 1.9s ease-in-out infinite;
}

body.references-page .mobile-scroll-hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(248,250,252,0.95);
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.85;
}

body.references-page .mobile-scroll-hint-arrow {
    font-size: 26px;
    line-height: 1;
    color: rgba(248,250,252,0.95);
    transform: translateY(10px);
}

@keyframes refs-hint-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

@media (max-width: 640px) {
    body.references-page .mobile-scroll-hint {
        display: flex;
        bottom: 44px;
    }
}

body.references-page .refs-scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
    z-index: 5;
    width: 96px;
    height: 96px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
}

body.references-page .refs-scroll-indicator:focus {
    outline: none;
}

body.references-page .refs-scroll-indicator:focus-visible {
    outline: 2px solid rgba(14,165,233,0.95);
    outline-offset: 6px;
}

body.references-page .refs-scroll-mouse {
    width: 26px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(248,250,252,0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.75);
    background: rgba(15,23,42,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.references-page .refs-scroll-wheel {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(248,250,252,0.9);
    animation: scroll-wheel 1.4s infinite ease-in-out;
}

@media (max-width: 640px) {
    body.references-page .refs-scroll-mouse {
        display: none;
    }

    body.references-page .mobile-scroll-hint {
        position: relative;
        left: auto;
        transform: none;
        bottom: auto;
        display: flex;
    }
}