:root {
    --bg: #030507;
    --bg-soft: #070b10;
    --surface: rgba(10, 16, 22, 0.78);
    --surface-solid: #0b1118;
    --text: #f5f8fb;
    --muted: #aab6c3;
    --subtle: #72808e;
    --accent: #34d7ee;
    --accent-strong: #0fb8d1;
    --line: rgba(255, 255, 255, 0.12);
    --line-cyan: rgba(52, 215, 238, 0.28);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --nav-height: 76px;
    --font-heading: "Syne", sans-serif;
    --font-body: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(52, 215, 238, 0.12), transparent 30rem),
        linear-gradient(180deg, #010203 0%, var(--bg) 42%, #05080c 100%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.container {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(3, 5, 7, 0.64);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(3, 5, 7, 0.9);
    border-color: var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: fit-content;
}

.brand-logo {
    display: block;
    width: clamp(168px, 15vw, 218px);
    height: auto;
    filter: drop-shadow(0 0 14px rgba(52, 215, 238, 0.12));
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-cyan);
    border-radius: var(--radius);
    background: rgba(52, 215, 238, 0.08);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
}

.brand-copy small {
    color: var(--subtle);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn::after,
.submit-btn::after,
.footer-action::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(52, 215, 238, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}

.btn.is-rippling::after,
.submit-btn.is-rippling::after,
.footer-action.is-rippling::after {
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    animation: button-ripple 0.58s ease-out;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.submit-btn:focus-visible,
.footer-action:focus-visible,
.scroll-indicator:focus-visible {
    outline: 3px solid rgba(52, 215, 238, 0.45);
    outline-offset: 3px;
}

.btn-primary {
    gap: 10px;
    background: linear-gradient(135deg, #f8fdff 0%, #bff6ff 100%);
    color: #031014;
    box-shadow: 0 12px 30px rgba(52, 215, 238, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 16px 36px rgba(52, 215, 238, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
    color: var(--text);
}

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
}

.hero-video,
.hero-overlay {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    left: 0;
}

.hero-video {
    z-index: -3;
    right: auto;
    width: 180%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: saturate(1.03) contrast(1.05) brightness(0.8);
    transform: translateX(-44%);
    transform-origin: center center;
}

.hero-overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 5, 7, 0.84) 0%, rgba(3, 5, 7, 0.58) 48%, rgba(3, 5, 7, 0.8) 100%),
        linear-gradient(180deg, rgba(3, 5, 7, 0.2) 0%, rgba(3, 5, 7, 0.88) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 34%;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 48px;
    padding-top: 116px;
    padding-bottom: 82px;
}

.hero-content {
    max-width: 760px;
    animation: rise-up 0.8s cubic-bezier(0.2, 0.9, 0.4, 1) both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hero h1,
.section-heading h2,
.modal-header h2 {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

.hero h1 {
    max-width: 820px;
    margin-top: 18px;
    font-size: clamp(3rem, 7vw, 6.6rem);
    font-weight: 800;
    line-height: 0.96;
}

.hero p {
    max-width: 640px;
    margin-top: 24px;
    color: #d7e0e8;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-panel {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line-cyan);
    border-radius: var(--radius);
    background: rgba(3, 5, 7, 0.46);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel div {
    display: grid;
    gap: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.045);
}

.hero-panel span {
    color: var(--subtle);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-panel strong {
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: grid;
    width: 26px;
    height: 42px;
    place-items: start center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transform: translateX(-50%);
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--accent);
    animation: scroll-dot 1.5s infinite;
}

.stats-section,
.services,
.process-section,
.tech-strip {
    position: relative;
}

.stats-section::before,
.services::before,
.process-section::before,
.tech-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 0%, rgba(52, 215, 238, 0.16), transparent 34rem);
    opacity: 0;
    pointer-events: none;
}

.stats-section.section-pulse::before,
.services.section-pulse::before,
.process-section.section-pulse::before,
.tech-strip.section-pulse::before {
    animation: section-pulse 1.1s ease-out;
}

.stats-section > .container,
.services > .container,
.process-section > .container,
.tech-strip-inner {
    position: relative;
    z-index: 1;
}

.stats-section {
    padding: 44px 0;
    border-block: 1px solid var(--line);
    background: rgba(3, 5, 7, 0.72);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.stat-item {
    display: grid;
    gap: 6px;
    min-height: 136px;
    place-items: center;
    padding: 24px 18px;
    background: rgba(8, 13, 18, 0.82);
    text-align: center;
}

.stat-item strong {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-item span {
    color: var(--subtle);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.services {
    padding: 108px 0 94px;
}

.section-heading {
    max-width: 760px;
}

.section-heading h2 {
    margin-top: 14px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
}

.section-heading p {
    max-width: 640px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1rem;
}

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

.service-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
        var(--surface-solid);
    padding: 30px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto 22px 22px auto;
    width: 86px;
    height: 2px;
    background: var(--accent);
    opacity: 0.42;
    box-shadow: 0 0 0 rgba(52, 215, 238, 0);
    transition: opacity 0.25s ease, box-shadow 0.25s ease, width 0.25s ease;
}

.service-card:hover {
    border-color: var(--line-cyan);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28), 0 0 38px rgba(52, 215, 238, 0.12);
    transform: translateY(-6px);
}

.service-card:hover::after {
    width: 112px;
    opacity: 0.95;
    box-shadow: 0 0 18px rgba(52, 215, 238, 0.62);
}

.service-index {
    color: rgba(52, 215, 238, 0.42);
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 0 rgba(52, 215, 238, 0);
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-index {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(52, 215, 238, 0.62), 0 0 42px rgba(52, 215, 238, 0.28);
    transform: translateY(-3px);
}

.service-card h3 {
    margin-top: 44px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
}

.service-card p {
    margin-top: 14px;
    color: var(--muted);
}

.process-section {
    padding: 96px 0 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(52, 215, 238, 0.045), rgba(255, 255, 255, 0.015));
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 56px;
    align-items: start;
}

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

.process-step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 13, 18, 0.72);
    padding: 22px;
}

.process-step > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-cyan);
    border-radius: var(--radius);
    color: var(--accent);
    font-weight: 900;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.16rem;
}

