/* ======================================================================
   R2.1T.1A | Portal do Horizonte Territorial
   Fundação visual do Territorial 2.0
   ====================================================================== */

.tv2-page {
    --tv2-ink: #10203c;
    --tv2-text: #34435f;
    --tv2-muted: #687792;
    --tv2-line: rgba(112, 132, 177, .2);
    --tv2-paper: rgba(255, 255, 255, .72);
    --tv2-paper-strong: rgba(255, 255, 255, .9);
    --tv2-night: #0e1533;
    --tv2-blue: #4567f2;
    --tv2-blue-rgb: 69, 103, 242;
    --tv2-violet: #7b55e7;
    --tv2-violet-rgb: 123, 85, 231;
    --tv2-cyan: #1ea7c5;
    --tv2-cyan-rgb: 30, 167, 197;
    --tv2-green: #2e9e72;
    --tv2-green-rgb: 46, 158, 114;
    --tv2-amber: #d79a31;
    --tv2-amber-rgb: 215, 154, 49;
    --tv2-orange: #e87936;
    --tv2-orange-rgb: 232, 121, 54;
    --tv2-coral: #e45c68;
    --tv2-coral-rgb: 228, 92, 104;
    --tv2-magenta: #c64f9a;
    --tv2-magenta-rgb: 198, 79, 154;
    --tv2-radius-sm: 16px;
    --tv2-radius-md: 24px;
    --tv2-radius-lg: 34px;
    --tv2-shadow-soft:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 18px 45px rgba(27, 41, 83, .08),
        0 4px 14px rgba(27, 41, 83, .05);
    --tv2-shadow-deep:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 34px 90px rgba(30, 42, 87, .17),
        0 10px 30px rgba(30, 42, 87, .09);
    --tv2-pointer-x: 50%;
    --tv2-pointer-y: 18%;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(
            900px 520px at var(--tv2-pointer-x) var(--tv2-pointer-y),
            rgba(97, 110, 236, .12),
            transparent 66%
        ),
        linear-gradient(145deg, #f7f8ff 0%, #edf8f7 48%, #fff9ef 100%);
    color: var(--tv2-text);
}

.tv2-page::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--tv2-violet-rgb), .09), transparent 24%),
        radial-gradient(circle at 88% 22%, rgba(var(--tv2-cyan-rgb), .1), transparent 25%),
        radial-gradient(circle at 48% 94%, rgba(var(--tv2-amber-rgb), .1), transparent 29%);
}

.tv2-page *,
.tv2-page *::before,
.tv2-page *::after {
    box-sizing: border-box;
}

.tv2-ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.tv2-ambient__grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(85, 104, 150, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 104, 150, .08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 85%);
}

.tv2-ambient__light {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(12px);
    opacity: .55;
}

.tv2-ambient__light--one {
    top: 3%;
    left: -9%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(var(--tv2-violet-rgb), .2), transparent 68%);
    animation: tv2-float-one 18s ease-in-out infinite alternate;
}

.tv2-ambient__light--two {
    top: 31%;
    right: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(var(--tv2-cyan-rgb), .18), transparent 69%);
    animation: tv2-float-two 22s ease-in-out infinite alternate;
}

.tv2-ambient__light--three {
    bottom: 2%;
    left: 25%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--tv2-amber-rgb), .16), transparent 70%);
    animation: tv2-float-three 24s ease-in-out infinite alternate;
}

.tv2-shell {
    position: relative;
    z-index: 1;
    padding: 24px 24px 64px;
}

.tv2-container {
    width: min(1420px, 100%);
    margin: 0 auto;
}

.tv2-glass {
    border: 1px solid rgba(255, 255, 255, .72);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .54)) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(92, 114, 171, .16)) border-box;
    box-shadow: var(--tv2-shadow-soft);
    backdrop-filter: blur(22px) saturate(126%);
    -webkit-backdrop-filter: blur(22px) saturate(126%);
}

.tv2-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
    gap: 42px;
    min-height: 610px;
    margin-top: 18px;
    padding: clamp(30px, 4vw, 58px);
    overflow: hidden;
    border-radius: var(--tv2-radius-lg);
    box-shadow: var(--tv2-shadow-deep);
}

