:root {
    --primary: #9142f6;
    --primary-dark: #7931dd;
    --primary-gradient: linear-gradient(90deg, #9142f6 0%, #a451ff 100%);
    --text: #29272c;
    --muted: #66616a;
    --surface: #ffffff;
    --page: #f8fafc;
    --border: #e2e8f0;
    --announcement: #ffa71d;
}

/* Keep primary action buttons consistent across every page. */
.contact-button,
.arvian-hero__btn,
.arvian-solution-card__button,
.about-hero__actions a,
.about-story__button,
.about-cta a,
.contact-submit {
    min-height: 48px !important;
    height: 48px !important;
    box-sizing: border-box;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
}

.contact-button,
.arvian-hero__btn,
.about-hero__actions a,
.about-story__button,
.about-cta a {
    min-width: 160px;
}

.arvian-solution-card__button,
.contact-submit {
    width: 100%;
}

/* Shared footer typography and rhythm for Home, About and Contact pages. */
.site-footer,
.site-footer * {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.site-footer .footer-about p,
.site-footer .footer-contact p {
    color: rgba(255, 255, 255, .72) !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
}

.site-footer .footer-column h2,
.site-footer .footer-contact h2 {
    font-size: 21px !important;
    line-height: 1.2 !important;
}

.site-footer .footer-column a {
    font-size: 16px !important;
    line-height: 35px !important;
}

.site-footer .footer-contact a {
    font-size: 14px !important;
    line-height: 20px !important;
}

.site-footer .footer-bottom,
.site-footer .footer-bottom p,
.site-footer .footer-legal a {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

@media (max-width: 900px) {
    .site-footer .footer-about p,
    .site-footer .footer-contact p,
    .site-footer .footer-bottom p,
    .site-footer .footer-column a,
    .site-footer .footer-contact a,
    .site-footer .footer-legal a,
    .site-footer .footer-bottom {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .site-footer .footer-column h2,
    .site-footer .footer-contact h2 {
        font-size: 18px !important;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding-top: 34px;
    }

    .site-footer .container {
        width: calc(100% - 32px);
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
        padding-bottom: 24px;
    }

    .site-footer .footer-about {
        grid-column: 1 / -1;
    }

    .site-footer .footer-brand,
    .site-footer .footer-brand img {
        width: 125px;
    }

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

    .site-footer .footer-column h2,
    .site-footer .footer-contact h2 {
        margin-bottom: 7px;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .site-footer .footer-column a {
        font-size: 13px !important;
        line-height: 22px !important;
    }

    .site-footer .footer-contact__item {
        gap: 7px;
        margin-bottom: 6px;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .site-footer .footer-contact__item > img,
    .site-footer .footer-contact__item span img {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .site-footer .footer-socials {
        gap: 8px;
        margin-top: 8px;
    }

    .site-footer .footer-socials a {
        width: 17px;
        height: 17px;
    }

    .site-footer .footer-bottom {
        gap: 8px;
        padding: 10px 0 12px;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .site-footer .footer-legal {
        gap: 6px 12px;
    }

    .site-footer .footer-legal a {
        font-size: 12px !important;
    }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    box-shadow: 0 1px 0 rgb(15 23 42 / 8%);
}

.announcement-bar {
    position: relative;
    min-height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    padding: 7px 20px;
    background: var(--announcement);
    color: #222124;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.announcement-sparkle {
    color: #fff8cf;
    font-size: 17px;
}

.announcement-arrow {
    margin-top: -2px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 200;
    line-height: 1;
}

.header-container {
    width: min(1600px, calc(100% - 64px));
    margin-inline: auto;
}

.header-inner {
    min-height: 95px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 190px;
    height: auto;
}

.footer-brand {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 1.55vw, 35px);
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2d2a2f;
    font-size: clamp(14px, 1vw, 14px);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    z-index: 20;
    /* Keep the panel touching its trigger so the hover state does not drop while moving down. */
    top: 100%;
    left: 50%;
    display: grid;
    min-width: 290px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #ece9f2;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgb(20 10 45 / 16%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown::before {
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #ece9f2;
    border-left: 1px solid #ece9f2;
    content: '';
    transform: translateX(-50%) rotate(45deg);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown > a,
.nav-dropdown__group > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #272331;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.nav-dropdown__icon {
    display: inline-flex;
    flex: 0 0 19px;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    overflow: hidden;
    font-size: 19px;
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 22;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-dropdown > a:hover,
.nav-dropdown__group > a:hover {
    color: var(--primary);
}

.nav-dropdown--business,
.nav-dropdown--trademark {
    min-width: 315px;
}

.nav-dropdown--mega {
    left: auto;
    right: 0;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 24px;
    min-width: 700px;
    transform: translateY(-8px);
}

.nav-item:hover .nav-dropdown--mega,
.nav-item:focus-within .nav-dropdown--mega,
.nav-item.open .nav-dropdown--mega {
    transform: translateY(0);
}

.nav-dropdown--mega::before {
    left: auto;
    right: 34px;
}

.nav-dropdown__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-dropdown__group h3 {
    margin: 0 0 8px;
    color: #251044;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: #000000;
}

/* Dropdown service links use the Figma accent yellow on hover. */
.main-nav .nav-dropdown > a:hover,
.main-nav .nav-dropdown__group > a:hover {
    color: #ff8800;
    font-weight: 600;
}

.nav-chevron {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid #9142f6;
    border-bottom: 1.5px solid #9142f6;
    transform: rotate(45deg);
}

.contact-button {
    flex: 0 0 auto;
    /* min-width: 156px; */
    /* min-height: 52px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    background: var(--primary-gradient);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-button--mobile {
    display: none;
}

.contact-button:hover {
    background: var(--primary-gradient);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

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

.hero {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 90px 0;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    text-align: center;
}

.hero .container {
    max-width: 800px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    line-height: 1.1;
}

.hero p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
}

.site-footer {
    padding-top: 44px;
    background: #301064;
    color: #ffffff;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.site-footer .container {
    width: min(1594px, calc(100% - 40px));
    margin-inline: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 348px 150px 245px 120px 271px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-about {
    min-width: 0;
}

.footer-brand {
    display: inline-block;
    width: 198px;
    margin-bottom: 28px;
}

.footer-brand img {
    display: block;
    width: 198px;
    height: auto;
}

.footer-about p {
    max-width: 348px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 20px;
}

.footer-column,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h2,
.footer-contact h2 {
    margin: 0 0 28px;
    color: #ffa71d;
    font-size: 21.187px;
    font-weight: 700;
    line-height: 1.2;
}

.footer-column a {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 16.479px;
    line-height: 35px;
    text-decoration: none;
}

.footer-contact a,
.footer-contact p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.footer-column a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
    color: #ffa71d;
}

.footer-contact__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact__item > img,
.footer-contact__item span img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #ffa71d;
    line-height: 1.2;
    text-align: center;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.footer-socials a {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.footer-socials img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-socials svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .76);
    font-size: 16.73px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 28px;
}

.footer-legal a {
    color: rgba(255, 255, 255, .76);
    font-size: 18.23px;
    text-decoration: none;
}

@media (min-width: 1051px) and (max-width: 1600px) {
    .site-footer .container {
        width: min(1320px, calc(100% - 40px));
    }
}

@media (max-width: 1280px) {
    .header-container {
        width: min(1180px, calc(100% - 40px));
    }

    .header-inner {
        gap: 22px;
    }

    .brand img {
        width: 165px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .contact-button {
        min-width: 135px;
        padding-inline: 18px;
    }
}

@media (max-width: 1050px) {
    body.menu-open {
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: calc(100vw - 40px);
        z-index: 30;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 16px 35px rgb(15 23 42 / 12%);
        max-height: calc(100dvh - 128px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

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

    .main-nav > .nav-item > .has-dropdown {
        justify-content: space-between;
        border-radius: 8px;
    }

    .main-nav > .nav-item.open > .has-dropdown {
        background: #f7f2ff;
        color: var(--primary);
    }

    .main-nav > .nav-item.open > .has-dropdown .nav-chevron {
        border-color: var(--primary);
        transform: rotate(225deg) translate(-1px, -1px);
    }

    .main-nav a {
        padding: 11px 12px;
        font-size: 15px;
    }

    .main-nav .contact-button--mobile {
        display: flex;
        width: 100%;
        min-height: 44px;
        margin-top: 10px;
        padding: 12px 16px;
        border-radius: 8px;
        color: #ffffff;
        justify-content: center;
        text-align: center;
    }

    .nav-item {
        width: 100%;
    }

    .nav-dropdown,
    .nav-dropdown--mega {
        position: static;
        display: none;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        margin: 0 0 8px;
        padding: 8px 14px;
        border: 0;
        border-left: 2px solid #e5d8ff;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        transition: none;
        overflow: hidden;
    }

    /* Cancel the desktop centered flyout transform on touch layouts. */
    .main-nav .nav-item .nav-dropdown,
    .main-nav .nav-item .nav-dropdown--mega,
    .main-nav .nav-item:hover .nav-dropdown,
    .main-nav .nav-item:focus-within .nav-dropdown {
        transform: none !important;
    }

    .nav-item.open .nav-dropdown {
        display: grid;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown--mega {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-dropdown > a,
    .nav-dropdown__group > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 6px 0;
        text-align: left;
        font-size: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nav-dropdown__icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .nav-dropdown__group h3 {
        font-size: 15px;
    }

    .contact-button {
        min-width: 125px;
        min-height: 46px;
    }

    .nav-chevron {
        margin-left: auto;
    }

    .footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 28px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .announcement-bar {
        min-height: 36px;
        gap: 9px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .announcement-arrow {
        font-size: 23px;
    }

    .header-container {
        width: calc(100% - 28px);
    }

    .header-inner {
        min-height: 78px;
        gap: 12px;
    }

    .brand img {
        width: 145px;
    }

    .main-nav {
        top: 100%;
        right: 14px;
        left: 14px;
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 122px);
        padding: 10px;
    }

    .contact-button {
        display: none;
    }

    .main-nav .contact-button--mobile {
        display: flex;
    }

    .site-footer {
        padding-top: 55px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
        padding-bottom: 55px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .footer-legal {
        justify-content: flex-start;
        gap: 14px 20px;
    }
}
