:root {
    --bg: #f4efe8;
    --surface: rgba(255, 255, 255, 0.78);
    --line: rgba(18, 32, 43, 0.12);
    --text: #12202b;
    --muted: #5b6874;
    --primary: #e35d35;
    --primary-deep: #bb3f1d;
    --accent: #f3c567;
    --shadow: 0 24px 60px rgba(20, 30, 38, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(243, 197, 103, 0.32), transparent 32%),
        radial-gradient(circle at top right, rgba(227, 93, 53, 0.15), transparent 28%),
        linear-gradient(180deg, #fdf9f4 0%, var(--bg) 100%);
    line-height: 1.6;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(253, 249, 244, 0.75);
    border-bottom: 1px solid rgba(18, 32, 43, 0.06);
}

.nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(227, 93, 53, 0.28);
    background: #fff;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #f28f3b);
    box-shadow: 0 12px 24px rgba(227, 93, 53, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong,
h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

.brand-text small {
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav a {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: 0.25s ease;
}

.site-nav a:hover,
body[data-page="home"] .site-nav a[href="index.html"],
body[data-page="services"] .site-nav a[href="services.html"],
body[data-page="portfolio"] .site-nav a[href="portfolio.html"],
body[data-page="about"] .site-nav a[href="about.html"],
body[data-page="contact"] .site-nav a[href="contact.html"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(18, 32, 43, 0.06);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(18, 32, 43, 0.08);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero,
.subhero,
.section {
    padding: 88px 0;
}

.hero {
    padding-top: 72px;
}

.hero-grid,
.subhero-grid,
.split-panel,
.band-grid,
.contact-grid,
.card-grid,
.showcase-grid,
.team-grid,
.portfolio-grid,
.footer-grid,
.content-grid,
.stats-grid {
    display: grid;
    gap: 22px;
}

.hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.subhero-grid,
.band-grid {
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
}

.split-panel,
.contact-grid,
.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.content-grid,
.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--primary-deep);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    line-height: 0.96;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin-bottom: 18px;
}

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

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 62ch;
}

.hero-actions,
.section-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #f28f3b);
    box-shadow: 0 16px 32px rgba(227, 93, 53, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 0 1px rgba(18, 32, 43, 0.08);
}

.stats-grid article,
.feature-card,
.showcase-card,
.stack-item,
.team-card,
.portfolio-card,
.content-card,
.service-panel,
.contact-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.stats-grid article,
.feature-card,
.content-card,
.service-panel,
.contact-panel,
.stack-item {
    padding: 24px;
}

.stats-grid strong {
    display: block;
    font-size: 1.3rem;
    font-family: "Space Grotesk", sans-serif;
}

.glass-card {
    background: linear-gradient(180deg, rgba(20, 32, 38, 0.86), rgba(20, 32, 38, 0.64));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: #eff5f7;
    box-shadow: 0 26px 70px rgba(13, 23, 28, 0.28);
}

.hero-card {
    padding: 28px;
}

.card-kicker {
    color: rgba(243, 197, 103, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 800;
}

.solution-list {
    display: grid;
    gap: 18px;
}

.solution-list div {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.solution-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.solution-list span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}

.section-head {
    margin-bottom: 28px;
}

.icon-chip {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(227, 93, 53, 0.12);
    color: var(--primary-deep);
    font-weight: 800;
    margin-bottom: 18px;
}

.section-dark {
    color: #eff5f7;
    background:
        radial-gradient(circle at top right, rgba(243, 197, 103, 0.16), transparent 24%),
        linear-gradient(180deg, #0f1a20 0%, #15252d 100%);
}

.section-dark .feature-card,
.section-dark .stack-item,
.section-dark .team-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.showcase-card,
.portfolio-card,
.team-card {
    overflow: hidden;
}

.showcase-card a,
.portfolio-card a {
    display: block;
    color: inherit;
}

.showcase-card img,
.portfolio-card img,
.team-card img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

.showcase-card div,
.portfolio-card div {
    padding: 18px 22px 22px;
}

.team-card h3,
.team-card p {
    padding-left: 22px;
    padding-right: 22px;
}

.team-card h3 {
    padding-top: 18px;
    margin-bottom: 6px;
}

.team-card p {
    padding-bottom: 22px;
    color: rgba(239, 245, 247, 0.76);
}

.accent-band {
    padding-top: 64px;
    padding-bottom: 64px;
}

.accent-band .band-grid {
    padding: 32px;
    background: linear-gradient(135deg, rgba(243, 197, 103, 0.3), rgba(227, 93, 53, 0.16));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(227, 93, 53, 0.16);
}

.band-points,
.contact-stack {
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.bullet-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.bullet-list li + li {
    margin-top: 10px;
}

.contact-form-modern {
    display: grid;
    gap: 16px;
}

.contact-form-modern label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.contact-form-modern input,
.contact-form-modern textarea {
    width: 100%;
    border: 1px solid rgba(18, 32, 43, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    outline: 2px solid rgba(227, 93, 53, 0.22);
    border-color: rgba(227, 93, 53, 0.36);
}

.form-note,
.footer-bottom {
    color: var(--muted);
}

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.site-footer {
    padding: 44px 0 28px;
    border-top: 1px solid rgba(18, 32, 43, 0.08);
}

.brand-footer {
    margin-bottom: 14px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 32, 43, 0.08);
}

.chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 14px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #f28f3b);
    box-shadow: 0 18px 36px rgba(227, 93, 53, 0.34);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(227, 93, 53, 0.42);
}

.chat-launcher:focus-visible {
    outline: 3px solid rgba(243, 197, 103, 0.65);
    outline-offset: 3px;
}

.chat-launcher-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.15rem;
    line-height: 1;
}

.chat-launcher-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-align: left;
}

.chat-launcher-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
}

.chat-launcher-copy span {
    font-size: 0.78rem;
    opacity: 0.85;
}

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

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

@media (max-width: 1040px) {
    .hero-grid,
    .subhero-grid,
    .split-panel,
    .band-grid,
    .contact-grid,
    .cards-4,
    .showcase-grid,
    .portfolio-grid,
    .footer-grid,
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 24px;
        background: rgba(255, 250, 244, 0.96);
        border: 1px solid rgba(18, 32, 43, 0.08);
        box-shadow: var(--shadow);
    }

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

    .hero-grid,
    .subhero-grid,
    .split-panel,
    .band-grid,
    .contact-grid,
    .cards-4,
    .cards-2,
    .showcase-grid,
    .portfolio-grid,
    .footer-grid,
    .content-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .subhero,
    .section {
        padding: 72px 0;
    }

    .nav-wrap {
        min-height: 74px;
    }

    .chat-launcher {
        right: 14px;
        bottom: 14px;
        padding: 12px;
    }

    .chat-launcher-copy {
        display: none;
    }

    .chat-launcher-badge {
        width: 44px;
        height: 44px;
    }
}

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

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

    .button {
        transition: none;
    }
}