.tv2-hero::after {
    position: absolute;
    inset: 1px;
    z-index: 0;
    content: "";
    border-radius: calc(var(--tv2-radius-lg) - 1px);
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, .58), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(var(--tv2-violet-rgb), .1), transparent 28%),
        radial-gradient(circle at 67% 88%, rgba(var(--tv2-cyan-rgb), .09), transparent 30%);
}

.tv2-hero__aurora {
    position: absolute;
    top: -38%;
    right: -12%;
    z-index: 0;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .9;
    filter: blur(4px);
    background:
        conic-gradient(
            from 190deg,
            rgba(var(--tv2-violet-rgb), .21),
            rgba(var(--tv2-cyan-rgb), .11),
            rgba(var(--tv2-amber-rgb), .13),
            rgba(var(--tv2-violet-rgb), .21)
        );
    mask-image: radial-gradient(circle, #000 0%, transparent 69%);
    animation: tv2-aurora 28s linear infinite;
}

.tv2-hero__copy,
.tv2-orbit {
    position: relative;
    z-index: 2;
}

.tv2-hero__copy {
    align-self: center;
}

.tv2-hero__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.tv2-version,
.tv2-stage,
.tv2-kicker,
.tv2-section-kicker,
.tv2-system-card__state,
.tv2-horizon-stage__time {
    letter-spacing: .035em;
}

.tv2-version,
.tv2-stage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(76, 91, 140, .14);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 850;
    color: var(--tv2-ink);
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 8px 18px rgba(36, 53, 101, .05);
}

.tv2-version .material-icons {
    font-size: 17px;
    color: var(--tv2-violet);
}

.tv2-stage > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tv2-green);
    box-shadow: 0 0 0 5px rgba(var(--tv2-green-rgb), .12);
}

.tv2-kicker,
.tv2-section-kicker {
    display: block;
    margin: 0 0 10px;
    color: var(--tv2-violet);
    font-size: .77rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tv2-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--tv2-ink);
    font-size: clamp(2.7rem, 5.1vw, 5.3rem);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.tv2-hero__summary {
    max-width: 740px;
    margin: 24px 0 0;
    color: var(--tv2-text);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.75;
}

.tv2-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tv2-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 19px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.tv2-button::before {
    position: absolute;
    top: -70%;
    left: -35%;
    width: 34%;
    height: 240%;
    content: "";
    opacity: .4;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    transition: left .55s ease;
}

.tv2-button:hover::before {
    left: 115%;
}

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

.tv2-button:focus-visible,
.tv2-horizon-button:focus-visible,
.tv2-system-card:focus-visible {
    outline: 3px solid rgba(var(--tv2-blue-rgb), .25);
    outline-offset: 3px;
}

.tv2-button .material-icons {
    font-size: 20px;
}

.tv2-button--primary {
    color: #fff;
    background:
        linear-gradient(135deg, var(--tv2-violet), var(--tv2-blue));
    box-shadow:
        0 16px 28px rgba(var(--tv2-violet-rgb), .24),
        0 4px 10px rgba(var(--tv2-blue-rgb), .15),
        0 1px 0 rgba(255, 255, 255, .3) inset;
}

.tv2-button--primary:hover {
    box-shadow:
        0 20px 36px rgba(var(--tv2-violet-rgb), .29),
        0 6px 12px rgba(var(--tv2-blue-rgb), .18),
        0 1px 0 rgba(255, 255, 255, .35) inset;
}

.tv2-button--glass {
    color: var(--tv2-ink);
    border-color: rgba(72, 91, 139, .16);
    background: rgba(255, 255, 255, .57);
    box-shadow: 0 12px 24px rgba(35, 51, 94, .07);
}

.tv2-button--glass:hover {
    border-color: rgba(var(--tv2-violet-rgb), .25);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 16px 30px rgba(35, 51, 94, .1);
}

.tv2-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 790px;
    margin-top: 34px;
}

.tv2-hero__facts span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 74px;
    padding: 14px 15px;
    border: 1px solid rgba(78, 95, 144, .12);
    border-radius: 17px;
    color: var(--tv2-muted);
    font-size: .78rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, .46);
    box-shadow: 0 10px 24px rgba(37, 52, 97, .045);
}

