:root {
    --ink: #162033;
    --text: #465268;
    --muted: #f5f7fb;
    --line: #dce3ed;
    --white: #ffffff;
    --blue: #1f5eff;
    --teal: #0e9f8b;
    --green: #7bb342;
    --amber: #f2a23a;
    --shadow: 0 18px 50px rgba(25, 38, 68, 0.12);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--max));
    margin: 0 auto;
}

.section-pad {
    padding: 88px 0;
}

.section-pad.compact {
    padding: 58px 0;
}

.muted {
    background: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
    padding: 14px max(24px, calc((100vw - var(--max)) / 2));
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 227, 237, 0.78);
    backdrop-filter: blur(18px);
    transition: box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.has-shadow {
    box-shadow: 0 10px 28px rgba(25, 38, 68, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(31, 94, 255, 0.22);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 94, 255, 0.26);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand small {
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: #526078;
    font-size: 14px;
    font-weight: 650;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.main-nav a:hover {
    color: var(--blue);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.header-cta,
.btn.primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 12px 24px rgba(31, 94, 255, 0.22);
}

.btn.secondary {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

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

.btn.secondary:hover {
    border-color: rgba(31, 94, 255, 0.42);
    box-shadow: 0 10px 24px rgba(25, 38, 68, 0.08);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(245, 247, 251, 0.98), rgba(255, 255, 255, 0.85)),
        radial-gradient(circle at 80% 20%, rgba(14, 159, 139, 0.12), transparent 32%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 54px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: 0;
}

h1 {
    max-width: 740px;
    margin: 16px 0 18px;
    font-size: clamp(32px, 3.2vw, 48px);
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 2.45vw, 36px);
}

h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.hero-copy p {
    max-width: 660px;
    font-size: 17px;
}

.hero-copy > * {
    animation: heroRise 700ms ease both;
}

.hero-copy > *:nth-child(2) {
    animation-delay: 70ms;
}

.hero-copy > *:nth-child(3) {
    animation-delay: 140ms;
}

.hero-copy > *:nth-child(4) {
    animation-delay: 210ms;
}

.hero-copy > *:nth-child(5) {
    animation-delay: 280ms;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-row span {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: #526078;
    font-size: 14px;
    transition: opacity 520ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.trust-row strong {
    color: var(--ink);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    animation: visualSettle 850ms ease both 160ms;
}

.hero-visual img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel,
.metric-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: panelFloat 5.5s ease-in-out infinite;
}

.hero-panel {
    left: -24px;
    bottom: 34px;
    width: min(310px, 84%);
    padding: 20px;
}

.hero-panel span,
.metric-card span {
    display: block;
    color: #65718a;
    font-size: 13px;
}

.hero-panel strong,
.metric-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}

.metric-card {
    top: 24px;
    right: -18px;
    padding: 16px 18px;
    animation-delay: 700ms;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.05fr;
    gap: 34px;
    align-items: start;
}

.snapshot-grid p {
    font-size: 17px;
}

.snapshot-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.snapshot-list span {
    min-height: 66px;
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    font-weight: 750;
    transition: opacity 520ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.section-head {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-head.narrow {
    max-width: 620px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card,
.stack-card,
.tool-panel,
.case-card,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 38px rgba(25, 38, 68, 0.07);
    transition: opacity 520ms ease, transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.service-card {
    padding: 26px;
}

.service-card:hover,
.stack-card:hover,
.tool-panel:hover,
.case-card:hover,
.snapshot-list span:hover,
.trust-row span:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 94, 255, 0.28);
    box-shadow: 0 20px 46px rgba(25, 38, 68, 0.11);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    color: var(--blue);
    background: rgba(31, 94, 255, 0.1);
    font-weight: 900;
    transition: transform 260ms ease, background-color 260ms ease;
}

.service-card:hover .card-icon {
    transform: rotate(-4deg) scale(1.04);
    background: rgba(14, 159, 139, 0.12);
}

.service-card p {
    margin-bottom: 16px;
}

.service-card ul,
.check-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-card li,
.check-list li {
    position: relative;
    padding-left: 22px;
    margin: 9px 0;
    color: #526078;
}

.service-card li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.tech-layout {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 34px;
    align-items: start;
}

.tool-panel {
    margin-top: 28px;
    padding: 24px;
}

.stack-area {
    display: grid;
    gap: 18px;
}

.stack-card {
    padding: 28px;
}

.stack-card.accent {
    border-color: rgba(14, 159, 139, 0.32);
    background: #f3fbfa;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-list span {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.chip-list span:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 159, 139, 0.42);
    color: var(--teal);
}

.image-band {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: end;
    overflow: hidden;
    color: var(--white);
}

.image-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 20, 36, 0.88), rgba(11, 20, 36, 0.34));
}

