/* Axxus Insights brand layer for Ghost Source.
   Tokens are taken from the Axxus site (axxus.io): ink #10111A, page #F7F7FB, Inter,
   indigo > violet > pink gradient (#3B44DF > #7E55F0 > #DF6AB0), cyan glow #70DDF4,
   pill buttons, 28px cards, tracked uppercase eyebrows, tight negative letter-spacing. */

:root {
    --ax-ink: #10111a;
    --ax-page: #f7f7fb;
    --ax-wash: #efebfd;
    --ax-violet: #7e55f0;
    --ax-indigo: #3b44df;
    --ax-pink: #df6ab0;
    --ax-cyan: #70ddf4;
    --ax-muted: #52525c;
    --ax-line: rgb(16 17 26 / 0.1);
    --ax-grad: linear-gradient(100deg, #3b44df, #7e55f0 50%, #df6ab0);
    /* lighter stops so gradient text keeps contrast on the dark ink background */
    --ax-grad-light: linear-gradient(100deg, #6f7aff, #9a78ff 50%, #f58ac6);
    --ax-pad: clamp(72px, 9vw, 132px);
}

/* Brand accent for every themed element (Portal follows the accent set in Ghost Admin) */
body {
    --ghost-accent-color: var(--ax-violet);
    color: var(--ax-ink);
    -webkit-font-smoothing: antialiased;
}

.ax-grad {
    background: var(--ax-grad-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Navigation ---------- */
.gh-navigation {
    height: 84px;
    border-bottom: 1px solid var(--ax-line);
}

.ax-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.ax-brand-mark {
    display: block;
    width: auto;
    height: 30px;
    max-height: none !important;
}

.ax-brand-sub {
    font-weight: 500;
    color: var(--ax-muted);
}

/* Tighter spacing so all six category links fit on a 1440px desktop instead of
   the last one (Research) falling into the overflow menu. Mobile menu is untouched. */
@media (min-width: 768px) {
    .gh-navigation .nav {
        gap: 16px;
    }

    .gh-navigation-menu {
        font-size: 1.4rem;
    }
}

.gh-navigation-members .gh-button {
    background: var(--ax-ink);
}

.gh-navigation-members .gh-button:hover {
    background: var(--ax-violet);
    opacity: 1;
}

/* ---------- Feed cards (all pages) ---------- */
.gh-card-image {
    border-radius: 20px;
    overflow: hidden;
}

.gh-card-tag {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ax-violet);
}

.gh-card-title {
    letter-spacing: -0.03em;
}

.gh-card-link:hover .gh-card-title {
    color: var(--ax-violet);
}

/* ---------- Footer ---------- */
.gh-footer {
    margin-top: 96px;
    padding-top: 24px;
    background: linear-gradient(90deg, #3b44df, #7e55f0 50%, #df6ab0) top / 100% 3px no-repeat, var(--ax-ink);
    color: #fff;
    --color-darker-gray: #fff;
    --color-primary-text: #fff;
    --color-secondary-text: rgb(255 255 255 / 0.62);
    --color-border: rgb(255 255 255 / 0.14);
    --color-lighter-gray: rgb(255 255 255 / 0.1);
}

.home-template .gh-footer {
    margin-top: 0;
}

.gh-footer-bar {
    margin-bottom: 0;
    padding-block: 40px 48px;
    border-block: 0;
}

.gh-footer .ax-brand {
    font-size: 2rem;
}

.gh-footer .ax-brand-sub {
    color: rgb(255 255 255 / 0.62);
}

.gh-footer .gh-footer-signup {
    padding-top: 56px;
    margin-bottom: 56px;
}

/* The homepage has its own newsletter module */
.home-template .gh-footer-signup {
    display: none;
}

.gh-footer .gh-social-links {
    padding-top: 40px;
}

/* ---------- Homepage ---------- */
.ax-home {
    color: var(--ax-ink);
}

.ax-eyebrow,
.ax-label {
    margin: 0 0 24px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ax-eyebrow {
    color: rgb(255 255 255 / 0.66);
}

.ax-label {
    color: var(--ax-muted);
}

.ax-section-title {
    margin: 0 0 clamp(28px, 4vw, 56px);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.ax-note {
    margin: 0;
    max-width: 52ch;
    font-size: clamp(1.7rem, 1.6vw, 2rem);
    line-height: 1.5;
    color: var(--ax-muted);
}

.ax-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 16px 30px;
    border-radius: 999px;
    background: #fff;
    color: var(--ax-ink);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ax-button:hover {
    opacity: 1;
    box-shadow: 0 12px 36px -8px rgb(126 85 240 / 0.85);
}

.ax-button svg,
.ax-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ax-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ax-violet);
    text-decoration: none;
}

.ax-home a:focus-visible {
    outline: 3px solid var(--ax-violet);
    outline-offset: 4px;
}

/* 1. Hero (dark, glows as on axxus.io) */
.ax-hero {
    position: relative;
    overflow: hidden;
    background: var(--ax-ink);
    color: #fff;
    padding-top: clamp(88px, 13vw, 188px);
    padding-bottom: var(--ax-pad);
}

.ax-hero::before,
.ax-hero::after,
.ax-glow {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ax-hero::before {
    width: min(760px, 100vw);
    aspect-ratio: 1;
    left: -12%;
    top: -34%;
    background: radial-gradient(circle, rgb(126 85 240 / 0.6), transparent 65%);
}

.ax-hero::after {
    width: min(640px, 90vw);
    aspect-ratio: 1;
    right: -10%;
    bottom: -42%;
    background: radial-gradient(circle, rgb(112 221 244 / 0.3), transparent 65%);
}

.ax-glow {
    width: min(560px, 80vw);
    aspect-ratio: 1;
    right: 4%;
    top: 6%;
    background: radial-gradient(circle, rgb(223 106 176 / 0.34), transparent 65%);
}

.ax-hero-inner {
    position: relative;
    z-index: 1;
}

.ax-hero-title {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(4rem, 9vw, 9.6rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.ax-hero-lede {
    margin: clamp(28px, 4vw, 48px) 0 0;
    max-width: 30ch;
    font-size: clamp(2.2rem, 2.6vw, 3rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgb(255 255 255 / 0.92);
}

.ax-hero-body {
    margin: 20px 0 0;
    max-width: 58ch;
    font-size: clamp(1.7rem, 1.5vw, 1.9rem);
    line-height: 1.6;
    color: rgb(255 255 255 / 0.64);
}

.ax-hero-art {
    position: absolute;
    z-index: 0;
    right: max(4vw, 20px);
    top: 50%;
    width: min(38vw, 520px);
    transform: translateY(-50%);
    opacity: 0.95;
    pointer-events: none;
}

@media (max-width: 999px) {
    .ax-hero-art {
        display: none;
    }
}

/* 2. Featured story */
.ax-feature {
    background: var(--ax-page);
    padding-block: clamp(48px, 6vw, 96px);
}

.ax-feature-link {
    display: grid;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(20px, 3vw, 40px);
    color: inherit;
    text-decoration: none;
    background: rgb(255 255 255 / 0.72);
    border: 1px solid var(--ax-line);
    border-radius: 28px;
}

.ax-feature-link.has-image,
.ax-feature-link.has-art {
    grid-template-columns: 1fr;
    align-items: center;
}

.ax-feature-image,
.ax-feature-art {
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    background: var(--ax-wash);
}

.ax-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ax-feature-art {
    position: relative;
    background: linear-gradient(135deg, #3b44df, #7e55f0 55%, #df6ab0);
}

.ax-feature-art::before,
.ax-feature-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.ax-feature-art::before {
    width: 70%;
    aspect-ratio: 1;
    left: -14%;
    top: -30%;
    background: radial-gradient(circle, rgb(255 255 255 / 0.4), transparent 65%);
}

.ax-feature-art::after {
    width: 60%;
    aspect-ratio: 1;
    right: -10%;
    bottom: -28%;
    background: radial-gradient(circle, rgb(112 221 244 / 0.7), transparent 65%);
}

.ax-feature-tag {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ax-wash);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ax-violet);
}

.ax-feature-title {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(3rem, 5.2vw, 5.8rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.ax-feature-deck {
    margin: 24px 0 32px;
    max-width: 48ch;
    font-size: clamp(1.8rem, 1.7vw, 2.1rem);
    line-height: 1.5;
    color: var(--ax-muted);
}

.ax-feature-link:not(.has-image):not(.has-art) .ax-feature-deck {
    margin-bottom: 0;
}

.ax-feature-link:hover .ax-feature-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    text-decoration-color: var(--ax-violet);
}

@media (min-width: 900px) {
    .ax-feature-link.has-image,
    .ax-feature-link.has-art {
        grid-template-columns: 1.1fr 1fr;
    }

    .ax-feature-link.has-art {
        grid-template-columns: 1fr 1fr;
    }

    .ax-feature-link.has-art .ax-feature-art {
        order: 2;
    }
}

/* 3. Category discovery */
.ax-start {
    background: linear-gradient(180deg, var(--ax-page), var(--ax-wash));
    padding-block: var(--ax-pad);
}

.ax-cats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ax-cats li {
    margin: 0;
}

.ax-cats li:nth-child(1) { --ax-num: linear-gradient(100deg, #3b44df, #7e55f0); }
.ax-cats li:nth-child(2) { --ax-num: linear-gradient(100deg, #7e55f0, #df6ab0); }
.ax-cats li:nth-child(3) { --ax-num: linear-gradient(100deg, #3b9fdc, #3b44df); }
.ax-cats li:nth-child(4) { --ax-num: linear-gradient(100deg, #3b44df, #df6ab0); }
.ax-cats li:nth-child(5) { --ax-num: linear-gradient(100deg, #df6ab0, #7e55f0); }
.ax-cats li:nth-child(6) { --ax-num: linear-gradient(100deg, #2fb6d8, #7e55f0); }

.ax-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    padding: clamp(24px, 3vw, 36px);
    color: inherit;
    text-decoration: none;
    background: rgb(255 255 255 / 0.74);
    border: 1px solid var(--ax-line);
    border-radius: 28px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ax-cat:hover {
    opacity: 1;
    border-color: rgb(126 85 240 / 0.45);
    box-shadow: 0 24px 56px -24px rgb(126 85 240 / 0.55);
}

.ax-cat-num {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ax-num, var(--ax-grad));
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
}

.ax-cat-name {
    margin: auto 0 12px;
    padding-top: 44px;
    font-size: clamp(2.4rem, 2.6vw, 3rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.ax-cat-desc {
    margin: 0;
    max-width: 34ch;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--ax-muted);
}

.ax-cat-arrow {
    position: absolute;
    top: clamp(24px, 3vw, 36px);
    right: clamp(24px, 3vw, 36px);
    display: inline-flex;
    color: var(--ax-violet);
}

.ax-cat-arrow svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 640px) {
    .ax-cat {
        min-height: 250px;
    }

    .ax-cats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .ax-cats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ax-cat:hover {
        transform: translateY(-4px);
    }

    .ax-cat-arrow {
        transition: transform 0.25s ease;
    }

    .ax-cat:hover .ax-cat-arrow {
        transform: translate(3px, -3px);
    }

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

/* 4. Typography-led brand moment */
.ax-moment {
    position: relative;
    overflow: hidden;
    background: var(--ax-ink);
    color: #fff;
    padding-block: clamp(88px, 12vw, 184px);
}

.ax-moment::before,
.ax-moment::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ax-moment::before {
    width: min(720px, 100vw);
    aspect-ratio: 1;
    left: -16%;
    top: -30%;
    background: radial-gradient(circle, rgb(126 85 240 / 0.5), transparent 65%);
}

.ax-moment::after {
    width: min(640px, 90vw);
    aspect-ratio: 1;
    right: -14%;
    bottom: -36%;
    background: radial-gradient(circle, rgb(223 106 176 / 0.38), transparent 65%);
}

.ax-moment-inner {
    position: relative;
    z-index: 1;
}

.ax-moment-title {
    margin: 0 0 clamp(48px, 7vw, 104px);
    max-width: 14ch;
    font-size: clamp(4.2rem, 10vw, 11rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.ax-spectrum {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ax-spectrum li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 32px;
    margin: 0;
    padding: clamp(14px, 2vw, 24px) 0;
    border-top: 1px solid rgb(255 255 255 / 0.16);
    font-size: clamp(1.8rem, 4vw, 4.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ax-spectrum li:last-child {
    border-bottom: 1px solid rgb(255 255 255 / 0.16);
}

.ax-spectrum li span:last-child {
    text-align: right;
    background: var(--ax-grad-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ax-moment-close {
    margin: clamp(48px, 7vw, 96px) 0 0;
    max-width: 22ch;
    font-size: clamp(2.6rem, 4.4vw, 5.2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

/* 5-7. Content-fed sections */
.ax-feed-section {
    background: var(--ax-page);
    padding-block: var(--ax-pad);
}

.ax-voices {
    background: #fff;
    padding-block: var(--ax-pad);
}

.ax-research {
    background: var(--ax-page);
    padding-block: var(--ax-pad);
}

.ax-research .ax-section-title {
    margin-bottom: 16px;
}

.ax-research .ax-note {
    margin: 0 0 40px;
}

.ax-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 56px) 32px;
}

@media (min-width: 640px) {
    .ax-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .ax-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 8. Newsletter: dark rounded card */
.ax-newsletter {
    background: var(--ax-page);
    padding-block: 0 var(--ax-pad);
}

.ax-newsletter-inner {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 32px;
    align-items: end;
    padding: clamp(32px, 6vw, 80px);
    border-radius: 30px;
    background: var(--ax-ink);
    color: #fff;
    --color-darker-gray: #fff;
    --color-primary-text: #fff;
    --color-secondary-text: rgb(255 255 255 / 0.6);
    --color-border: rgb(255 255 255 / 0.2);
    --color-lighter-gray: rgb(255 255 255 / 0.1);
}

.ax-newsletter-inner::before,
.ax-newsletter-inner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ax-newsletter-inner::before {
    width: 420px;
    aspect-ratio: 1;
    left: -120px;
    top: -160px;
    background: radial-gradient(circle, rgb(126 85 240 / 0.6), transparent 65%);
}

.ax-newsletter-inner::after {
    width: 420px;
    aspect-ratio: 1;
    right: -120px;
    bottom: -180px;
    background: radial-gradient(circle, rgb(223 106 176 / 0.4), transparent 65%);
}

.ax-newsletter-copy,
.ax-newsletter .gh-form {
    position: relative;
    z-index: 1;
}

.ax-newsletter .ax-section-title {
    margin-bottom: 16px;
    max-width: 16ch;
}

.ax-newsletter .ax-note {
    color: rgb(255 255 255 / 0.64);
}

.ax-newsletter .gh-form-input {
    color: #fff;
    background: rgb(255 255 255 / 0.08);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}

.ax-newsletter .gh-form-input::placeholder {
    color: rgb(255 255 255 / 0.55);
}

.ax-newsletter .gh-button {
    background: var(--ax-grad);
    color: #fff;
}

@media (min-width: 900px) {
    .ax-newsletter-inner {
        grid-template-columns: 1.1fr 1fr;
        gap: 64px;
    }
}

/* 9. Restrained Axxus CTA */
.ax-cta {
    background: #fff;
    border-top: 1px solid var(--ax-line);
    padding-block: clamp(28px, 3vw, 44px);
}

.ax-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.ax-cta-inner p {
    margin: 0;
    max-width: 62ch;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--ax-muted);
}