.tv2-hero__facts strong {
    color: var(--tv2-ink);
    font-size: .94rem;
    font-weight: 900;
}

.tv2-orbit {
    align-self: center;
    width: min(100%, 520px);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    perspective: 900px;
}

.tv2-orbit::before {
    position: absolute;
    inset: 8%;
    z-index: -1;
    content: "";
    border-radius: 50%;
    opacity: .85;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .91) 0 18%, transparent 38%),
        conic-gradient(
            from 20deg,
            rgba(var(--tv2-violet-rgb), .14),
            rgba(var(--tv2-cyan-rgb), .12),
            rgba(var(--tv2-green-rgb), .12),
            rgba(var(--tv2-amber-rgb), .12),
            rgba(var(--tv2-violet-rgb), .14)
        );
    filter: blur(1px);
    box-shadow:
        0 0 80px rgba(var(--tv2-violet-rgb), .12),
        0 0 120px rgba(var(--tv2-cyan-rgb), .09);
}

.tv2-orbit__ring {
    position: absolute;
    inset: 50%;
    display: block;
    border: 1px solid rgba(79, 97, 145, .2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tv2-orbit__ring--outer {
    width: 89%;
    height: 89%;
    border-style: dashed;
    animation: tv2-spin 45s linear infinite;
}

.tv2-orbit__ring--middle {
    width: 66%;
    height: 66%;
    border-color: rgba(var(--tv2-violet-rgb), .18);
    animation: tv2-spin-reverse 34s linear infinite;
}

.tv2-orbit__ring--inner {
    width: 43%;
    height: 43%;
    border-color: rgba(var(--tv2-cyan-rgb), .2);
}

.tv2-orbit__pulse {
    position: absolute;
    inset: 50%;
    width: 31%;
    height: 31%;
    border: 1px solid rgba(var(--tv2-violet-rgb), .2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: tv2-pulse 3.6s ease-out infinite;
}

.tv2-orbit__core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 31%;
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .3), transparent 28%),
        linear-gradient(145deg, var(--tv2-violet), var(--tv2-blue));
    box-shadow:
        0 26px 54px rgba(var(--tv2-violet-rgb), .32),
        0 8px 20px rgba(var(--tv2-blue-rgb), .2),
        0 1px 0 rgba(255, 255, 255, .4) inset;
}

.tv2-orbit__core .material-icons {
    margin-bottom: 4px;
    font-size: clamp(26px, 4vw, 38px);
}

.tv2-orbit__core strong {
    font-size: clamp(.94rem, 1.4vw, 1.16rem);
    font-weight: 950;
}

.tv2-orbit__core small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: .62rem;
    text-align: center;
}

.tv2-orbit__node {
    --tone: var(--tv2-blue);
    --tone-rgb: var(--tv2-blue-rgb);
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    color: var(--tv2-ink);
    font-size: clamp(.61rem, .9vw, .74rem);
    font-weight: 900;
    white-space: nowrap;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .67));
    box-shadow:
        0 14px 28px rgba(var(--tone-rgb), .14),
        0 4px 10px rgba(30, 44, 88, .06),
        0 0 0 4px rgba(var(--tone-rgb), .06);
    backdrop-filter: blur(12px);
}

.tv2-orbit__node .material-icons {
    font-size: 16px;
    color: var(--tone);
}

.tv2-orbit__node--one { top: 2%; left: 50%; transform: translateX(-50%); }
.tv2-orbit__node--two { top: 18%; right: 2%; }
.tv2-orbit__node--three { top: 49%; right: -1%; }
.tv2-orbit__node--four { right: 10%; bottom: 10%; }
.tv2-orbit__node--five { bottom: 0; left: 50%; transform: translateX(-50%); }
.tv2-orbit__node--six { bottom: 10%; left: 8%; }
.tv2-orbit__node--seven { top: 49%; left: -2%; }
.tv2-orbit__node--eight { top: 18%; left: 1%; }

