/* ============================================================
   La Central de Whally — experiencia 3D de los 4 canales
   Estilos aislados (prefijo tc-) para no tocar el resto del sitio.
   ============================================================ */

.tc-page {
    --tc-ink: #0b131a;
    --tc-deep: #121d26;
    --tc-slate: #303e4c;
    --tc-green: #3d9270;
    --tc-green-bright: #6fd3a6;
    --tc-mint: #c2f2da;
    --tc-paper: #f3f7f4;
    --tc-muted: rgba(243, 247, 244, 0.62);
    --tc-line: rgba(243, 247, 244, 0.12);
    --tc-web: #6fd3a6;
    --tc-whatsapp: #86cf72;
    --tc-phone: #62c6d8;
    --tc-voice: #e7b36c;
    background: var(--tc-ink);
    color: var(--tc-paper);
    font-feature-settings: "ss01" on, "cv11" on;
}

.tc-page ::selection {
    background: var(--tc-green);
    color: #fff;
}

.tc-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.15rem, 4vw, 2.5rem);
}

/* ---------- Escenario 3D ---------- */

.tc-stage {
    position: relative;
    height: calc(100svh - 103px);
    min-height: 600px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 50% 8%, rgba(61, 146, 112, 0.28) 0%, rgba(11, 19, 26, 0) 58%),
        radial-gradient(80% 60% at 82% 86%, rgba(98, 198, 216, 0.12) 0%, rgba(11, 19, 26, 0) 60%),
        linear-gradient(180deg, #0d161e 0%, #0b131a 100%);
    isolation: isolate;
}

.tc-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(243, 247, 244, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 247, 244, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 50% 46%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 46%, #000 0%, transparent 78%);
}

.tc-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(85% 70% at 50% 50%, transparent 52%, rgba(4, 9, 13, 0.72) 100%);
}

.tc-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.9s ease;
    cursor: grab;
    touch-action: pan-y;
}

.tc-stage.is-ready .tc-canvas {
    opacity: 1;
}

.tc-stage.is-dragging .tc-canvas {
    cursor: grabbing;
}

.tc-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.tc-intro {
    position: absolute;
    top: clamp(1.4rem, 4.5vh, 3rem);
    left: clamp(1.15rem, 5vw, 4.5rem);
    max-width: 40rem;
    pointer-events: auto;
}

