:root {
    --font-primary: "Inter", "Segoe UI", Arial, sans-serif;
    --color-bg: #030912;
    --color-bg-deep: #02060d;
    --color-surface: #08111d;
    --color-surface-soft: #0b1523;
    --color-surface-hover: #101c2c;
    --color-text: #f5f7fb;
    --color-muted: #8e9aad;
    --color-subtle: #566174;
    --color-line: rgba(151, 172, 205, 0.14);
    --color-line-strong: rgba(151, 172, 205, 0.24);
    --color-blue: #2475ff;
    --color-blue-light: #38a4ff;
    --color-violet: #7138ff;
    --color-green: #27c995;
    --color-orange: #ff8c2b;
    --gradient-primary: linear-gradient(115deg, #2388ff 0%, #3147f5 52%, #7138ff 100%);
    --gradient-text: linear-gradient(100deg, #4b9dff 0%, #7661ff 100%);
    --shadow-glow: 0 18px 60px rgba(19, 84, 255, 0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container: 1300px;
    --header-height: 78px;
    --section-space: clamp(4.5rem, 8vw, 7.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--color-text);
    background:
        radial-gradient(circle at 78% 2%, rgba(22, 84, 207, 0.1), transparent 26rem),
        var(--color-bg);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    color: #fff;
    background: rgba(51, 112, 255, 0.75);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-text);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.55rem);
}

h3 {
    font-size: 1.05rem;
}

.container {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.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;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    color: #fff;
    background: var(--color-blue);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow,
.micro-label {
    margin-bottom: 1rem;
    color: var(--color-blue-light);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 0.38rem;
    height: 0.38rem;
    margin-right: 0.55rem;
    vertical-align: 0.08em;
    background: var(--color-blue);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(36, 117, 255, 0.9);
}

.eyebrow span {
    margin-inline: 0.35rem;
    color: var(--color-violet);
}

.gradient-text {
    color: var(--color-blue-light);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.72rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-blue-light);
    outline-offset: 3px;
}

.button-primary {
    color: #fff;
    background: var(--gradient-primary);
    border-color: rgba(133, 168, 255, 0.2);
    box-shadow: 0 8px 24px rgba(41, 84, 244, 0.25);
}

.button-primary:hover {
    box-shadow: 0 12px 30px rgba(41, 84, 244, 0.4);
}

.button-secondary,
.button-ghost {
    color: var(--color-text);
    background: rgba(6, 13, 23, 0.62);
    border-color: var(--color-line-strong);
}

.button-secondary:hover,
.button-ghost:hover {
    background: var(--color-surface-hover);
    border-color: rgba(62, 119, 255, 0.5);
}

.button-ghost {
    min-height: 40px;
    padding-inline: 1.2rem;
    font-size: 0.7rem;
}

.button-outline-light {
    color: #fff;
    background: rgba(11, 30, 88, 0.3);
    border-color: rgba(180, 205, 255, 0.44);
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: var(--header-height);
    background: rgba(3, 9, 18, 0.72);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(3, 9, 18, 0.93);
    border-bottom-color: var(--color-line);
}

.header-inner {
    display: grid;
    height: 100%;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.62rem;
}

.header-inner > .brand {
    justify-self: start;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #72b9ff;
    background: linear-gradient(145deg, rgba(32, 111, 255, 0.18), rgba(87, 53, 246, 0.08));
    border: 1px solid rgba(58, 132, 255, 0.5);
    border-radius: 13px 7px 13px 7px;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(36, 117, 255, 0.85);
    transform: skewX(-9deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    font-size: 0.91rem;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 0.28rem;
    color: #a7afbc;
    font-size: 0.44rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    margin-left: 0;
    align-items: center;
    justify-self: center;
    gap: clamp(1.2rem, 2.3vw, 2.2rem);
}

.main-nav a {
    position: relative;
    color: #d6dce6;
    font-size: 0.71rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.55rem;
    left: 0;
    height: 1px;
    content: "";
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.header-cta {
    flex: 0 0 auto;
    min-height: 38px;
    margin-left: 0;
    padding-inline: 1.25rem;
    font-size: 0.69rem;
    justify-self: end;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 19px;
    height: 1.5px;
    margin: 4px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: calc(780px - var(--header-height));
    padding-top: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
}

.hero::before {
    position: absolute;
    top: -8rem;
    right: -14rem;
    width: min(65vw, 860px);
    aspect-ratio: 1;
    content: "";
    opacity: 0.48;
    background:
        repeating-linear-gradient(165deg, transparent 0 27px, rgba(31, 115, 255, 0.07) 28px, transparent 30px),
        radial-gradient(ellipse, rgba(25, 96, 255, 0.23), transparent 62%);
    filter: blur(0.2px);
    transform: rotate(-11deg);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 440px;
    align-items: center;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    gap: clamp(2rem, 4vw, 4rem);
}

.hero-copy h1 {
    max-width: 700px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.6rem, 4.2vw, 3.55rem);
    font-weight: 750;
}

.hero-text {
    max-width: 580px;
    margin-bottom: 2rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.media-placeholder {
    position: relative;
    background:
        linear-gradient(135deg, rgba(25, 63, 120, 0.12), rgba(5, 11, 20, 0.04)),
        repeating-linear-gradient(135deg, transparent 0 26px, rgba(89, 128, 184, 0.025) 27px 28px);
    border: 1px solid rgba(117, 153, 205, 0.1);
}

.hero-visual {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 430px;
    place-items: center;
}

.hero-visual::before {
    position: absolute;
    z-index: 0;
    inset: 14% 8%;
    content: "";
    background: radial-gradient(ellipse, rgba(31, 97, 255, 0.25), transparent 68%);
    filter: blur(32px);
    pointer-events: none;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 116%;
    max-width: none;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.97;
    filter: drop-shadow(0 35px 55px rgba(0, 20, 75, 0.3));
    transform: translateX(-2%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 88%, transparent 100%);
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    margin-top: 3.5rem;
    padding-bottom: 2rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.stat {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.stat-icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    margin-top: 0.2rem;
    place-items: center;
    color: var(--color-blue-light);
    background: rgba(38, 109, 255, 0.12);
    border: 1px solid rgba(55, 128, 255, 0.27);
    border-radius: 7px;
    font-size: 0.7rem;
}

.stat p {
    display: flex;
    margin-bottom: 0;
    flex-direction: column;
}

.stat strong {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.stat p span {
    margin-top: 0.2rem;
    color: var(--color-muted);
    font-size: 0.69rem;
}

.trusted {
    padding-block: 2.1rem 2.5rem;
    background: rgba(3, 9, 16, 0.58);
    border-block: 1px solid var(--color-line);
}

.micro-label {
    margin-bottom: 1.8rem;
    text-align: center;
    font-size: 0.6rem;
}

.logo-row {
    display: grid;
    width: 100%;
    min-width: 0;
    align-items: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.client-logo {
    display: flex;
    min-width: 0;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    color: #929ba8;
    opacity: 0.72;
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.client-logo:hover {
    color: #c2c8d0;
    opacity: 1;
    transform: translateY(-2px);
}

.client-logo--lunchly,
.client-logo--jd-balam {
    font-size: clamp(0.86rem, 1.25vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-heading {
    display: flex;
    margin-bottom: 2.4rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.section-heading.compact {
    margin-bottom: 3.5rem;
}

.section-heading .eyebrow,
.technology-heading .eyebrow,
.testimonial-heading .eyebrow {
    margin-bottom: 0.85rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 250px;
    padding: 1.55rem;
    overflow: hidden;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(12, 24, 40, 0.88), rgba(7, 15, 26, 0.82));
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card::after {
    position: absolute;
    top: -5rem;
    left: -4rem;
    width: 10rem;
    height: 10rem;
    content: "";
    opacity: 0;
    background: radial-gradient(circle, rgba(42, 99, 255, 0.17), transparent 70%);
    transition: opacity 220ms ease;
}

.service-card:hover {
    border-color: rgba(60, 125, 247, 0.36);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 1.25rem;
    place-items: center;
    background: rgba(37, 115, 255, 0.12);
    border: 1px solid currentColor;
    border-radius: 12px;
    box-shadow: 0 0 24px currentColor;
    font-size: 1.15rem;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-blue { color: #3a8cff; }
.icon-green { color: var(--color-green); }
.icon-purple { color: #9d56ff; }
.icon-orange { color: var(--color-orange); }

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    margin-bottom: 1.2rem;
    color: var(--color-muted);
    font-size: 0.74rem;
    line-height: 1.7;
}

.service-card > a {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: #5b99ff;
    font-size: 0.7rem;
    font-weight: 600;
}

.projects {
    padding-top: 2rem;
}

.carousel-wrap {
    position: relative;
}

.projects-track {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.projects-track::-webkit-scrollbar {
    display: none;
}

.project-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    transition: border-color 200ms ease, transform 200ms ease;
}

.project-card:hover {
    border-color: rgba(69, 131, 255, 0.42);
    transform: translateY(-4px);
}

.project-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card:focus-within {
    border-color: rgba(69, 131, 255, 0.62);
}

.project-media {
    position: relative;
    min-height: 215px;
    aspect-ratio: 1.46 / 1;
    overflow: hidden;
    background: #07111f;
    border: 0;
    border-bottom: 1px solid var(--color-line);
}

.project-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to bottom, transparent 58%, rgba(3, 9, 17, 0.58));
    pointer-events: none;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease, filter 450ms ease;
}

.project-card:hover .project-media img {
    filter: brightness(1.06);
    transform: scale(1.035);
}

.project-copy {
    min-height: 155px;
    padding: 1.15rem 1.25rem 1.35rem;
}

.project-tag {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--color-blue-light);
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-copy h3 {
    margin-bottom: 0.55rem;
}

.project-copy p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.7rem;
    line-height: 1.6;
}

.carousel-button,
.testimonial-control {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #d9e7ff;
    background: rgba(10, 20, 34, 0.92);
    border: 1px solid var(--color-line-strong);
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.carousel-button:hover,
.testimonial-control:hover {
    background: #12223a;
    border-color: rgba(69, 131, 255, 0.5);
}

.carousel-button:disabled {
    cursor: default;
    opacity: 0.35;
}

.carousel-prev {
    top: 45%;
    left: -1.3rem;
}

.carousel-next {
    top: 45%;
    right: -1.3rem;
}

.technologies {
    padding-top: 1rem;
}

.technology-panel {
    display: grid;
    padding: 2rem 2.2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 22, 37, 0.88), rgba(7, 14, 25, 0.75));
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    grid-template-columns: 1.3fr 4.7fr;
    gap: 2rem;
}

.technology-heading h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.65rem;
    color: #d9dfe9;
    font-size: 0.69rem;
}

.tech-logo {
    display: grid;
    min-width: 42px;
    height: 42px;
    padding-inline: 0.4rem;
    place-items: center;
    color: #f4f7fb;
    background: #050b13;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.tech-logo img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.tech-logo.next {
    background: #050b13;
    border-color: rgba(255, 255, 255, 0.12);
}

.tech-logo.next img { filter: invert(1); }
.tech-logo.aws img { width: 35px; }
.tech-logo.docker img { width: 33px; }

.process {
    padding-top: 2.5rem;
}

.process-timeline {
    position: relative;
}

.process-connector {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: visible;
    pointer-events: none;
}

.process-list {
    position: relative;
    z-index: 1;
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.process-step {
    position: relative;
    padding-top: 4rem;
}

.step-number {
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    left: 0;
    color: var(--color-subtle);
    font-size: 0.68rem;
}

.step-icon {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 3.2rem;
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: #58a2ff;
    background: #091425;
    border: 1px solid rgba(45, 119, 255, 0.55);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(35, 109, 255, 0.18);
}

.step-icon.purple {
    color: #ae68ff;
    border-color: rgba(135, 69, 255, 0.55);
    box-shadow: 0 0 25px rgba(119, 55, 255, 0.18);
}

.step-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-step h3 {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.process-step p {
    max-width: 190px;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.7rem;
    line-height: 1.65;
}

.testimonials {
    padding-top: 2.5rem;
}

.testimonials-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1.05fr 1.95fr;
    gap: clamp(3rem, 8vw, 7rem);
}

.testimonial-shell {
    position: relative;
    min-height: 230px;
    padding: 2rem 2.2rem 2.5rem;
    background: linear-gradient(145deg, rgba(11, 24, 41, 0.92), rgba(7, 15, 27, 0.9));
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
}

.testimonial {
    animation: fade-in 250ms ease both;
}

.testimonial > p {
    margin-bottom: 0.65rem;
    color: #aab3c0;
    font-size: 0.77rem;
    line-height: 1.75;
}

.rating {
    margin-bottom: 0.7rem;
    color: #ffb427;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-photo {
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    overflow: hidden;
    border-color: rgba(78, 136, 255, 0.25);
    border-radius: 50%;
}

.author p {
    display: flex;
    margin: 0;
    flex-direction: column;
}

.author strong {
    font-size: 0.72rem;
}

.author p span {
    color: var(--color-muted);
    font-size: 0.62rem;
}

.testimonial-control {
    top: 50%;
    transform: translateY(-50%);
}

.testimonial-control.previous {
    left: -4.6rem;
}

.testimonial-control.next {
    right: -1.2rem;
}

.testimonial-dots {
    position: absolute;
    right: 0;
    bottom: 0.75rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 0.42rem;
}

.testimonial-dot {
    width: 5px;
    height: 5px;
    padding: 0;
    background: #364256;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.testimonial-dot.is-active {
    width: 15px;
    background: var(--color-blue);
    border-radius: 10px;
}

.cta-section {
    padding-bottom: var(--section-space);
}

.cta-panel {
    position: relative;
    display: flex;
    min-height: 160px;
    padding: 2.2rem clamp(2rem, 8vw, 9rem);
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background:
        radial-gradient(ellipse at 87% 50%, rgba(43, 113, 255, 0.52), transparent 37%),
        linear-gradient(115deg, rgba(21, 41, 125, 0.85), rgba(24, 30, 118, 0.83) 52%, rgba(18, 62, 168, 0.83));
    border: 1px solid rgba(70, 112, 255, 0.45);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}

.cta-panel::after {
    position: absolute;
    top: -180%;
    right: -9%;
    width: 55%;
    height: 450%;
    content: "";
    opacity: 0.34;
    background: repeating-linear-gradient(170deg, transparent 0 13px, rgba(103, 175, 255, 0.5) 14px, transparent 16px);
    filter: blur(0.5px);
    transform: rotate(12deg);
    pointer-events: none;
}

.cta-panel h2,
.cta-panel .button {
    position: relative;
    z-index: 1;
}

.cta-panel h2 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.site-footer {
    padding-top: 3.5rem;
    background: #02070e;
    border-top: 1px solid var(--color-line);
}

.footer-grid {
    display: grid;
    padding-bottom: 2.8rem;
    grid-template-columns: 1.55fr 0.75fr 1fr 1.6fr;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.footer-about > p {
    max-width: 260px;
    margin: 1.25rem 0 1.35rem;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.75;
}

.social-links {
    display: flex;
    gap: 0.55rem;
}

.social-links a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #9da7b6;
    border: 1px solid var(--color-line-strong);
    border-radius: 50%;
    font-size: 0.78rem;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-links a:hover {
    color: #fff;
    background: rgba(37, 103, 255, 0.12);
    border-color: rgba(54, 123, 255, 0.5);
}

.social-links svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links .social-icon-fill {
    fill: currentColor;
    stroke: none;
}

.social-links .social-dot {
    fill: currentColor;
    stroke: none;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.62rem;
}

.footer-links h2,
.contact-form h2 {
    margin-bottom: 0.65rem;
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-links a {
    color: var(--color-muted);
    font-size: 0.82rem;
    transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
    color: var(--color-blue-light);
    transform: translateX(2px);
}

.contact-form {
    display: grid;
    gap: 0.52rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    color: #f3f6fa;
    background: rgba(9, 17, 28, 0.74);
    border: 1px solid var(--color-line-strong);
    border-radius: 5px;
    font-size: 0.82rem;
    outline: none;
    resize: vertical;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #667184;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(51, 120, 255, 0.68);
    box-shadow: 0 0 0 3px rgba(36, 117, 255, 0.09);
}

.contact-form .button {
    width: 100%;
    min-height: 44px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.contact-form .button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.form-status {
    min-height: 1em;
    margin: 0;
    color: #69d7aa;
    font-size: 0.75rem;
}

.form-status.is-error {
    color: #ff8d94;
}

.contact-strip {
    display: flex;
    padding-block: 1rem;
    align-items: center;
    gap: clamp(1.2rem, 4vw, 3.5rem);
    color: #97a2b2;
    border-block: 1px solid var(--color-line);
    font-size: 0.76rem;
}

.contact-strip a {
    transition: color 180ms ease;
}

.contact-strip a:hover {
    color: var(--color-blue-light);
}

.footer-bottom {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: #667184;
    font-size: 0.72rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom div {
    display: flex;
    gap: 2.5rem;
}

.footer-bottom a:hover {
    color: #b3bdca;
}

.back-to-top {
    position: fixed;
    z-index: 50;
    right: 1.4rem;
    bottom: 1.4rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #dbe7ff;
    background: rgba(39, 75, 160, 0.76);
    border: 1px solid rgba(121, 161, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    :root { --container: 940px; }

    .main-nav { gap: 1.1rem; }
    .header-cta { margin-left: 0; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: 2.5rem; }
    .hero-copy h1 { font-size: clamp(2.45rem, 4.9vw, 3.5rem); }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-media { min-height: 180px; }
    .technology-panel { grid-template-columns: 1fr; }
    .technology-grid { grid-template-columns: repeat(8, minmax(70px, 1fr)); overflow-x: auto; padding-bottom: 0.5rem; }
    .footer-grid { grid-template-columns: 1.3fr 0.7fr 0.9fr 1.4fr; gap: 2rem; }
}

@media (max-width: 860px) {
    :root { --header-height: 70px; }

    .container { width: min(calc(100% - 2.5rem), var(--container)); }
    .header-inner { display: flex; }
    .site-header .header-cta { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav {
        position: fixed;
        z-index: 99;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: flex;
        max-height: 0;
        margin: 0;
        padding: 0 1.25rem;
        overflow: hidden;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        background: rgba(3, 9, 18, 0.98);
        border-bottom: 1px solid transparent;
        opacity: 0;
        pointer-events: none;
        transition: max-height 260ms ease, padding 260ms ease, opacity 180ms ease, border-color 260ms ease;
    }
    .main-nav.is-open { max-height: calc(100vh - var(--header-height)); padding-block: 1rem 1.4rem; border-bottom-color: var(--color-line); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 0.8rem 0.25rem; font-size: 0.88rem; }
    .main-nav a::after { right: auto; bottom: 0.45rem; width: 32px; }

    .hero { min-height: auto; padding-top: 4rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 650px; }
    .hero-visual { min-height: 370px; }
    .stats-grid { margin-top: 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }

    .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .projects-track { overflow-x: auto; scroll-snap-type: x mandatory; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(50% - 0.5rem); }
    .project-card { scroll-snap-align: start; }
    .carousel-button { display: grid; }
    .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 2rem; }
    .process-connector { display: none; }
    .process-step { min-width: 0; min-height: 170px; padding: 4rem 1.2rem 1.2rem; overflow: hidden; background: rgba(8, 18, 31, 0.58); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
    .process-step h3,
    .process-step p { max-width: none; overflow-wrap: anywhere; }
    .step-number { left: 1.2rem; }
    .step-icon { left: 3.7rem; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 2.3rem; }
    .testimonial-control.previous { left: -1.1rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

@media (max-width: 640px) {
    :root { --section-space: 4.4rem; }

    .container { width: min(calc(100% - 2rem), var(--container)); }
    .brand-mark { width: 34px; height: 34px; font-size: 1.2rem; }
    .brand-copy strong { font-size: 0.82rem; }
    .hero { padding-top: 3rem; }
    .hero-grid { gap: 2rem; }
    .hero-copy h1 { font-size: clamp(2.25rem, 12vw, 3.15rem); }
    .hero-text { font-size: 0.86rem; }
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button { width: 100%; }
    .hero-visual { min-height: 280px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
    .stat { gap: 0.55rem; }
    .stat strong { font-size: 1rem; }
    .stat p span { font-size: 0.62rem; }
    .trusted { padding-block: 2rem; }
    .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading .button { align-self: stretch; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 230px; }
    .projects-track { grid-auto-columns: 88%; }
    .carousel-prev { left: -0.65rem; }
    .carousel-next { right: -0.65rem; }
    .technology-panel { width: min(calc(100% - 2rem), var(--container)); padding: 1.5rem; }
    .technology-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
    .process .section-heading.compact { margin-bottom: 2.25rem; }
    .process-timeline::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 1.35rem;
        bottom: 1.35rem;
        left: 1.3rem;
        width: 1px;
        background: linear-gradient(180deg, rgba(36, 117, 255, 0.58), rgba(113, 56, 255, 0.58));
    }
    .process-list { grid-template-columns: 1fr; gap: 1.6rem; }
    .process-step {
        display: grid;
        min-width: 0;
        min-height: 0;
        padding: 0;
        overflow: visible;
        align-items: start;
        grid-template-columns: 2.65rem 1.35rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 0.5rem;
        background: transparent;
        border: 0;
        border-radius: 0;
    }
    .process-step .step-icon {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 42px;
        height: 42px;
    }
    .process-step .step-number {
        position: static;
        grid-column: 2;
        grid-row: 1;
        padding-top: 0.7rem;
        color: #6d7890;
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1;
    }
    .process-step h3 {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        margin: 0.53rem 0 0.32rem;
        font-size: 0.9rem;
        line-height: 1.25;
    }
    .process-step p {
        grid-column: 3;
        grid-row: 2;
        min-width: 0;
        max-width: none;
        font-size: 0.72rem;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }
    .testimonial-shell { padding: 1.5rem 1.6rem 2.5rem; }
    .testimonial-control.previous { left: -0.75rem; }
    .testimonial-control.next { right: -0.75rem; }
    .cta-panel { padding: 2rem 1.5rem; align-items: flex-start; flex-direction: column; }
    .cta-panel .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about,
    .contact-form { grid-column: 1 / -1; }
    .footer-about > p { max-width: 360px; }
    .contact-strip { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
    .footer-bottom { padding-block: 1.3rem; align-items: flex-start; flex-direction: column; gap: 0.7rem; }
    .footer-bottom div { flex-wrap: wrap; gap: 1rem 1.5rem; }
}

@media (max-width: 420px) {
    .eyebrow { font-size: 0.58rem; letter-spacing: 0.1em; }
    .eyebrow span { margin-inline: 0.14rem; }
    .hero-copy h1 { font-size: 2.1rem; }
    .hero-visual { min-height: 235px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat { padding: 0.75rem; background: rgba(7, 16, 29, 0.6); border: 1px solid var(--color-line); border-radius: 10px; }
    .technology-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about,
    .contact-form { grid-column: auto; }
    .back-to-top { right: 1rem; bottom: 1rem; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
