/* AdNexa homepage styles */
.an-home {
    --navy: #041555;
    --blue: #055eee;
    --cyan: #0c9cf8;
    --purple: #5e07dd;
    --violet: #9b1ef7;
    --orange: #f9a30e;
    --ice: #edf2fc;
    --muted: #4f5e80;
    --line: #dce5f7;
    --radius: 20px;
}

.an-home,
.an-home * { box-sizing: border-box; }

.an-home {
    margin: 0;
    background: var(--ice);
    color: var(--navy);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.55;
}

.an-home [hidden] { display: none !important; }
.an-home a { color: inherit; text-decoration: none; }
.an-home button { font: inherit; cursor: pointer; }
.an-home :focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.an-home h1, .an-home h2, .an-home p { margin: 0; }
.an-home h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.an-home p { color: var(--muted); }

.an-skip {
    position: fixed;
    z-index: 3;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 8px 14px;
    background: white;
    border-radius: 10px;
}

.an-skip:focus { transform: none; }

.an-consent {
    position: fixed;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 35px #04155532;
}

.an-consent p { margin-block: 6px 13px; font-size: .93rem; }
.an-home .an-consent p a { color: var(--blue); text-decoration: underline; }
.an-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }


/* AdNexa public homepage */
.an-container {
    width: min(100% - 2.5rem, 1390px);
    margin-inline: auto;
}

.an-header { background: var(--ice); }

.an-topbar,
.an-brand,
.an-nav,
.an-auth,
.an-actions {
    display: flex;
    align-items: center;
}

.an-topbar {
    min-height: 78px;
    justify-content: space-between;
    gap: 18px;
    padding-block: 10px;
}

