:root {
    --ink-900: #f7f8fb;
    --ink-700: #d0d5df;
    --ink-500: #9aa3b2;
    --line: #2b3443;
    --surface: #131a26;
    --surface-soft: #0f1521;
    --white: #ffffff;
    --accent: #7c73ff;
    --accent-soft: #2a2750;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.45);
    --transition-fast: 180ms ease;
    --transition-slow: 350ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink-900);
    line-height: 1.6;
    background:
        radial-gradient(circle at 0% 0%, #1b1a3a 0%, transparent 42%),
        radial-gradient(circle at 100% 15%, #162b2b 0%, transparent 40%),
        #090e17;
}

.section-space {
    padding: 5.2rem 0;
}

.stitch-navbar {
    background: rgba(9, 14, 23, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 52, 67, 0.9);
}

.brand-wordmark {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-900) !important;
}

.btn-dark {
    background: linear-gradient(135deg, #8a82ff, #6a61f2);
    border-color: #8a82ff;
    color: #ffffff;
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(135deg, #9c95ff, #7a72ff);
    border-color: #9c95ff;
    color: #ffffff;
}

.btn-outline-dark {
    border-color: #3a465a;
    color: #d6dceb;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: #1a2333;
    border-color: #47556d;
    color: #ffffff;
}

.navbar .btn-dark {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.nav-link {
    color: var(--ink-700) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent) !important;
}

.navbar-toggler {
    border-color: #3a4458;
}

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

.hero-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 9.2rem;
    padding-bottom: 4rem;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.72;
    pointer-events: none;
}

.orb-a {
    width: 420px;
    height: 420px;
    background: #3c3487;
    top: -100px;
    right: -110px;
}

.orb-b {
    width: 320px;
    height: 320px;
    background: #1f4d48;
    left: -90px;
    bottom: -45px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.05rem, 4vw, 3.45rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-copy {
    color: var(--ink-500);
    font-size: 1.05rem;
    max-width: 58ch;
}

.hero-wrap .btn {
    min-width: 170px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-row span {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.88rem;
    font-size: 0.86rem;
    color: var(--ink-700);
}

.hero-panel {
    background: rgba(15, 21, 33, 0.82);
    border: 1px solid rgba(43, 52, 67, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.1rem;
}

.hero-panel-head {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5f6a7e;
}

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

.mini-card {
    border: 1px solid var(--line);
    background: #121a28;
    border-radius: var(--radius-md);
    padding: 1rem;
}

.mini-card h6 {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.mini-card p {
    margin-bottom: 0;
    color: var(--ink-500);
    font-size: 0.86rem;
}

.card-wide {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a2033, #132232);
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.58rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.muted-chip {
    display: inline-block;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-500);
    font-size: 0.86rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.showcase-item {
    grid-column: span 4;
    min-height: 260px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    background: #121a28;
}

.showcase-item.tall {
    grid-row: span 2;
    min-height: 540px;
}

.showcase-item.wide {
    grid-column: span 8;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.showcase-item:hover img {
    transform: scale(1.045);
}

.showcase-meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: rgba(15, 17, 21, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 0.74rem 0.9rem;
    color: #fff;
}

.showcase-meta h5 {
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.showcase-meta p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.8rem;
}

.features-section {
    background: linear-gradient(180deg, transparent 0%, #0f1521 100%);
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #121a28;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.45);
}

.feature-card i {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--accent);
    background: var(--accent-soft);
}

.feature-card h5 {
    margin-bottom: 0.35rem;
    font-size: 1.03rem;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--ink-500);
    font-size: 0.93rem;
}

.process-section {
    background: var(--surface-soft);
}

.step-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #121a28;
    padding: 1.35rem;
}

.step-num {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    background: var(--ink-900);
}

.step-card h5 {
    margin-bottom: 0.35rem;
}

.step-card p {
    margin-bottom: 0;
    color: var(--ink-500);
}

.cta-band {
    padding-top: 1rem;
}

.cta-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, #171d2d 0%, #16232a 100%);
    padding: 2.5rem 1.2rem;
}

.contact-stack p {
    margin-bottom: 0.66rem;
    color: var(--ink-700);
}

.contact-stack i {
    width: 1.2rem;
    margin-right: 0.35rem;
    color: var(--accent);
}

.glass-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 21, 33, 0.84);
    box-shadow: var(--shadow-md);
    padding: 1.35rem;
}

.contact-form .form-control {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0f1726;
    color: #e8edf8;
    box-shadow: none;
}

.contact-form .form-control::placeholder {
    color: #8b95a8;
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

#formMessage {
    margin-top: 0.82rem;
    text-align: center;
    min-height: 1.2rem;
    font-weight: 600;
}

#formMessage.success {
    color: #10754d;
}

#formMessage.error {
    color: #bd3131;
}

.footer-wrap {
    border-top: 1px solid var(--line);
    background: #0b1220;
    color: var(--ink-500);
}

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

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .stitch-navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.85rem;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(15, 21, 33, 0.96);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

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

    .navbar .btn-dark {
        width: 100%;
        box-shadow: none;
    }

    .hero-wrap {
        padding-top: 8.2rem;
    }

    .hero-title,
    .hero-copy {
        max-width: 100%;
    }

    .hero-panel {
        padding: 1rem;
    }

    .showcase-item,
    .showcase-item.wide,
    .showcase-item.tall {
        grid-column: span 6;
        grid-row: auto;
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .section-space {
        padding: 3.8rem 0;
    }

    .hero-wrap {
        padding-top: 7.7rem;
    }

    .hero-wrap .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-wrap .btn {
        width: 100%;
        min-width: 0;
    }

    .section-head .text-md-end {
        text-align: left !important;
    }

    .muted-chip {
        font-size: 0.8rem;
    }

    .hero-panel-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.86rem;
    }

    .showcase-item,
    .showcase-item.wide,
    .showcase-item.tall {
        grid-column: span 6;
        min-height: 235px;
    }

    .showcase-meta {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 0.62rem 0.72rem;
    }

    .showcase-meta h5 {
        font-size: 0.88rem;
    }

    .showcase-meta p {
        font-size: 0.75rem;
    }

    .feature-card,
    .step-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {

    .stitch-navbar .container,
    .hero-container,
    .gallery-section .container,
    .features-section .container,
    .process-section .container,
    .cta-band .container,
    .contact-section .container,
    .footer-wrap .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-space {
        padding: 3.1rem 0;
    }

    .hero-wrap {
        padding-top: 7.2rem;
    }

    .hero-title {
        font-size: 1.88rem;
    }

    .hero-copy {
        font-size: 0.98rem;
    }

    .eyebrow {
        font-size: 0.74rem;
    }

    .trust-row {
        gap: 0.5rem;
    }

    .trust-row span {
        font-size: 0.78rem;
        padding: 0.28rem 0.64rem;
    }

    .hero-panel {
        border-radius: 18px;
    }

    .showcase-item,
    .showcase-item.wide,
    .showcase-item.tall {
        min-height: 210px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .glass-form {
        padding: 1rem;
    }

    .contact-stack p {
        font-size: 0.95rem;
    }
}

@media (max-width: 390px) {
    .hero-title {
        font-size: 1.62rem;
        line-height: 1.12;
    }

    .hero-copy {
        font-size: 0.92rem;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .mini-card h6 {
        font-size: 0.88rem;
    }

    .mini-card p,
    .feature-card p,
    .step-card p {
        font-size: 0.84rem;
    }
}