.process-step p {
    margin-top: 6px;
    color: var(--muted);
}

.process-section .tech-strip-inner {
    margin-top: 72px;
}

.tech-strip {
    border-top: 1px solid var(--line-cyan);
    border-bottom: 1px solid var(--line-cyan);
    border-radius: var(--radius);
    background: rgba(52, 215, 238, 0.08);
}

.tech-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 24px;
}

.tech-strip span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tech-strip p {
    color: #d9e4eb;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: right;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    backdrop-filter: blur(18px);
    transition: opacity 0.32s ease, backdrop-filter 0.32s ease;
}

.modal.active {
    opacity: 1;
    animation: modal-backdrop-in 0.34s ease both;
}

.modal-card {
    width: min(100%, 720px);
    max-height: min(92svh, 850px);
    overflow-y: auto;
    border: 1px solid var(--line-cyan);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 18% 0%, rgba(52, 215, 238, 0.18), transparent 20rem),
        linear-gradient(150deg, rgba(18, 29, 38, 0.96), rgba(5, 9, 14, 0.985)),
        var(--surface-solid);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 0;
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.modal.active .modal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: modal-pop 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drag-handle {
    display: none;
}

.modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 0;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.modal.active .modal-header,
.modal.active .input-field,
.modal.active .radio-group,
.modal.active .upload-zone,
.modal.active .submit-btn {
    animation: form-item-in 0.56s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal.active .modal-header {
    animation-delay: 0.08s;
}

.modal.active .form-grid .input-field:nth-child(1) {
    animation-delay: 0.14s;
}

.modal.active .form-grid .input-field:nth-child(2) {
    animation-delay: 0.19s;
}

.modal.active form > .input-field:nth-of-type(2) {
    animation-delay: 0.24s;
}

.modal.active .radio-group {
    animation-delay: 0.29s;
}

.modal.active form > .input-field:nth-of-type(3) {
    animation-delay: 0.34s;
}

.modal.active .upload-zone {
    animation-delay: 0.39s;
}

.modal.active .submit-btn {
    animation-delay: 0.44s;
}

.modal-header h2 {
    margin-top: 6px;
    font-size: 1.85rem;
}

.modal-header p {
    max-width: 430px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.modal-card form {
    padding: 20px 28px 24px;
}

.icon-btn {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    color: var(--text);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--line-cyan);
    background: rgba(52, 215, 238, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal-card form::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 0 18px;
    background: linear-gradient(90deg, transparent, rgba(52, 215, 238, 0.35), transparent);
}

.input-field {
    position: relative;
    margin-bottom: 14px;
}

.input-field input,
.input-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.022)),
        rgba(0, 0, 0, 0.24);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 19px 15px 9px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input-field textarea {
    min-height: 88px;
    resize: vertical;
}

