:root {
    --bg: #060816;
    --bg-soft: #10162b;
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f5f7ff;
    --muted: #9fa9c2;
    --primary: #7c5cff;
    --primary-2: #23d5ff;
    --accent-orange: #ff9a5c;
    --accent-teal: #2dd4bf;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, rgba(35, 213, 255, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.2), transparent 30%), var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.18s ease-out;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-bar.is-scrolled {
    background: rgba(6, 8, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 0 2rem;
}

.eyebrow {
    display: inline-block;
    color: var(--primary-2);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 650px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
}

.hero-illustration {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illus-blob {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    filter: blur(70px);
    opacity: 0.45;
}

.illus-dots {
    position: absolute;
    top: 6%;
    right: 8%;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.6;
}

.illus-card,
.illus-badge,
.illus-wheel {
    animation: illus-float 5s ease-in-out infinite;
}

.illus-card {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, var(--accent-orange), #ff6f9c);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    font-weight: 800;
    color: white;
    transform: rotate(-6deg);
}

.illus-wheel {
    position: absolute;
    top: 10%;
    left: 6%;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: conic-gradient(var(--primary), var(--accent-teal), var(--accent-orange), var(--primary-2), var(--primary));
    box-shadow: var(--shadow);
    animation-delay: 0.4s;
}

.illus-badge {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: white;
}

.illus-badge svg {
    width: 26px;
    height: 26px;
}

.illus-badge-1 {
    top: 12%;
    right: 12%;
    background: var(--accent-teal);
    animation-delay: 0s;
}

.illus-badge-2 {
    bottom: 14%;
    left: 4%;
    background: var(--accent-orange);
    animation-delay: 0.8s;
}

.illus-badge-3 {
    bottom: 10%;
    right: 10%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    animation-delay: 1.4s;
}

@keyframes illus-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.illus-card {
    animation-name: illus-card-float;
}

@keyframes illus-card-float {

    0%,
    100% {
        transform: rotate(-6deg) translateY(0);
    }

    50% {
        transform: rotate(-6deg) translateY(-14px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .illus-card,
    .illus-badge,
    .illus-wheel {
        animation: none;
    }
}

.tech-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    padding: 0.5rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: tech-scroll 32s linear infinite;
}

.tech-marquee:hover .tech-track {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.tech-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-2);
    flex-shrink: 0;
}

@keyframes tech-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-track {
        animation: none;
        overflow-x: auto;
    }
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 701px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stats article,
.about-card,
.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.4rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.about-card img {
    width: 100%;
    height: 180px;
    border-radius: 1rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stats article::before,
.about-card::before,
.contact-box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background: linear-gradient(135deg, var(--primary), transparent 60%);
}

.about-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(35, 213, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.about-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(35, 213, 255, 0.08));
}

.contact-box {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(35, 213, 255, 0.12));
}

.stats strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stats span {
    color: var(--muted);
}

.section {
    padding: 4rem 0;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-alt {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(124, 92, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    max-width: 720px;
}

.about-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card h3 {
    margin-bottom: 0.6rem;
}

.about-card p,
.contact-box p {
    color: var(--muted);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-media,
.service-copy {
    flex: 1 1 0%;
    min-width: 0;
}

.service-media {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.service-media img {
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.service-copy h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin-bottom: 0.75rem;
}

.service-copy p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 480px;
}

.pricing-grid {
    display: grid;
    gap: 1.2rem;
}

.project-carousel {
    position: relative;
}

.project-track {
    position: relative;
    height: 380px;
    margin: 1rem 0 1.5rem;
    overflow: hidden;
}

@media (min-width: 701px) {
    .project-track {
        height: 440px;
    }
}

@media (min-width: 1024px) {
    .project-track {
        height: 500px;
    }
}

.project-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    cursor: pointer;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, opacity 0.5s ease, border-color 0.5s ease;
}

@media (min-width: 701px) {
    .project-card {
        width: 310px;
    }
}

@media (min-width: 1024px) {
    .project-card {
        width: 350px;
    }
}

.project-card.is-center {
    border-color: rgba(35, 213, 255, 0.4);
}

.project-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.2rem;
}

.project-info h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.project-card.is-center .project-info h3 {
    font-size: 1.3rem;
}

.project-info p {
    color: var(--muted);
    font-size: 0.9rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 22, 0.75);
    backdrop-filter: blur(6px);
}

