@import url('https://fonts.googleapis.com/css2?family=Anton&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: #ffffff;
    color: #111827;
    direction: rtl;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: auto;
    margin-top: 22px;
    margin-right: 72px;
    margin-left: 140px;
    position: sticky;
    top: 18px;
    z-index: 1000;
}

.header-shell {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo,
.main-nav,
.theme-toggle,
.header-cta {
    position: relative;
    isolation: isolate;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* Logo */

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 70px;
    flex: 0 0 auto;
    text-decoration: none;
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96),
        rgba(255, 255, 255, 0.62)
    );
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow:
        0 22px 58px rgba(15, 23, 42, 0.10),
        0 8px 22px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: 0.28s ease;
}

.logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 42%),
        radial-gradient(circle at bottom left, rgba(232, 121, 249, 0.10), transparent 44%);
    z-index: -1;
}

.logo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.14),
        0 10px 28px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.logo img {
    display: block;
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* Navigation */

.main-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 66px;
    padding: 9px;
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.90),
        rgba(255, 255, 255, 0.52)
    );
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 22px 58px rgba(15, 23, 42, 0.08),
        0 8px 22px rgba(15, 23, 42, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
    overflow: hidden;
    margin-left: auto;
}

.main-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.08), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(232, 121, 249, 0.08), transparent 34%);
    pointer-events: none;
    z-index: -1;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 17px;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    transition: 0.28s ease;
    isolation: isolate;
}

.main-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96),
        rgba(255, 255, 255, 0.50)
    );
    opacity: 0;
    transform: scale(0.92);
    transition: 0.28s ease;
    z-index: -1;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 18px;
    left: 18px;
    bottom: 7px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #e879f9);
    transform: scaleX(0);
    transform-origin: center;
    transition: 0.28s ease;
}

.main-nav a:hover {
    color: #111827;
    transform: translateY(-2px);
}

.main-nav a:hover::before {
    opacity: 1;
    transform: scale(1);
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* Actions */

.navbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.theme-toggle {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.075);
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 20%, rgba(250, 204, 21, 0.16), transparent 42%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.10),
        0 8px 20px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: 0.28s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow:
        0 26px 62px rgba(15, 23, 42, 0.14),
        0 10px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.theme-toggle-icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.28s ease;
}

.theme-toggle-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle-sun {
    opacity: 0;
    transform: scale(0.72) rotate(-45deg);
}

.theme-toggle:hover .theme-toggle-icon {
    transform: scale(1.08) rotate(10deg);
}

.theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 950;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.20), transparent 36%),
        linear-gradient(135deg, #111827 0%, #263449 52%, #334155 100%);
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.22),
        0 8px 22px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: 0.3s ease;
    white-space: nowrap;
}

.header-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 26px 62px rgba(15, 23, 42, 0.28),
        0 10px 26px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 110px;
    padding: 0;
    overflow: visible;
}

.footer-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

/* Morph Text */