.tv2-tone-blue { --tone: var(--tv2-blue); --tone-rgb: var(--tv2-blue-rgb); }
.tv2-tone-violet { --tone: var(--tv2-violet); --tone-rgb: var(--tv2-violet-rgb); }
.tv2-tone-cyan { --tone: var(--tv2-cyan); --tone-rgb: var(--tv2-cyan-rgb); }
.tv2-tone-green { --tone: var(--tv2-green); --tone-rgb: var(--tv2-green-rgb); }
.tv2-tone-amber { --tone: var(--tv2-amber); --tone-rgb: var(--tv2-amber-rgb); }
.tv2-tone-orange { --tone: var(--tv2-orange); --tone-rgb: var(--tv2-orange-rgb); }
.tv2-tone-coral { --tone: var(--tv2-coral); --tone-rgb: var(--tv2-coral-rgb); }
.tv2-tone-magenta { --tone: var(--tv2-magenta); --tone-rgb: var(--tv2-magenta-rgb); }

.tv2-intro,
.tv2-horizons,
.tv2-loop,
.tv2-systems,
.tv2-next {
    margin-top: clamp(30px, 5vw, 64px);
}

.tv2-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 24px;
}

.tv2-section-head--compact {
    margin-bottom: 30px;
}

.tv2-section-head h2,
.tv2-horizons__head h2,
.tv2-next h2 {
    margin: 0;
    color: var(--tv2-ink);
    font-size: clamp(1.8rem, 3.1vw, 3.25rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.tv2-section-head > p,
.tv2-horizons__head > div > p,
.tv2-next p {
    margin: 0;
    color: var(--tv2-muted);
    font-size: .97rem;
    line-height: 1.72;
}

.tv2-principle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tv2-principle {
    position: relative;
    min-height: 310px;
    padding: 26px;
    overflow: hidden;
    border-radius: var(--tv2-radius-md);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tv2-principle:hover {
    transform: translateY(-5px);
    box-shadow: var(--tv2-shadow-deep);
}

.tv2-principle::before {
    position: absolute;
    right: -15%;
    bottom: -27%;
    width: 210px;
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
    opacity: .14;
    background: radial-gradient(circle, var(--principle-color), transparent 68%);
}

.tv2-principle--voice { --principle-color: var(--tv2-violet); }
.tv2-principle--wisdom { --principle-color: var(--tv2-cyan); }
.tv2-principle--legacy { --principle-color: var(--tv2-amber); }

.tv2-principle__number {
    position: absolute;
    top: 20px;
    right: 22px;
    color: rgba(29, 45, 83, .09);
    font-size: 3.4rem;
    font-weight: 950;
    line-height: 1;
}

.tv2-principle__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 18px;
    color: var(--principle-color);
    font-size: 29px;
    background: rgba(255, 255, 255, .72);
    box-shadow:
        0 14px 28px color-mix(in srgb, var(--principle-color) 18%, transparent),
        0 1px 0 rgba(255, 255, 255, .9) inset;
}

.tv2-principle h3 {
    margin: 0 0 11px;
    color: var(--tv2-ink);
    font-size: 1.28rem;
    font-weight: 950;
    letter-spacing: -.025em;
}

.tv2-principle p {
    margin: 0;
    color: var(--tv2-text);
    font-size: .92rem;
    line-height: 1.72;
}

.tv2-principle__result {
    position: absolute;
    right: 24px;
    bottom: 23px;
    left: 24px;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-left: 3px solid var(--principle-color);
    border-radius: 0 10px 10px 0;
    color: var(--tv2-ink);
    font-size: .79rem;
    font-weight: 900;
    background: rgba(255, 255, 255, .55);
}

.tv2-horizons {
    padding: clamp(24px, 3.5vw, 44px);
    border-radius: var(--tv2-radius-lg);
}

.tv2-horizons__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.tv2-horizons__head > div:first-child {
    max-width: 820px;
}

.tv2-horizons__head > div:first-child > p {
    margin-top: 12px;
}

.tv2-location-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--tv2-violet-rgb), .14);
    border-radius: 17px;
    color: var(--tv2-ink);
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 12px 24px rgba(35, 51, 94, .06);
}

.tv2-location-chip > .material-icons {
    color: var(--tv2-violet);
    font-size: 24px;
}

.tv2-location-chip span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tv2-location-chip small {
    color: var(--tv2-muted);
    font-size: .67rem;
}

.tv2-location-chip strong {
    font-size: .87rem;
    font-weight: 950;
}