.an-brand {
    gap: 12px;
    font-size: clamp(1.25rem, 2.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.an-mark {
    display: grid;
    place-items: center;
    width: 52px;
    aspect-ratio: 1.15;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: -.05em;
}

.an-nav { gap: clamp(16px, 3vw, 48px); font-weight: 700; }
.an-nav a:hover, .an-home .an-text-link:hover { text-decoration: underline; }
.an-auth, .an-actions { gap: 12px; flex-wrap: wrap; }

.an-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    line-height: 1.35;
}

.an-home .an-primary,
.an-home .an-button-primary {
    background: var(--blue);
    color: #fff;
}

.an-home .an-primary:hover,
.an-home .an-button-primary:hover { background: #084ac1; }

.an-home .an-outline { border-color: #f4f7ff; color: #fff; }
.an-home .an-outline:hover { background: #ffffff1c; }
.an-home .an-button-quiet { border-color: #aebbda; background: #fff; color: var(--navy); }

.an-hero {
    overflow: hidden;
    background: linear-gradient(120deg, #081954, #04133f);
    color: #fff;
}

.an-hero-inner {
    min-height: clamp(350px, 29.5vw, 470px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    padding-block: 38px;
}

.an-hero-copy { z-index: 1; }

.an-hero h1 {
    font-size: clamp(2.45rem, 4.5vw, 4.55rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -.052em;
}

.an-hero h1 span { display: block; color: #2bdbff; }

.an-hero p {
    max-width: 30ch;
    margin-block: 18px 25px;
    color: #f2f6ff;
    font-size: clamp(1.05rem, 1.75vw, 1.65rem);
    line-height: 1.3;
}

.an-hero .an-button {
    min-height: 52px;
    padding-inline: clamp(14px, 2vw, 28px);
    font-size: clamp(.95rem, 1.4vw, 1.3rem);
}

.an-hero-art {
    align-self: stretch;
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    isolation: isolate;
}

.an-hero-art::before {
    position: absolute;
    z-index: -1;
    inset: -34px -14px;
    content: '';
    background:
        linear-gradient(#1576d72b 1px, transparent 1px),
        linear-gradient(90deg, #1576d72b 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse, #000 45%, transparent 80%);
}

.an-chain {
    position: relative;
    width: min(100%, 490px);
    aspect-ratio: 2.25;
    transform: rotate(-32deg);
    filter: drop-shadow(0 24px 28px #00082b99);
}

.an-ring {
    position: absolute;
    width: 60%;
    height: 76%;
    top: 12%;
    border: clamp(20px, 3.8vw, 54px) solid;
    border-radius: 999px;
    box-shadow: inset 0 5px 12px #020d5d9c, inset 0 -4px 11px #b7f6ff91, 0 14px 18px #00134db0;
}

.an-ring-blue,
.an-ring-overlap { left: 0; border-color: #055eee #0549ca #1336de #1687ff; }

.an-ring-cyan {
    right: 0;
    border-color: #7aeaff #46d2ff #12a9d5 #9ef4ff;
    box-shadow: inset 0 4px 13px #006da3a1, 0 6px 16px #0abaff69;
}

.an-ring-overlap { clip-path: inset(0 0 50% 67%); }

.an-roles { padding-block: clamp(28px, 4vw, 56px) 20px; }

.an-home .an-roles h2 {
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(1.85rem, 3.6vw, 3.35rem);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -.05em;
}

.an-role-grid,
.an-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 26px);
}

.an-card {
    padding: clamp(20px, 3vw, 40px);
    border: 1px solid #b1c4e3;
    border-radius: 17px;
    background: #fff;
}

.an-card h3 {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.5vw, 2.25rem);
    letter-spacing: -.04em;
    line-height: 1.18;
}

.an-card p { margin-bottom: 14px; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.an-home .an-text-link { color: #0557d9; font-weight: 750; }

.an-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 1.1em;
    width: 1.1em;
    height: 1.1em;
    color: var(--blue);
}

.an-icon-link { color: var(--purple); transform: rotate(-43deg); }
.an-icon-link::before,
.an-icon-link::after {
    position: absolute;
    width: 65%;
    height: 44%;
    top: 28%;
    border: .11em solid currentColor;
    border-radius: 99px;
    content: '';
}

.an-icon-link::before { left: -10%; }
.an-icon-link::after { right: -10%; }

.an-icon-target {
    border: .12em solid #c65400;
    border-radius: 50%;
    box-shadow: inset 0 0 0 .12em white, inset 0 0 0 .22em #c65400;
}

.an-icon-report {
    background: linear-gradient(currentColor 0 0) left bottom / 22% 42% no-repeat,
        linear-gradient(currentColor 0 0) center bottom / 22% 69% no-repeat,
        linear-gradient(currentColor 0 0) right bottom / 22% 98% no-repeat;
}

.an-icon-wallet {
    height: .76em;
    border: .11em solid currentColor;
    border-radius: .18em;
}

.an-icon-wallet::after {
    position: absolute;
    top: 25%;
    right: -.16em;
    width: .32em;
    height: .28em;
    border: .09em solid currentColor;
    border-radius: .12em;
    background: var(--ice);
    content: '';
}

.an-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    margin: 24px 0 10px;
    list-style: none;
}

.an-benefits li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 6px 12px;
    font-size: clamp(.95rem, 1.55vw, 1.35rem);
    font-weight: 750;
}

.an-benefits li + li { border-left: 1px solid #b1c4e3; }
.an-benefits .an-icon-link { color: #04621d; }

.an-band { padding-block: 30px; background: #e3ecfc; }
.an-guide { align-items: center; }
.an-guide ol { padding-left: 1.35em; margin-bottom: 0; }
.an-guide li + li { margin-top: 10px; }
.an-card.an-ptc { padding: clamp(18px, 2.3vw, 32px); }

.an-platform { padding-top: 30px; }
.an-platform p { margin-top: 8px; }
.an-stats { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.an-stats div { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.an-stats dd { margin: 0; color: var(--blue); font-size: 1.4rem; font-weight: 800; }

.an-faq { padding-block: 30px 40px; }
.an-faq details { margin-top: 9px; padding: 11px 0; border-top: 1px solid #bacbe6; }
.an-faq summary { cursor: pointer; font-weight: 700; }
.an-faq p { margin-top: 7px; }

.an-footer { padding-block: 32px 15px; background: #041555; color: #f2f6ff; }

.an-footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.an-footer-grid nav { display: grid; align-content: start; gap: 7px; }
.an-footer .an-brand { font-size: 1.5rem; }
.an-footer .an-mark { width: 40px; font-size: 1.1rem; }
.an-footer-grid h2 { margin-bottom: 4px; font-size: 1rem; }
.an-footer p, .an-footer nav a, .an-footer nav button { color: #dce7ff; font-size: .9rem; }
.an-footer .an-brand + p { margin-top: 9px; }
.an-footer nav button { padding: 0; border: 0; background: transparent; text-align: left; }
.an-footer nav a:hover, .an-footer nav button:hover { text-decoration: underline; }

.an-footer .an-copyright {
    margin-top: 23px;
    padding-top: 12px;
    border-top: 1px solid #ffffff33;
}

@media (max-width: 850px) {
    .an-topbar { flex-wrap: wrap; }
    .an-nav { order: 1; width: 100%; }
    .an-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
    .an-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .an-footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .an-container { width: calc(100% - 2rem); }
    .an-topbar { column-gap: 8px; }
    .an-header .an-mark { width: 39px; font-size: 1.08rem; }
    .an-header .an-brand { gap: 7px; }
    .an-nav { gap: 15px; flex-wrap: wrap; font-size: .91rem; }
    .an-auth { gap: 2px; }
    .an-auth .an-button { padding-inline: 8px; font-size: .88rem; }
    .an-hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 32px 5px; }
    .an-hero-art { min-height: 175px; }
    .an-chain { width: min(58%, 255px); }
    .an-role-grid, .an-guide { grid-template-columns: minmax(0, 1fr); }
    .an-benefits { grid-template-columns: minmax(0, 1fr); }
    .an-benefits li { justify-content: flex-start; }
    .an-benefits li + li { border-left: 0; border-top: 1px solid #b1c4e3; }
    .an-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
