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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    background: #07080d;
}

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

a {
    color: inherit;
}

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

body.about-page,
body.contact-page,
body.tools-page,
body.case-studies-page,
body.legal-page,
body.services-page,
body.insights-page,
body.detail-page {
    background:
        radial-gradient(circle at top left, rgba(25, 76, 194, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 119, 73, 0.16), transparent 25%),
        linear-gradient(180deg, #040404 0%, #0b0b10 24%, #08080d 100%);
}

body.about-page .page-hero,
body.contact-page .page-hero,
body.tools-page .page-hero,
body.case-studies-page .page-hero,
body.legal-page .page-hero,
body.services-page .page-header,
body.insights-page .insights-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.about-page .page-hero::before,
body.contact-page .page-hero::before,
body.tools-page .page-hero::before,
body.case-studies-page .page-hero::before,
body.legal-page .page-hero::before,
body.services-page .page-header::before,
body.insights-page .insights-hero::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(15, 39, 112, 0.92), rgba(44, 16, 72, 0.72) 55%, rgba(12, 12, 16, 0.88)),
        radial-gradient(circle at 18% 70%, rgba(37, 103, 255, 0.34), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(255, 123, 73, 0.26), transparent 22%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    z-index: -2;
}

body.about-page .page-hero::after,
body.contact-page .page-hero::after,
body.tools-page .page-hero::after,
body.case-studies-page .page-hero::after,
body.legal-page .page-hero::after,
body.services-page .page-header::after,
body.insights-page .insights-hero::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 48%);
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
}

body.about-page .page-hero-content,
body.contact-page .page-hero-content,
body.tools-page .page-hero-content,
body.case-studies-page .page-hero-content,
body.legal-page .page-hero-content,
body.services-page .services-hero-content,
body.insights-page .hero-content {
    position: relative;
    padding: 44px 40px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(7, 10, 22, 0.2), rgba(7, 9, 15, 0.08));
    backdrop-filter: blur(10px);
}

body.about-page .breadcrumb,
body.contact-page .breadcrumb,
body.tools-page .breadcrumb,
body.case-studies-page .breadcrumb,
body.legal-page .breadcrumb,
body.services-page .breadcrumb,
body.insights-page .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

body.about-page .breadcrumb a,
body.contact-page .breadcrumb a,
body.tools-page .breadcrumb a,
body.case-studies-page .breadcrumb a,
body.legal-page .breadcrumb a,
body.services-page .breadcrumb a,
body.insights-page .breadcrumb a {
    color: #ff9a73;
    text-decoration: none;
}

body.about-page .page-title,
body.contact-page .page-title,
body.tools-page .page-title,
body.case-studies-page .page-title,
body.legal-page .page-title,
body.services-page .page-title,
body.insights-page .page-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

body.about-page .page-subtitle,
body.contact-page .page-subtitle,
body.tools-page .page-subtitle,
body.case-studies-page .page-subtitle,
body.legal-page .page-subtitle,
body.services-page .page-subtitle,
body.insights-page .page-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

body.about-page .section-title,
body.contact-page .section-title,
body.tools-page .section-title,
body.case-studies-page .section-title,
body.legal-page .section-title,
body.services-page .section-title,
body.insights-page .section-title,
body.detail-page .section-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: -0.04em;
}

body.about-page .section-description,
body.contact-page .section-description,
body.tools-page .section-description,
body.case-studies-page .section-description,
body.legal-page .section-description,
body.services-page .section-content,
body.insights-page .section-description,
body.detail-page .section-description {
    color: rgba(255, 255, 255, 0.74);
}

.flash-message {
    width: min(1100px, calc(100% - 40px));
    margin: 112px auto 20px;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 600;
    position: relative;
    z-index: 20;
}

.flash-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #d6ffe3;
}

.flash-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ffe1e1;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    z-index: 2000;
    padding: 10px 12px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.skip-link:focus {
    top: 8px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(18px);
    background: rgba(5, 7, 14, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    width: min(1400px, calc(100% - 40px));
}

.site-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo-img,
.site-logo img {
    height: 54px;
    width: auto;
    filter: grayscale(1) brightness(10) contrast(1.02);
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-header-cta {
    display: flex;
    align-items: center;
}

.site-header .cta-button,
.site-mobile-menu .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #ff6b35, #ff9152);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 14px 34px rgba(255, 107, 53, 0.18);
}

.site-header .cta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
}

.site-header .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.site-header .mobile-menu-toggle span,
.site-header .mobile-menu-toggle .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(3, 4, 8, 0.96);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.site-mobile-menu-content {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 22px 40px;
    display: flex;
    flex-direction: column;
}

.site-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.site-mobile-menu-header .site-logo img,
.site-mobile-menu-header .logo img {
    height: 62px;
}

.site-mobile-menu .mobile-menu-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    cursor: pointer;
}

.site-mobile-nav-menu {
    list-style: none;
    display: grid;
    gap: 6px;
    margin-bottom: 24px;
}

.site-mobile-nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
}

.site-mobile-nav-menu a.active {
    color: #ff9a73;
}

.site-mobile-menu-cta {
    margin-top: auto;
}

.site-mobile-menu-footer {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.site-mobile-menu-footer p {
    margin-bottom: 12px;
}

.site-mobile-contact {
    display: grid;
    gap: 8px;
}

.site-mobile-contact a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.site-footer {
    background: #121318;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

.site-footer .footer-main-content {
    padding: 72px 0 42px;
    background: transparent;
}

.site-footer .footer-cta-section {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.site-footer .footer-cta-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.8rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

.site-footer .footer-cta-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 28px;
    font-size: 1.15rem;
}

.site-footer .footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-cta-button .cta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff7b49;
}

.site-footer .container {
    width: min(1400px, calc(100% - 40px));
}

.site-footer-standard .footer-main-content,
.site-footer-content,
.site-footer .footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.site-footer-brand,
.site-footer-section {
    min-width: 0;
}

.site-footer-logo img,
.site-footer-logo-image {
    height: 56px;
    width: auto;
    filter: grayscale(1) brightness(10) contrast(1.02);
    margin-bottom: 16px;
}

.site-footer-description,
.site-footer-brand-description,
.site-footer-contact p,
.site-footer-links a,
.site-footer-bottom,
.site-footer-bottom-content {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.site-footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.site-footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-footer-links a,
.site-footer-contact a,
.site-footer-legal a {
    text-decoration: none;
}

.site-footer-contact {
    display: grid;
    gap: 10px;
}

.site-footer-contact a {
    color: #ff9a73;
}

.site-footer-bottom {
    margin-top: 34px;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

*:focus-visible {
    outline: 2px solid #ff7b49;
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .site-nav {
        display: none;
    }

    .site-header .mobile-menu-toggle {
        display: inline-flex;
    }

    .site-header-cta {
        display: none;
    }

    .site-footer-standard .footer-main-content,
    .site-footer-content,
    .site-footer .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .container,
    .site-header .container,
    .site-footer .container {
        width: min(100%, calc(100% - 24px));
    }

    .site-header-content {
        min-height: 76px;
    }

    .site-logo-img,
    .site-logo img {
        height: 48px;
    }

    .site-footer .footer-main-content {
        padding: 56px 0 34px;
    }

    .site-footer-standard .footer-main-content,
    .site-footer-content,
    .site-footer .footer-content,
    .site-footer-bottom-content {
        grid-template-columns: 1fr;
    }

    .site-footer-legal {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
}