.tv2-horizons__layout {
    display: grid;
    grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr);
    gap: 24px;
}

.tv2-horizon-list {
    display: grid;
    gap: 10px;
}

.tv2-horizon-button {
    --tone: var(--tv2-blue);
    --tone-rgb: var(--tv2-blue-rgb);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid rgba(84, 101, 148, .14);
    border-radius: 18px;
    color: var(--tv2-text);
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 9px 18px rgba(34, 50, 92, .035);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.tv2-horizon-button:hover,
.tv2-horizon-button.is-active {
    transform: translateX(5px);
    border-color: rgba(var(--tone-rgb), .34);
    background: rgba(255, 255, 255, .84);
    box-shadow:
        0 14px 28px rgba(var(--tone-rgb), .12),
        0 0 0 3px rgba(var(--tone-rgb), .055);
}

.tv2-horizon-button__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--tone);
    font-size: 21px;
    background: rgba(var(--tone-rgb), .1);
    box-shadow: 0 8px 16px rgba(var(--tone-rgb), .08);
}

.tv2-horizon-button span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tv2-horizon-button strong {
    color: var(--tv2-ink);
    font-size: .93rem;
    font-weight: 950;
}

.tv2-horizon-button small {
    color: var(--tv2-muted);
    font-size: .72rem;
}

.tv2-horizon-button__arrow {
    color: var(--tone);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .2s ease, transform .2s ease;
}

.tv2-horizon-button:hover .tv2-horizon-button__arrow,
.tv2-horizon-button.is-active .tv2-horizon-button__arrow {
    opacity: 1;
    transform: translateX(0);
}

.tv2-horizon-stage {
    --tone: var(--tv2-coral);
    --tone-rgb: var(--tv2-coral-rgb);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .22), transparent 20%),
        radial-gradient(circle at 15% 90%, rgba(255, 255, 255, .12), transparent 32%),
        linear-gradient(145deg, color-mix(in srgb, var(--tone) 88%, #202d62), #111a3d 82%);
    box-shadow:
        0 30px 62px rgba(var(--tone-rgb), .22),
        0 9px 24px rgba(20, 30, 67, .18),
        0 1px 0 rgba(255, 255, 255, .25) inset;
    transition: background .28s ease, box-shadow .28s ease;
}

.tv2-horizon-stage::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .6;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .15), transparent 29%),
        repeating-radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .08) 0 1px, transparent 1px 19px);
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.tv2-horizon-stage.is-refreshing .tv2-horizon-stage__content {
    animation: tv2-content-enter .42s ease both;
}

.tv2-horizon-stage__sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tv2-horizon-stage__sky span {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px rgba(255, 255, 255, .9);
    animation: tv2-star 3.8s ease-in-out infinite alternate;
}

.tv2-horizon-stage__sky span:nth-child(1) { top: 12%; left: 18%; animation-delay: -.4s; }
.tv2-horizon-stage__sky span:nth-child(2) { top: 28%; right: 18%; animation-delay: -1.1s; }
.tv2-horizon-stage__sky span:nth-child(3) { top: 58%; right: 9%; animation-delay: -2s; }
.tv2-horizon-stage__sky span:nth-child(4) { bottom: 18%; left: 34%; animation-delay: -.8s; }
.tv2-horizon-stage__sky span:nth-child(5) { top: 7%; right: 44%; animation-delay: -1.6s; }

.tv2-horizon-stage__content,
.tv2-horizon-stage__mission {
    position: relative;
    z-index: 2;
}

.tv2-horizon-stage__time {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .8);
    font-size: .69rem;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.tv2-horizon-stage h3 {
    margin: 22px 0 12px;
    color: #fff;
    font-size: clamp(3.2rem, 6.6vw, 6.8rem);
    font-weight: 950;
    line-height: .86;
    letter-spacing: -.075em;
}

.tv2-horizon-stage__question {
    max-width: 710px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 2.25vw, 1.85rem);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.tv2-horizon-stage__result {
    max-width: 680px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .93rem;
    line-height: 1.62;
}

.tv2-horizon-stage__mission {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin-top: 34px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(5, 12, 39, .26);
    box-shadow: 0 12px 32px rgba(1, 7, 27, .16);
    backdrop-filter: blur(15px);
}

