:root {
    --primary: #061a2f;
    --primary-dark: #041323;
    --accent: #f9a826;
    --accent-soft: rgba(249, 168, 38, 0.12);
    --bg: #f4f7fb;
    --panel: #ffffff;
    --muted: #5f7286;
    --text: #172233;
    --line: rgba(16, 37, 62, 0.08);
    --chip: #edf3fb;
    --shadow: 0 18px 38px rgba(9, 25, 45, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(4, 19, 35, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.04em;
    color: #fff;
}

.brand-logo {
    display: block;
    width: 150px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffb84d, #ff8c00);
    color: #061a2f;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 153, 0, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.main-nav a {
    transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    padding: 0.95rem 1.4rem;
    background: linear-gradient(135deg, #f5b14e, #f39c20);
    color: var(--primary-dark);
    box-shadow: 0 16px 30px rgba(243, 156, 32, 0.22);
}

.hero,
.page-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.page-hero {
    min-height: 280px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 19, 35, 0.9), rgba(6, 26, 47, 0.72));
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 19, 35, 0.85), rgba(6, 26, 47, 0.65));
    z-index: -1;
}

.hero-content {
    position: relative;
    padding: 56px 0 44px;
    color: #fff;
}

.breadcrumb {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 3vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 570px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.hero-text-link {
    color: #fff;
    font-weight: 700;
}

.hero-text-link span {
    color: #ffd078;
    margin-left: 6px;
}

.home-hero {
    min-height: 920px;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1496181133206-80ce9b88a853?auto=format&fit=crop&w=1800&q=85');
    background-position: center 42%;
}

.home-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(3, 14, 32, 0.94) 0%, rgba(4, 22, 47, 0.82) 44%, rgba(2, 13, 30, 0.96) 100%);
}

.home-hero .hero-content {
    width: min(1100px, calc(100% - 32px));
    padding: 62px 0 54px;
    text-align: center;
}

.home-hero .hero-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 12px;
    color: #45adff;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero-kicker span {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #168cff);
}

.hero-kicker span:last-child {
    background: linear-gradient(90deg, #168cff, transparent);
}

.home-hero h1 {
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.home-hero h1 strong {
    color: #168cff;
    font-weight: 800;
}

.home-hero .hero-summary {
    max-width: none;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.home-hero .hero-actions {
    justify-content: center;
    margin-top: 26px;
}

.home-hero .hero-text-link {
    display: none;
}

.home-hero .btn-primary,
.nav-cta {
    background: linear-gradient(100deg, #075dff, #21b9ff);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 130, 255, 0.35);
}

.hero-showcase {
    position: relative;
    width: min(780px, 90%);
    height: 300px;
    margin: 30px auto 0;
    perspective: 900px;
}

.showcase-screen {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 78%;
    height: 245px;
    padding: 22px 28px;
    overflow: hidden;
    border: 6px solid #172a44;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(145deg, #06152d, #092c57 70%, #126cc5);
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.45), 0 0 40px rgba(13, 127, 255, 0.25);
    transform: translateX(-50%) rotateX(4deg) rotateY(-8deg);
}

.showcase-screen::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 260px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 143, 255, 0.58), transparent 68%);
}

.screen-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 0.72rem;
}

.screen-nav span {
    margin-right: auto;
    color: #64c4ff;
    font-weight: 800;
}

.screen-nav i {
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.45);
}

.screen-nav b {
    width: 66px;
    height: 20px;
    border-radius: 99px;
    background: #159bff;
}

.screen-copy {
    position: relative;
    z-index: 1;
    margin-top: 38px;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 0.98;
    text-align: left;
}

.screen-copy em {
    color: #48b9ff;
    font-style: normal;
}

.screen-chart {
    position: absolute;
    right: 34px;
    bottom: 38px;
    display: flex;
    align-items: end;
    gap: 7px;
    height: 86px;
}

.screen-chart i {
    width: 16px;
    height: 35%;
    border-radius: 3px 3px 0 0;
    background: #1a8fff;
}