.input-field label {
    position: absolute;
    top: 15px;
    left: 14px;
    color: var(--subtle);
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease;
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--accent);
    background: rgba(52, 215, 238, 0.035);
    box-shadow: 0 0 0 4px rgba(52, 215, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    outline: none;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label,
.input-field textarea:focus + label,
.input-field textarea:not(:placeholder-shown) + label {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    transform: translateY(-10px);
}

.radio-group {
    margin: 2px 0 14px;
    border: 0;
}

.radio-group legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option span {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    color: var(--muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.radio-option:hover span {
    border-color: rgba(52, 215, 238, 0.35);
    color: var(--text);
}

.radio-option input:focus-visible + span {
    outline: 3px solid rgba(52, 215, 238, 0.45);
    outline-offset: 3px;
}

.radio-option input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #d8fbff);
    color: #031014;
    box-shadow: 0 14px 28px rgba(52, 215, 238, 0.16);
}

.upload-zone {
    display: grid;
    gap: 6px;
    place-items: center;
    margin-bottom: 14px;
    border: 1px dashed rgba(52, 215, 238, 0.45);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(52, 215, 238, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(0, 0, 0, 0.18);
    padding: 18px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(52, 215, 238, 0.09);
    transform: translateY(-2px);
}

.upload-zone input {
    display: none;
}

.upload-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line-cyan);
    border-radius: var(--radius);
    background: rgba(52, 215, 238, 0.08);
    color: var(--accent);
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.upload-zone strong {
    color: var(--text);
    font-size: 0.98rem;
}

.upload-zone small {
    color: var(--subtle);
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin: -4px 0 14px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid rgba(52, 215, 238, 0.24);
    border-radius: 999px;
    background: rgba(52, 215, 238, 0.075);
    color: #dbe7ee;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.file-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submit-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fdff 0%, #bff6ff 45%, var(--accent) 100%);
    color: #031014;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 18px 34px rgba(52, 215, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(52, 215, 238, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.success-state {
    position: relative;
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 44px 42px 46px;
    text-align: center;
    overflow: hidden;
}

.success-state[hidden] {
    display: none;
}

.success-state.is-visible {
    animation: success-in 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(52, 215, 238, 0.42);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.42), transparent 42%),
        linear-gradient(135deg, #43e887, #1fa96c);
    color: #031014;
    font-size: 2.7rem;
    font-weight: 900;
    box-shadow: 0 22px 42px rgba(67, 232, 135, 0.18), 0 0 0 10px rgba(67, 232, 135, 0.06);
}

.success-brand {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 58px;
    height: 58px;
    object-fit: contain;
    opacity: 0.12;
    pointer-events: none;
}

.success-state .eyebrow {
    margin-top: 28px;
}

.success-state h2 {
    max-width: 520px;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.success-state p {
    max-width: 500px;
    margin-top: 14px;
    color: var(--muted);
}

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: min(100%, 460px);
    margin-top: 34px;
}

.success-actions .btn {
    min-height: 52px;
}

.toast-notification {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 3000;
    display: flex;
    align-items: center;
    max-width: min(420px, calc(100vw - 48px));
    min-height: 54px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(8, 13, 18, 0.96);
    box-shadow: var(--shadow);
    color: var(--text);
    padding: 14px 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.error {
    border-left-color: #ff5d73;
}

.footer {
    border-top: 1px solid var(--line);
    background: #020304;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
}

.footer-logo {
    width: min(190px, 48vw);
    height: auto;
    opacity: 0.9;
}

.footer p {
    color: var(--subtle);
    font-size: 0.88rem;
}

.footer-action {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-weight: 900;
}

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rise-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-dot {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes button-ripple {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(24);
    }
}

@keyframes section-pulse {
    0% {
        opacity: 0;
    }
    28% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes modal-pop {
    0% {
        opacity: 0;
        transform: translateY(34px) scale(0.94);
        filter: blur(8px);
    }
    64% {
        opacity: 1;
        transform: translateY(-5px) scale(1.012);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes modal-backdrop-in {
    0% {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }
    100% {
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(18px);
    }
}

@keyframes form-item-in {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes success-in {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

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

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero-layout,
    .process-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .service-card {
        min-height: 240px;
    }

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

    .tech-strip-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        width: min(100% - 32px, 1200px);
        padding: 22px 18px;
    }

    .tech-strip p {
        text-align: left;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
}

body.static-hero .hero {
    background:
        radial-gradient(circle at 82% 36%, rgba(52, 215, 238, 0.18), transparent 18rem),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 16rem),
        linear-gradient(135deg, #010203 0%, #071019 48%, #020406 100%);
}

body.static-hero .hero::before {
    content: "";
    position: absolute;
    right: max(-120px, -8vw);
    bottom: clamp(18px, 8vh, 96px);
    z-index: -2;
    width: clamp(320px, 64vw, 820px);
    aspect-ratio: 1;
    background: url("assets/projectdraw-mark-white.png") center / contain no-repeat;
    opacity: 0.11;
    filter: drop-shadow(0 0 36px rgba(52, 215, 238, 0.12));
    pointer-events: none;
}

body.static-hero .hero-video {
    display: none;
}

body.static-hero .hero-overlay {
    background:
        linear-gradient(90deg, rgba(3, 5, 7, 0.62), rgba(3, 5, 7, 0.26) 52%, rgba(3, 5, 7, 0.68)),
        linear-gradient(180deg, rgba(3, 5, 7, 0.04), rgba(3, 5, 7, 0.92));
}

body.lite-mode .navbar,
body.lite-mode .hero-panel,
body.lite-mode .modal,
body.lite-mode .modal-card {
    backdrop-filter: none !important;
}

body.lite-mode .hero-content,
body.lite-mode .fade-up.visible,
body.lite-mode .modal.active .modal-card,
body.lite-mode .success-state.is-visible {
    filter: none !important;
}

body.lite-mode .service-card,
body.lite-mode .hero-panel,
body.lite-mode .modal-card,
body.lite-mode .toast-notification {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26) !important;
}

body.lite-mode .service-card:hover,
body.lite-mode .btn:hover,
body.lite-mode .submit-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 680px) {
    :root {
        --nav-height: 68px;
    }

    .container {
        width: min(100% - 32px, 1200px);
    }

    .nav-container {
        min-height: 68px;
        gap: 12px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-container > .btn-primary {
        display: none;
    }

    .hero {
        min-height: 94svh;
    }

    .hero-layout {
        gap: 30px;
        padding-top: 104px;
        padding-bottom: 88px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.4rem);
    }

    .hero p {
        max-width: 340px;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .hero-panel div {
        padding: 18px;
    }

    .stats-section {
        padding: 30px 0;
    }

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

    .stat-item {
        min-height: 110px;
    }

    .services,
    .process-section {
        padding: 72px 0;
    }

    .service-card {
        padding: 24px;
    }

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

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card {
        width: 100%;
        max-height: 92svh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        padding: 0;
        transform: translateY(100%);
    }

    .modal.active .modal-card {
        transform: translateY(0);
    }

    .mobile-drag-handle {
        display: block;
        width: 46px;
        height: 4px;
        margin: 14px auto 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.24);
    }

    .modal-header {
        padding: 16px 16px 14px;
    }

    .modal-header h2 {
        font-size: 1.55rem;
    }

    .modal-header p {
        display: none;
    }

    .modal-card form {
        padding: 16px;
    }

    .modal-card form::before {
        margin-bottom: 14px;
    }

    .form-grid,
    .radio-cards {
        grid-template-columns: 1fr;
    }

    .form-grid {
        gap: 0;
    }

    .input-field {
        margin-bottom: 12px;
    }

    .input-field input,
    .input-field textarea {
        padding: 18px 13px 9px;
    }

    .input-field textarea {
        min-height: 82px;
    }

    .radio-group {
        margin-bottom: 12px;
    }

    .radio-cards {
        gap: 8px;
    }

    .radio-option span {
        min-height: 42px;
    }

    .upload-zone {
        gap: 4px;
        margin-bottom: 12px;
        padding: 14px;
    }

    .upload-icon {
        width: 34px;
        height: 34px;
    }

    .file-list {
        max-height: 62px;
        overflow-y: auto;
        margin-bottom: 12px;
    }

    .submit-btn {
        margin-top: 4px;
    }

    .success-state {
        min-height: 520px;
        padding: 34px 20px 38px;
    }

    .success-icon {
        width: 76px;
        height: 76px;
        font-size: 2.35rem;
    }

    .success-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .toast-notification {
        inset: 82px 16px auto 16px;
        max-width: none;
    }

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

/* Performance pass: keeps the visual language, but removes the heaviest paint work. */
.navbar,
.hero-panel,
.modal,
.modal-card,
.service-card,
.process-step,
.toast-notification {
    backdrop-filter: none;
}

.hero-video {
    width: 100%;
    object-position: center center;
    transform: none;
    filter: brightness(0.72);
    will-change: auto;
}

.btn:hover,
.submit-btn:hover,
.service-card:hover,
.footer-action:hover {
    transform: none;
}

.service-card:hover,
.hero-panel,
.modal-card,
.toast-notification {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.fade-up {
    transition-duration: 0.38s;
}

.btn.is-rippling::after,
.submit-btn.is-rippling::after,
.footer-action.is-rippling::after {
    animation: none;
}

@media (max-width: 980px) {
    .hero {
        background:
            radial-gradient(circle at 82% 36%, rgba(52, 215, 238, 0.18), transparent 18rem),
            radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 16rem),
            linear-gradient(135deg, #010203 0%, #071019 48%, #020406 100%);
    }

    .hero::before {
        content: "";
        position: absolute;
        right: -150px;
        bottom: 60px;
        z-index: -2;
        width: min(720px, 112vw);
        aspect-ratio: 1;
        background: url("assets/projectdraw-mark-white.png") center / contain no-repeat;
        opacity: 0.08;
        filter: drop-shadow(0 0 30px rgba(52, 215, 238, 0.12));
        pointer-events: none;
    }

    .hero-video {
        display: none;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(3, 5, 7, 0.68), rgba(3, 5, 7, 0.28) 52%, rgba(3, 5, 7, 0.72)),
            linear-gradient(180deg, rgba(3, 5, 7, 0.04), rgba(3, 5, 7, 0.92));
    }
}