.image-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1200ms ease;
}

.image-band.is-visible img {
    transform: scale(1);
}

.image-band-content {
    position: relative;
    z-index: 1;
    padding: 76px 0;
}

.image-band-content h2,
.image-band-content p {
    max-width: 650px;
    color: var(--white);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.process-item {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: opacity 520ms ease, transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.process-item:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 159, 139, 0.36);
    box-shadow: 0 16px 34px rgba(25, 38, 68, 0.08);
}

.process-item span {
    color: var(--blue);
    font-weight: 850;
}

.process-item p {
    margin-bottom: 0;
    font-size: 14px;
}

.work-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
    align-items: center;
}

.case-card {
    overflow: hidden;
}

.case-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.case-card div {
    padding: 26px;
}

.case-card span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}

.faq-item button span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    color: var(--blue);
    background: rgba(31, 94, 255, 0.1);
    flex: 0 0 auto;
    transition: transform 220ms ease, background-color 220ms ease;
}

.faq-item p {
    max-height: 0;
    max-width: 740px;
    padding: 0 44px 0 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 260ms ease, opacity 260ms ease, padding-bottom 260ms ease;
}

.faq-item p.open {
    max-height: 160px;
    padding-bottom: 20px;
    opacity: 1;
}

.faq-item button[aria-expanded="true"] span {
    transform: rotate(180deg);
    background: rgba(14, 159, 139, 0.12);
}

.contact-section {
    color: var(--white);
    background: #101827;
}

.contact-section h2,
.contact-section p,
.contact-section .eyebrow {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-details a,
.contact-details span {
    color: rgba(255, 255, 255, 0.86);
}

.contact-form {
    padding: 28px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--ink);
    background: #fbfcfe;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
}

.contact-form .btn {
    width: 100%;
}

.form-note {
    margin: 14px 0 0;
    color: #65718a;
    font-size: 13px;
}

.form-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-status.success {
    color: #0c624f;
    background: #e8f8f4;
}

.form-status.error {
    color: #9b2c2c;
    background: #fff0f0;
}

.site-footer {
    color: rgba(255, 255, 255, 0.75);
    background: #0b1220;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 54px 0 34px;
}

.footer-brand {
    color: var(--white);
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.68);
}

.site-footer h3 {
    color: var(--white);
    font-size: 16px;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

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

.stagger-group > * {
    transition-delay: calc(var(--stagger-index, 0) * 65ms);
}

.reveal .stagger-group > *,
.reveal.stagger-group > * {
    opacity: 0;
    transform: translateY(14px);
}

.reveal.is-visible .stagger-group > *,
.reveal.is-visible.stagger-group > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-group > *:nth-child(1) {
    --stagger-index: 1;
}

.stagger-group > *:nth-child(2) {
    --stagger-index: 2;
}

.stagger-group > *:nth-child(3) {
    --stagger-index: 3;
}

.stagger-group > *:nth-child(4) {
    --stagger-index: 4;
}

.stagger-group > *:nth-child(5) {
    --stagger-index: 5;
}

.stagger-group > *:nth-child(6) {
    --stagger-index: 6;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes visualSettle {
    from {
        opacity: 0;
        transform: translateX(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes panelFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .site-header {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
    }

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

    .header-cta {
        display: none;
    }

    .hero-grid,
    .snapshot-grid,
    .tech-layout,
    .work-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 420px;
        height: 420px;
    }

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

    .snapshot-list,
    .process-list,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, var(--max));
    }

    .section-pad {
        padding: 64px 0;
    }

    .hero-grid {
        gap: 34px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .btn {
        width: 100%;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 340px;
        height: 340px;
    }

    .hero-panel {
        left: 12px;
        bottom: 12px;
    }

    .metric-card {
        right: 12px;
        top: 12px;
    }

    .service-grid,
    .snapshot-list,
    .process-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .process-item {
        min-height: auto;
        gap: 26px;
    }

    .image-band {
        min-height: 360px;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