.tv2-horizon-stage__mission > .material-icons {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.tv2-horizon-stage__mission div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tv2-horizon-stage__mission small {
    color: rgba(255, 255, 255, .64);
    font-size: .66rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tv2-horizon-stage__mission strong {
    color: #fff;
    font-size: .94rem;
    font-weight: 950;
}

.tv2-horizon-stage__mission p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    line-height: 1.55;
}

.tv2-loop {
    padding: clamp(24px, 3.5vw, 42px);
    border: 1px solid rgba(87, 105, 153, .13);
    border-radius: var(--tv2-radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .3));
    box-shadow: var(--tv2-shadow-soft);
}

.tv2-loop__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tv2-loop__track::before {
    position: absolute;
    top: 31px;
    right: 5%;
    left: 5%;
    z-index: 0;
    height: 2px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--tv2-blue),
        var(--tv2-violet),
        var(--tv2-cyan),
        var(--tv2-green),
        var(--tv2-amber)
    );
    box-shadow: 0 0 14px rgba(var(--tv2-violet-rgb), .16);
}

.tv2-loop__track li {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.tv2-loop__track li > .material-icons {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 13px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 19px;
    color: var(--tv2-violet);
    font-size: 26px;
    background: rgba(255, 255, 255, .85);
    box-shadow:
        0 13px 26px rgba(36, 52, 95, .1),
        0 0 0 5px rgba(255, 255, 255, .52);
}

.tv2-loop__track li:nth-child(3n + 1) > .material-icons { color: var(--tv2-blue); }
.tv2-loop__track li:nth-child(3n + 2) > .material-icons { color: var(--tv2-violet); }
.tv2-loop__track li:nth-child(3n) > .material-icons { color: var(--tv2-green); }

.tv2-loop__step {
    position: absolute;
    top: -7px;
    right: calc(50% - 38px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: .56rem;
    font-weight: 950;
    background: var(--tv2-night);
    box-shadow: 0 6px 12px rgba(18, 29, 67, .2);
}

.tv2-loop__track li div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tv2-loop__track strong {
    color: var(--tv2-ink);
    font-size: .82rem;
    font-weight: 950;
}

.tv2-loop__track small {
    color: var(--tv2-muted);
    font-size: .66rem;
    line-height: 1.35;
}

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

.tv2-system-card {
    --tone: var(--tv2-blue);
    --tone-rgb: var(--tv2-blue-rgb);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 22px;
    overflow: hidden;
    border-radius: 22px;
    color: var(--tv2-text);
    text-decoration: none;
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.tv2-system-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(var(--tone-rgb), .28);
    box-shadow:
        0 28px 56px rgba(var(--tone-rgb), .15),
        0 9px 24px rgba(28, 42, 83, .08),
        0 1px 0 rgba(255, 255, 255, .9) inset;
}

.tv2-system-card__glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    opacity: .17;
    background: radial-gradient(circle, var(--tone), transparent 68%);
    transition: opacity .25s ease, transform .25s ease;
}

.tv2-system-card:hover .tv2-system-card__glow {
    opacity: .28;
    transform: scale(1.14);
}

.tv2-system-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 17px;
    color: var(--tone);
    font-size: 26px;
    background: rgba(var(--tone-rgb), .09);
    box-shadow: 0 12px 24px rgba(var(--tone-rgb), .1);
}

.tv2-system-card__state {
    position: absolute;
    top: 19px;
    right: 19px;
    max-width: 125px;
    padding: 5px 8px;
    border: 1px solid rgba(var(--tone-rgb), .13);
    border-radius: 999px;
    color: var(--tone);
    font-size: .56rem;
    font-weight: 950;
    text-align: center;
    text-transform: uppercase;
    background: rgba(var(--tone-rgb), .055);
}

.tv2-system-card h3 {
    margin: 0 0 8px;
    color: var(--tv2-ink);
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.tv2-system-card p {
    margin: 0;
    color: var(--tv2-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.tv2-system-card__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--tone);
    font-size: .76rem;
    font-weight: 950;
}

.tv2-system-card__action .material-icons {
    font-size: 17px;
    transition: transform .2s ease;
}

.tv2-system-card:hover .tv2-system-card__action .material-icons {
    transform: translateX(4px);
}

.tv2-next {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 3.4vw, 38px);
    overflow: hidden;
    border-radius: var(--tv2-radius-lg);
}

