:root {
    --bg: #f4f5ef;
    --bg-soft: #ebece4;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #102019;
    --muted: #52615a;
    --line: rgba(16, 32, 25, 0.12);
    --brand: #0f766e;
    --brand-deep: #0a4d47;
    --accent: #f59e0b;
    --dark: #102019;
    --dark-soft: #17322a;
    --success: #d1fae5;
    --success-text: #065f46;
    --error: #fee2e2;
    --error-text: #991b1b;
    --shadow: 0 24px 80px rgba(16, 32, 25, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at right 20%, rgba(245, 158, 11, 0.14), transparent 22%),
        linear-gradient(180deg, #f8f8f4 0%, var(--bg) 100%);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem 0;
    backdrop-filter: blur(16px);
    background: rgba(248, 248, 244, 0.82);
    border-bottom: 1px solid rgba(16, 32, 25, 0.06);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
}

.site-nav a:not(.button):hover {
    color: var(--brand);
}

.site-nav a.is-active {
    color: var(--brand);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1rem;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-link {
    display: inline-flex;
    align-items: center;
}

.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.is-active .nav-dropdown-link,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-link,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-link {
    color: var(--brand);
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.nav-dropdown-caret {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    min-width: 250px;
    display: none;
    padding: 0.8rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 32, 25, 0.08);
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    gap: 0.35rem;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    transition: background 180ms ease, color 180ms ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-strong);
    padding: 0.9rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 2px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 54px;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 16px 40px rgba(15, 118, 110, 0.26);
    border: 0;
}

.button-secondary {
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(255, 255, 255, 0.65);
}

.button-small {
    min-height: 44px;
    padding: 0.75rem 1.2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-section {
    padding: 2.5rem 0;
}

.hero-carousel-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.about-grid,
.contact-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    box-shadow: var(--shadow);
}

.hero-carousel-track {
    position: relative;
    min-height: 380px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 32, 25, 0.8), rgba(16, 32, 25, 0.36));
}

.hero-banner-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 680px;
    padding: 1.8rem 5.5rem 2rem;
}

.hero-banner-content h1 {
    margin: 0 0 1.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 3vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #f7fbf9;
}

.hero-banner-content h1 span {
    color: var(--accent);
}

.hero-banner-content .eyebrow {
    color: rgba(247, 251, 249, 0.84);
}

.hero-banner-content .eyebrow::before {
    background: rgba(245, 158, 11, 0.92);
}

.section-heading p,
.about-panel p,
.contact-copy p,
.project-body p,
.service-card p,
.site-footer p,
.contact-list span,
.contact-highlight span {
    color: var(--muted);
    line-height: 1.75;
}

.hero-carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    color: #f7fbf9;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease;
    pointer-events: auto;
}

.hero-carousel-arrow:hover {
    transform: translateY(calc(-50% - 2px));
    opacity: 0.8;
}

.hero-carousel-arrow:not(.hero-carousel-arrow-next) {
    left: 1.4rem;
}

.hero-carousel-arrow-next {
    right: 1.4rem;
}

.hero-carousel-arrow span {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(1px, -1px);
}

.hero-carousel-arrow-next span {
    transform: rotate(-135deg) translate(1px, -1px);
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 32, 25, 0.26);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.hero-carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.hero-carousel-dot.is-active {
    transform: scale(1.12);
    background: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions-below {
    margin: 1.2rem 0 0.9rem;
    justify-content: center;
}

.hero-summary,
.stat-card,
.service-card,
.contact-highlight,
.contact-form,
.about-panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-summary span {
    display: inline-flex;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 32, 25, 0.08);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.stat-card strong,
.service-card h3,
.contact-copy h2,
.contact-form label,
.site-footer strong,
.section-heading h2,
.about-panel h2 {
    display: block;
}

.section {
    padding: 5.5rem 0;
}

.page-intro {
    padding: 3.25rem 0 1rem;
}

.page-intro-panel {
    max-width: 860px;
    padding: 2.4rem;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(10, 77, 71, 0.98));
    color: #f4fbf8;
    box-shadow: var(--shadow);
}

.page-intro-panel .eyebrow {
    color: rgba(244, 251, 248, 0.88);
}

.page-intro-panel .eyebrow::before {
    background: rgba(245, 158, 11, 0.9);
}