.screen-chart i:nth-child(2) { height: 52%; }
.screen-chart i:nth-child(3) { height: 44%; }
.screen-chart i:nth-child(4) { height: 72%; }
.screen-chart i:nth-child(5) { height: 94%; background: #62caff; }

.screen-caption {
    position: absolute;
    left: 28px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.62rem;
}

.showcase-phone {
    position: absolute;
    right: 4%;
    bottom: 0;
    width: 58px;
    height: 120px;
    border: 4px solid #d9e9f7;
    border-radius: 10px;
    background: linear-gradient(160deg, #0a2f5d, #0a77dc);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
    transform: rotate(8deg);
}

.hero-services,
.hero-proof {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    width: min(760px, 94%);
    margin: -5px auto 0;
}

.hero-services {
    grid-template-columns: repeat(4, 1fr);
}

.hero-services > a {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 14px 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(248, 252, 255, 0.94);
    color: #10213a;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-services > a:hover {
    transform: translateY(-4px);
    border-color: #168cff;
}

.hero-services .hero-service-active {
    border-color: #087fff;
    background: linear-gradient(155deg, #062b64, #0757bc);
    color: #fff;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #e8f2ff;
    color: #087fff;
    font-size: 1.2rem;
}

.hero-services strong {
    font-size: 0.76rem;
}

.hero-services small {
    color: #087fff;
    letter-spacing: 0.16em;
}

.hero-proof {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
    margin-top: 18px;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(5, 17, 39, 0.7);
}

.hero-proof div {
    display: grid;
    border-right: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
}

.hero-proof strong {
    font-size: 1.5rem;
}

.hero-proof span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
}

.hero-proof .btn {
    padding: 0.78rem 1rem;
    font-size: 0.78rem;
}

.filter-bar {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #fff;
    color: var(--primary-dark);
    border-color: transparent;
}

.hero-art {
    position: absolute;
    right: 0;
    bottom: 42px;
    width: 265px;
    height: 172px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(8, 31, 54, 0.66);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(9px);
    transform: rotate(3deg);
}

.hero-art-topline {
    display: flex;
    gap: 5px;
}

.hero-art-topline span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.hero-art-chart {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 78px;
    margin-top: 16px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-art-chart i {
    display: block;
    width: 20px;
    height: 38%;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #ffd078, #f39c20);
}

.hero-art-chart i:nth-child(2) { height: 58%; }
.hero-art-chart i:nth-child(3) { height: 45%; }
.hero-art-chart i:nth-child(4) { height: 76%; }
.hero-art-chart i:nth-child(5) { height: 63%; }
.hero-art-chart i:nth-child(6) { height: 92%; background: linear-gradient(180deg, #9ed9ff, #398cc8); }

.hero-art-donut {
    position: absolute;
    top: 42px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 7px solid rgba(255, 255, 255, 0.18);
    border-top-color: #f5b14e;
    border-right-color: #398cc8;
    border-radius: 50%;
    transform: rotate(24deg);
}

.hero-art-label {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
}

.hero-art-label strong {
    color: #ffd078;
    font-size: 0.8rem;
}

.portfolio-section {
    padding: 60px 0 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.portfolio-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(9, 25, 45, 0.12);
}

.portfolio-card.hidden {
    display: none;
}

.card-image-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #dfeaf6;
}

.project-number {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(4, 19, 35, 0.68);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    backdrop-filter: blur(7px);
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .card-image-wrap img {
    transform: scale(1.04);
}

.card-content {
    padding: 22px 20px 24px;
}

.project-tag {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #b86e00;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-content h2 {
    margin: 16px 0 10px;
    font-size: clamp(1.45rem, 1.7vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
}

.card-content p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.96rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-list span {
    background: var(--chip);
    border-radius: 999px;
    color: var(--primary);
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-link span {
    display: inline-block;
    font-size: 1.2rem;
}

.form-page-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    min-height: 260px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.form-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 19, 35, 0.9), rgba(6, 26, 47, 0.7));
    z-index: -1;
}

.compact-hero {
    padding: 42px 0 24px;
}

.project-form-section {
    padding: 52px 0 80px;
}

.form-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.form-intro h3 {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    letter-spacing: -0.05em;
    color: var(--primary-dark);
}

.form-intro .eyebrow {
    color: #0d2f53;
}

.form-intro p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.form-success {
    background: rgba(18, 172, 94, 0.08);
    border: 1px solid rgba(18, 172, 94, 0.18);
    color: #0d6f45;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0 auto 22px;
    max-width: 760px;
    font-weight: 600;
}

.project-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-form label {
    display: block;
    color: var(--primary-dark);
    font-weight: 600;
}

.project-form label span {
    display: block;
    margin-bottom: 8px;
}

.project-form input,
.project-form select,
.project-form textarea {
    width: 100%;
    border: 1px solid rgba(16, 37, 62, 0.12);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #f9fbfe;
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
    outline: none;
    border-color: rgba(20, 108, 196, 0.7);
    box-shadow: 0 0 0 4px rgba(20, 108, 196, 0.08);
    background: #fff;
}

.project-form textarea {
    resize: vertical;
    min-height: 150px;
}

.full-width {
    grid-column: 1 / -1;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    border: 1px solid rgba(16, 37, 62, 0.08);
    border-radius: 14px;
    background: #f9fbfe;
    padding: 16px 18px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text);
}

.checkbox-grid input {
    width: auto;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
}

.page-section {
    padding: 72px 0;
}

 main > .page-section:last-of-type,
main > .portfolio-section:last-of-type,
main > .project-form-section:last-of-type {
    margin-bottom: 52px;
}

.alt-bg {
    background: #edf3fb;
}

.two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.two-column h2,
.section-heading h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.05em;
    color: var(--primary-dark);
}

.two-column p,
.info-panel p,
.feature-card p,
.team-card p,
.legal-block p,
.faq-item p {
    color: var(--muted);
}

.info-panel,
.contact-card,
.feature-card,
.team-card,
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
}

.check-list li::before {
    content: "✓";
    color: #0f905a;
    margin-right: 10px;
}

.feature-grid {
    display: grid;
    gap: 24px;
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3,
.info-panel h3,
.contact-card h3,
.team-card h3,
.faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.service-index {
    display: block;
    margin-bottom: 18px;
    color: #c47b0d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.feature-card .project-link {
    margin-top: 6px;
    font-size: 0.9rem;
}

.section-heading > p:last-child {
    max-width: 650px;
    color: var(--muted);
}

.section-heading {
    margin-bottom: 26px;
}

.home-services {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #03132d, #082d5a 62%, #061a3b);
}

.home-services::before,
.home-services::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.home-services::before {
    top: -160px;
    right: -90px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(23, 142, 255, 0.25), transparent 68%);
}

.home-services::after {
    bottom: -220px;
    left: -130px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 89, 255, 0.18), transparent 67%);
}

