:root {
    --bg: #f4f1ea;
    --paper: #fffdf8;
    --ink: #16181d;
    --muted: #525963;
    --brand: #0f766e;
    --brand-2: #f97316;
    --line: #dad6cc;
    --shadow: 0 20px 45px rgba(18, 34, 35, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(15, 118, 110, 0.08), transparent 30%),
        radial-gradient(circle at 90% 18%, rgba(249, 115, 22, 0.08), transparent 26%),
        linear-gradient(180deg, #f8f5ef 0%, #efe9dd 100%);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

.section-pad {
    padding: 96px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.77rem;
}

.glass-nav {
    background: rgba(255, 253, 248, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(22, 24, 29, 0.08);
}

.navbar {
    padding: 0.8rem 0;
}

.nav-link {
    color: var(--ink);
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand);
}

.navbar .container {
    position: relative;
}

.mega-dropdown {
    position: static;
}

.mega-menu {
    left: 0;
    right: 0;
    margin-top: 0.65rem;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 1rem;
    background: #fffdf9;
    overflow: hidden;
}

.mega-menu-inner {
    max-height: 68vh;
    overflow: auto;
    padding: 1rem;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.mega-menu-column {
    background: #ffffff;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 0.8rem;
    padding: 0.85rem;
}

.mega-root {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: #0d5f58;
    margin-bottom: 0.65rem;
    text-decoration: none;
}

.mega-root:hover {
    color: #0a4e49;
}

.mega-group + .mega-group {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(22, 24, 29, 0.12);
}

.mega-child {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.mega-child:hover {
    color: #0f766e;
}

.mega-grand-list {
    margin: 0;
    padding-left: 1rem;
}

.mega-grand-list li {
    margin-bottom: 0.2rem;
}

.mega-grand {
    color: #4b5563;
    font-size: 0.84rem;
    text-decoration: none;
    line-height: 1.35;
}

.mega-grand:hover {
    color: #0f766e;
}

.mobile-categories-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    font-weight: 600;
    color: var(--ink);
}

.mobile-categories-offcanvas {
    max-width: 100vw;
}

.mobile-category-list {
    display: grid;
    gap: 1rem;
}

.mobile-category-section {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(22, 24, 29, 0.08);
}

.mobile-category-root-link {
    display: block;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: 0.55rem;
}

.mobile-category-child {
    display: block;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.mobile-category-child + .mobile-category-child {
    margin-top: 0.3rem;
}

.mobile-category-child:hover,
.mobile-category-root-link:hover {
    color: var(--brand);
}

.hero {
    padding-top: 160px;
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: clip;
    color: #f6f3eb;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(7, 19, 24, 0.82), rgba(10, 41, 48, 0.58) 42%, rgba(18, 24, 31, 0.76)),
        radial-gradient(circle at 80% 30%, rgba(15, 118, 110, 0.4), transparent 30%),
        radial-gradient(circle at 18% 72%, rgba(249, 115, 22, 0.16), transparent 22%),
        url('../img/hero-tech.svg'),
        linear-gradient(135deg, #091216 0%, #10252d 45%, #162026 100%);
    background-position: center, center, center, center, center;
    background-repeat: no-repeat;
    background-size: cover, auto, auto, cover, cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 12, 0.14), rgba(5, 10, 12, 0.36));
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(24px);
}

.hero-glow-1 {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 12%;
    background: rgba(14, 165, 160, 0.18);
}

.hero-glow-2 {
    width: 220px;
    height: 220px;
    left: 8%;
    bottom: 16%;
    background: rgba(249, 115, 22, 0.14);
}

.hero-content {
    position: relative;
}

.hero-eyebrow {
    color: #8ce2db;
}

.hero-title {
    max-width: 12ch;
    line-height: 1.02;
    text-wrap: balance;
}

.hero-lead {
    max-width: 58ch;
    color: rgba(246, 243, 235, 0.82);
}

.hero-panel {
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-panel h2,
.hero-panel p,
.hero-panel hr,
.hero-panel i {
    color: var(--ink);
}

.hero-panel .region-badge {
    color: #0b5f57;
}

.hero-secondary-btn {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.hero-secondary-btn:hover,
.hero-secondary-btn:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

.region-badge {
    background: #dff2ef;
    color: #0b5f57;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
}

.btn-accent {
    background: linear-gradient(120deg, var(--brand), #0ea5a0);
    color: #fff;
    border: 0;
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: linear-gradient(120deg, #0d6b63, #09918d);
}

.section-soft {
    background: rgba(255, 253, 248, 0.55);
    border-top: 1px solid rgba(22, 24, 29, 0.05);
    border-bottom: 1px solid rgba(22, 24, 29, 0.05);
}

.service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(22, 24, 29, 0.04);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 34px rgba(22, 24, 29, 0.12);
}

.service-icon {
    color: var(--brand-2);
    font-size: 1.4rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.metric-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1rem;
}

.metric-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--brand);
}

.person-card,
.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
}

.founder-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.7rem;
    border: 1px solid rgba(22, 24, 29, 0.08);
}

.form-control {
    border-color: #cfc8bc;
    padding: 0.7rem 0.9rem;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

footer {
    border-top: 1px solid rgba(22, 24, 29, 0.08);
    background: rgba(255, 253, 248, 0.65);
    color: #3e454f;
}

.bg-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(44px);
    z-index: -1;
}

.orb-1 {
    top: -140px;
    left: -110px;
    background: rgba(15, 118, 110, 0.22);
}

.orb-2 {
    right: -120px;
    bottom: -180px;
    background: rgba(249, 115, 22, 0.22);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-pad {
        padding: 72px 0;
    }

    .hero {
        padding-top: 128px;
        min-height: auto;
    }

    .hero-title {
        max-width: 14ch;
    }

    .mega-menu {
        display: none;
    }

    .mobile-categories-offcanvas {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .mega-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-categories-trigger,
    .mobile-categories-offcanvas {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100vw - 9.5rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.05rem;
    }

    .navbar-toggler {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}