.tc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.8rem 0.42rem 0.55rem;
    border: 1px solid rgba(111, 211, 166, 0.4);
    border-radius: 999px;
    background: rgba(61, 146, 112, 0.14);
    color: var(--tc-mint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tc-kicker i {
    color: var(--tc-green-bright);
}

.tc-title {
    margin: 1.05rem 0 0;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
    font-weight: 800;
    text-wrap: balance;
}

.tc-title em {
    font-style: italic;
    color: var(--tc-green-bright);
}

.tc-lede {
    margin: 1.1rem 0 0;
    max-width: 30rem;
    color: var(--tc-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.65;
}

.tc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tc-btn:focus-visible {
    outline: 2px solid var(--tc-mint);
    outline-offset: 3px;
}

.tc-btn--solid {
    background: var(--tc-green);
    color: #fff;
}

.tc-btn--solid:hover {
    background: #4aa980;
    transform: translateY(-1px);
}

.tc-btn--ghost {
    border-color: rgba(243, 247, 244, 0.28);
    color: var(--tc-paper);
    background: rgba(243, 247, 244, 0.04);
}

.tc-btn--ghost:hover {
    background: rgba(243, 247, 244, 0.1);
    border-color: rgba(243, 247, 244, 0.5);
}

.tc-hint {
    position: absolute;
    right: clamp(1.15rem, 5vw, 4.5rem);
    bottom: clamp(4.6rem, 9vh, 6rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(243, 247, 244, 0.5);
    font-size: 0.74rem;
    font-weight: 600;
    pointer-events: none;
}

.tc-hint i {
    color: var(--tc-green-bright);
}

.tc-controls {
    position: absolute;
    left: 50%;
    bottom: clamp(1.1rem, 3vh, 1.8rem);
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem;
    border: 1px solid var(--tc-line);
    border-radius: 999px;
    background: rgba(8, 15, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}

.tc-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.5rem 0.78rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(243, 247, 244, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.tc-ctrl:hover {
    background: rgba(243, 247, 244, 0.09);
    color: var(--tc-paper);
}

.tc-ctrl:focus-visible {
    outline: 2px solid var(--tc-mint);
    outline-offset: 2px;
}

.tc-ctrl[aria-pressed="true"] {
    background: rgba(61, 146, 112, 0.28);
    color: var(--tc-mint);
}

/* Etiquetas HTML ancladas a cada nodo 3D */
.tc-node-label {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid rgba(243, 247, 244, 0.2);
    border-radius: 999px;
    background: rgba(9, 16, 22, 0.78);
    color: var(--tc-paper);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, background 0.18s ease, border-color 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tc-stage.is-ready .tc-node-label {
    opacity: 1;
    pointer-events: auto;
}

.tc-node-label:hover,
.tc-node-label:focus-visible,
.tc-node-label.is-active {
    background: rgba(61, 146, 112, 0.92);
    border-color: var(--tc-mint);
    outline: none;
}

.tc-node-label .tc-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--tc-green-bright);
    box-shadow: 0 0 0 3px rgba(111, 211, 166, 0.18);
}

.tc-node-label[data-channel="web"] .tc-dot { background: var(--tc-web); }
.tc-node-label[data-channel="whatsapp"] .tc-dot { background: var(--tc-whatsapp); }
.tc-node-label[data-channel="phone"] .tc-dot { background: var(--tc-phone); }
.tc-node-label[data-channel="voice"] .tc-dot { background: var(--tc-voice); }

/* Panel de canal */
.tc-panel {
    position: absolute;
    z-index: 6;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #101b23 0%, #0c151c 100%);
    border-left: 1px solid var(--tc-line);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 0.42s cubic-bezier(0.22, 0.9, 0.28, 1), visibility 0.42s;
}

.tc-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.tc-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.1rem;
}

.tc-panel__index {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tc-green-bright);
}

.tc-panel__name {
    margin: 0.2rem 0 0;
    font-size: 1.7rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.tc-panel__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tc-line);
    border-radius: 999px;
    background: transparent;
    color: var(--tc-paper);
    cursor: pointer;
    transition: background 0.18s ease;
}

.tc-panel__close:hover {
    background: rgba(243, 247, 244, 0.1);
}

.tc-panel__close:focus-visible {
    outline: 2px solid var(--tc-mint);
    outline-offset: 2px;
}

.tc-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 247, 244, 0.2) transparent;
}

.tc-panel__tagline {
    color: var(--tc-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.tc-panel__list {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.tc-panel__list li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(243, 247, 244, 0.82);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tc-panel__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--tc-accent, var(--tc-green-bright));
}

.tc-chat {
    margin-top: 1.4rem;
    padding: 0.9rem;
    border: 1px solid var(--tc-line);
    border-radius: 1.1rem;
    background: rgba(243, 247, 244, 0.035);
    display: grid;
    gap: 0.55rem;
}

.tc-chat__row {
    display: flex;
}

.tc-chat__row--out {
    justify-content: flex-end;
}

.tc-chat__bubble {
    max-width: 84%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(243, 247, 244, 0.08);
    color: rgba(243, 247, 244, 0.86);
    font-size: 0.8rem;
    line-height: 1.45;
}

.tc-chat__row--out .tc-chat__bubble {
    background: var(--tc-accent, var(--tc-green));
    color: #07120d;
    font-weight: 600;
}

.tc-metric {
    margin-top: 1.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--tc-line);
}

.tc-metric strong {
    font-size: 1.9rem;
    letter-spacing: -0.04em;
    color: var(--tc-accent, var(--tc-green-bright));
    font-weight: 800;
}

.tc-metric span {
    color: var(--tc-muted);
    font-size: 0.8rem;
}

.tc-panel__foot {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--tc-line);
}

.tc-panel__foot .tc-btn {
    width: 100%;
}

/* Fallback / sin JS / sin WebGL */
.tc-stage-fallback {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    padding: 2rem;
    color: var(--tc-muted);
}

.tc-stage-fallback i {
    font-size: 2rem;
    color: var(--tc-green-bright);
}

.tc-stage.is-ready .tc-stage-fallback {
    display: none;
}