.home-services > .container {
    position: relative;
    z-index: 1;
}

.home-services .section-heading {
    max-width: 720px;
}

.home-services .section-heading .eyebrow {
    color: #4db8ff;
}

.home-services .section-heading h2 {
    color: #fff;
}

.home-services .section-heading > p:last-child {
    color: rgba(255, 255, 255, 0.7);
}

.home-services .feature-card {
    position: relative;
    min-height: 270px;
    border: 1px solid rgba(126, 204, 255, 0.35);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(11, 61, 116, 0.86), rgba(4, 28, 66, 0.9));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-services .feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 184, 255, 0.9);
    box-shadow: 0 24px 44px rgba(0, 94, 206, 0.24), 0 0 24px rgba(0, 137, 255, 0.14);
}

.home-services .service-index {
    color: #4db8ff;
}

.home-services .feature-card h3 {
    color: #fff;
}

.home-services .feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

.home-services .feature-card .project-link {
    color: #63c3ff;
}

.center {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stats-grid div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stats-grid strong {
    display: block;
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    color: var(--primary-dark);
    letter-spacing: -0.05em;
}

.stats-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #061a2f, #0d2f53);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.faq-wrap {
    display: grid;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.legal-block {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.contact-layout {
    align-items: stretch;
}

.full-width-btn {
    width: 100%;
}

.eyebrow.dark {
    color: var(--primary-dark);
}

.site-footer {
    background: #061a2f;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 54px;
    margin-top: 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 32px;
}

.footer-brand-block p {
    margin-top: 18px;
    max-width: 420px;
}

.site-footer h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.02rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #fff;
}

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.74);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 980px) {
    .hero-art {
        right: 20px;
        opacity: 0.62;
        transform: scale(0.86) rotate(3deg);
        transform-origin: right bottom;
    }

    .home-hero {
        min-height: 860px;
    }

    .hero-showcase {
        width: 92%;
    }

    .portfolio-grid,
    .team-grid,
    .three-col,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-art {
        display: none;
    }

    .home-hero {
        min-height: 730px;
    }

    .home-hero .hero-content {
        padding-top: 34px;
    }

    .site-header {
        position: relative;
    }

    .nav-wrap {
        min-height: 64px;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 8px 0 10px;
    }

    .main-nav {
        display: flex;
        order: 3;
        width: 100%;
        gap: 20px;
        overflow-x: auto;
        padding: 3px 0 4px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        font-size: 0.78rem;
    }

    .nav-cta {
        padding: 0.65rem 0.85rem;
        font-size: 0.72rem;
    }

    .home-hero .hero-kicker {
        font-size: 1rem;
    }

    .hero-kicker span {
        width: 28px;
    }

    .hero-showcase {
        height: 220px;
        width: 100%;
        margin-top: 24px;
    }

    .showcase-screen {
        width: 88%;
        height: 178px;
        padding: 14px;
    }

    .screen-copy {
        margin-top: 25px;
        font-size: 1.25rem;
    }

    .screen-chart {
        right: 14px;
        bottom: 24px;
        height: 58px;
    }

    .screen-chart i {
        width: 10px;
    }

    .screen-caption {
        left: 14px;
        bottom: 10px;
        font-size: 0.48rem;
    }

    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        width: 94%;
        margin-top: -30px;
    }

    .hero-services > a {
        padding: 10px 5px;
    }

    .hero-services strong {
        font-size: 0.68rem;
    }

    .hero-proof {
        grid-template-columns: repeat(3, 1fr);
        width: 94%;
        padding: 10px;
        margin-top: 14px;
    }

    .hero-proof div {
        text-align: center;
    }

    .hero-proof strong {
        font-size: 1.05rem;
    }

    .hero-proof .btn {
        grid-column: 1 / -1;
        margin-top: 5px;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand-logo {
        width: 132px;
        height: 40px;
    }

    .btn-primary {
        padding: 0.8rem 1.1rem;
        font-size: 0.9rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero,
    .page-hero {
        min-height: 360px;
    }

    .portfolio-grid,
    .footer-grid,
    .cta-box,
    .foot-bottom,
    .team-grid,
    .three-col,
    .stats-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cta-box,
    .foot-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cta-box {
        text-align: center;
        justify-items: center;
    }

    .foot-bottom {
        justify-items: start;
    }
}
