:root {
    --bg: #0b1220;
    --bg-soft: #111b2f;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: #ffffff;
    --surface-muted: #f3f5f8;
    --text: #101625;
    --text-light: #e8edf7;
    --muted: #7a869d;
    --border: rgba(255, 255, 255, 0.12);
    --border-dark: rgba(15, 24, 43, 0.1);
    --accent: #c6a96b;
    --accent-strong: #2f7df4;
    --shadow: 0 24px 60px rgba(8, 16, 31, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --transition: 240ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(47, 125, 244, 0.12), transparent 35%),
        linear-gradient(180deg, #f9fafc 0%, #eef2f7 100%);
    line-height: 1.7;
}

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

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

main {
    overflow: hidden;
}

.navbar {
    padding: 1.1rem 0;
    background: rgba(9, 15, 26, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(198, 169, 107, 0.26), rgba(47, 125, 244, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark img {
    width: 28px;
    height: 28px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: 1rem;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.section-shell,
.page-hero {
    position: relative;
    padding: 9rem 0 5rem;
    background:
        linear-gradient(180deg, rgba(6, 11, 19, 0.94), rgba(10, 18, 32, 0.9)),
        url("../images/grid-pattern.svg") center/cover no-repeat;
    color: var(--text-light);
}

.hero-section::before,
.page-hero::before {
    position: absolute;
    inset: auto auto 8% -8%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(198, 169, 107, 0.2), transparent 70%);
    content: "";
    pointer-events: none;
}

.hero-title,
.page-hero h1,
.section-heading h2,
.cta-banner h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(3.6rem, 9vw, 5.8rem);
    line-height: 0.92;
    margin-bottom: 0.65rem;
}

.hero-slogan {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}

.hero-headline {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    max-width: 11ch;
}

.hero-copy,
.page-hero p,
.section-heading p,
.section-lead,
.cta-banner p,
.hero-panel,
.service-card p,
.project-card p,
.feature-card p,
.process-card p,
.info-panel p,
.split-card p,
.footer-copy {
    color: var(--muted);
}

.hero-copy {
    color: rgba(232, 237, 247, 0.8);
    font-size: 1.08rem;
    max-width: 42rem;
}

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

.hero-panel,
.contact-panel,
.info-panel,
.service-card,
.project-card,
.feature-card,
.process-card,
.split-card,
.cta-banner {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-color: var(--border);
}

.metric-card {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-card strong,
.metric-box strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    margin-top: 0.4rem;
}

.metric-label,
.metric-box span,
.section-kicker,
.project-tag,
.process-number {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.metric-label,
.metric-box span {
    color: rgba(255, 255, 255, 0.62);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.metric-box {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-section {
    padding: 5.5rem 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 243, 249, 0.92));
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(8, 13, 24, 0.96), rgba(12, 19, 34, 0.96)),
        url("../images/grid-pattern.svg") center/cover no-repeat;
    color: var(--text-light);
}

.section-heading {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.section-heading h2,
.page-hero h1,
.cta-banner h2 {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 0.98;
    margin-bottom: 1rem;
    color: inherit;
}

.section-kicker,
.project-tag,
.process-number {
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.08rem;
}

.service-card,
.project-card,
.feature-card,
.process-card,
.split-card,
.info-panel,
.contact-panel {
    padding: 2rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.project-card:hover,
.feature-card:hover,
.process-card:hover,
.split-card:hover,
.info-panel:hover,
.contact-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(8, 16, 31, 0.16);
    border-color: rgba(47, 125, 244, 0.18);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background:
        linear-gradient(140deg, rgba(198, 169, 107, 0.18), rgba(47, 125, 244, 0.16)),
        #ffffff;
    border: 1px solid rgba(16, 22, 37, 0.08);
}

.service-card h3,
.project-card h3,
.feature-card h3,
.process-card h3,
.info-panel h3,
.split-card h3,
.footer-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.service-card-tall,
.project-card-tall {
    min-height: 100%;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    content: "";
}

.project-line {
    width: 100%;
    height: 1px;
    margin: 1rem 0;
    background: rgba(16, 22, 37, 0.1);
}

.text-link,
.contact-link,
.footer-links a {
    color: var(--accent-strong);
    transition: color var(--transition);
}

.text-link:hover,
.contact-link:hover,
.footer-links a:hover {
    color: var(--accent);
}

.check-list {
    padding-left: 1.2rem;
    margin: 0;
}

.check-list li {
    margin-bottom: 0.8rem;
    color: var(--muted);
}

.process-number {
    color: var(--accent-strong);
}

.feature-card-dark,
.split-card,
.section-dark .feature-card,
.section-dark .split-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .feature-card h3,
.section-dark .split-card h3,
.section-dark .section-heading h2,
.section-dark .section-kicker {
    color: var(--text-light);
}

.section-dark .feature-card p,
.section-dark .split-card p,
.section-dark .section-heading p {
    color: rgba(232, 237, 247, 0.72);
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    background:
        linear-gradient(135deg, rgba(9, 15, 26, 0.98), rgba(17, 27, 47, 0.96)),
        url("../images/grid-pattern.svg") center/cover no-repeat;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.08);
}

.cta-banner p,
.cta-banner .section-kicker {
    color: rgba(232, 237, 247, 0.74);
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.95rem 1.5rem;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.btn-brand {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-strong), #205fc2);
    border: 1px solid transparent;
    box-shadow: 0 14px 40px rgba(47, 125, 244, 0.26);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #2269d7, #194f9f);
}

.btn-outline-brand {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
}

.content-section .btn-outline-brand,
.contact-panel .btn-outline-brand {
    color: var(--text);
    border-color: rgba(16, 22, 37, 0.14);
}

.content-section .btn-outline-brand:hover,
.contact-panel .btn-outline-brand:hover {
    color: var(--text);
    border-color: rgba(47, 125, 244, 0.34);
    background: rgba(47, 125, 244, 0.05);
}

.hero-section .btn-outline-brand:hover,
.page-hero .btn-outline-brand:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.08);
}

.contact-panel {
    padding: 2.4rem;
}

.form-control,
.form-select {
    min-height: 3.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(16, 22, 37, 0.12);
    padding: 0.9rem 1rem;
    font-size: 0.98rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 125, 244, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(47, 125, 244, 0.12);
}

textarea.form-control {
    min-height: 9rem;
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.form-status {
    margin: 0;
    min-height: 1.5rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.site-footer {
    padding: 4.5rem 0 1.8rem;
    background: #09111d;
    color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
    display: inline-block;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.footer-tagline {
    color: var(--accent);
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-title {
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
}

.page-hero-copy {
    max-width: 48rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-visible,
    .service-card,
    .project-card,
    .feature-card,
    .process-card,
    .split-card,
    .info-panel,
    .contact-panel,
    .btn {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 1.2rem;
        border-radius: 1.2rem;
        background: rgba(9, 15, 26, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        margin-left: 0;
        padding: 0.8rem 0;
    }

    .nav-link::after {
        left: 0;
        right: 70%;
        bottom: 0.3rem;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .section-shell,
    .page-hero {
        padding: 8rem 0 4.2rem;
    }

    .content-section {
        padding: 4.5rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .contact-panel,
    .service-card,
    .project-card,
    .feature-card,
    .process-card,
    .split-card,
    .info-panel,
    .cta-banner {
        border-radius: 22px;
    }
}