.project-modal-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 860px;
    max-height: 88vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 2.2rem;
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.project-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .project-modal-body {
        grid-template-columns: minmax(0, 300px) 1fr;
        align-items: start;
        gap: 2rem;
    }

    .project-modal-body img {
        margin-bottom: 0;
        position: sticky;
        top: 0;
    }
}

.project-modal.is-open .project-modal-panel {
    transform: translateY(0);
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

.project-modal-body img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 1.2rem;
}

.project-modal-tag {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(35, 213, 255, 0.15);
    color: var(--primary-2);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-modal-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-modal-text > p {
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.project-features {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.project-features li {
    position: relative;
    padding-left: 1.4rem;
}

.project-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-2);
    font-weight: 700;
}

.project-testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary-2);
}

.project-testimonial-link:hover {
    color: var(--text);
}

body.modal-open {
    overflow: hidden;
}

.contact-box,
.contact-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-shell {
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(35, 213, 255, 0.12));
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 1.4rem;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.testimonial-carousel {
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.75rem;
    margin: -0.25rem -0.25rem 0;
    scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(35, 213, 255, 0.14), rgba(124, 92, 255, 0.08));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (min-width: 701px) {
    .testimonial-card {
        flex-basis: calc(50% - 0.6rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex-basis: calc(33.333% - 0.8rem);
    }
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.testimonial-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.testimonial-arrow:hover {
    border-color: var(--primary-2);
    transform: translateY(-2px);
    background: rgba(35, 213, 255, 0.12);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.testimonial-dot.is-active {
    width: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.testimonial-stars {
    color: #ffd166;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.testimonial-card span {
    color: var(--muted);
    display: block;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 760px;
    margin: 0 auto;
}

.pricing-card {
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(35, 213, 255, 0.12));
    border-color: rgba(35, 213, 255, 0.35);
}

.pricing-badge {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(35, 213, 255, 0.2);
    color: var(--primary-2);
    font-size: 0.82rem;
}

.pricing-tag {
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    margin: 1rem 0;
    color: var(--muted);
    display: grid;
    gap: 0.6rem;
}

.footer {
    padding: 1.5rem 0 2rem;
    color: var(--muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.footer-content a {
    margin-left: 1rem;
}

@media (max-width: 980px) {
    .stats {
        margin-top: 1rem;
    }
}

@media (max-width: 880px) {
    .nav {
        position: relative;
    }

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
    }

    .service-copy {
        text-align: left;
    }

    .service-copy p {
        max-width: none;
    }

    .service-list {
        gap: 2.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
        margin-top: 0.5rem;
        background: var(--bg-soft);
        border: 1px solid var(--border);
        border-radius: 1rem;
        box-shadow: var(--shadow);
        z-index: 20;
    }

    .nav-links a {
        padding: 0.6rem 0.4rem;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        gap: 1.5rem;
    }

    .hero-illustration {
        min-height: 320px;
    }

    .contact-box,
    .contact-shell {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding-bottom: 2rem;
    }

    .eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.75rem;
    }

    .hero-copy h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 0.9rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-illustration {
        min-height: 260px;
        transform: scale(0.82);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stats article,
    .about-card,
    .contact-box,
    .contact-shell,
    .testimonial-card,
    .pricing-card {
        padding: 1.1rem;
    }

    .service-media {
        padding: 0.75rem;
    }

    .project-modal-panel {
        padding: 1.5rem;
    }

    .contact-shell {
        padding: 1.2rem;
    }
}