:root {
    --tgpt-ink: #101828;
    --tgpt-muted: #5e6b80;
    --tgpt-line: #e4e9f2;
    --tgpt-surface: #ffffff;
    --tgpt-soft: #f5f7fb;
    --tgpt-blue: #4075ff;
    --tgpt-violet: #7457ff;
}

.topsgpts-custom-home {
    background: var(--tgpt-soft);
    overflow-x: clip;
}

.topsgpts-custom-home .site-content {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.topsgpts-custom-home .content-area {
    float: none;
    width: 100%;
    min-width: 0;
}

.topsgpts-custom-home .widget-area,
.topsgpts-custom-home .entry-header {
    display: none;
}

.topsgpts-custom-home .site-main,
.topsgpts-custom-home .entry-content {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.topsgpts-custom-home .inside-article {
    padding: 0;
    background: transparent;
}

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

.tgpt-home {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--tgpt-ink);
    font: inherit;
    overflow-x: clip;
}

.tgpt-home a {
    text-decoration: none;
}

.tgpt-home svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tgpt-hero,
.tgpt-section,
.tgpt-cta {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.tgpt-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    align-items: center;
    min-height: 560px;
    margin-top: 30px;
    padding: 72px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 5%, rgba(87, 214, 255, .2), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(139, 92, 246, .28), transparent 30%),
        linear-gradient(135deg, #071224 0%, #0e1e46 48%, #28135a 100%);
    box-shadow: 0 30px 80px rgba(16, 24, 40, .16);
}

.tgpt-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to right, #000, transparent 78%);
}

.tgpt-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.tgpt-eyebrow,
.tgpt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #63d7ff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.tgpt-eyebrow::before,
.tgpt-kicker::before {
    width: 22px;
    height: 2px;
    content: "";
    border-radius: 10px;
    background: currentColor;
}

.tgpt-hero h1 {
    max-width: 700px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: .98;
}

.tgpt-hero h1 span {
    color: #8bdfff;
    background: linear-gradient(90deg, #79ddff, #b9a4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tgpt-hero__content > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 18px;
    line-height: 1.65;
}

.tgpt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.tgpt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tgpt-button svg,
.tgpt-text-link svg {
    width: 17px;
    height: 17px;
}

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

.tgpt-button--primary {
    color: #081226;
    background: #89dfff;
    box-shadow: 0 12px 34px rgba(77, 207, 255, .22);
}

.tgpt-button--primary:hover {
    color: #081226;
    background: #a9e9ff;
}

.tgpt-button--secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .07);
}

.tgpt-button--secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.tgpt-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 34px;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

.tgpt-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tgpt-hero__trust span::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: #79ddff;
    box-shadow: 0 0 12px #79ddff;
}

.tgpt-hero__visual {
    position: relative;
    z-index: 1;
    width: 390px;
    height: 390px;
    justify-self: center;
}

.tgpt-ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 145px;
    height: 145px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 38px;
    place-items: center;
    background: linear-gradient(145deg, rgba(94, 217, 255, .36), rgba(112, 75, 255, .28));
    box-shadow:
        0 0 0 16px rgba(255, 255, 255, .03),
        0 30px 70px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: translate(-50%, -50%) rotate(-7deg);
    backdrop-filter: blur(12px);
}

.tgpt-ai-core span {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -.08em;
}

.tgpt-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(137, 223, 255, .25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tgpt-orbit--outer {
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%) rotate(18deg) scaleY(.62);
}

.tgpt-orbit--inner {
    width: 260px;
    height: 260px;
    border-color: rgba(185, 164, 255, .35);
    transform: translate(-50%, -50%) rotate(-42deg) scaleY(.7);
}

.tgpt-orbit__dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid rgba(255, 255, 255, .52);
    border-radius: 50%;
    background: #6ddaff;
    box-shadow: 0 0 22px #6ddaff;
}

.tgpt-orbit__dot--one { top: 71px; left: 88px; }
.tgpt-orbit__dot--two { right: 38px; bottom: 124px; background: #a78bfa; box-shadow: 0 0 22px #a78bfa; }
.tgpt-orbit__dot--three { bottom: 45px; left: 152px; width: 9px; height: 9px; }

.tgpt-hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.tgpt-hero__glow--one {
    top: -100px;
    right: 23%;
    width: 260px;
    height: 260px;
    background: rgba(52, 211, 255, .08);
}

.tgpt-hero__glow--two {
    right: -90px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    background: rgba(139, 92, 246, .12);
}

.tgpt-section {
    padding: 92px 0 0;
}

.tgpt-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: end;
    gap: 40px;
    margin-bottom: 34px;
}

.tgpt-kicker {
    margin-bottom: 10px;
    color: #5373ee;
}