.tc-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.6rem;
}

.tc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--tc-line);
    border-radius: 999px;
    background: rgba(243, 247, 244, 0.035);
    color: rgba(243, 247, 244, 0.68);
    font-size: 0.72rem;
    font-weight: 600;
}

.tc-badge i {
    color: var(--tc-green-bright);
    font-size: 0.7rem;
}

/* ---------- Secciones editoriales ---------- */

.tc-section {
    padding: clamp(3.8rem, 8vw, 6.5rem) 0;
}

.tc-section--deep {
    background: linear-gradient(180deg, #0b131a 0%, #0e1820 100%);
}

.tc-section--paper {
    background: var(--tc-paper);
    color: #16212b;
}

.tc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.tc-h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
    text-wrap: balance;
}

.tc-h2 em {
    font-style: italic;
    color: var(--tc-green-bright);
}

.tc-section--paper .tc-h2 em {
    color: var(--tc-green);
}

.tc-sub {
    max-width: 34rem;
    margin: 0.8rem 0 0;
    color: var(--tc-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.tc-section--paper .tc-sub {
    color: #5a6a74;
}

.tc-count {
    flex-shrink: 0;
    color: rgba(243, 247, 244, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
}

.tc-section--paper .tc-count {
    color: #93a1a8;
}

/* Rail de canales */
.tc-rack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(111, 211, 166, 0.35);
}

.tc-card {
    --tc-accent: var(--tc-green-bright);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.25rem 1.15rem;
    border: 1px solid var(--tc-line);
    border-radius: 1.3rem;
    background: linear-gradient(165deg, rgba(243, 247, 244, 0.055) 0%, rgba(243, 247, 244, 0.012) 60%);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.tc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--tc-accent);
    opacity: 0.75;
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tc-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tc-accent) 45%, transparent);
    background: linear-gradient(165deg, rgba(243, 247, 244, 0.08) 0%, rgba(243, 247, 244, 0.02) 60%);
}

.tc-card:hover::before {
    transform: scaleX(1);
}

.tc-card[data-channel="whatsapp"] { --tc-accent: var(--tc-whatsapp); }
.tc-card[data-channel="phone"] { --tc-accent: var(--tc-phone); }
.tc-card[data-channel="voice"] { --tc-accent: var(--tc-voice); }

.tc-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--tc-accent) 16%, transparent);
    color: var(--tc-accent);
    font-size: 1.05rem;
}

.tc-card__title {
    margin: 1rem 0 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tc-paper);
}

.tc-card__desc {
    margin: 0.45rem 0 0;
    color: var(--tc-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    flex: 1;
}

.tc-card__meta {
    margin-top: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--tc-line);
}

.tc-card__metric {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tc-accent);
}

.tc-card__metric span {
    display: block;
    color: rgba(243, 247, 244, 0.4);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tc-card__focus {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    border: 1px solid var(--tc-line);
    border-radius: 999px;
    background: transparent;
    color: rgba(243, 247, 244, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tc-card__focus:hover {
    background: var(--tc-accent);
    border-color: var(--tc-accent);
    color: #07120d;
}

.tc-card__focus:focus-visible {
    outline: 2px solid var(--tc-mint);
    outline-offset: 2px;
}

.tc-card__link {
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(243, 247, 244, 0.55);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease;
}

.tc-card__link:hover {
    color: var(--tc-paper);
}

/* Un solo cerebro */
.tc-brain {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.tc-brain__copy .tc-h2 {
    margin-bottom: 1rem;
}

.tc-brain__copy p {
    color: var(--tc-muted);
    line-height: 1.7;
    max-width: 34rem;
}

.tc-feed {
    border: 1px solid var(--tc-line);
    border-radius: 1.4rem;
    background: rgba(243, 247, 244, 0.03);
    padding: 1.1rem;
}

.tc-feed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--tc-line);
    color: rgba(243, 247, 244, 0.66);
    font-size: 0.72rem;
    font-weight: 700;
}

.tc-feed__head .tc-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tc-green-bright);
}

.tc-feed__head .tc-live::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--tc-green-bright);
    box-shadow: 0 0 0 3px rgba(111, 211, 166, 0.16);
    animation: tc-pulse 2.4s ease-in-out infinite;
}

