:root {
    --bg: #050505;
    --bg-elevated: #0c0c0c;
    --bg-muted: #121212;
    --surface: #161016;
    --text: #f5f0ec;
    --text-muted: #b7a8a0;
    --maroon: #7b1842;
    --maroon-deep: #5a1030;
    --orange: #f99d27;
    --orange-hot: #ff8a00;
    --accent: var(--orange);
    --accent-strong: var(--orange-hot);
    --accent-soft: rgba(249, 157, 39, 0.14);
    --maroon-soft: rgba(123, 24, 66, 0.28);
    --line: rgba(245, 240, 236, 0.1);
    --danger: #ff7b7b;
    --success: #f99d27;
    --radius: 14px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --font-display: "Syne", sans-serif;
    --font-body: "Manrope", sans-serif;
    --container: 1120px;
    --header-h: 82px;
    --gradient-brand: linear-gradient(135deg, #7b1842 0%, #b23a2a 45%, #f99d27 100%);
    --gradient-cta: linear-gradient(135deg, #f99d27 0%, #e87722 55%, #c44a2a 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1000px 520px at 90% -8%, rgba(249, 157, 39, 0.16), transparent 55%),
        radial-gradient(840px 480px at -8% 18%, rgba(123, 24, 66, 0.28), transparent 50%),
        var(--bg);
    line-height: 1.65;
    min-height: 100vh;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(5, 5, 5, 0.82);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(5, 5, 5, 0.94);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

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

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.brand-logo-lg {
    height: 56px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
}

.site-nav .nav-cta {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 157, 39, 0.5);
    color: var(--orange);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
    background: var(--accent-soft);
    color: var(--orange);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: var(--gradient-cta);
    color: #12080a;
    box-shadow: 0 10px 28px rgba(249, 157, 39, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(249, 157, 39, 0.38);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    border-color: rgba(249, 157, 39, 0.55);
    color: var(--orange);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, rgba(5, 5, 5, 0.92) 18%, rgba(5, 5, 5, 0.55) 55%, rgba(5, 5, 5, 0.78) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.88) 100%),
        url("../images/hero-ai.jpg") center / cover no-repeat;
    animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    from { transform: scale(1); filter: saturate(1); }
    to { transform: scale(1.04); filter: saturate(1.12); }
}

.hero-content,
.page-hero .container {
    padding-block: 5rem 4rem;
}

.brand-signal,
.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.brand-signal {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    letter-spacing: 0.08em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    max-width: 15ch;
    margin-bottom: 1.1rem;
}

.hero-lead {
    max-width: 42rem;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

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

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(5, 5, 5, 0.94) 10%, rgba(5, 5, 5, 0.72) 60%, rgba(5, 5, 5, 0.88) 100%),
        var(--page-hero-image, linear-gradient(135deg, #12080c, #2a0f1c));
    background-size: cover;
    background-position: center;
}

.page-hero-about::before {
    --page-hero-image: url("../images/about-team.jpg");
}

.page-hero-services::before {
    --page-hero-image: url("../images/hero-ai.jpg");
}

.page-hero-blogs::before {
    --page-hero-image: url("../images/blog-cover.jpg");
}

.page-hero-contact::before {
    --page-hero-image: url("../images/contact-banner.jpg");
}

.section {
    padding: 5rem 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(18, 10, 14, 0.7));
    border-block: 1px solid var(--line);
}

.section-head {
    margin-bottom: 2.5rem;
    max-width: 40rem;
}

.section-head h2,
.section h2,
.cta-band h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-cta {
    margin-top: 2.5rem;
}

.service-grid,
.blog-grid,
.process-grid {
    display: grid;
    gap: 1.25rem;
}

.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-item,
.blog-item,
.process-grid > div,
.service-detail,
.contact-form-wrap,
.contact-info {
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.service-item {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-item-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-item-body {
    padding: 1.25rem 1.3rem 1.4rem;
}

.service-item:hover,
.blog-item:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 157, 39, 0.45);
    background: linear-gradient(180deg, rgba(123, 24, 66, 0.18), rgba(255, 255, 255, 0.01));
}

.service-item:hover .service-item-media img {
    transform: scale(1.06);
}

.service-item h3,
.blog-item h3,
.process-grid h3 {
    font-size: 1.2rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.92rem;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

a:hover .link-arrow::after,
.link-arrow:hover::after {
    transform: translateX(4px);
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
}

.split-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 280px;
}

.split-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.lead {
    font-size: 1.12rem;
    color: #e2d4cc;
}

.stat-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-list > div {
    padding: 1.2rem 1.3rem;
    border-left: 3px solid var(--orange);
    background: linear-gradient(90deg, rgba(123, 24, 66, 0.28), rgba(249, 157, 39, 0.06));
    border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-list strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--orange);
}