.tgpt-section__heading h2,
.tgpt-cta h2 {
    margin: 0;
    color: var(--tgpt-ink);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.tgpt-section__heading > p {
    margin: 0 0 4px;
    color: var(--tgpt-muted);
    font-size: 16px;
    line-height: 1.65;
}

.tgpt-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tgpt-category {
    --tgpt-accent: #7457ff;
    --tgpt-accent-soft: rgba(116, 87, 255, .1);
    position: relative;
    display: flex;
    min-height: 220px;
    padding: 24px;
    overflow: hidden;
    color: var(--tgpt-ink);
    border: 1px solid var(--tgpt-line);
    border-radius: 20px;
    flex-direction: column;
    background: var(--tgpt-surface);
    box-shadow: 0 12px 36px rgba(16, 24, 40, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tgpt-category::after {
    position: absolute;
    top: -60px;
    right: -55px;
    width: 145px;
    height: 145px;
    content: "";
    border-radius: 50%;
    background: var(--tgpt-accent-soft);
}

.tgpt-category:hover {
    color: var(--tgpt-ink);
    border-color: color-mix(in srgb, var(--tgpt-accent) 40%, #e4e9f2);
    box-shadow: 0 18px 48px rgba(16, 24, 40, .1);
    transform: translateY(-4px);
}

.tgpt-category__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    color: var(--tgpt-accent);
    border-radius: 13px;
    place-items: center;
    background: var(--tgpt-accent-soft);
}

.tgpt-category__icon svg {
    width: 25px;
    height: 25px;
}

.tgpt-category__body {
    display: block;
}

.tgpt-category__body strong {
    display: block;
    margin-bottom: 8px;
    color: var(--tgpt-ink);
    font-size: 18px;
    font-weight: 740;
    line-height: 1.25;
}

.tgpt-category__body > span {
    display: block;
    color: var(--tgpt-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tgpt-category__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--tgpt-accent);
    font-size: 12px;
    font-weight: 700;
}

.tgpt-category__meta svg {
    width: 16px;
    height: 16px;
}

.tgpt-category--emerald { --tgpt-accent: #139b72; --tgpt-accent-soft: rgba(19, 155, 114, .11); }
.tgpt-category--amber { --tgpt-accent: #c47a0a; --tgpt-accent-soft: rgba(226, 148, 24, .12); }
.tgpt-category--blue { --tgpt-accent: #3678f5; --tgpt-accent-soft: rgba(54, 120, 245, .11); }
.tgpt-category--cyan { --tgpt-accent: #0786a2; --tgpt-accent-soft: rgba(7, 134, 162, .11); }
.tgpt-category--red { --tgpt-accent: #d1445b; --tgpt-accent-soft: rgba(209, 68, 91, .1); }
.tgpt-category--orange { --tgpt-accent: #e46c22; --tgpt-accent-soft: rgba(228, 108, 34, .1); }
.tgpt-category--teal { --tgpt-accent: #128c8c; --tgpt-accent-soft: rgba(18, 140, 140, .11); }

.tgpt-latest {
    padding-bottom: 92px;
}

.tgpt-section__heading--articles {
    grid-template-columns: minmax(0, 1fr) auto;
}

.tgpt-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: #416ae8;
    font-size: 14px;
    font-weight: 700;
}

.tgpt-text-link:hover {
    color: #284fc7;
}

.tgpt-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tgpt-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tgpt-line);
    border-radius: 22px;
    flex-direction: column;
    background: var(--tgpt-surface);
    box-shadow: 0 14px 42px rgba(16, 24, 40, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.tgpt-card:hover {
    box-shadow: 0 22px 56px rgba(16, 24, 40, .12);
    transform: translateY(-4px);
}

.tgpt-card:first-child {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
}

.tgpt-card__media {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(145deg, #0a1a3c, #342066);
}

.tgpt-card:first-child .tgpt-card__media {
    min-height: 350px;
}

.tgpt-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.tgpt-card:hover .tgpt-card__image {
    transform: scale(1.035);
}

.tgpt-card__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    color: rgba(255, 255, 255, .8);
    font-size: 54px;
    font-weight: 800;
    place-items: center;
}

.tgpt-card__content {
    display: flex;
    min-width: 0;
    padding: 24px;
    flex: 1;
    flex-direction: column;
}

.tgpt-card:first-child .tgpt-card__content {
    justify-content: center;
    padding: 34px;
}

.tgpt-card__category {
    align-self: flex-start;
    margin-bottom: 13px;
    padding: 6px 9px;
    color: #4d62d8;
    border-radius: 8px;
    background: #eef0ff;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
}

.tgpt-card__category:hover {
    color: #3248be;
    background: #e3e7ff;
}

.tgpt-card h3 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 740;
    letter-spacing: -.025em;
    line-height: 1.28;
}

.tgpt-card:first-child h3 {
    font-size: clamp(25px, 3vw, 34px);
}

.tgpt-card h3 a {
    color: var(--tgpt-ink);
}

.tgpt-card h3 a:hover {
    color: #416ae8;
}

.tgpt-card__content > p {
    margin: 0 0 22px;
    color: var(--tgpt-muted);
    font-size: 14px;
    line-height: 1.65;
}

.tgpt-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    color: #7b8798;
    font-size: 12px;
}

.tgpt-card__read {
    display: grid;
    width: 34px;
    height: 34px;
    color: #416ae8;
    border-radius: 50%;
    place-items: center;
    background: #f0f3ff;
}

.tgpt-card__read:hover {
    color: #fff;
    background: #416ae8;
}

.tgpt-card__read svg {
    width: 16px;
    height: 16px;
}

.tgpt-empty {
    padding: 35px;
    color: var(--tgpt-muted);
    border: 1px dashed #cbd3df;
    border-radius: 18px;
    text-align: center;
}

.tgpt-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 45px;
    margin-bottom: 70px;
    padding: 48px 54px;
    color: #fff;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0, rgba(98, 211, 255, .18), transparent 28%),
        linear-gradient(120deg, #142048, #37166a);
    box-shadow: 0 24px 60px rgba(20, 32, 72, .16);
}

.tgpt-cta .tgpt-kicker {
    color: #7bddff;
}

.tgpt-cta h2 {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 42px);
}

.tgpt-cta p {
    max-width: 700px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.6;
}

.tgpt-button--light {
    color: #151d3f;
    white-space: nowrap;
    background: #fff;
}

.tgpt-button--light:hover {
    color: #151d3f;
    background: #dff7ff;
}

.tgpt-home a:focus-visible {
    outline: 3px solid #64d7ff;
    outline-offset: 3px;
}

@media (max-width: 1020px) {
    .tgpt-hero {
        grid-template-columns: minmax(0, 1fr) 300px;
        padding: 58px 48px;
    }

    .tgpt-hero__visual {
        width: 300px;
        height: 300px;
    }

    .tgpt-orbit--outer { width: 285px; height: 285px; }
    .tgpt-orbit--inner { width: 215px; height: 215px; }
    .tgpt-ai-core { width: 120px; height: 120px; border-radius: 30px; }

    .tgpt-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .tgpt-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 52px 38px;
    }

    .tgpt-hero__visual {
        display: none;
    }

    .tgpt-section__heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tgpt-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tgpt-card:first-child {
        grid-column: span 2;
    }

    .tgpt-cta {
        grid-template-columns: 1fr;
        padding: 42px;
    }

    .tgpt-button--light {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .tgpt-hero,
    .tgpt-section,
    .tgpt-cta {
        width: calc(100% - 24px);
        max-width: 1180px;
    }

    .tgpt-hero {
        margin-top: 12px;
        padding: 38px 22px;
        border-radius: 22px;
    }

    .tgpt-hero h1 {
        max-width: 100%;
        font-size: clamp(36px, 11.2vw, 44px);
        letter-spacing: -.045em;
        line-height: 1.02;
    }

    .tgpt-hero__content > p {
        font-size: 16px;
        line-height: 1.55;
    }

    .tgpt-eyebrow,
    .tgpt-kicker {
        font-size: 10px;
        letter-spacing: .11em;
    }

    .tgpt-button {
        width: 100%;
    }

    .tgpt-hero__trust {
        display: grid;
        gap: 9px;
    }

    .tgpt-section {
        padding-top: 58px;
    }

    .tgpt-section__heading {
        margin-bottom: 24px;
    }

    .tgpt-section__heading h2,
    .tgpt-cta h2 {
        font-size: clamp(29px, 9vw, 36px);
    }

    .tgpt-category-grid,
    .tgpt-articles-grid {
        grid-template-columns: 1fr;
    }

    .tgpt-category {
        min-height: 190px;
        padding: 22px;
    }

    .tgpt-category__icon {
        margin-bottom: 22px;
    }

    .tgpt-card:first-child {
        display: flex;
        grid-column: auto;
    }

    .tgpt-card:first-child .tgpt-card__media {
        min-height: 240px;
    }

    .tgpt-card:first-child .tgpt-card__content {
        padding: 24px;
    }

    .tgpt-card h3,
    .tgpt-card:first-child h3 {
        overflow-wrap: anywhere;
        font-size: 22px;
    }

    .tgpt-section__heading--articles {
        grid-template-columns: 1fr;
    }

    .tgpt-cta {
        margin-bottom: 36px;
        padding: 34px 24px;
        border-radius: 20px;
    }

    .tgpt-button--light {
        justify-self: stretch;
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .tgpt-hero {
        padding: 34px 19px;
    }

    .tgpt-hero h1 {
        font-size: 35px;
    }

    .tgpt-button {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tgpt-home *,
    .tgpt-home *::before,
    .tgpt-home *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