.tc-feed__list {
    margin: 0;
    padding: 0.5rem 0 0;
    list-style: none;
    display: grid;
    gap: 0.2rem;
}

.tc-feed__list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.4rem;
    border-bottom: 1px dashed rgba(243, 247, 244, 0.08);
    color: rgba(243, 247, 244, 0.78);
    font-size: 0.82rem;
}

.tc-feed__list li:last-child {
    border-bottom: 0;
}

.tc-feed__list i {
    width: 1.1rem;
    text-align: center;
    color: var(--tc-green-bright);
    font-size: 0.8rem;
}

.tc-feed__list span {
    margin-left: auto;
    color: rgba(243, 247, 244, 0.34);
    font-size: 0.68rem;
    font-weight: 600;
}

.tc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.tc-stat {
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--tc-line);
    border-radius: 1rem;
    background: rgba(243, 247, 244, 0.025);
}

.tc-stat strong {
    display: block;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
    color: var(--tc-paper);
    font-weight: 800;
}

.tc-stat span {
    display: block;
    margin-top: 0.2rem;
    color: var(--tc-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Pasos */
.tc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    position: relative;
}

.tc-steps::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(48, 62, 76, 0.28) 0 6px, transparent 6px 12px);
}

.tc-step {
    position: relative;
    padding-top: 2rem;
}

.tc-step__num {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: var(--tc-paper);
    border: 2px solid var(--tc-green);
    color: transparent;
    font-size: 0;
}

.tc-step h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #16212b;
}

.tc-step p {
    margin: 0.45rem 0 0;
    color: #5a6a74;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA final */
.tc-cta {
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(194, 242, 218, 0.2) 0%, rgba(61, 146, 112, 0) 60%),
        var(--tc-green);
    color: #fff;
    text-align: center;
    padding: clamp(3.4rem, 7vw, 5.5rem) 0;
}

.tc-cta h2 {
    margin: 0 auto;
    max-width: 22ch;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 800;
    text-wrap: balance;
}

.tc-cta p {
    margin: 1rem auto 0;
    max-width: 40ch;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.tc-cta .tc-actions {
    justify-content: center;
    margin-top: 1.7rem;
}

.tc-cta .tc-btn--solid {
    background: #16212b;
}

.tc-cta .tc-btn--solid:hover {
    background: #0b131a;
}

.tc-cta .tc-btn--ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.tc-cta .tc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

@keyframes tc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .tc-rack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-brain {
        grid-template-columns: 1fr;
    }

    .tc-steps {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .tc-steps::before {
        top: 0;
        bottom: 0;
        left: 0.55rem;
        right: auto;
        width: 1px;
        height: auto;
        background: repeating-linear-gradient(180deg, rgba(48, 62, 76, 0.28) 0 6px, transparent 6px 12px);
    }

    .tc-step {
        padding-top: 0;
        padding-left: 2rem;
    }

    .tc-step__num {
        top: 0.15rem;
    }
}

@media (max-width: 720px) {
    .tc-stage {
        height: 640px;
        min-height: 0;
    }

    .tc-intro {
        right: 1.15rem;
        max-width: none;
    }

    .tc-title {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .tc-lede {
        max-width: none;
        font-size: 0.98rem;
    }

    .tc-hint {
        display: none;
    }

    .tc-node-label {
        display: none;
    }

    .tc-badge-row {
        margin-top: 1.1rem;
    }

    .tc-controls {
        width: calc(100% - 2.3rem);
        bottom: 0.9rem;
        gap: 0.15rem;
    }

    .tc-ctrl {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }

    .tc-ctrl span {
        display: none;
    }

    .tc-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 78%;
        border-left: 0;
        border-top: 1px solid var(--tc-line);
        border-radius: 1.4rem 1.4rem 0 0;
        transform: translateY(104%);
    }

    .tc-panel.is-open {
        transform: translateY(0);
    }

    .tc-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tc-rack {
        grid-template-columns: 1fr;
    }

    .tc-actions .tc-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-canvas {
        transition: none;
    }

    .tc-panel {
        transition: none;
    }

    .tc-card,
    .tc-btn,
    .tc-card::before {
        transition: none;
    }

    .tc-feed__head .tc-live::before {
        animation: none;
    }
}