.footer-morph-strip {
    position: relative;
    width: 100%;
    min-height: 230px;
    margin: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

.footer-filters {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.footer-morph-inner {
    min-height: 230px;
    padding: 10px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-morph-container {
    position: relative;
    font-family: "Anton", "Vazirmatn", sans-serif;
    font-size: clamp(4rem, 13vw, 11rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    user-select: none;
    direction: ltr;
    filter: url("#footer-threshold");
}

.footer-word-rotator {
    position: relative;
    height: 1.08em;
    width: 100%;
    min-width: 11ch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-word {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #0b1730;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: footer-rotate-words 9s infinite ease-in-out;
}

.footer-word:nth-child(1) {
    animation-delay: 0s;
}

.footer-word:nth-child(2) {
    animation-delay: 3s;
}

.footer-word:nth-child(3) {
    animation-delay: 6s;
}

@keyframes footer-rotate-words {
    0% {
        opacity: 0;
        filter: blur(18px);
        transform: translate(-50%, -50%) scale(0.82);
    }

    6% {
        opacity: 0.55;
        filter: blur(8px);
    }

    16%,
    36% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -50%) scale(1);
    }

    46% {
        opacity: 0.45;
        filter: blur(8px);
    }

    52%,
    100% {
        opacity: 0;
        filter: blur(18px);
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.footer-morph-subtext {
    margin-top: 18px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    direction: ltr;
}

/* Footer Grid */

.footer-grid {
    margin-top: 18px;
    padding: 34px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: 1.45fr 0.9fr 0.9fr 1.1fr;
    gap: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.10),
        0 10px 26px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    width: 78px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96),
        rgba(255, 255, 255, 0.62)
    );
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.footer-logo img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-brand p {
    max-width: 420px;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    line-height: 2.05;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h3,
.footer-contact h3 {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
}

.footer-column a {
    width: fit-content;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.9;
    transition: 0.22s ease;
}

.footer-column a:hover {
    color: #0f172a;
    transform: translateX(-4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: grid;
    gap: 4px;
}

.footer-contact-item span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.footer-contact-item strong,
.footer-contact-item a {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.8;
}

.footer-contact-item a:hover {
    color: #0f172a;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.055);
    border: 1px solid rgba(15, 23, 42, 0.075);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.24s ease;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.20);
}

/* Liquid Blob Footer */

.liquid-footer {
    --liquid-bg: #ED5565;

    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 12rem;
    margin: 10rem 0 0;
    padding: 0;
    background: var(--liquid-bg);
    overflow: visible;
    isolation: isolate;
    border-radius: 0;
    box-shadow: none;
}

.liquid-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1rem;
    background: var(--liquid-bg);
    filter: url("#liquid-blob");
    z-index: 1;
    pointer-events: none;
}

.liquid-bubble {
    position: absolute;
    left: clamp(
        calc(var(--size, 4rem) / 2),
        var(--position, 50%),
        calc(100% - (var(--size, 4rem) / 2))
    );
    bottom: -4rem;
    width: var(--size, 4rem);
    height: var(--size, 4rem);
    background: var(--liquid-bg);
    border-radius: 100%;
    transform: translate(-50%, 100%);
    animation:
        liquid-bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
        liquid-bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
}

.liquid-footer-content {
    position: relative;
    z-index: 2;
    min-height: 12rem;
    padding: 2rem;
    background: var(--liquid-bg);
    color: #F5F7FA;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    direction: ltr;
}

.liquid-footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.liquid-footer-links > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.liquid-footer-links b {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
}

.liquid-footer-links a {
    color: #F5F7FA;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.22s ease;
}

.liquid-footer-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.liquid-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.liquid-footer-image {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
}

.liquid-footer-image img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    display: block;
}

.liquid-footer-brand p {
    margin: 0;
    color: #F5F7FA;
    font-size: 0.75rem;
    font-weight: 600;
    direction: ltr;
}

.liquid-blob-svg {
    position: fixed;
    top: 100vh;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Bubble positions */

.liquid-bubble:nth-child(1) {
    --size: 3.2rem;
    --distance: 8rem;
    --position: -3%;
    --time: 3.2s;
    --delay: -1.4s;
}

.liquid-bubble:nth-child(2) {
    --size: 5.1rem;
    --distance: 9rem;
    --position: 3%;
    --time: 3.8s;
    --delay: -2.6s;
}

.liquid-bubble:nth-child(3) {
    --size: 2.4rem;
    --distance: 7rem;
    --position: 8%;
    --time: 2.9s;
    --delay: -1.1s;
}

.liquid-bubble:nth-child(4) {
    --size: 4.8rem;
    --distance: 8.5rem;
    --position: 13%;
    --time: 3.6s;
    --delay: -2.2s;
}

.liquid-bubble:nth-child(5) {
    --size: 3.8rem;
    --distance: 7.8rem;
    --position: 18%;
    --time: 3.1s;
    --delay: -1.7s;
}

.liquid-bubble:nth-child(6) {
    --size: 5.5rem;
    --distance: 10rem;
    --position: 23%;
    --time: 4s;
    --delay: -3s;
}

.liquid-bubble:nth-child(7) {
    --size: 3rem;
    --distance: 7rem;
    --position: 28%;
    --time: 2.8s;
    --delay: -1.2s;
}

.liquid-bubble:nth-child(8) {
    --size: 4.6rem;
    --distance: 8.8rem;
    --position: 33%;
    --time: 3.7s;
    --delay: -2.7s;
}

.liquid-bubble:nth-child(9) {
    --size: 3.2rem;
    --distance: 7.2rem;
    --position: 38%;
    --time: 3s;
    --delay: -1.6s;
}

.liquid-bubble:nth-child(10) {
    --size: 5.8rem;
    --distance: 10rem;
    --position: 43%;
    --time: 4.1s;
    --delay: -3.2s;
}

.liquid-bubble:nth-child(11) {
    --size: 3.6rem;
    --distance: 8rem;
    --position: 48%;
    --time: 3.4s;
    --delay: -2.1s;
}

.liquid-bubble:nth-child(12) {
    --size: 4.9rem;
    --distance: 9.3rem;
    --position: 53%;
    --time: 3.9s;
    --delay: -2.8s;
}

.liquid-bubble:nth-child(13) {
    --size: 3.1rem;
    --distance: 7.5rem;
    --position: 58%;
    --time: 3s;
    --delay: -1.3s;
}

.liquid-bubble:nth-child(14) {
    --size: 5.3rem;
    --distance: 9.8rem;
    --position: 63%;
    --time: 4s;
    --delay: -3.3s;
}

.liquid-bubble:nth-child(15) {
    --size: 4rem;
    --distance: 8.2rem;
    --position: 68%;
    --time: 3.4s;
    --delay: -2.4s;
}

.liquid-bubble:nth-child(16) {
    --size: 2.9rem;
    --distance: 7rem;
    --position: 73%;
    --time: 2.9s;
    --delay: -1.5s;
}

.liquid-bubble:nth-child(17) {
    --size: 4.7rem;
    --distance: 8.9rem;
    --position: 78%;
    --time: 3.6s;
    --delay: -2.9s;
}

.liquid-bubble:nth-child(18) {
    --size: 3.5rem;
    --distance: 7.7rem;
    --position: 83%;
    --time: 3.2s;
    --delay: -1.8s;
}

.liquid-bubble:nth-child(19) {
    --size: 5.7rem;
    --distance: 10rem;
    --position: 88%;
    --time: 4.2s;
    --delay: -3.4s;
}

.liquid-bubble:nth-child(20) {
    --size: 3.3rem;
    --distance: 7.5rem;
    --position: 93%;
    --time: 3.1s;
    --delay: -1.4s;
}

.liquid-bubble:nth-child(21) {
    --size: 4.4rem;
    --distance: 8.6rem;
    --position: 98%;
    --time: 3.5s;
    --delay: -2.6s;
}

.liquid-bubble:nth-child(22) {
    --size: 5.1rem;
    --distance: 9.4rem;
    --position: 103%;
    --time: 4s;
    --delay: -3s;
}

.liquid-bubble:nth-child(23) {
    --size: 3.2rem;
    --distance: 7rem;
    --position: 6%;
    --time: 2.8s;
    --delay: -1.6s;
}

.liquid-bubble:nth-child(24) {
    --size: 4.8rem;
    --distance: 9rem;
    --position: 30%;
    --time: 3.8s;
    --delay: -2.5s;
}

.liquid-bubble:nth-child(25) {
    --size: 3.7rem;
    --distance: 8rem;
    --position: 51%;
    --time: 3.3s;
    --delay: -2.2s;
}

.liquid-bubble:nth-child(26) {
    --size: 5.4rem;
    --distance: 10rem;
    --position: 72%;
    --time: 4.1s;
    --delay: -3.1s;
}

.liquid-bubble:nth-child(27) {
    --size: 2.7rem;
    --distance: 7.2rem;
    --position: 96%;
    --time: 2.7s;
    --delay: -1.2s;
}

.liquid-bubble:nth-child(28) {
    --size: 4.2rem;
    --distance: 8.8rem;
    --position: 15%;
    --time: 3.4s;
    --delay: -2.4s;
}

.liquid-bubble:nth-child(29) {
    --size: 5.6rem;
    --distance: 9.8rem;
    --position: 41%;
    --time: 4.2s;
    --delay: -3.2s;
}

.liquid-bubble:nth-child(30) {
    --size: 3.4rem;
    --distance: 7.4rem;
    --position: 66%;
    --time: 3s;
    --delay: -1.6s;
}

.liquid-bubble:nth-child(31) {
    --size: 4.9rem;
    --distance: 9.2rem;
    --position: 86%;
    --time: 3.8s;
    --delay: -2.8s;
}

.liquid-bubble:nth-child(32) {
    --size: 3.1rem;
    --distance: 7rem;
    --position: 50%;
    --time: 2.9s;
    --delay: -1.3s;
}

@keyframes liquid-bubble-size {
    0%,
    75% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
    }

    100% {
        width: 0;
        height: 0;
    }
}

@keyframes liquid-bubble-move {
    0% {
        bottom: -4rem;
    }

    100% {
        bottom: var(--distance, 10rem);
    }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1320px) {
    .site-header {
        margin-right: 48px;
        margin-left: 112px;
    }

    .header-shell {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 0 14px;
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .liquid-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .liquid-footer-links > div {
        justify-content: center;
    }
}

@media (max-width: 1050px) {
    .site-header {
        margin-right: 24px;
        margin-left: 24px;
    }

    .header-shell {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo actions"
            "nav nav";
        gap: 14px;
    }

    .logo {
        grid-area: logo;
    }

    .main-nav {
        grid-area: nav;
        width: 100%;
        justify-self: stretch;
        margin-left: 0;
    }

    .navbar-actions {
        grid-area: actions;
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .site-header {
        margin: 14px 14px 0;
        top: 12px;
    }

    .header-shell {
        gap: 12px;
    }

    .logo {
        width: 68px;
        height: 58px;
        border-radius: 22px;
    }

    .logo img {
        height: 44px;
    }

    .main-nav {
        min-height: 58px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 7px;
        border-radius: 22px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        font-size: 14px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .theme-toggle {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .theme-toggle-icon svg {
        width: 23px;
        height: 23px;
    }

    .header-cta {
        min-height: 52px;
        font-size: 14px;
        border-radius: 18px;
        padding: 0 20px;
    }

    .footer-shell {
        width: calc(100% - 28px);
    }

    .site-footer {
        margin-top: 80px;
    }

    .footer-morph-strip {
        min-height: 180px;
        margin: 0 0 26px;
    }

    .footer-morph-inner {
        min-height: 180px;
        padding: 0 10px;
    }

    .footer-morph-container {
        font-size: clamp(3rem, 18vw, 5.5rem);
    }

    .footer-morph-subtext {
        margin-top: 12px;
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .footer-grid {
        padding: 24px;
        border-radius: 26px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .liquid-footer {
        margin-top: 8rem;
    }

    .liquid-footer-content {
        padding: 2rem 1.3rem;
    }

    .liquid-footer-links > div {
        gap: 0.5rem;
    }

    .liquid-footer-links a,
    .liquid-footer-links b {
        font-size: 0.85rem;
    }
}

@media (max-width: 460px) {
    .navbar-actions {
        gap: 10px;
    }

    .header-cta {
        font-size: 13px;
        padding: 0 14px;
    }

    .theme-toggle {
        width: 50px;
        height: 50px;
    }

    .footer-morph-strip {
        min-height: 150px;
    }

    .footer-morph-inner {
        min-height: 150px;
    }

    .footer-morph-container {
        font-size: clamp(2.4rem, 17vw, 4.3rem);
    }

    .footer-morph-subtext {
        font-size: 10px;
    }

    .footer-grid {
        padding: 20px;
    }

    .footer-logo {
        width: 68px;
        height: 58px;
        border-radius: 22px;
    }

    .footer-logo img {
        height: 44px;
    }

    .liquid-footer-brand p {
        font-size: 0.68rem;
    }
}