.tv2-next::before {
    position: absolute;
    top: -90px;
    right: 10%;
    width: 250px;
    height: 250px;
    content: "";
    border-radius: 50%;
    opacity: .15;
    background: radial-gradient(circle, var(--tv2-violet), transparent 69%);
}

.tv2-next__symbol {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, var(--tv2-violet), var(--tv2-blue));
    box-shadow:
        0 22px 36px rgba(var(--tv2-violet-rgb), .25),
        0 1px 0 rgba(255, 255, 255, .35) inset;
}

.tv2-next__symbol .material-icons {
    font-size: 36px;
}

.tv2-next__copy {
    position: relative;
    z-index: 1;
}

.tv2-next h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.tv2-next p {
    max-width: 840px;
    margin-top: 8px;
}

[data-tv2-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

[data-tv2-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* R2.1T.V1: tema escuro explícito legado removido do Territorial. */

@keyframes tv2-float-one {
    to { transform: translate(70px, 42px) scale(1.08); }
}

@keyframes tv2-float-two {
    to { transform: translate(-68px, 65px) scale(.93); }
}

@keyframes tv2-float-three {
    to { transform: translate(42px, -55px) scale(1.12); }
}

@keyframes tv2-aurora {
    to { transform: rotate(360deg); }
}

@keyframes tv2-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes tv2-spin-reverse {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes tv2-pulse {
    0% { opacity: .58; transform: translate(-50%, -50%) scale(.82); }
    82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.72); }
}

@keyframes tv2-star {
    from { opacity: .22; transform: scale(.72); }
    to { opacity: .9; transform: scale(1.25); }
}

@keyframes tv2-content-enter {
    from { opacity: .3; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
    .tv2-hero {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 22px;
    }

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

    .tv2-loop__track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 28px;
    }

    .tv2-loop__track::before {
        display: none;
    }
}

@media (max-width: 960px) {
    .tv2-shell {
        padding: 18px 18px 50px;
    }

    .tv2-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tv2-hero__copy {
        text-align: left;
    }

    .tv2-orbit {
        width: min(100%, 470px);
        margin-top: 10px;
    }

    .tv2-section-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tv2-principle-grid {
        grid-template-columns: 1fr;
    }

    .tv2-principle {
        min-height: 260px;
    }

    .tv2-horizons__head {
        flex-direction: column;
    }

    .tv2-horizons__layout {
        grid-template-columns: 1fr;
    }

    .tv2-horizon-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tv2-horizon-button {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tv2-horizon-button__arrow {
        display: none;
    }

    .tv2-next {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tv2-next > .tv2-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .tv2-shell {
        padding: 14px 12px 42px;
    }

    .tv2-hero {
        padding: 25px 20px 28px;
        border-radius: 26px;
    }

    .tv2-hero h1 {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .tv2-hero__topline,
    .tv2-hero__actions {
        align-items: stretch;
    }

    .tv2-version,
    .tv2-stage {
        justify-content: center;
    }

    .tv2-button {
        width: 100%;
    }

    .tv2-hero__facts {
        grid-template-columns: 1fr;
    }

    .tv2-hero__facts span {
        min-height: auto;
    }

    .tv2-orbit {
        width: min(100%, 390px);
    }

    .tv2-orbit__node {
        min-height: 28px;
        padding: 5px 7px;
        font-size: .56rem;
    }

    .tv2-orbit__node .material-icons {
        font-size: 13px;
    }

    .tv2-orbit__core {
        width: 34%;
    }

    .tv2-horizons,
    .tv2-loop {
        padding: 20px 16px;
        border-radius: 25px;
    }

    .tv2-horizon-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tv2-horizon-button {
        min-height: 76px;
        padding: 10px;
    }

    .tv2-horizon-button__icon {
        width: 38px;
        height: 38px;
    }

    .tv2-horizon-stage {
        min-height: 500px;
        padding: 27px 21px;
    }

    .tv2-horizon-stage h3 {
        font-size: clamp(3rem, 20vw, 5.4rem);
    }

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

    .tv2-system-grid {
        grid-template-columns: 1fr;
    }

    .tv2-system-card {
        min-height: 230px;
    }

    .tv2-next {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .tv2-next__symbol {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }
}

@media (max-width: 440px) {
    .tv2-orbit {
        transform: scale(.94);
    }

    .tv2-orbit__node--two,
    .tv2-orbit__node--three,
    .tv2-orbit__node--four {
        right: 0;
    }

    .tv2-orbit__node--six,
    .tv2-orbit__node--seven,
    .tv2-orbit__node--eight {
        left: 0;
    }

    .tv2-horizon-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tv2-page *,
    .tv2-page *::before,
    .tv2-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    [data-tv2-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ======================================================================
   R2.1T.1B | Estado vivo da Politeia e linha pessoal de visões
   ====================================================================== */

.tv2-live-status {
    margin-top: 54px;
}

.tv2-live-install {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 22px;
    border-radius: 22px;
    border-color: rgba(var(--tv2-amber-rgb), .28);
}

.tv2-live-install > .material-icons {
    color: var(--tv2-amber);
}

.tv2-live-install strong {
    display: block;
    color: var(--tv2-ink);
    font-weight: 900;
}

.tv2-live-install p {
    margin: 6px 0 0;
    color: var(--tv2-text);
    line-height: 1.55;
}

.tv2-live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tv2-live-stat {
    position: relative;
    min-height: 170px;
    padding: 22px;
    overflow: hidden;
    border-radius: 23px;
}

.tv2-live-stat::after {
    position: absolute;
    right: -35px;
    bottom: -42px;
    width: 130px;
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: rgba(var(--tv2-violet-rgb), .07);
}

.tv2-live-stat > .material-icons {
    display: grid;
    place-items: center;
    width: 45px;
    aspect-ratio: 1;
    border-radius: 15px;
    color: var(--tv2-violet);
    background: rgba(var(--tv2-violet-rgb), .1);
}

.tv2-live-stat strong,
.tv2-live-stat small {
    position: relative;
    z-index: 1;
    display: block;
}

.tv2-live-stat strong {
    margin-top: 19px;
    color: var(--tv2-ink);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.045em;
}

.tv2-live-stat small {
    margin-top: 7px;
    color: var(--tv2-muted);
    font-size: .76rem;
    line-height: 1.4;
}

.tv2-my-visions {
    margin-top: 16px;
    padding: 24px;
    border-radius: 26px;
}

.tv2-my-visions__head {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
}

.tv2-my-visions__head h3 {
    margin: 0;
    color: var(--tv2-ink);
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -.035em;
}

.tv2-my-visions__list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.tv2-my-visions__list > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 11px 13px;
    border: 1px solid rgba(91, 108, 153, .11);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .48);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.tv2-my-visions__list > a:hover,
.tv2-my-visions__list > a:focus-visible {
    transform: translateX(3px);
    border-color: rgba(var(--tv2-violet-rgb), .3);
    outline: none;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 13px 28px rgba(33, 49, 94, .07);
}

.tv2-my-visions__list > a > .material-icons:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 14px;
    color: var(--tv2-violet);
    background: rgba(var(--tv2-violet-rgb), .1);
}

.tv2-my-visions__list > a > .material-icons:last-child {
    color: var(--tv2-muted);
    font-size: 19px;
}

.tv2-my-visions__list strong,
.tv2-my-visions__list small {
    display: block;
}

.tv2-my-visions__list strong {
    color: var(--tv2-ink);
    font-size: .86rem;
    font-weight: 900;
}

.tv2-my-visions__list small {
    margin-top: 4px;
    color: var(--tv2-muted);
    font-size: .71rem;
}

.tv2-horizon-stage__mission .tv2-button {
    margin-top: 13px;
}

@media (max-width: 1000px) {
    .tv2-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tv2-live-grid {
        grid-template-columns: 1fr;
    }

    .tv2-my-visions__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tv2-my-visions__head .tv2-button {
        width: 100%;
    }
}

/* R2.1T.V1: tema escuro automático removido. A identidade Territorial não segue prefers-color-scheme. */