.stat-list span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-item {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-item-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-item:hover .blog-item-media img {
    transform: scale(1.05);
}

.blog-item-body {
    padding: 1.2rem 1.3rem 1.4rem;
}

.blog-meta,
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.blog-meta span,
.blog-detail-meta span:first-child {
    color: var(--orange);
    font-weight: 600;
}

.blog-item h3 a:hover {
    color: var(--orange);
}

.blog-detail-cover {
    width: min(100% - 2.5rem, var(--container));
    margin: -1.5rem auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    max-height: 420px;
}

.blog-detail-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.cta-band {
    position: relative;
    isolation: isolate;
    padding: 4.5rem 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.92)),
        radial-gradient(600px 240px at 50% 0%, rgba(249, 157, 39, 0.22), transparent 70%),
        url("../images/hero-ai.jpg") center / cover no-repeat;
}

.cta-band p {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

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

.step {
    display: inline-block;
    font-family: var(--font-display);
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.prose-wide {
    max-width: 48rem;
}

.services-list {
    display: grid;
    gap: 1.5rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
    align-items: center;
}

.service-detail-media {
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
}

.service-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.service-detail ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.service-detail li + li {
    margin-top: 0.4rem;
}

.blog-body {
    max-width: 46rem;
}

.blog-body p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.back-link {
    margin-top: 2.5rem;
}

.pagination-wrap {
    margin-top: 2.5rem;
}

.pagination-wrap nav {
    display: flex;
    justify-content: center;
}

.pagination-wrap .flex {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    padding: 0 0.75rem;
}

.pagination-wrap .active span,
.pagination-wrap [aria-current="page"] span {
    background: var(--accent-soft);
    border-color: rgba(249, 157, 39, 0.5);
    color: var(--orange);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-visual {
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}

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

.contact-block + .contact-block {
    margin-top: 1.5rem;
}

.contact-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 0.4rem;
}

.contact-block a {
    color: var(--text);
}

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

.form-row {
    display: grid;
    gap: 0.4rem;
}

.form-row label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-row label span {
    color: var(--text-muted);
    font-weight: 400;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(5, 5, 5, 0.65);
    color: var(--text);
    padding: 0.85rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: rgba(249, 157, 39, 0.65);
    box-shadow: 0 0 0 3px rgba(249, 157, 39, 0.15);
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(249, 157, 39, 0.12);
    border: 1px solid rgba(249, 157, 39, 0.4);
    color: #ffd49a;
}

.alert-error {
    background: rgba(255, 123, 123, 0.1);
    border: 1px solid rgba(255, 123, 123, 0.35);
    color: #ffc4c4;
}

.alert-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-top: 3.5rem;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 28rem;
}

.site-footer h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.footer-links li + li,
.footer-contact li + li {
    margin-top: 0.55rem;
}

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

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

.footer-contact li {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 1.8rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.88rem;
}

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

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

@media (max-width: 900px) {
    .split,
    .process-grid,
    .contact-layout,
    .footer-grid,
    .service-detail {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(var(--header-h) + 0.5rem);
        right: 1.25rem;
        left: 1.25rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: rgba(10, 8, 10, 0.98);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
    }

    .site-nav .nav-cta {
        text-align: center;
        margin-top: 0.35rem;
    }

    .hero h1,
    .page-hero h1 {
        max-width: none;
    }

    .blog-detail-cover img {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 1.5rem, var(--container));
    }

    .brand-logo {
        height: 40px;
    }

    .hero-content,
    .page-hero .container {
        padding-block: 3.5rem 3rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}