.page-intro-panel h1 {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.page-intro-panel p {
    max-width: 720px;
    margin: 0;
    color: rgba(244, 251, 248, 0.82);
    line-height: 1.75;
}

.section-muted {
    background: linear-gradient(180deg, rgba(235, 236, 228, 0.74) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.6rem;
}

.section-heading h2,
.about-panel h2,
.contact-copy h2 {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.service-grid,
.stats-grid {
    display: grid;
    gap: 1.4rem;
}

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

.service-card {
    padding: 1.7rem;
    border-radius: var(--radius-lg);
}

.niche-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.niche-title {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--brand-deep);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.niche-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.niche-item {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(16, 32, 25, 0.08);
    box-shadow: 0 14px 40px rgba(16, 32, 25, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.niche-item:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 22px 48px rgba(16, 32, 25, 0.12);
}

.niche-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.niche-item-body {
    padding: 1rem 1rem 1.15rem;
}

.niche-item h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.niche-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.05));
    position: relative;
}

.service-icon span,
.service-icon::before,
.service-icon::after {
    position: absolute;
    content: '';
}

.service-icon-code span {
    inset: 18px 14px;
    border-top: 3px solid var(--brand);
    border-bottom: 3px solid var(--brand);
}

.service-icon-phone span {
    inset: 12px 18px;
    border: 3px solid var(--brand);
    border-radius: 14px;
}

.service-icon-cloud span {
    left: 12px;
    right: 12px;
    bottom: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.22);
}

.service-icon-database span {
    left: 14px;
    right: 14px;
    top: 12px;
    bottom: 12px;
    border: 3px solid var(--brand);
    border-radius: 50% / 18%;
}

.service-icon-shield span {
    left: 18px;
    right: 18px;
    top: 12px;
    bottom: 14px;
    border: 3px solid var(--brand);
    clip-path: polygon(50% 0, 100% 18%, 84% 100%, 16% 100%, 0 18%);
}

.service-icon-workflow span {
    top: 18px;
    left: 14px;
    right: 14px;
    bottom: 18px;
    border: 3px dashed var(--brand);
    border-radius: 16px;
}

.about-panel,
.contact-highlight,
.contact-form {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

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

.stat-card {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
}

.stat-card strong {
    margin-bottom: 0.4rem;
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.specialty-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.specialty-content h2 {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.specialty-content p {
    margin: 0 0 1.5rem;
    color: var(--muted);
    line-height: 1.75;
}

.specialty-points {
    display: grid;
    gap: 0.9rem;
}

.specialty-point {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(16, 32, 25, 0.08);
    box-shadow: var(--shadow);
    font-weight: 600;
}

.specialty-visual img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.contact-list div {
    display: grid;
    gap: 0.35rem;
}

.contact-list strong,
.contact-highlight span:first-child,
.site-footer strong {
    font-weight: 800;
}

.contact-highlight {
    display: grid;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(10, 77, 71, 0.96));
}

.contact-highlight span {
    color: rgba(248, 251, 250, 0.88);
}

.contact-form {
    display: grid;
    gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(16, 32, 25, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-alert {
    margin-bottom: 0.5rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-weight: 700;
}

.form-alert-success {
    background: var(--success);
    color: var(--success-text);
}

.form-alert-error {
    background: var(--error);
    color: var(--error-text);
}

.site-footer {
    padding: 3rem 0 2rem;
    color: #d8e4df;
    background: #0c1713;
}

.footer-grid > div {
    display: grid;
    gap: 0.65rem;
}

.brand-footer {
    font-size: 1.55rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(216, 228, 223, 0.72);
}

.page-home {
    min-height: 100vh;
    overflow-x: hidden;
}

.page-home .site-header {
    position: fixed;
    left: 0;
    right: 0;
}

.home-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5.5rem;
}

.page-home .hero-section {
    width: 100%;
    padding: 1rem 0;
}

@media (max-width: 980px) {
    .about-grid,
    .contact-grid,
    .specialty-grid,
    .footer-grid,
    .service-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-carousel,
    .hero-carousel-track,
    .hero-slide img {
        min-height: 340px;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--shadow);
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0.65rem;
        padding: 0.5rem;
        border-radius: 18px;
        box-shadow: none;
        background: rgba(15, 118, 110, 0.05);
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-link {
        flex: 1;
    }

    .nav-dropdown-toggle {
        width: auto;
        min-width: 40px;
        justify-content: center;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-carousel,
    .hero-carousel-track,
    .hero-slide img {
        min-height: 300px;
    }

    .hero-banner-content {
        padding: 1.35rem 3.8rem 1.6rem;
    }

    .hero-carousel-arrow {
        padding: 0.15rem;
    }

    .hero-carousel-arrow:not(.hero-carousel-arrow-next) {
        left: 0.8rem;
    }

    .hero-carousel-arrow-next {
        right: 0.8rem;
    }

    .hero-carousel-dots {
        bottom: 0.9rem;
        padding: 0.4rem 0.65rem;
    }

    .niche-list {
        grid-template-columns: 1fr;
    }

    .section,
    .site-footer {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
